From 1a088cf6a7c774ae648e2d806cc18e7f0d324b7e Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Sun, 20 Sep 2015 13:25:19 +0800 Subject: [PATCH 1/9] Migration from v9 to v10, adding upgrade url and reporting service Migration from v9 to v10, adding upgrade url and reporting service --- .../microsoft/bingads/bulk/BulkOperation.java | 4 +- .../bingads/bulk/entities/BulkTarget.java | 13 +- .../bingads/internal/ServiceFactoryImpl.java | 18 + .../bingads/reporting/ReportingConfig.java | 9 + .../reporting/ReportingDownloadOperation.java | 383 ++++++++++ .../ReportingDownloadParameters.java | 77 ++ ...OperationCouldNotBeCompletedException.java | 29 + ...ReportingOperationInProgressException.java | 7 + .../reporting/ReportingOperationStatus.java | 56 ++ .../reporting/ReportingOperationTracker.java | 175 +++++ .../reporting/ReportingServiceManager.java | 264 +++++++ .../reporting/ReportingStatusProvider.java | 67 ++ ...kDownloadCouldNotBeCompletedException.java | 36 + .../v10/bulk/BulkDownloadOperation.java | 47 ++ .../bingads/v10/bulk/BulkEntityIterable.java | 38 + .../bingads/v10/bulk/BulkFileReader.java | 73 ++ .../bingads/v10/bulk/BulkFileWriter.java | 95 +++ .../bingads/v10/bulk/BulkOperation.java | 312 ++++++++ .../BulkOperationInProgressException.java | 8 + .../v10/bulk/BulkOperationProgressInfo.java | 20 + .../bingads/v10/bulk/BulkOperationStatus.java | 69 ++ .../bingads/v10/bulk/BulkServiceManager.java | 686 +++++++++++++++++ ...ulkUploadCouldNotBeCompletedException.java | 37 + .../bingads/v10/bulk/BulkUploadOperation.java | 42 ++ .../bingads/v10/bulk/DownloadParameters.java | 203 +++++ .../bingads/v10/bulk/DownloadStatus.java | 32 + .../bingads/v10/bulk/EntityReadException.java | 34 + .../v10/bulk/EntityUploadParameters.java | 99 +++ .../v10/bulk/EntityWriteException.java | 17 + .../v10/bulk/FileUploadParameters.java | 109 +++ .../microsoft/bingads/v10/bulk/Progress.java | 16 + .../bingads/v10/bulk/ResultFileType.java | 23 + .../v10/bulk/SubmitDownloadParameters.java | 149 ++++ .../v10/bulk/SubmitUploadParameters.java | 68 ++ .../bingads/v10/bulk/UploadStatus.java | 65 ++ .../v10/bulk/entities/BidSuggestionData.java | 94 +++ .../v10/bulk/entities/BulkAccount.java | 200 +++++ .../bingads/v10/bulk/entities/BulkAd.java | 360 +++++++++ .../v10/bulk/entities/BulkAdExtension.java | 169 +++++ .../entities/BulkAdExtensionAssociation.java | 212 ++++++ .../v10/bulk/entities/BulkAdGroup.java | 506 +++++++++++++ .../bulk/entities/BulkAdGroupAdExtension.java | 10 + .../BulkAdGroupAdExtensionAssociation.java | 93 +++ .../bulk/entities/BulkAdGroupAgeTarget.java | 113 +++ .../entities/BulkAdGroupAgeTargetBid.java | 105 +++ .../entities/BulkAdGroupAppAdExtension.java | 25 + .../entities/BulkAdGroupDayTimeTarget.java | 118 +++ .../entities/BulkAdGroupDayTimeTargetBid.java | 105 +++ .../entities/BulkAdGroupDeviceOsTarget.java | 113 +++ .../BulkAdGroupDeviceOsTargetBid.java | 98 +++ .../entities/BulkAdGroupGenderTarget.java | 113 +++ .../entities/BulkAdGroupGenderTargetBid.java | 105 +++ .../entities/BulkAdGroupImageAdExtension.java | 25 + .../entities/BulkAdGroupLocationTarget.java | 159 ++++ .../BulkAdGroupLocationTargetBid.java | 110 +++ .../entities/BulkAdGroupNegativeKeyword.java | 144 ++++ .../BulkAdGroupNegativeLocationTarget.java | 131 ++++ .../BulkAdGroupNegativeLocationTargetBid.java | 110 +++ .../entities/BulkAdGroupNegativeSite.java | 115 +++ .../entities/BulkAdGroupNegativeSites.java | 214 ++++++ .../entities/BulkAdGroupProductPartition.java | 523 +++++++++++++ .../entities/BulkAdGroupRadiusTarget.java | 113 +++ .../entities/BulkAdGroupRadiusTargetBid.java | 105 +++ .../BulkAdGroupSiteLinkAdExtension.java | 25 + .../v10/bulk/entities/BulkAdGroupTarget.java | 163 ++++ .../entities/BulkAdGroupTargetIdentifier.java | 52 ++ .../v10/bulk/entities/BulkAgeTarget.java | 98 +++ .../v10/bulk/entities/BulkAgeTargetBid.java | 101 +++ .../v10/bulk/entities/BulkAppAdExtension.java | 157 ++++ .../bulk/entities/BulkCallAdExtension.java | 166 +++++ .../v10/bulk/entities/BulkCampaign.java | 543 ++++++++++++++ .../entities/BulkCampaignAdExtension.java | 14 + .../BulkCampaignAdExtensionAssociation.java | 64 ++ .../bulk/entities/BulkCampaignAgeTarget.java | 91 +++ .../entities/BulkCampaignAgeTargetBid.java | 83 +++ .../entities/BulkCampaignAppAdExtension.java | 22 + .../entities/BulkCampaignCallAdExtension.java | 22 + .../entities/BulkCampaignDayTimeTarget.java | 96 +++ .../BulkCampaignDayTimeTargetBid.java | 52 ++ .../entities/BulkCampaignDeviceOsTarget.java | 91 +++ .../BulkCampaignDeviceOsTargetBid.java | 76 ++ .../entities/BulkCampaignGenderTarget.java | 91 +++ .../entities/BulkCampaignGenderTargetBid.java | 83 +++ .../BulkCampaignImageAdExtension.java | 22 + .../BulkCampaignLocationAdExtension.java | 22 + .../entities/BulkCampaignLocationTarget.java | 138 ++++ .../BulkCampaignLocationTargetBid.java | 101 +++ .../entities/BulkCampaignNegativeKeyword.java | 75 ++ .../BulkCampaignNegativeKeywordList.java | 172 +++++ .../BulkCampaignNegativeLocationTarget.java | 110 +++ ...BulkCampaignNegativeLocationTargetBid.java | 88 +++ .../entities/BulkCampaignNegativeSite.java | 92 +++ .../entities/BulkCampaignNegativeSites.java | 177 +++++ .../entities/BulkCampaignProductScope.java | 212 ++++++ .../entities/BulkCampaignRadiusTarget.java | 92 +++ .../entities/BulkCampaignRadiusTargetBid.java | 83 +++ .../BulkCampaignSiteLinkAdExtension.java | 22 + .../v10/bulk/entities/BulkCampaignTarget.java | 141 ++++ .../BulkCampaignTargetIdentifier.java | 48 ++ .../v10/bulk/entities/BulkDayTimeTarget.java | 96 +++ .../bulk/entities/BulkDayTimeTargetBid.java | 162 ++++ .../v10/bulk/entities/BulkDeviceOsTarget.java | 98 +++ .../bulk/entities/BulkDeviceOsTargetBid.java | 129 ++++ .../bingads/v10/bulk/entities/BulkEntity.java | 54 ++ .../entities/BulkEntityNegativeKeyword.java | 84 +++ .../bingads/v10/bulk/entities/BulkError.java | 236 ++++++ .../v10/bulk/entities/BulkGenderTarget.java | 98 +++ .../bulk/entities/BulkGenderTargetBid.java | 101 +++ .../bulk/entities/BulkImageAdExtension.java | 135 ++++ .../v10/bulk/entities/BulkKeyword.java | 527 +++++++++++++ .../entities/BulkKeywordBestPositionBid.java | 5 + .../entities/BulkKeywordBidSuggestion.java | 146 ++++ .../entities/BulkKeywordFirstPageBid.java | 5 + .../bulk/entities/BulkKeywordMainLineBid.java | 5 + .../entities/BulkLocationAdExtension.java | 410 ++++++++++ .../v10/bulk/entities/BulkLocationTarget.java | 122 +++ .../bulk/entities/BulkLocationTargetBid.java | 126 ++++ ...lkLocationTargetBidWithStringLocation.java | 129 ++++ .../BulkLocationTargetWithStringLocation.java | 621 ++++++++++++++++ .../bulk/entities/BulkNegativeKeyword.java | 210 ++++++ .../entities/BulkNegativeKeywordList.java | 164 ++++ .../entities/BulkNegativeLocationTarget.java | 94 +++ .../BulkNegativeLocationTargetBid.java | 16 + .../v10/bulk/entities/BulkNegativeSite.java | 142 ++++ .../v10/bulk/entities/BulkNegativeSites.java | 159 ++++ .../v10/bulk/entities/BulkProductAd.java | 94 +++ .../v10/bulk/entities/BulkRadiusTarget.java | 160 ++++ .../bulk/entities/BulkRadiusTargetBid.java | 217 ++++++ .../entities/BulkSharedNegativeKeyword.java | 49 ++ .../v10/bulk/entities/BulkSiteLink.java | 408 ++++++++++ .../entities/BulkSiteLinkAdExtension.java | 278 +++++++ .../v10/bulk/entities/BulkSubTarget.java | 233 ++++++ .../bingads/v10/bulk/entities/BulkTarget.java | 608 +++++++++++++++ .../v10/bulk/entities/BulkTargetBid.java | 146 ++++ .../bulk/entities/BulkTargetIdentifier.java | 207 ++++++ .../bulk/entities/BulkTargetWithLocation.java | 111 +++ .../bingads/v10/bulk/entities/BulkTextAd.java | 141 ++++ .../bingads/v10/bulk/entities/EntityInfo.java | 79 ++ .../v10/bulk/entities/LocationTargetType.java | 31 + .../v10/bulk/entities/PerformanceData.java | 356 +++++++++ .../bulk/entities/ProductConditionHelper.java | 40 + .../v10/bulk/entities/QualityScoreData.java | 185 +++++ .../entities/StaticBulkObjectFactory.java | 489 ++++++++++++ .../bingads/v10/bulk/entities/Status.java | 38 + .../v10/bulk/entities/UnknownBulkEntity.java | 35 + .../internal/bulk/BulkFileReaderFactory.java | 13 + .../v10/internal/bulk/BulkMapping.java | 26 + .../bingads/v10/internal/bulk/BulkObject.java | 81 ++ .../v10/internal/bulk/BulkObjectFactory.java | 23 + .../v10/internal/bulk/BulkObjectReader.java | 15 + .../v10/internal/bulk/BulkObjectWriter.java | 31 + .../bulk/BulkOperationStatusProvider.java | 16 + .../internal/bulk/BulkOperationTracker.java | 10 + .../v10/internal/bulk/BulkStreamReader.java | 34 + .../bulk/CSVBulkFileReaderFactory.java | 17 + .../v10/internal/bulk/ComplexBulkMapping.java | 47 ++ .../internal/bulk/ConditionalBulkMapping.java | 31 + .../bingads/v10/internal/bulk/Config.java | 5 + .../bingads/v10/internal/bulk/Creator.java | 6 + .../bingads/v10/internal/bulk/CsvHeaders.java | 220 ++++++ .../internal/bulk/DownloadStatusProvider.java | 74 ++ .../bulk/DynamicColumnNameMapping.java | 49 ++ .../v10/internal/bulk/EntityExtractor.java | 33 + .../v10/internal/bulk/EntityIterator.java | 91 +++ .../bulk/ExtractChildEntitiesIterator.java | 52 ++ .../v10/internal/bulk/MappingHelpers.java | 93 +++ .../bulk/PollingBulkOperationTracker.java | 217 ++++++ ...NullsWithEmptyStringCSVEntryConverter.java | 25 + .../bingads/v10/internal/bulk/RowValues.java | 83 +++ .../bulk/RowValuesCSVEntryConverter.java | 17 + .../v10/internal/bulk/SimpleBulkMapping.java | 38 + .../internal/bulk/SimpleBulkObjectReader.java | 159 ++++ .../internal/bulk/SimpleBulkObjectWriter.java | 106 +++ .../internal/bulk/SimpleBulkStreamReader.java | 116 +++ .../internal/bulk/SingleFieldBulkMapping.java | 52 ++ .../v10/internal/bulk/StringExtensions.java | 703 ++++++++++++++++++ .../v10/internal/bulk/StringTable.java | 320 ++++++++ .../bingads/v10/internal/bulk/TryResult.java | 28 + .../internal/bulk/UploadStatusProvider.java | 72 ++ .../entities/BulkAdExtensionIdentifier.java | 156 ++++ .../BulkAdGroupNegativeSitesIdentifier.java | 118 +++ .../BulkCampaignNegativeSitesIdentifier.java | 61 ++ .../bulk/entities/BulkEntityIdentifier.java | 46 ++ .../entities/BulkNegativeSiteIdentifier.java | 136 ++++ .../BulkProductAdExtensionIdentifier.java | 81 ++ .../bulk/entities/MultiRecordBulkEntity.java | 51 ++ .../bulk/entities/SingleRecordBulkEntity.java | 224 ++++++ .../SiteLinkAdExtensionIdentifier.java | 24 + .../ArrayOfProductConditionComparer.java | 35 + .../v10/api/test/entities/BidComparer.java | 20 + .../v10/api/test/entities/BulkEntityTest.java | 96 +++ .../test/entities/CompareArrayContents.java | 56 ++ .../v10/api/test/entities/DateComparer.java | 18 + .../test/entities/DeleteAllRowPosition.java | 8 + .../EqualityComparerWithDescription.java | 7 + .../api/test/entities/FixedBidComparer.java | 17 + .../v10/api/test/entities/ObjectComparer.java | 15 + .../entities/PerformanceDataTestHelper.java | 43 ++ .../entities/QualityScoreDataTestHelper.java | 33 + .../api/test/entities/RowValuesAssert.java | 14 + .../bingads/v10/api/test/entities/Util.java | 50 ++ .../entities/account/BulkAccountTest.java | 48 ++ .../entities/account/BulkAccountTests.java | 13 + ...ccountReadFromRowValuesCustomerIdTest.java | 47 ++ .../BulkAccountReadFromRowValuesIdTest.java | 37 + ...kAccountReadFromRowValuesSyncTimeTest.java | 61 ++ .../account/read/BulkAccountReadTests.java | 13 + ...AccountWriteToRowValuesCustomerIdTest.java | 41 + .../BulkAccountWriteToRowValuesIdTest.java | 41 + ...lkAccountWriteToRowValuesSyncTimeTest.java | 54 ++ ...ulkAdGroupAppAdExtensionReadWriteTest.java | 13 + .../app/BulkAdGroupAppAdExtensionTest.java | 58 ++ .../app/BulkAppAdExtensionTest.java | 51 ++ .../app/BulkAppAdExtensionTests.java | 16 + ...lkCampaignAppAdExtensionReadWriteTest.java | 13 + .../app/BulkCampaignAppAdExtensionTest.java | 58 ++ ...nsionReadFromRowValuesAdGroupNameTest.java | 34 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...tensionReadFromRowValuesAccountIdTest.java | 50 ++ ...nsionReadFromRowValuesAppPlatformTest.java | 35 + ...ensionReadFromRowValuesAppStoreIdTest.java | 35 + ...onReadFromRowValuesDestinationUrlTest.java | 36 + ...ReadFromRowValuesDevicePreferenceTest.java | 37 + ...nsionReadFromRowValuesDisplayTextTest.java | 35 + ...AppAdExtensionReadFromRowValuesIdTest.java | 50 ++ ...dExtensionReadFromRowValuesStatusTest.java | 38 + ...ExtensionReadFromRowValuesVersionTest.java | 40 + .../app/read/BulkAppAdExtensionReadTests.java | 26 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...ensionWriteFromRowValuesAccountIdTest.java | 49 ++ ...sionWriteFromRowValuesAppPlatformTest.java | 34 + ...nsionWriteFromRowValuesAppStoreIdTest.java | 34 + ...nWriteFromRowValuesDestinationUrlTest.java | 35 + ...riteFromRowValuesDevicePreferenceTest.java | 35 + ...sionWriteFromRowValuesDisplayTextTest.java | 34 + ...ppAdExtensionWriteFromRowValuesIdTest.java | 49 ++ ...ExtensionWriteFromRowValuesStatusTest.java | 38 + .../write/BulkAppAdExtensionWriteTests.java | 22 + ...dExtensionWriteToRowValuesVersionTest.java | 49 ++ .../call/BulkCallAdExtensionTest.java | 51 ++ .../call/BulkCallAdExtensionTests.java | 13 + ...kCampaignCallAdExtensionReadWriteTest.java | 13 + .../call/BulkCampaignCallAdExtensionTest.java | 58 ++ ...tensionReadFromRowValuesAccountIdTest.java | 49 ++ ...allAdExtensionReadFromRowValuesIdTest.java | 49 ++ ...ensionReadFromRowValuesIsCallOnlyTest.java | 39 + ...romRowValuesIsCallTrackingEnabledTest.java | 39 + ...nsionReadFromRowValuesPhoneNumberTest.java | 35 + ...luesRequireTollFreeTrackingNumberTest.java | 39 + ...dExtensionReadFromRowValuesStatusTest.java | 37 + ...ExtensionReadFromRowValuesVersionTest.java | 39 + .../read/BulkCallAdExtensionReadTests.java | 23 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...ensionWriteFromRowValuesAccountIdTest.java | 48 ++ ...llAdExtensionWriteFromRowValuesIdTest.java | 48 ++ ...nsionWriteFromRowValuesIsCallOnlyTest.java | 38 + ...romRowValuesIsCallTrackingEnabledTest.java | 38 + ...sionWriteFromRowValuesPhoneNumberTest.java | 35 + ...luesRequireTollFreeTrackingNumberTest.java | 38 + ...ExtensionWriteFromRowValuesStatusTest.java | 37 + ...xtensionWriteFromRowValuesVersionTest.java | 48 ++ .../write/BulkCallAdExtensionWriteTests.java | 18 + ...kAdGroupImageAdExtensionReadWriteTest.java | 13 + .../BulkAdGroupImageAdExtensionTest.java | 58 ++ ...CampaignImageAdExtensionReadWriteTest.java | 13 + .../BulkCampaignImageAdExtensionTest.java | 58 ++ .../image/BulkImageAdExtensionTest.java | 51 ++ .../image/BulkImageAdExtensionTests.java | 13 + ...nsionReadFromRowValuesAdGroupNameTest.java | 34 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...tensionReadFromRowValuesAccountIdTest.java | 49 ++ ...ionReadFromRowValuesAlternateTextTest.java | 35 + ...onReadFromRowValuesDestinationUrlTest.java | 35 + ...ageAdExtensionReadFromRowValuesIdTest.java | 49 ++ ...ExtensionReadFromRowValuesMediaIdTest.java | 62 ++ ...dExtensionReadFromRowValuesStatusTest.java | 37 + ...ExtensionReadFromRowValuesVersionTest.java | 39 + .../read/BulkImageAdExtensionReadTests.java | 24 + ...ensionWriteFromRowValuesAccountIdTest.java | 48 ++ ...WriteFromRowValuesAlternativeTextTest.java | 34 + ...nWriteFromRowValuesDestinationUrlTest.java | 34 + ...geAdExtensionWriteFromRowValuesIdTest.java | 48 ++ ...xtensionWriteFromRowValuesMediaIdTest.java | 56 ++ ...ExtensionWriteFromRowValuesStatusTest.java | 37 + .../write/BulkImageAdExtensionWriteTests.java | 16 + ...dExtensionWriteToRowValuesVersionTest.java | 48 ++ ...paignLocationAdExtensionReadWriteTest.java | 13 + .../BulkCampaignLocationAdExtensionTest.java | 58 ++ .../location/BulkLocationAdExtensionTest.java | 54 ++ .../BulkLocationAdExtensionTests.java | 13 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...tensionReadFromRowValuesAccountIdTest.java | 49 ++ ...sionReadFromRowValuesAddressLine1Test.java | 33 + ...sionReadFromRowValuesAddressLine2Test.java | 33 + ...sionReadFromRowValuesBusinessNameTest.java | 34 + ...nAdExtensionReadFromRowValuesCityTest.java | 33 + ...nsionReadFromRowValuesCountryCodeTest.java | 33 + ...ionReadFromRowValuesGeoCodeStatusTest.java | 52 ++ ...nsionReadFromRowValuesIconMediaIdTest.java | 48 ++ ...ionAdExtensionReadFromRowValuesIdTest.java | 49 ++ ...nsionReadFromRowValuesPhoneNumberTest.java | 35 + ...ensionReadFromRowValuesPostalCodeTest.java | 33 + ...sionReadFromRowValuesProvinceCodeTest.java | 33 + ...sionReadFromRowValuesProvinceNameTest.java | 33 + ...dExtensionReadFromRowValuesStatusTest.java | 37 + ...ExtensionReadFromRowValuesVersionTest.java | 39 + .../BulkLocationAdExtensionReadTests.java | 30 + ...ensionWriteFromRowValuesAccountIdTest.java | 48 ++ ...ionWriteFromRowValuesAddressLine1Test.java | 33 + ...ionWriteFromRowValuesAddressLine2Test.java | 33 + ...ionWriteFromRowValuesBusinessNameTest.java | 34 + ...AdExtensionWriteFromRowValuesCityTest.java | 33 + ...sionWriteFromRowValuesCountryCodeTest.java | 33 + ...onWriteFromRowValuesGeoCodeStatusTest.java | 52 ++ ...sionWriteFromRowValuesIconMediaIdTest.java | 48 ++ ...onAdExtensionWriteFromRowValuesIdTest.java | 48 ++ ...sionWriteFromRowValuesPhoneNumberTest.java | 34 + ...nsionWriteFromRowValuesPostalCodeTest.java | 33 + ...ionWriteFromRowValuesProvinceCodeTest.java | 33 + ...ionWriteFromRowValuesProvinceNameTest.java | 33 + ...ExtensionWriteFromRowValuesStatusTest.java | 37 + .../BulkLocationAdExtensionWriteTests.java | 24 + ...dExtensionWriteToRowValuesVersionTest.java | 48 ++ ...GroupSiteLinkAdExtensionReadWriteTest.java | 13 + ...paignSiteLinkAdExtensionReadWriteTest.java | 13 + .../BulkSiteLinkAdExtensionTest.java | 45 ++ .../BulkSiteLinkAdExtensionTests.java | 13 + .../BulkAdGroupSiteLinkAdExtensionTest.java | 58 ++ .../BulkCampaignSiteLinkAdExtensionTest.java | 58 ++ .../bulk_site_link/BulkSiteLinkTest.java | 53 ++ .../bulk_site_link/BulkSiteLinkTests.java | 13 + ...nsionReadFromRowValuesAdGroupNameTest.java | 34 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...sionReadFromRowValuesCampaignNameTest.java | 34 + ...LinkReadFromRowValuesDescription1Test.java | 35 + ...LinkReadFromRowValuesDescription2Test.java | 35 + ...nkReadFromRowValuesDestinationUrlTest.java | 35 + ...eLinkReadFromRowValuesDisplayTextTest.java | 35 + ...kReadFromRowValuesFinalMobileUrlsTest.java | 49 ++ ...iteLinkReadFromRowValuesFinalUrlsTest.java | 48 ++ ...ulkSiteLinkReadFromRowValuesOrderTest.java | 33 + ...ReadFromRowValuesTrackingTemplateTest.java | 37 + ...dFromRowValuesUrlCustomParametersTest.java | 72 ++ .../read/BulkSiteLinkReadTests.java | 22 + ...inkWriteFromRowValuesDescription1Test.java | 35 + ...inkWriteFromRowValuesDescription2Test.java | 35 + ...kWriteFromRowValuesDestinationUrlTest.java | 35 + ...LinkWriteFromRowValuesDisplayTextTest.java | 35 + ...lkSiteLinkWriteFromRowValuesOrderTest.java | 33 + .../write/BulkSiteLinkWriteTests.java | 15 + ...nkWriteToRowValuesFinalMobileUrlsTest.java | 44 ++ ...SiteLinkWriteToRowValuesFinalUrlsTest.java | 46 ++ ...kWriteToRowValuesTrackingTemplateTest.java | 42 ++ ...nkWriteToRowValuesUrlCustomParameters.java | 84 +++ ...lkSiteLinkWriteToRowValuesVersionTest.java | 50 ++ ...LinkAdExtensionReadFromBulkReaderTest.java | 73 ++ .../BulkSiteLinkAdExtensionReadTests.java | 12 + .../site_link/read/HasDeleteAllRowTest.java | 75 ++ .../BulkSiteLinkAdExtensionWriteTests.java | 11 + ...kSiteLinkAdExtensionWriteToStreamTest.java | 97 +++ ...AdExtensionWriteWithDeletedStatusTest.java | 30 + .../BulkAdGroupProductPartitionReadTests.java | 21 + .../BulkAdGroupProductPartitionTest.java | 78 ++ .../BulkAdGroupProductPartitionTests.java | 12 + ...BulkAdGroupProductPartitionWriteTests.java | 21 + .../read/ReadAdGroupNameTest.java | 72 ++ .../read/ReadCampaignNameTest.java | 72 ++ .../read/ReadCriterionBidTest.java | 72 ++ .../read/ReadDestinationUrlTest.java | 54 ++ .../read/ReadFinalMobileUrlsTest.java | 63 ++ .../read/ReadFinalUrlsTest.java | 64 ++ .../read/ReadIdTest.java | 72 ++ .../read/ReadParentCriterionIdTest.java | 74 ++ .../read/ReadParentIdTest.java | 72 ++ .../read/ReadPartitionTypeTest.java | 74 ++ .../read/ReadProductConditionTest.java | 74 ++ .../read/ReadProductValueTest.java | 74 ++ .../read/ReadStatusTest.java | 74 ++ .../read/ReadTrackingTemplateTest.java | 50 ++ .../read/ReadUrlCustomParametersTest.java | 90 +++ .../write/WriteAdGroupNameTest.java | 78 ++ .../write/WriteCampaignNameTest.java | 78 ++ .../write/WriteCriterionBidTest.java | 62 ++ .../write/WriteDestinationUrlTest.java | 60 ++ .../write/WriteFinalMobileUrlsTest.java | 59 ++ .../write/WriteFinalUrlsTest.java | 59 ++ .../write/WriteIdTest.java | 77 ++ .../write/WriteIsExcludedTest.java | 62 ++ .../write/WriteParentCriterionIdTest.java | 77 ++ .../write/WriteParentIdTest.java | 77 ++ .../write/WritePartitionTypeTest.java | 72 ++ .../write/WriteProductConditionTest.java | 84 +++ .../write/WriteProductValueTest.java | 84 +++ .../write/WriteStatusTest.java | 73 ++ .../write/WriteTrackingTemplateTest.java | 56 ++ .../write/WriteUrlCustomParameters.java | 56 ++ .../adgroup/BulkAdGroupReadWriteTest.java | 19 + .../entities/adgroup/BulkAdGroupTest.java | 69 ++ .../entities/adgroup/BulkAdGroupTests.java | 13 + ...upReadFromRowValuesAdDistributionTest.java | 54 ++ ...upReadFromRowValuesAdRotationNullTest.java | 40 + ...dGroupReadFromRowValuesAdRotationTest.java | 41 + ...oupReadFromRowValuesBroadMatchBidTest.java | 51 ++ ...dGroupReadFromRowValuesCampaignIdTest.java | 41 + ...roupReadFromRowValuesCampaignNameTest.java | 35 + ...pReadFromRowValuesContentMatchBidTest.java | 51 ++ ...lkAdGroupReadFromRowValuesEndDateTest.java | 49 ++ .../BulkAdGroupReadFromRowValuesIdTest.java | 49 ++ ...AdGroupReadFromRowValuesIsExpiredTest.java | 44 ++ ...kAdGroupReadFromRowValuesLanguageTest.java | 35 + .../BulkAdGroupReadFromRowValuesNameTest.java | 35 + ...dFromRowValuesNativeBidAdjustmentTest.java | 43 ++ ...GroupReadFromRowValuesNetworkNullTest.java | 40 + ...lkAdGroupReadFromRowValuesNetworkTest.java | 43 ++ ...ReadFromRowValuesPricingModelNullTest.java | 40 + ...roupReadFromRowValuesPricingModelTest.java | 44 ++ ...AdGroupReadFromRowValuesStartDateTest.java | 49 ++ ...ulkAdGroupReadFromRowValuesStatusTest.java | 47 ++ ...ReadFromRowValuesTrackingTemplateTest.java | 37 + ...dFromRowValuesUrlCustomParametersTest.java | 72 ++ .../adgroup/read/BulkAdGroupReadTests.java | 30 + .../adgroup/write/BulkAdGroupWriteTests.java | 19 + ...upWriteToRowValuesAdDistributionTests.java | 46 ++ ...dGroupWriteToRowValuesAdRotationTests.java | 47 ++ ...oupWriteToRowValuesBroadMatchBidTests.java | 46 ++ ...iteToRowValuesNativeBidAdjustmentTest.java | 40 + ...lkAdGroupWriteToRowValuesNetworkTests.java | 45 ++ ...roupWriteToRowValuesPricingModelTests.java | 44 ++ ...AdGroupWriteToRowValuesStartDateTests.java | 43 ++ ...pWriteToRowValuesTrackingTemplateTest.java | 42 ++ ...upWriteToRowValuesUrlCustomParameters.java | 82 ++ .../product/BulkProductAdReadWriteTest.java | 13 + .../ads/product/BulkProductAdTest.java | 50 ++ .../ads/product/BulkProductAdTests.java | 13 + ...dReadFromRowValuesPromotionalTextTest.java | 38 + .../product/read/BulkProductAdReadTests.java | 11 + .../write/BulkProductAdWriteTests.java | 11 + ...AdWriteToRowValuesEditorialStatusTest.java | 41 + ...AdWriteToRowValuesPromotionalTextTest.java | 41 + .../ads/text/BulkTextAdReadWriteTest.java | 13 + .../entities/ads/text/BulkTextAdTest.java | 50 ++ .../entities/ads/text/BulkTextAdTests.java | 13 + ...AdReadFromRowValuesDestinationUrlTest.java | 48 ++ ...TextAdReadFromRowValuesDisplayUrlTest.java | 48 ++ ...dReadFromRowValuesFinalMobileUrlsTest.java | 49 ++ ...kTextAdReadFromRowValuesFinalUrlsTest.java | 50 ++ .../BulkTextAdReadFromRowValuesTextTest.java | 48 ++ .../BulkTextAdReadFromRowValuesTitleTest.java | 48 ++ ...ReadFromRowValuesTrackingTemplateTest.java | 37 + ...dFromRowValuesUrlCustomParametersTest.java | 72 ++ .../ads/text/read/BulkTextAdReadTests.java | 14 + .../ads/text/write/BulkTextAdWriteTests.java | 14 + ...tAdWriteToRowValuesDestinationUrlTest.java | 37 + ...kTextAdWriteToRowValuesDisplayUrlTest.java | 37 + ...AdWriteToRowValuesEditorialStatusTest.java | 41 + ...AdWriteToRowValuesFinalMobileUrlsTest.java | 44 ++ ...lkTextAdWriteToRowValuesFinalUrlsTest.java | 46 ++ .../BulkTextAdWriteToRowValuesTextTest.java | 41 + .../BulkTextAdWriteToRowValuesTitleTest.java | 37 + ...dWriteToRowValuesTrackingTemplateTest.java | 42 ++ ...AdWriteToRowValuesUrlCustomParameters.java | 79 ++ .../BulkKeywordBidSuggestionTest.java | 47 ++ .../BulkKeywordBidSuggestionTests.java | 12 + ...BidSuggestionReadFromRowValuesBidTest.java | 46 ++ ...idSuggestionReadFromRowValuesTextTest.java | 48 ++ .../BulkKeywordBidSuggestionReadTests.java | 12 + .../campaign/BulkCampaignReadTests.java | 34 + .../campaign/BulkCampaignReadWriteTest.java | 19 + .../entities/campaign/BulkCampaignTest.java | 122 +++ .../entities/campaign/BulkCampaignTests.java | 16 + .../campaign/BulkCampaignWriteTests.java | 29 + ...ampaignReadFromRowValuesAccountIdTest.java | 41 + ...mpaignReadFromRowValuesBudgetTypeTest.java | 39 + ...aignReadFromRowValuesCampaignTypeTest.java | 53 ++ ...paignReadFromRowValuesDailyBudgetTest.java | 49 ++ .../BulkCampaignReadFromRowValuesIdTest.java | 49 ++ ...omRowValuesKeywordRelevanceNotSetTest.java | 34 + ...ReadFromRowValuesKeywordRelevanceTest.java | 37 + ...wValuesLandingPageRelevanceNotSetTest.java | 34 + ...FromRowValuesLandingPageRelevanceTest.java | 37 + ...esLandingPageUserExperienceNotSetTest.java | 34 + ...owValuesLandingPageUserExperienceTest.java | 37 + ...ignReadFromRowValuesMonthlyBudgetTest.java | 43 ++ ...BulkCampaignReadFromRowValuesNameTest.java | 35 + ...dFromRowValuesNativeBidAdjustmentTest.java | 50 ++ ...wValuesPerformanceDataSpendNotSetTest.java | 34 + ...FromRowValuesPerformanceDataSpendTest.java | 35 + ...adFromRowValuesQualityScoreNotSetTest.java | 34 + ...aignReadFromRowValuesQualityScoreTest.java | 37 + ...CampaignReadFromRowValuesSettingsTest.java | 80 ++ ...lkCampaignReadFromRowValuesStatusTest.java | 48 ++ ...CampaignReadFromRowValuesTimeZoneTest.java | 35 + ...ReadFromRowValuesTrackingTemplateTest.java | 37 + ...dFromRowValuesUrlCustomParametersTest.java | 71 ++ ...CampaignWriteToRowValuesAccountIdTest.java | 41 + ...ampaignWriteToRowValuesBudgetTypeTest.java | 41 + ...paignWriteToRowValuesCampaignTypeTest.java | 47 ++ ...oRowValuesCountryCodeOtherSettingTest.java | 41 + ...wValuesCountryCodeShoppingSettingTest.java | 44 ++ ...mpaignWriteToRowValuesDailyBudgetTest.java | 52 ++ .../BulkCampaignWriteToRowValuesIdTest.java | 41 + ...aignWriteToRowValuesMonthlyBudgetTest.java | 46 ++ .../BulkCampaignWriteToRowValuesNameTest.java | 42 ++ ...iteToRowValuesNativeBidAdjustmentTest.java | 47 ++ ...teToRowValuesPriorityOtherSettingTest.java | 50 ++ ...oRowValuesPriorityShoppingSettingTest.java | 54 ++ ...ulkCampaignWriteToRowValuesStatusTest.java | 48 ++ ...iteToRowValuesStoreIdOtherSettingTest.java | 47 ++ ...ToRowValuesStoreIdShoppingSettingTest.java | 53 ++ ...kCampaignWriteToRowValuesTimeZoneTest.java | 42 ++ ...nWriteToRowValuesTrackingTemplateTest.java | 39 + ...gnWriteToRowValuesUrlCustomParameters.java | 84 +++ .../BulkCampaignProductScopeReadTests.java | 18 + .../BulkCampaignProductScopeTest.java | 125 ++++ .../BulkCampaignProductScopeTests.java | 12 + .../BulkCampaignProductScopeWriteTests.java | 18 + .../read/ReadCampaignNameTest.java | 47 ++ .../read/ReadConditionsTest.java | 70 ++ .../read/ReadIdTest.java | 47 ++ .../read/ReadParentIdTest.java | 45 ++ .../read/ReadStatusTest.java | 48 ++ .../write/WriteCampaignNameTest.java | 45 ++ .../write/WriteConditionsTest.java | 68 ++ .../write/WriteIdTest.java | 46 ++ .../write/WriteParentIdTest.java | 45 ++ .../write/WriteStatusTest.java | 47 ++ .../keyword/BulkKeywordReadWriteTest.java | 19 + .../entities/keyword/BulkKeywordTest.java | 60 ++ .../entities/keyword/BulkKeywordTests.java | 13 + ...KeywordReadFromRowValuesAdGroupIdTest.java | 33 + ...ywordReadFromRowValuesAdGroupNameTest.java | 35 + ...KeywordReadFromRowValuesBidIsNullTest.java | 47 ++ .../BulkKeywordReadFromRowValuesBidTest.java | 41 + ...wordReadFromRowValuesCampaignNameTest.java | 35 + ...rdReadFromRowValuesDestinationUrlTest.java | 48 ++ ...dReadFromRowValuesEditorialStatusTest.java | 46 ++ ...dReadFromRowValuesFinalMobileUrlsTest.java | 49 ++ ...KeywordReadFromRowValuesFinalUrlsTest.java | 49 ++ .../BulkKeywordReadFromRowValuesIdTest.java | 49 ++ ...KeywordReadFromRowValuesMatchTypeTest.java | 46 ++ ...ulkKeywordReadFromRowValuesParam1Test.java | 48 ++ ...ulkKeywordReadFromRowValuesParam2Test.java | 48 ++ ...ulkKeywordReadFromRowValuesParam3Test.java | 48 ++ ...ulkKeywordReadFromRowValuesStatusTest.java | 46 ++ .../BulkKeywordReadFromRowValuesTextTest.java | 48 ++ ...ReadFromRowValuesTrackingTemplateTest.java | 37 + ...dFromRowValuesUrlCustomParametersTest.java | 171 +++++ .../keyword/read/BulkKeywordReadTests.java | 24 + .../keyword/write/BulkKeywordWriteTests.java | 20 + ...kKeywordWriteToRowValuesAdGroupIdTest.java | 37 + .../BulkKeywordWriteToRowValuesBidTest.java | 43 ++ ...ordWriteToRowValuesDestinationUrlTest.java | 37 + ...rdWriteToRowValuesEditorialStatusTest.java | 41 + ...rdWriteToRowValuesFinalMobileUrlsTest.java | 45 ++ ...kKeywordWriteToRowValuesFinalUrlsTest.java | 49 ++ .../BulkKeywordWriteToRowValuesIdTest.java | 37 + ...kKeywordWriteToRowValuesMatchTypeTest.java | 41 + ...BulkKeywordWriteToRowValuesParam1Test.java | 42 ++ ...BulkKeywordWriteToRowValuesParam2Test.java | 42 ++ ...BulkKeywordWriteToRowValuesParam3Test.java | 42 ++ ...BulkKeywordWriteToRowValuesStatusTest.java | 41 + .../BulkKeywordWriteToRowValuesTextTest.java | 41 + ...dWriteToRowValuesTrackingTemplateTest.java | 42 ++ ...rdWriteToRowValuesUrlCustomParameters.java | 168 +++++ .../BulkAdGroupNegativeKeywordTest.java | 50 ++ .../BulkAdGroupNegativeKeywordTests.java | 13 + ...KeywordReadFromRowValuesAdGroupIdTest.java | 33 + ...ywordReadFromRowValuesAdGroupNameTest.java | 35 + ...egativeKeywordReadFromRowValuesIdTest.java | 48 ++ ...KeywordReadFromRowValuesMatchTypeTest.java | 45 ++ ...iveKeywordReadFromRowValuesStatusTest.java | 42 ++ ...ativeKeywordReadFromRowValuesTextTest.java | 48 ++ .../BulkAdGroupNegativeKeywordReadTest.java | 17 + .../BulkAdGroupNegativeKeywordWriteTest.java | 17 + ...KeywordWriteToRowValuesCampaignIdTest.java | 37 + ...ywordWriteToRowValuesCampaignNameTest.java | 37 + ...NegativeKeywordWriteToRowValuesIdTest.java | 37 + ...eKeywordWriteToRowValuesMatchTypeTest.java | 41 + ...tiveKeywordWriteToRowValuesStatusTest.java | 38 + ...gativeKeywordWriteToRowValuesTextTest.java | 41 + .../BulkCampaignNegativeKeywordTest.java | 50 ++ .../BulkCampaignNegativeKeywordTests.java | 13 + ...eywordReadFromRowValuesCampaignIdTest.java | 33 + ...wordReadFromRowValuesCampaignNameTest.java | 35 + ...egativeKeywordReadFromRowValuesIdTest.java | 48 ++ ...KeywordReadFromRowValuesMatchTypeTest.java | 45 ++ ...iveKeywordReadFromRowValuesStatusTest.java | 42 ++ ...ativeKeywordReadFromRowValuesTextTest.java | 48 ++ .../BulkCampaignNegativeKeywordReadTests.java | 17 + .../BulkCampaignNegativeKeywordWriteTest.java | 17 + ...KeywordWriteToRowValuesCampaignIdTest.java | 37 + ...ywordWriteToRowValuesCampaignNameTest.java | 37 + ...NegativeKeywordWriteToRowValuesIdTest.java | 37 + ...eKeywordWriteToRowValuesMatchTypeTest.java | 41 + ...tiveKeywordWriteToRowValuesStatusTest.java | 38 + ...gativeKeywordWriteToRowValuesTextTest.java | 41 + .../BulkCampaignNegativeKeywordListTest.java | 50 ++ .../BulkCampaignNegativeKeywordListTests.java | 13 + ...wordListReadFromRowValuesEntityIdTest.java | 33 + ...stReadFromRowValuesSharedEntityIdTest.java | 37 + ...eywordListReadFromRowValuesStatusTest.java | 42 ++ ...kCampaignNegativeKeywordListReadTests.java | 14 + ...CampaignNegativeKeywordListWriteTests.java | 14 + ...ywordListWriteToRowValuesEntityIdTest.java | 37 + ...istWriteToRowValuesSharedEntityIdTest.java | 37 + ...KeywordListWriteToRowValuesStatusTest.java | 39 + .../BulkNegativeKeywordListTest.java | 50 ++ .../BulkNegativeKeywordListTests.java | 13 + ...iveKeywordListReadFromRowValuesIdTest.java | 37 + ...eKeywordListReadFromRowValuesNameTest.java | 35 + ...eywordListReadFromRowValuesStatusTest.java | 44 ++ .../BulkNegativeKeywordListReadTests.java | 14 + .../BulkNegativeKeywordListWriteTests.java | 14 + ...tiveKeywordListWriteToRowValuesIdTest.java | 37 + ...veKeywordListWriteToRowValuesNameTest.java | 38 + ...KeywordListWriteToRowValuesStatusTest.java | 38 + .../site/BulkAdGroupNegativeSiteTest.java | 49 ++ .../site/BulkAdGroupNegativeSiteTests.java | 13 + ...iveSiteReadFromRowValuesAdGroupIdTest.java | 37 + ...eSiteReadFromRowValuesAdGroupNameTest.java | 35 + ...gativeSiteReadFromRowValuesStatusTest.java | 36 + ...ativeSiteReadFromRowValuesWebsiteTest.java | 35 + .../BulkAdGroupNegativeSiteReadTests.java | 14 + ...veSiteWriteFromRowValuesAdGroupIdTest.java | 37 + ...SiteWriteFromRowValuesAdGroupNameTest.java | 35 + ...ativeSiteWriteFromRowValuesStatusTest.java | 36 + ...tiveSiteWriteFromRowValuesWebsiteTest.java | 35 + .../BulkAdGroupNegativeSiteWriteTests.java | 14 + ...BulkAdGroupNegativeSitesReadWriteTest.java | 45 ++ .../sites/BulkAdGroupNegativeSitesTest.java | 44 ++ .../sites/BulkAdGroupNegativeSitesTests.java | 17 + .../BulkAdGroupNegativeSitesReadTest.java | 83 +++ .../BulkAdGroupNegativeSitesWriteTest.java | 110 +++ .../site/BulkCampaignNegativeSiteTest.java | 49 ++ .../site/BulkCampaignNegativeSiteTests.java | 13 + ...veSiteReadFromRowValuesCampaignIdTest.java | 36 + ...SiteReadFromRowValuesCampaignNameTest.java | 35 + ...gativeSiteReadFromRowValuesStatusTest.java | 36 + ...ativeSiteReadFromRowValuesWebsiteTest.java | 35 + .../BulkCampaignNegativeSiteReadTests.java | 14 + ...eSiteWriteFromRowValuesCampaignIdTest.java | 36 + ...iteWriteFromRowValuesCampaignNameTest.java | 35 + ...ativeSiteWriteFromRowValuesStatusTest.java | 36 + ...tiveSiteWriteFromRowValuesWebsiteTest.java | 35 + .../BulkCampaignNegativeSiteWriteTests.java | 14 + ...ulkCampaignNegativeSitesReadWriteTest.java | 45 ++ .../sites/BulkCampaignNegativeSitesTest.java | 42 ++ .../sites/BulkCampaignNegativeSitesTests.java | 17 + .../BulkCampaignNegativeSitesReadTest.java | 84 +++ .../BulkCampaignNegativeSitesWriteTest.java | 111 +++ .../BulkAdGroupTargetReadWriteTest.java | 55 ++ .../BulkCampaignTargetReadWriteTest.java | 55 ++ .../age/BulkCampaignAgeTargetBidTest.java | 56 ++ ...geTargetReadFromRowValuesAgeRangeTest.java | 42 ++ ...getReadFromRowValuesBidAdjustmentTest.java | 36 + ...TargetReadFromRowValuesCampaignIdTest.java | 39 + ...rgetReadFromRowValuesCampaignNameTest.java | 48 ++ ...paignAgeTargetReadFromRowValuesIdTest.java | 39 + ...nAgeTargetReadFromRowValuesStatusTest.java | 40 + ...AgeTargetWriteToRowValuesAgeRangeTest.java | 42 ++ ...rgetWriteToRowValuesBidAdjustmentTest.java | 36 + ...eTargetWriteToRowValuesCampaignIdTest.java | 38 + ...argetWriteToRowValuesCampaignNameTest.java | 48 ++ ...mpaignAgeTargetWriteToRowValuesIdTest.java | 38 + ...gnAgeTargetWriteToRowValuesStatusTest.java | 39 + .../BulkCampaignDayTimeTargetBidTest.java | 58 ++ ...getReadFromRowValuesBidAdjustmentTest.java | 36 + ...TargetReadFromRowValuesCampaignIdTest.java | 39 + ...rgetReadFromRowValuesCampaignNameTest.java | 48 ++ ...DayTimeTargetReadFromRowValuesDayTest.java | 44 ++ ...meTargetReadFromRowValuesFromHourTest.java | 36 + ...TargetReadFromRowValuesFromMinuteTest.java | 41 + ...nDayTimeTargetReadFromRowValuesIdTest.java | 39 + ...TimeTargetReadFromRowValuesStatusTest.java | 40 + ...TimeTargetReadFromRowValuesToHourTest.java | 36 + ...meTargetReadFromRowValuesToMinuteTest.java | 41 + ...tBidWriteToRowValuesBidAdjustmentTest.java | 36 + ...rgetBidWriteToRowValuesCampaignIdTest.java | 38 + ...etBidWriteToRowValuesCampaignNameTest.java | 42 ++ ...yTimeTargetBidWriteToRowValuesDayTest.java | 44 ++ ...TargetBidWriteToRowValuesFromHourTest.java | 36 + ...rgetBidWriteToRowValuesFromMinuteTest.java | 41 + ...ayTimeTargetBidWriteToRowValuesIdTest.java | 38 + ...meTargetBidWriteToRowValuesStatusTest.java | 39 + ...meTargetBidWriteToRowValuesToHourTest.java | 36 + ...TargetBidWriteToRowValuesToMinuteTest.java | 41 + .../BulkCampaignDeviceOsTargetBidTest.java | 53 ++ ...getReadFromRowValuesBidAdjustmentTest.java | 36 + ...TargetReadFromRowValuesCampaignIdTest.java | 39 + ...rgetReadFromRowValuesCampaignNameTest.java | 48 ++ ...TargetReadFromRowValuesDeviceNameTest.java | 37 + ...DeviceOsTargetReadFromRowValuesIdTest.java | 39 + ...eOsTargetReadFromRowValuesOsNamesTest.java | 42 ++ ...ceOsTargetReadFromRowValuesStatusTest.java | 40 + ...rgetWriteToRowValuesBidAdjustmentTest.java | 36 + ...sTargetWriteToRowValuesCampaignIdTest.java | 38 + ...argetWriteToRowValuesCampaignNameTest.java | 48 ++ ...sTargetWriteToRowValuesDeviceNameTest.java | 37 + ...nDeviceOsTargetWriteToRowValuesIdTest.java | 38 + ...ceOsTargetWriteToRowValuesOsNamesTest.java | 47 ++ ...iceOsTargetWriteToRowValuesStatusTest.java | 39 + .../BulkCampaignGenderTargetBidTest.java | 56 ++ ...getReadFromRowValuesBidAdjustmentTest.java | 36 + ...TargetReadFromRowValuesCampaignIdTest.java | 39 + ...rgetReadFromRowValuesCampaignNameTest.java | 48 ++ ...TargetReadFromRowValuesGenderTypeTest.java | 39 + ...gnGenderTargetReadFromRowValuesIdTest.java | 39 + ...nderTargetReadFromRowValuesStatusTest.java | 40 + ...rgetWriteToRowValuesBidAdjustmentTest.java | 36 + ...rTargetWriteToRowValuesCampaignIdTest.java | 38 + ...argetWriteToRowValuesCampaignNameTest.java | 48 ++ ...rTargetWriteToRowValuesGenderTypeTest.java | 39 + ...ignGenderTargetWriteToRowValuesIdTest.java | 38 + ...enderTargetWriteToRowValuesStatusTest.java | 39 + .../BulkCampaignLocationTargetBidTest.java | 50 ++ ...getReadFromRowValuesBidAdjustmentTest.java | 36 + ...TargetReadFromRowValuesCampaignIdTest.java | 39 + ...rgetReadFromRowValuesCampaignNameTest.java | 48 ++ ...LocationTargetReadFromRowValuesIdTest.java | 39 + ...rgetReadFromRowValuesLocationTypeTest.java | 41 + ...etReadFromRowValuesPhysicalIntentTest.java | 40 + ...tionTargetReadFromRowValuesStatusTest.java | 40 + ...rgetWriteToRowValuesBidAdjustmentTest.java | 36 + ...nTargetWriteToRowValuesCampaignIdTest.java | 38 + ...argetWriteToRowValuesCampaignNameTest.java | 48 ++ ...nLocationTargetWriteToRowValuesIdTest.java | 38 + ...argetWriteToRowValuesLocationTypeTest.java | 41 + ...ationTargetWriteToRowValuesStatusTest.java | 39 + ...CampaignNegativeLocationTargetBidTest.java | 50 ++ ...TargetReadFromRowValuesCampaignIdTest.java | 39 + ...rgetReadFromRowValuesCampaignNameTest.java | 48 ++ ...LocationTargetReadFromRowValuesIdTest.java | 39 + ...FromRowValuesNegativeLocationTypeTest.java | 41 + ...tionTargetReadFromRowValuesStatusTest.java | 40 + ...nTargetWriteToRowValuesCampaignIdTest.java | 38 + ...argetWriteToRowValuesCampaignNameTest.java | 48 ++ ...eLocationTargetWriteToRowValuesIdTest.java | 38 + ...teToRowValuesNegativeLocationTypeTest.java | 41 + ...ationTargetWriteToRowValuesStatusTest.java | 39 + .../BulkCampaignRadiusTargetBidTest.java | 53 ++ ...getReadFromRowValuesBidAdjustmentTest.java | 36 + ...TargetReadFromRowValuesCampaignIdTest.java | 39 + ...rgetReadFromRowValuesCampaignNameTest.java | 48 ++ ...gnRadiusTargetReadFromRowValuesIdTest.java | 39 + ...usTargetReadFromRowValuesLatitudeTest.java | 36 + ...sTargetReadFromRowValuesLongitureTest.java | 36 + ...RadiusTargetReadFromRowValuesNameTest.java | 48 ++ ...etReadFromRowValuesPhysicalIntentTest.java | 40 + ...diusTargetReadFromRowValuesStatusTest.java | 40 + ...RadiusTargetReadFromRowValuesUnitTest.java | 39 + ...rgetWriteToRowValuesBidAdjustmentTest.java | 36 + ...sTargetWriteToRowValuesCampaignIdTest.java | 38 + ...argetWriteToRowValuesCampaignNameTest.java | 48 ++ ...ignRadiusTargetWriteToRowValuesIdTest.java | 38 + ...iusTargetWriteToRowValuesLatitudeTest.java | 36 + ...usTargetWriteToRowValuesLongitureTest.java | 36 + ...nRadiusTargetWriteToRowValuesNameTest.java | 48 ++ ...adiusTargetWriteToRowValuesStatusTest.java | 39 + ...nRadiusTargetWriteToRowValuesUnitTest.java | 39 + .../unknown/UnknownBulkEntityTest.java | 47 ++ .../unknown/UnknownBulkEntityTests.java | 12 + ...nknownBulkEntityReadFromRowValuesTest.java | 59 ++ .../api/test/operations/ApiServiceTest.java | 124 +++ .../api/test/operations/BulkServiceTest.java | 377 ++++++++++ .../api/test/operations/CompleteResponse.java | 56 ++ .../v10/api/test/operations/FakeApiTest.java | 67 ++ .../api/test/operations/FakeBulkService.java | 303 ++++++++ .../test/operations/FakeHttpFileService.java | 58 ++ .../test/operations/FakeServiceFactory.java | 24 + .../api/test/operations/OperationsTests.java | 13 + .../v10/api/test/operations/TestProgress.java | 21 + .../BulkDownloadOperationTest.java | 49 ++ .../BulkDownloadOperationsTests.java | 11 + .../GetStatusTest.java | 78 ++ .../bulk_download_operation/TrackTest.java | 71 ++ .../BulkUploadOperationTest.java | 50 ++ .../BulkUploadOperationsTests.java | 11 + .../bulk_upload_operation/GetStatusTest.java | 71 ++ .../bulk_upload_operation/TrackTest.java | 60 ++ .../entities/MultirecordEntityTestHelper.java | 71 ++ .../bingads/v10/internal/bulk/AllTests.java | 12 + .../internal/bulk/BulkStreamReaderTest.java | 39 + .../bingads/v10/internal/bulk/BulkTests.java | 12 + .../v10/internal/bulk/EntityTests.java | 57 ++ .../bingads/v10/internal/bulk/OAuthTests.java | 19 + .../bulk/ReadEntitiesFromFilesTest.java | 110 +++ .../bulk/ReadWriteEntitiesWithErrors.java | 137 ++++ .../v10/internal/bulk/TestFactory.java | 21 + .../internal/bulk/TestSingleRecordEntity.java | 16 + 790 files changed, 49051 insertions(+), 6 deletions(-) create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingConfig.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingDownloadOperation.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingDownloadParameters.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingOperationCouldNotBeCompletedException.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingOperationInProgressException.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingOperationStatus.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingOperationTracker.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingServiceManager.java create mode 100644 src/main/java/com/microsoft/bingads/reporting/ReportingStatusProvider.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadCouldNotBeCompletedException.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadOperation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkEntityIterable.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkFileReader.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkFileWriter.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkOperation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationInProgressException.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationProgressInfo.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationStatus.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkServiceManager.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadCouldNotBeCompletedException.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadOperation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/DownloadParameters.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/DownloadStatus.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/EntityReadException.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/EntityUploadParameters.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/EntityWriteException.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/FileUploadParameters.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/Progress.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/ResultFileType.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/SubmitDownloadParameters.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/SubmitUploadParameters.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/UploadStatus.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BidSuggestionData.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAccount.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAd.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtensionAssociation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroup.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtensionAssociation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAppAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupImageAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeKeyword.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSite.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSites.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupProductPartition.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupSiteLinkAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTargetIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAppAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCallAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaign.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtensionAssociation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAppAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignCallAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignImageAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeyword.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeywordList.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeLocationTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeLocationTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSite.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSites.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignProductScope.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignSiteLinkAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTargetIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntity.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntityNegativeKeyword.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkError.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkImageAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeyword.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBestPositionBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBidSuggestion.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordFirstPageBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordMainLineBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBidWithStringLocation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetWithStringLocation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeyword.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeywordList.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeLocationTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeLocationTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSite.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSites.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkProductAd.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSharedNegativeKeyword.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSiteLink.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSiteLinkAdExtension.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSubTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTarget.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetBid.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetWithLocation.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTextAd.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/EntityInfo.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/LocationTargetType.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/PerformanceData.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/ProductConditionHelper.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/QualityScoreData.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/StaticBulkObjectFactory.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/Status.java create mode 100644 src/main/java/com/microsoft/bingads/v10/bulk/entities/UnknownBulkEntity.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkFileReaderFactory.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkMapping.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObject.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectFactory.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectReader.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectWriter.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationStatusProvider.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationTracker.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReader.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/CSVBulkFileReaderFactory.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/ComplexBulkMapping.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/ConditionalBulkMapping.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/Config.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/Creator.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/CsvHeaders.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/DownloadStatusProvider.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/DynamicColumnNameMapping.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityExtractor.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityIterator.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/ExtractChildEntitiesIterator.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/MappingHelpers.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/PollingBulkOperationTracker.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/ReplaceNullsWithEmptyStringCSVEntryConverter.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValues.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValuesCSVEntryConverter.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkMapping.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectReader.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectWriter.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkStreamReader.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/SingleFieldBulkMapping.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/StringExtensions.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/StringTable.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/TryResult.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/UploadStatusProvider.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdExtensionIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdGroupNegativeSitesIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkCampaignNegativeSitesIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkEntityIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkNegativeSiteIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkProductAdExtensionIdentifier.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/MultiRecordBulkEntity.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SingleRecordBulkEntity.java create mode 100644 src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SiteLinkAdExtensionIdentifier.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ArrayOfProductConditionComparer.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/BidComparer.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/BulkEntityTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/CompareArrayContents.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/DateComparer.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/DeleteAllRowPosition.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/EqualityComparerWithDescription.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/FixedBidComparer.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ObjectComparer.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/PerformanceDataTestHelper.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/QualityScoreDataTestHelper.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/RowValuesAssert.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/Util.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesCustomerIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesSyncTimeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesCustomerIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesSyncTimeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppPlatformTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppStoreIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDevicePreferenceTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDisplayTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkCampaignAppAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppPlatformTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppStoreIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDevicePreferenceTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDisplayTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteToRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallOnlyTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallTrackingEnabledTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesPhoneNumberTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesRequireTollFreeTrackingNumberTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCampaignCallAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallOnlyTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallTrackingEnabledTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesPhoneNumberTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesRequireTollFreeTrackingNumberTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkCampaignImageAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAlternateTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesMediaIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAlternativeTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesMediaIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteToRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkCampaignLocationAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine1Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine2Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesBusinessNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCityTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCountryCodeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesGeoCodeStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIconMediaIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPhoneNumberTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPostalCodeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceCodeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine1Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine2Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesBusinessNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCityTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCountryCodeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesGeoCodeStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIconMediaIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPhoneNumberTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPostalCodeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceCodeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteToRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkAdGroupSiteLinkAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkCampaignSiteLinkAdExtensionReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkAdGroupSiteLinkAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkCampaignSiteLinkAdExtensionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkCampaignSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription1Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription2Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDisplayTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesOrderTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesUrlCustomParametersTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription1Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription2Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDisplayTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesOrderTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesUrlCustomParameters.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesVersionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadFromBulkReaderTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/HasDeleteAllRowTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteToStreamTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteWithDeletedStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCriterionBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentCriterionIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadPartitionTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductConditionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductValueTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadUrlCustomParametersTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCriterionBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIsExcludedTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentCriterionIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WritePartitionTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductConditionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductValueTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteUrlCustomParameters.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdDistributionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationNullTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesBroadMatchBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesContentMatchBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesEndDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIsExpiredTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesLanguageTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNativeBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkNullTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelNullTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStartDateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesUrlCustomParametersTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdDistributionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdRotationTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesBroadMatchBidTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNativeBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNetworkTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesPricingModelTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesStartDateTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesUrlCustomParameters.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadFromRowValuesPromotionalTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesEditorialStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesPromotionalTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDisplayUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTitleTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesUrlCustomParametersTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDisplayUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesEditorialStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTitleTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesUrlCustomParameters.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesBudgetTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesCampaignTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesDailyBudgetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceNotSetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceNotSetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceNotSetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesMonthlyBudgetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNativeBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendNotSetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreNotSetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesSettingsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTimeZoneTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesUrlCustomParametersTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAccountIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesBudgetTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCampaignTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeOtherSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeShoppingSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDailyBudgetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesMonthlyBudgetTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNativeBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityOtherSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityShoppingSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdOtherSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdShoppingSettingTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTimeZoneTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesUrlCustomParameters.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadConditionsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadParentIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteConditionsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteParentIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidIsNullTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesEditorialStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesMatchTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam1Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam2Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam3Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesUrlCustomParametersTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesAdGroupIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesDestinationUrlTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesEditorialStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalMobileUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalUrlsTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesMatchTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam1Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam2Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam3Test.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTrackingTemplateTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesUrlCustomParameters.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesMatchTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesMatchTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesMatchTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesMatchTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesTextTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesSharedEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesSharedEntityIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesWebsiteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesWebsiteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/read/BulkAdGroupNegativeSitesReadTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/write/BulkAdGroupNegativeSitesWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesWebsiteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesWebsiteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/read/BulkCampaignNegativeSitesReadTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/write/BulkCampaignNegativeSitesWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/adgroup/BulkAdGroupTargetReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/BulkCampaignTargetReadWriteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/BulkCampaignAgeTargetBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesAgeRangeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesAgeRangeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/BulkCampaignDayTimeTargetBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesDayTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromHourTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromMinuteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToHourTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToMinuteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesDayTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromHourTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromMinuteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToHourTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToMinuteTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/BulkCampaignDeviceOsTargetBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesDeviceNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesOsNamesTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesDeviceNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesOsNamesTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/BulkCampaignGenderTargetBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesGenderTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesGenderTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/BulkCampaignLocationTargetBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesLocationTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesPhysicalIntentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesLocationTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/BulkCampaignNegativeLocationTargetBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesNegativeLocationTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesNegativeLocationTypeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/BulkCampaignRadiusTargetBidTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLatitudeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLongitureTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesPhysicalIntentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesUnitTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesBidAdjustmentTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesIdTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLatitudeTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLongitureTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesNameTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesUnitTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/read/UnknownBulkEntityReadFromRowValuesTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/ApiServiceTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/BulkServiceTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/CompleteResponse.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeApiTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeBulkService.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeHttpFileService.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeServiceFactory.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/OperationsTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/TestProgress.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationsTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/GetStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/TrackTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationsTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/GetStatusTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/TrackTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/bulk/entities/MultirecordEntityTestHelper.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/AllTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReaderTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/EntityTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/OAuthTests.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadEntitiesFromFilesTest.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadWriteEntitiesWithErrors.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/TestFactory.java create mode 100644 src/test/java/com/microsoft/bingads/v10/internal/bulk/TestSingleRecordEntity.java diff --git a/src/main/java/com/microsoft/bingads/bulk/BulkOperation.java b/src/main/java/com/microsoft/bingads/bulk/BulkOperation.java index dbde1d7f92..b74242d5b3 100644 --- a/src/main/java/com/microsoft/bingads/bulk/BulkOperation.java +++ b/src/main/java/com/microsoft/bingads/bulk/BulkOperation.java @@ -46,10 +46,12 @@ public abstract class BulkOperation { /** * The amount of time in milliseconds that the upload and download operations should wait before polling the Bulk service for status. */ + private int statusPollIntervalInMilliseconds; + BulkOperationStatusProvider statusProvider; private HttpFileService httpFileService; private ZipExtractor zipExtractor; - private int statusPollIntervalInMilliseconds; + private ServiceClient serviceClient; diff --git a/src/main/java/com/microsoft/bingads/bulk/entities/BulkTarget.java b/src/main/java/com/microsoft/bingads/bulk/entities/BulkTarget.java index 781105baef..a1936f2dd0 100644 --- a/src/main/java/com/microsoft/bingads/bulk/entities/BulkTarget.java +++ b/src/main/java/com/microsoft/bingads/bulk/entities/BulkTarget.java @@ -202,8 +202,8 @@ public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyDat getLocationTarget().isBeingWrittenAsPartOfParentTarget = true; getNegativeLocationTarget().isBeingWrittenAsPartOfParentTarget = true; getRadiusTarget().isBeingWrittenAsPartOfParentTarget = true; - - for (BulkEntity childEntity : getSubTargets()) { + + for (BulkEntity childEntity : getAllSubTargets()) { childEntity.writeToStream(rowWriter, excludeReadonlyData); } } @@ -363,15 +363,17 @@ private void populateChildTargetIdentifiers(BulkSubTar */ public List getSubTargets() { ArrayList nonEmptySubTargets = new ArrayList(); - for (BulkEntity subTarget: getAllSubTargets()) { - if (((MultiRecordBulkEntity) subTarget).allChildrenPresent()) { + List entities = getAllSubTargets(); + for (BulkEntity subTarget: entities ) { + if (!((MultiRecordBulkEntity) subTarget).allChildrenPresent()) { nonEmptySubTargets.add(subTarget); } } return Collections.unmodifiableList(nonEmptySubTargets); } - private List getAllSubTargets() { + private List getAllSubTargets() { + return Collections.unmodifiableList( Arrays.asList( (BulkEntity) getAgeTarget(), @@ -382,6 +384,7 @@ private List getAllSubTargets() { (BulkEntity) getNegativeLocationTarget(), (BulkEntity) getRadiusTarget() )); + } @Override diff --git a/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java b/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java index 3950362deb..e1d4442ec2 100644 --- a/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java +++ b/src/main/java/com/microsoft/bingads/internal/ServiceFactoryImpl.java @@ -77,6 +77,24 @@ class ServiceFactoryImpl implements ServiceFactory { setSandboxUrl("https://api.sandbox.bingads.microsoft.com/Api/Advertiser/Reporting/v9/ReportingService.svc"); } }); + put(com.microsoft.bingads.v10.campaignmanagement.ICampaignManagementService.class, new ServiceInfo() { + { + setProductionUrl("https://campaign.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/CampaignManagementService.svc"); + setSandboxUrl("https://campaign.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/CampaignManagementService.svc"); + } + }); + put(com.microsoft.bingads.v10.adinsight.IAdInsightService.class, new ServiceInfo() { + { + setProductionUrl("https://adinsight.api.bingads.microsoft.com/Api/Advertiser/AdInsight/V10/AdInsightService.svc"); + setSandboxUrl("https://adinsight.api.sandbox.bingads.microsoft.com/Api/Advertiser/AdInsight/V10/AdInsightService.svc"); + } + }); + put(com.microsoft.bingads.v10.bulk.IBulkService.class, new ServiceInfo() { + { + setProductionUrl("https://bulk.api.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/BulkService.svc"); + setSandboxUrl("https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/BulkService.svc"); + } + }); } }; diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingConfig.java b/src/main/java/com/microsoft/bingads/reporting/ReportingConfig.java new file mode 100644 index 0000000000..3ac004cb52 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingConfig.java @@ -0,0 +1,9 @@ +package com.microsoft.bingads.reporting; + +public class ReportingConfig { + + /** + * Define the default interval time in milliseconds of status check. + * */ + public static final int DEFAULT_STATUS_CHECK_INTERVAL_IN_MS = 5000; +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingDownloadOperation.java b/src/main/java/com/microsoft/bingads/reporting/ReportingDownloadOperation.java new file mode 100644 index 0000000000..38546dad8f --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingDownloadOperation.java @@ -0,0 +1,383 @@ +package com.microsoft.bingads.reporting; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.internal.ParentCallback; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.internal.ResultFuture; +import com.microsoft.bingads.internal.utilities.HttpClientHttpFileService; +import com.microsoft.bingads.internal.utilities.HttpFileService; +import com.microsoft.bingads.internal.utilities.SimpleZipExtractor; +import com.microsoft.bingads.internal.utilities.ZipExtractor; +import java.io.File; +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.concurrent.Future; + +/** + * Reserved for internal use. + * + * Represent a reporting download operation requested by a user. You can use it to poll for the download operation status, and then download the results file when available. + * + */ +public class ReportingDownloadOperation { + + /** + * Represents a user who intends to access the corresponding customer and account. + */ + private AuthorizationData authorizationData; + + /** + * The request identifier corresponding to the reporting download. + */ + private String requestId; + + /** + * The identifier of the log entry that contains the details of the download request. + */ + private String trackingId; + + /** + * The amount of time in milliseconds that the download operations should wait before polling the Reporting service for status. + */ + private int statusPollIntervalInMilliseconds; + + /** + * Provide the status of the reporting download operation. + */ + ReportingStatusProvider statusProvider; + + /** + * The service to download files. + */ + private HttpFileService httpFileService; + + /** + * To process download file. + */ + private ZipExtractor zipExtractor; + + /** + * The client of reporting service. + */ + private ServiceClient serviceClient; + + /** + * The final status of reporting download operation. + */ + private ReportingOperationStatus finalStatus; + + /**@param requestId + * @param authorizationData + */ + public ReportingDownloadOperation(String requestId, AuthorizationData authorizationData) { + this(requestId, authorizationData, null); + } + + /**@param requestId + * @param authorizationData + * @param trackingId + */ + ReportingDownloadOperation(String requestId, AuthorizationData authorizationData, String trackingId) { + this(requestId, authorizationData, new ReportingStatusProvider(requestId, authorizationData), trackingId); + } + + /**@param requestId + * @param authorizationData + * @param statusProvider + * @param trackingId + */ + ReportingDownloadOperation(String requestId, AuthorizationData authorizationData, ReportingStatusProvider statusProvider, String trackingId) { + this.statusProvider = statusProvider; + this.requestId = requestId; + this.authorizationData = authorizationData; + this.trackingId = trackingId; + + statusPollIntervalInMilliseconds = ReportingConfig.DEFAULT_STATUS_CHECK_INTERVAL_IN_MS; + + this.serviceClient = new ServiceClient(authorizationData, IReportingService.class); + + zipExtractor = new SimpleZipExtractor(); + + httpFileService = new HttpClientHttpFileService(); + } + + /** + * Runs asynchronously until the reporting service has finished processing the reporting download operation. + * + * @param callback A handler that will be called with the ReportingDownloadOperation when it has completed + * + * @return a Future that will be completed when the result file is available + */ + public Future trackAsync(AsyncCallback callback) { + ReportingOperationTracker tracker = generateTracker(); + + final ResultFuture resultFuture = new ResultFuture(callback); + + tracker.trackResultFileAsync(new ParentCallback(resultFuture) { + @Override + public void onSuccess(ReportingOperationStatus status) { + + finalStatus = status; + + resultFuture.setResult(finalStatus); + } + }); + + return resultFuture; + } + + private ReportingOperationTracker generateTracker() { + ReportingOperationTracker tracker; + + tracker = new ReportingOperationTracker(statusProvider, this.serviceClient, this.statusPollIntervalInMilliseconds); + + return tracker; + } + + /** + * Gets the status of the reporting download operation. + * + * @return a {@link ReportingOperationStatus} object pointing to the current status of the reporting download operation in Future + */ + public Future getStatusAsync(AsyncCallback callback) { + final ResultFuture resultFuture = new ResultFuture(callback); + + if (finalStatus != null) { + + resultFuture.setResult(this.finalStatus); + + return resultFuture; + } + + statusProvider.getCurrentStatus(this.serviceClient, new ParentCallback(resultFuture) { + @Override + public void onSuccess(ReportingOperationStatus currentStatus) { + if (statusProvider.isFinalStatus(currentStatus)) { + finalStatus = currentStatus; + } + + resultFuture.setResult(currentStatus); + } + }); + + return resultFuture; + } + + + + /** + * Downloads and optionally decompress the result file from the reporting download operation. + * @param localResultDirectoryName the directory to place the result file in + * @param localResultFileName the name to use for final result file + * @param decompress indicates whether the result file should be unzipped + * @param callback {@link AsyncCallback} object with {@link File} + * + * @return a {@link File} object pointing to the result file wrapped in Future + * + * @throws IOException + * @throws URISyntaxException + */ + public Future downloadResultFileAsync(File localResultDirectoryName, String localResultFileName, boolean decompress, AsyncCallback callback) throws IOException, URISyntaxException { + return downloadResultFileAsync(localResultDirectoryName, localResultFileName, decompress, false, callback); + } + + /** + * Downloads and optionally decompress the result file from the bulk operation, allows to overwrite the local result file. + * + * @param localResultDirectoryName the directory to place the result file in + * @param localResultFileName the name to use for final result file + * @param decompress indicates whether the result file should be unzipped + * @param overwrite indicates whether can overwrite if target file exists + * @param callback {@link AsyncCallback} object with {@link File} + * + * @return a {@link File} object pointing to the result file wrapped in Future + */ + public Future downloadResultFileAsync(File localResultDirectoryName, String localResultFileName, boolean decompress, boolean overwrite, AsyncCallback callback) throws IOException, URISyntaxException { + return downloadResultFileAsyncImpl(localResultDirectoryName, localResultFileName, decompress, overwrite, callback); + } + + private Future downloadResultFileAsyncImpl(final File localResultDirectoryName, final String localResultFileName, final boolean decompress, final boolean overwrite, AsyncCallback callback) throws IOException, URISyntaxException { + final ResultFuture resultFuture = new ResultFuture(callback); + + if (finalStatus == null) { + getStatusAsync(new ParentCallback(resultFuture) { + @Override + public void onSuccess(ReportingOperationStatus result) throws IOException, URISyntaxException { + if (finalStatus == null) { + + resultFuture.setException(new ReportingOperationInProgressException()); + + return; + } + + File resultFile = downloadFileWithFinalStatus(localResultDirectoryName, localResultFileName, decompress, overwrite); + + resultFuture.setResult(resultFile); + } + }); + } else { + File resultFile = downloadFileWithFinalStatus(localResultDirectoryName, localResultFileName, decompress, overwrite); + + resultFuture.setResult(resultFile); + } + + return resultFuture; + } + + private File downloadFileWithFinalStatus(File localResultDirectoryName, String localResultFileName, final boolean decompress, final boolean overwrite) throws IOException, URISyntaxException { + if (!statusProvider.isSuccessStatus(finalStatus)) { + + throw new ReportingOperationCouldNotBeCompletedException((finalStatus.getStatus())); + } + + String effectiveFileName; + + if (localResultFileName == null) { + effectiveFileName = requestId; + } else { + effectiveFileName = localResultFileName; + } + + final File fullPath = new File(localResultDirectoryName, effectiveFileName); + + final File zipResultPath = new File(localResultDirectoryName, effectiveFileName + ".zip"); + + downloadResultFileZip(finalStatus.getResultFileUrl(), zipResultPath, overwrite); + + if (!decompress) { + return zipResultPath; + } else { + return zipExtractor.extractFirstEntryToFile(zipResultPath, fullPath, localResultFileName == null, overwrite); + } + } + + private File downloadResultFileZip(String url, File tempZipFile, boolean overwrite) throws IOException, URISyntaxException { + if (httpFileService == null) { + httpFileService = new HttpClientHttpFileService(); + } + + httpFileService.downloadFile(url, tempZipFile, overwrite); + + return tempZipFile; + } + + /** + * @return the authorizationData + */ + public AuthorizationData getAuthorizationData() { + return authorizationData; + } + + /** + * @return the requestId + */ + public String getRequestId() { + return requestId; + } + + /** + * @param requestId the requestId to set + */ + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + /** + * @return the trackingId + */ + public String getTrackingId() { + return trackingId; + } + + /** + * @param trackingId the trackingId to set + */ + public void setTrackingId(String trackingId) { + this.trackingId = trackingId; + } + + /** + * @return the statusProvider + */ + public ReportingStatusProvider getStatusProvider() { + return statusProvider; + } + + /** + * @param statusProvider the statusProvider to set + */ + public void setStatusProvider(ReportingStatusProvider statusProvider) { + this.statusProvider = statusProvider; + } + + /** + * @return the httpFileService + */ + public HttpFileService getHttpFileService() { + return httpFileService; + } + + /** + * @param httpFileService the httpFileService to set + */ + public void setHttpFileService(HttpFileService httpFileService) { + this.httpFileService = httpFileService; + } + + /** + * @return the zipExtractor + */ + public ZipExtractor getZipExtractor() { + return zipExtractor; + } + + /** + * @param zipExtractor the zipExtractor to set + */ + public void setZipExtractor(ZipExtractor zipExtractor) { + this.zipExtractor = zipExtractor; + } + + /** + * @return the serviceClient + */ + public ServiceClient getServiceClient() { + return serviceClient; + } + + /** + * @param serviceClient the serviceClient to set + */ + public void setServiceClient(ServiceClient serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * @return the finalStatus + */ + public ReportingOperationStatus getFinalStatus() { + return finalStatus; + } + + /** + * @param finalStatus the finalStatus to set + */ + public void setFinalStatus(ReportingOperationStatus finalStatus) { + this.finalStatus = finalStatus; + } + + /** + * Gets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public int getStatusPollIntervalInMilliseconds() { + return statusPollIntervalInMilliseconds; + } + + /** + * Sets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public void setStatusPollIntervalInMilliseconds(int statusPollIntervalInMilliseconds) { + this.statusPollIntervalInMilliseconds = statusPollIntervalInMilliseconds; + } +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingDownloadParameters.java b/src/main/java/com/microsoft/bingads/reporting/ReportingDownloadParameters.java new file mode 100644 index 0000000000..4f6ce78067 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingDownloadParameters.java @@ -0,0 +1,77 @@ +package com.microsoft.bingads.reporting; + +import java.io.File; + +/** + * Describes the available parameters when performing a download, such as the type of result file directory and result name that you want to download. + */ +public class ReportingDownloadParameters { + + /** + * The base class of ReportRequest is to represent the type of reporting request. + */ + private ReportRequest reportRequest; + + private File resultFileDirectory; + + private String resultFileName; + + private boolean overwriteResultFile; + + /** + * @return the reportRequest + */ + public ReportRequest getReportRequest() { + return reportRequest; + } + + /** + * @param reportRequest the reportRequest to set + */ + public void setReportRequest(ReportRequest reportRequest) { + this.reportRequest = reportRequest; + } + + /** + * @return the resultFileDirectory + */ + public File getResultFileDirectory() { + return resultFileDirectory; + } + + /** + * @param resultFileDirectory the resultFileDirectory to set + */ + public void setResultFileDirectory(File resultFileDirectory) { + this.resultFileDirectory = resultFileDirectory; + } + + /** + * @return the resultFileName + */ + public String getResultFileName() { + return resultFileName; + } + + /** + * @param resultFileName the resultFileName to set + */ + public void setResultFileName(String resultFileName) { + this.resultFileName = resultFileName; + } + + /** + * @return the overwriteResultFile + */ + public boolean getOverwriteResultFile() { + return overwriteResultFile; + } + + /** + * @param overwriteResultFile the overwriteResultFile to set + */ + public void setOverwriteResultFile(boolean overwriteResultFile) { + this.overwriteResultFile = overwriteResultFile; + } + +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingOperationCouldNotBeCompletedException.java b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationCouldNotBeCompletedException.java new file mode 100644 index 0000000000..352ce2232f --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationCouldNotBeCompletedException.java @@ -0,0 +1,29 @@ +/** + * + */ +package com.microsoft.bingads.reporting; + +/** + * Reporting Exception IF Download Could Not Be Completed. + * + */ +public class ReportingOperationCouldNotBeCompletedException extends RuntimeException { + /** + * + */ + private static final long serialVersionUID = 1L; + private final ReportRequestStatusType status; + + public ReportingOperationCouldNotBeCompletedException(ReportRequestStatusType status) { + this.status = status; + } + + public ReportingOperationCouldNotBeCompletedException(ReportRequestStatusType status, String message) { + super(message); + this.status = status; + } + + public ReportRequestStatusType getStatus() { + return status; + } +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingOperationInProgressException.java b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationInProgressException.java new file mode 100644 index 0000000000..a198362b62 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationInProgressException.java @@ -0,0 +1,7 @@ +package com.microsoft.bingads.reporting; +/** + * This exception is thrown when trying to download the result file for an operation that hasn't completed yet. + */ +public class ReportingOperationInProgressException extends RuntimeException { + private static final long serialVersionUID = 1L; +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingOperationStatus.java b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationStatus.java new file mode 100644 index 0000000000..9993ca376e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationStatus.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.reporting; + +import java.util.List; + + +/** + * Contains tracking details about the results and status of the corresponding reporting operation. + * + */ +public class ReportingOperationStatus { + + /** + * The status of the reporting operation request. + */ + private final ReportRequestStatusType status; + + /** + * The url of the result file. + */ + private final String resultFileUrl; + + /** + * The identifier of the log entry that contains the details of the download request. + */ + private final String trackingId; + + public ReportingOperationStatus(ReportRequestStatusType status, String resultFileUrl, String trackingId) { + this.status = status; + + this.resultFileUrl = resultFileUrl; + + this.trackingId = trackingId; + + } + + /** + * Gets current status of the operation. + */ + public ReportRequestStatusType getStatus() { + return status; + } + + /** + * Gets the result file URL for the operation. + */ + public String getResultFileUrl() { + return resultFileUrl; + } + + /** + * Gets the tracking Id for the operation. + */ + public String getTrackingId() { + return this.trackingId; + } +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingOperationTracker.java b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationTracker.java new file mode 100644 index 0000000000..d476038d1c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingOperationTracker.java @@ -0,0 +1,175 @@ +package com.microsoft.bingads.reporting; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.internal.ParentCallback; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.bulk.BulkOperationProgressInfo; +import com.microsoft.bingads.bulk.BulkOperationStatus; +import com.microsoft.bingads.bulk.IBulkService; +import com.microsoft.bingads.bulk.Progress; +import com.microsoft.bingads.internal.ResultFuture; +import com.microsoft.bingads.internal.utilities.ThreadPool; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; +/** + * Track the status of reporting operation. + */ +public class ReportingOperationTracker{ + + private static final int INITIAL_STATUS_CHECK_INTERVAL_IN_MS = 1000; + private static final int NUMBER_OF_INITIAL_STATUS_CHECKS = 5; + + private int numberOfStatusChecks = 0; + private ScheduledExecutorService executorService; + private ReportingStatusProvider statusProvider; + private boolean stopTracking; + protected int lastProgressReported; + private ReportingOperationStatus currentStatus; + private final int statusCheckIntervalInMs; + + private ResultFuture trackResultFuture; + + private ServiceClient serviceClient; + + private final Runnable pollExecutorTask = new Runnable() { + @Override + public void run() { + pollOperationStatus(); + } + }; + + public ReportingOperationTracker( + ReportingStatusProvider statusProvider, + ServiceClient serviceClient, + int statusCheckIntervalInMs) { + + this.statusCheckIntervalInMs = statusCheckIntervalInMs; + this.statusProvider = statusProvider; + this.serviceClient = serviceClient; + } + + AtomicBoolean statusUpdateInProgress = new AtomicBoolean(false); + + public void pollOperationStatus() { + try { + if (!statusUpdateInProgress.compareAndSet(false, true)) { + return; + } + + if (trackingWasStopped()) { + return; + } + + if (cancelPollingIfRequestedByUser()) { + return; + } + + refreshStatus(new AsyncCallback() { + @Override + public void onCompleted(Future result) { + try { + result.get(); + + numberOfStatusChecks++; + + + completeTaskIfOperationIsComplete(); + } catch (InterruptedException ex) { + stopTracking(); + + propagateExceptionToCallingThread(ex); + } catch (ExecutionException ex) { + stopTracking(); + + propagateExceptionToCallingThread(ex); + } finally { + statusUpdateInProgress.set(false); + + if (!stopTracking) { + int interval = INITIAL_STATUS_CHECK_INTERVAL_IN_MS; + + if (numberOfStatusChecks >= NUMBER_OF_INITIAL_STATUS_CHECKS) { + interval = statusCheckIntervalInMs; + } + + executorService.schedule(pollExecutorTask, interval, TimeUnit.MILLISECONDS); + } + } + } + }); + } catch (Throwable ex) { + stopTracking(); + + propagateExceptionToCallingThread(ex); + } + } + + private boolean cancelPollingIfRequestedByUser() { + if (trackResultFuture.isCancelled()) { + stopTracking(); + + return true; + } + return false; + } + + private void propagateExceptionToCallingThread(Throwable ex) { + trackResultFuture.setException(ex); + } + + private void completeTaskIfOperationIsComplete() { + if (operationIsComplete()) { + stopTracking(); + completeTaskWithResult(); + } + } + + private void completeTaskWithResult() { + trackResultFuture.setResult(currentStatus); + } + + private boolean operationIsComplete() { + return statusProvider.isFinalStatus(currentStatus); + } + + private void refreshStatus(AsyncCallback callback) { + final ResultFuture resultFuture = new ResultFuture(callback); + + statusProvider.getCurrentStatus(this.serviceClient, new ParentCallback(resultFuture) { + @Override + public void onSuccess(ReportingOperationStatus result) { + currentStatus = result; + + resultFuture.setResult(currentStatus); + } + }); + } + + private boolean trackingWasStopped() { + return this.stopTracking; + } + + private void stopTracking() { + this.stopTracking = true; + + this.executorService.shutdown(); + } + + public Future trackResultFileAsync(AsyncCallback callback) { + this.trackResultFuture = new ResultFuture(callback); + + this.startTracking(); + + return trackResultFuture; + } + + private void startTracking() { + executorService = Executors.newSingleThreadScheduledExecutor(); + + executorService.schedule(pollExecutorTask, INITIAL_STATUS_CHECK_INTERVAL_IN_MS, TimeUnit.MILLISECONDS); + } +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingServiceManager.java b/src/main/java/com/microsoft/bingads/reporting/ReportingServiceManager.java new file mode 100644 index 0000000000..0600f375fd --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingServiceManager.java @@ -0,0 +1,264 @@ +package com.microsoft.bingads.reporting; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.Authentication; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.internal.ParentCallback; +import com.microsoft.bingads.internal.ResultFuture; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.internal.ServiceUtils; +import com.microsoft.bingads.internal.utilities.HttpClientHttpFileService; +import com.microsoft.bingads.internal.utilities.HttpFileService; +import com.microsoft.bingads.internal.utilities.SimpleZipExtractor; +import com.microsoft.bingads.internal.utilities.ZipExtractor; +import java.io.File; +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; + +/** + * Provides high level methods for downloading reporting using the Reporting API functionality. Also provides methods for submitting download operations. + * + *

+ * Example: {@link ReportingServiceManager#downloadFileAsync} will submit the download request to the reporting service, + * poll until the status is completed (or returns an error), and downloads the file locally. + * If instead you want to manage the low level details you would first call {@link ReportingServiceManager#submitDownloadAsync}, + * wait for the results file to be prepared using either {@link ReportingDownloadOperation#getStatusAsync} + * or {@link ReportingDownloadOperation#trackAsync}, and then download the file with the + * {@link ReportingDownloadOperation#downloadResultFileAsync} method. + * + *

+ * + */ +public class ReportingServiceManager { + + private AuthorizationData authorizationData; + private HttpFileService httpFileService; + private ZipExtractor zipExtractor; + + /** + * The time interval in milliseconds between two status polling attempts. + * */ + private int statusPollIntervalInMilliseconds; + + private final ServiceClient serviceClient; + + private File workingDirectory; + + /** + * Initializes a new instance of this class with the specified {@link AuthorizationData}. + * + * @param authorizationData Represents a user who intends to access the corresponding customer and account + */ + public ReportingServiceManager(AuthorizationData authorizationData) { + this(authorizationData, new HttpClientHttpFileService(), new SimpleZipExtractor()); + } + + private ReportingServiceManager(AuthorizationData authorizationData, + HttpFileService httpFileService, ZipExtractor zipExtractor) { + this.authorizationData = authorizationData; + this.httpFileService = httpFileService; + this.zipExtractor = zipExtractor; + + serviceClient = new ServiceClient(this.authorizationData, IReportingService.class); + + workingDirectory = new File(System.getProperty("java.io.tmpdir"), "BingAdsSDK"); + + statusPollIntervalInMilliseconds = ReportingConfig.DEFAULT_STATUS_CHECK_INTERVAL_IN_MS; + } + + /** + * Gets the authorization data for the user performing the operation. + */ + public AuthorizationData getAuthorizationData() { + return authorizationData; + } + + + private void validateSubmitReportingDownloadParameters(ReportRequest reportRequest) { + if (reportRequest == null) { + throw new NullPointerException("parameters must not be null"); + } + } + + /** + * Downloads the reporting file to a local file. + * + * @param Determines the download request and file path. + * @param callback a callback which is called with the file path when the file is downloaded and available + * + * @return a {@link Future} that will indicate completion of the operation + */ + public Future downloadFileAsync(ReportingDownloadParameters parameters, AsyncCallback callback) { + validateUserData(); + + validateSubmitReportingDownloadParameters(parameters.getReportRequest()); + + return downloadFileAsyncImpl(parameters,callback); + } + + private Future downloadFileAsyncImpl(final ReportingDownloadParameters parameters, AsyncCallback callback) { + final ResultFuture resultFuture = new ResultFuture(callback); + + workingDirectory.mkdirs(); + + this.submitDownloadAsync(parameters.getReportRequest(), new ParentCallback(resultFuture) { + @Override + public void onSuccess(final ReportingDownloadOperation operation) { + operation.trackAsync(new ParentCallback(resultFuture) { + @Override + public void onSuccess(ReportingOperationStatus status) throws IOException, URISyntaxException { + downloadReportingFileAsync(parameters.getResultFileDirectory(), parameters.getResultFileName(), parameters.getOverwriteResultFile(), operation, new ParentCallback(resultFuture) { + @Override + public void onSuccess(File localFile) { + resultFuture.setResult(localFile); + } + }); + } + }); + } + }); + + return resultFuture; + } + + private Future downloadReportingFileAsync(File resultFileDirectory, String resultFileName, boolean overwriteResultFile, ReportingDownloadOperation operation, AsyncCallback callback) throws IOException, URISyntaxException { + operation.setHttpFileService(this.httpFileService); + operation.setZipExtractor(this.zipExtractor); + + final ResultFuture resultFuture = new ResultFuture(callback); + + File effectiveResultFileDirectory = resultFileDirectory; + + if (effectiveResultFileDirectory == null) { + effectiveResultFileDirectory = workingDirectory; + } + + operation.downloadResultFileAsync(effectiveResultFileDirectory, resultFileName, true, overwriteResultFile, new ParentCallback(resultFuture) { + @Override + public void onSuccess(File file) { + resultFuture.setResult(file); + } + }); + + return resultFuture; + } + + private void validateUserData() { + authorizationData.validate(); + } + + /** + * Submits a download request to the Bing Ads reporting service with the specified parameters. + * + *

+ * The {@link ReportingDownloadParameters#getResultFileDirectory } and {@link ReportingDownloadParameters#getResultFileName + * } properties are ignored by this method. + * When the file is ready for download, specify the result file path and name as parameters of the + * {@link ReportingDownloadOperation#downloadResultFileAsync} method. + *

+ * + * @param parameters Describes the type of entities and data scope that you want to download + * @param callback a callback will be called when the {@link ReportingDownloadOperation} has been created + * + * @return a {@link Future} that will indicate completion of the operation + */ + public Future submitDownloadAsync(ReportRequest reportRequest, AsyncCallback callback) { + Authentication auth = authorizationData.getAuthentication(); + + if (auth == null) { + throw new IllegalArgumentException("Missing authentication"); + } + + final ResultFuture resultFuture = new ResultFuture(callback); + + final IReportingService service = serviceClient.getService(); + SubmitGenerateReportRequest submitRequest = new SubmitGenerateReportRequest(); + submitRequest.setReportRequest(reportRequest); + + service.submitGenerateReportAsync(submitRequest, new AsyncHandler() { + @Override + public void handleResponse(Response res) { + try { + SubmitGenerateReportResponse response; + + response = res.get(); + + String trackingId = ServiceUtils.GetTrackingId(res); + + ReportingDownloadOperation operation = new ReportingDownloadOperation(response.getReportRequestId(), authorizationData, trackingId); + + operation.setStatusPollIntervalInMilliseconds(statusPollIntervalInMilliseconds); + + resultFuture.setResult(operation); + } catch (InterruptedException e) { + resultFuture.setException(e); + } catch (ExecutionException e) { + resultFuture.setException(e); + } + } + }); + + + return resultFuture; + } + + /** + * Reserved for internal use. + */ + public HttpFileService getHttpFileService() { + return httpFileService; + } + + /** + * Reserved for internal use. + */ + public void setHttpFileService(HttpFileService httpFileService) { + this.httpFileService = httpFileService; + } + + /** + * Reserved for internal use. + */ + public ZipExtractor getZipExtractor() { + return zipExtractor; + } + + /** + * Reserved for internal use. + */ + public void setZipExtractor(ZipExtractor zipExtractor) { + this.zipExtractor = zipExtractor; + } + + /** + * Gets the directory for storing temporary files needed for some operations. + */ + public File getWorkingDirectory() { + return workingDirectory; + } + + /** + * Sets the directory for storing temporary files needed for some operations. + */ + public void setWorkingDirectory(File value) { + this.workingDirectory = value; + } + + /** + * Gets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public int getStatusPollIntervalInMilliseconds() { + return statusPollIntervalInMilliseconds; + } + + /** + * Sets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public void setStatusPollIntervalInMilliseconds(int statusPollIntervalInMilliseconds) { + this.statusPollIntervalInMilliseconds = statusPollIntervalInMilliseconds; + } +} diff --git a/src/main/java/com/microsoft/bingads/reporting/ReportingStatusProvider.java b/src/main/java/com/microsoft/bingads/reporting/ReportingStatusProvider.java new file mode 100644 index 0000000000..40740d612a --- /dev/null +++ b/src/main/java/com/microsoft/bingads/reporting/ReportingStatusProvider.java @@ -0,0 +1,67 @@ +package com.microsoft.bingads.reporting; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.internal.ResultFuture; +import com.microsoft.bingads.internal.ServiceUtils; + +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; + +public class ReportingStatusProvider{ + + private final String requestId; + + private final AuthorizationData authorizationData; + + public ReportingStatusProvider(String requestId, AuthorizationData authorizationData) { + this.requestId = requestId; + this.authorizationData = authorizationData; + } + + public Future getCurrentStatus(ServiceClient serviceClient, AsyncCallback callback) { + PollGenerateReportRequest request = new PollGenerateReportRequest(); + request.setReportRequestId(this.requestId); + + final ResultFuture resultFuture = new ResultFuture(callback); + + serviceClient.getService().pollGenerateReportAsync(request, new AsyncHandler() { + @Override + public void handleResponse(Response result) { + try { + PollGenerateReportResponse statusResponse = result.get(); + + String trackingId = ServiceUtils.GetTrackingId(result); + + ReportingOperationStatus status = new ReportingOperationStatus( + ReportRequestStatusType.fromValue(statusResponse.getReportRequestStatus().getStatus().value()), + statusResponse.getReportRequestStatus().getReportDownloadUrl(), + trackingId + ); + resultFuture.setResult(status); + } catch (InterruptedException e) { + resultFuture.setException(e); + } catch (ExecutionException e) { + resultFuture.setException(e); + } + } + }); + + return resultFuture; + } + + public boolean isFinalStatus(ReportingOperationStatus status) { + if (status == null) { + return false; + } + + return status.getStatus() == ReportRequestStatusType.SUCCESS || status.getStatus() == ReportRequestStatusType.ERROR; + } + + public boolean isSuccessStatus(ReportingOperationStatus status) { + return status.getStatus() == ReportRequestStatusType.SUCCESS; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadCouldNotBeCompletedException.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadCouldNotBeCompletedException.java new file mode 100644 index 0000000000..443acc55e3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadCouldNotBeCompletedException.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.bulk; + +import java.util.List; + + +/** + * This exception is thrown when trying to download the result file for an operation that has completed with an error. + */ +public class BulkDownloadCouldNotBeCompletedException extends RuntimeException { + + private final List errors; + + private final DownloadStatus status; + + public BulkDownloadCouldNotBeCompletedException(List errors, DownloadStatus status) { + this.errors = errors; + + this.status = status; + } + + public BulkDownloadCouldNotBeCompletedException(List errors, DownloadStatus status, String message) { + super(message); + + this.errors = errors; + + this.status = status; + } + + public List getErrors() { + return errors; + } + + public DownloadStatus getStatus() { + return status; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadOperation.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadOperation.java new file mode 100644 index 0000000000..6b223babd0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkDownloadOperation.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.v10.internal.bulk.DownloadStatusProvider; + + +import java.util.List; + +/** + * Represents a bulk download operation requested by a user. You can use this + * class to poll for the download status, and then download the file when + * available. + * + *

+ * Example: The {@link BulkServiceManager#submitDownloadAsync} + * method returns an instance of this class. If for any reason you do not want + * to wait for the file to be prepared for download, for example if your + * application quits unexpectedly or you have other tasks to process, you can + * use an instance of {@link BulkDownloadOperation} to download the file when it + * is available + *

+ * + */ +public class BulkDownloadOperation extends BulkOperation { + + /** + * Initializes a new instance of this class with the specified + * requestId and AuthorizationData. + * + * @param requestId The identifier of a download request that has previously + * been submitted. + * @param authorizationData Represents a user who intends to access the + * corresponding customer and account. + */ + public BulkDownloadOperation(String requestId, AuthorizationData authorizationData) { + super(requestId, authorizationData, new DownloadStatusProvider(requestId, authorizationData)); + } + + BulkDownloadOperation(String requestId, AuthorizationData authorizationData, String trackingId) { + super(requestId, authorizationData, new DownloadStatusProvider(requestId, authorizationData), trackingId); + } + + @Override + RuntimeException getOperationCouldNotBeCompletedException(List errors, DownloadStatus status) { + return new BulkDownloadCouldNotBeCompletedException(errors, status); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkEntityIterable.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkEntityIterable.java new file mode 100644 index 0000000000..4b3f9f8c55 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkEntityIterable.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.EntityIterator; +import java.io.Closeable; +import java.io.IOException; +import java.util.Iterator; + +/** + * Allows to iterate through a list of entities stored in a file. + */ +public class BulkEntityIterable implements Iterable, Closeable { + + private final BulkStreamReader reader; + private final boolean isForFullDownload; + + /** + * Reserved for internal use. + * + * @param reader the bulk stream reader instance + * @param isForFullDownload is the reader for full download + */ + public BulkEntityIterable(BulkStreamReader reader, boolean isForFullDownload) { + this.reader = reader; + this.isForFullDownload = isForFullDownload; + } + + @Override + public Iterator iterator() { + return new EntityIterator(reader, isForFullDownload); + } + + @Override + public void close() throws IOException { + reader.close(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkFileReader.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkFileReader.java new file mode 100644 index 0000000000..0bdc2d5640 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkFileReader.java @@ -0,0 +1,73 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkStreamReader; +import java.io.Closeable; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.UnsupportedEncodingException; + +/** + * Provides a method to read bulk entities from a bulk file and make them accessible as an Iterable. + */ +public class BulkFileReader implements Closeable { + + private BulkStreamReader bulkStreamReader; + private String bulkFilePath; + private ResultFileType fileType; + + /** + * Creates new instance + * + * @param file path of the bulk file to read + * @param resultFileType the type of bulk file download which is being read + * @param fileFormat the bulk file format + * + * @throws IOException + */ + public BulkFileReader(File file, ResultFileType resultFileType, DownloadFileType fileFormat) throws IOException { + this(new SimpleBulkStreamReader(file, fileFormat), resultFileType); + bulkFilePath = file.getCanonicalPath(); + } + + /** + * Reserved for internal use. + * + * @param reader the bulk stream reader instance + * @param fileType the type of bulk file download which is being read + */ + public BulkFileReader(BulkStreamReader reader, ResultFileType fileType) { + this.bulkStreamReader = reader; + this.fileType = fileType; + } + + /** + * Returns entities stored in the file. + * + * @return an iterator over Entities + */ + public BulkEntityIterable getEntities() { + return new BulkEntityIterable(this.bulkStreamReader, isForFullDownload()); + } + + @Override + public void close() throws IOException { + this.bulkStreamReader.close(); + } + + /** + * Reserved for internal use. + */ + boolean isForFullDownload() { + return this.fileType == ResultFileType.FULL_DOWNLOAD; + } + + /** + * Gets bulk file path. + */ + public String getBulkFilePath() { + return bulkFilePath; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkFileWriter.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkFileWriter.java new file mode 100644 index 0000000000..f59e691060 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkFileWriter.java @@ -0,0 +1,95 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkObjectWriter; +import java.io.Closeable; +import java.io.File; +import java.io.IOException; + +/** + * Provides methods to write bulk entities to a file. + * + */ +public class BulkFileWriter implements Closeable { + + private BulkObjectWriter bulkObjectWriter; + private boolean metadataWritten = false; + + /** + * Creates a new instance of this class with the specified file path. + * + * @param filePath Path of the bulk file to read + * + * @throws IOException + */ + public BulkFileWriter(File filePath) throws IOException { + this(filePath, DownloadFileType.CSV); + } + + /** + * Creates a new instance of this class with the specified file path and file format. + * + * @param filePath Path of the bulk file to read + * @param fileFormat Delimiter to separate columns of data by + * + * @throws IOException + */ + public BulkFileWriter(File filePath, DownloadFileType fileFormat) throws IOException { + this.bulkObjectWriter = new SimpleBulkObjectWriter(filePath, fileFormat); + } + + /** + * Reserved for internal use. + * + * @param bulkObjectWriter Bulk object writer + */ + public BulkFileWriter(BulkObjectWriter bulkObjectWriter) { + this.bulkObjectWriter = bulkObjectWriter; + } + + /** + * Writes the specified entity to the file. + * + *
    + *
  • Single Line Entity: Writes single line to describe content
  • + *
  • Multi Line Entity: Writes lines to describe the entity and all its + * children
  • + *
+ * + * @param entity a bulk entity to be written to file + * @param excludeReadonlyData indicates whether readonly data (such as errors, performance data etc.) should be excluded when writing to file + * + * @throws IOException + */ + public void writeEntity(BulkEntity entity, boolean excludeReadonlyData) throws IOException { + if (!metadataWritten) { + this.bulkObjectWriter.writeFileMetadata(); + metadataWritten = true; + } + + entity.writeToStream(this.bulkObjectWriter, excludeReadonlyData); + } + + /** + * Writes the specified entity to the file. + * + *
    + *
  • Single Line Entity: Writes single line to describe content
  • + *
  • Multi Line Entity: Writes lines to describe the entity and all its + * children
  • + *
+ * + * @param entity a bulk entity to be written to file + * @throws IOException + */ + public void writeEntity(BulkEntity entity) throws IOException { + writeEntity(entity, false); + } + + @Override + public void close() throws IOException { + this.bulkObjectWriter.close(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperation.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperation.java new file mode 100644 index 0000000000..518be3e460 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperation.java @@ -0,0 +1,312 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.internal.ParentCallback; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.internal.ResultFuture; +import com.microsoft.bingads.v10.internal.bulk.BulkOperationStatusProvider; +import com.microsoft.bingads.v10.internal.bulk.BulkOperationTracker; +import com.microsoft.bingads.v10.internal.bulk.Config; +import com.microsoft.bingads.v10.internal.bulk.PollingBulkOperationTracker; +import com.microsoft.bingads.internal.utilities.HttpClientHttpFileService; +import com.microsoft.bingads.internal.utilities.HttpFileService; +import com.microsoft.bingads.internal.utilities.SimpleZipExtractor; +import com.microsoft.bingads.internal.utilities.ZipExtractor; +import java.io.File; +import java.io.IOException; +import java.net.URISyntaxException; +import java.util.List; +import java.util.concurrent.Future; + +/** + * Reserved for internal use. + * + * The abstract base class that can be derived to represent a bulk operation requested by a user. You can use either the {@link BulkDownloadOperation} or {@link BulkUploadOperation} derived class to poll for the operation status, and then download the results file when available. + * + * @param type of bulk operation status is being tracked + */ +public abstract class BulkOperation { + + /** + * Represents a user who intends to access the corresponding customer and account. + */ + private AuthorizationData authorizationData; + + /** + * The request identifier corresponding to the bulk upload or download, depending on the derived type. + */ + private String requestId; + + /** + * The identifier of the log entry that contains the details of the upload or download request. + */ + private String trackingId; + + /** + * The amount of time in milliseconds that the upload and download operations should wait before polling the Bulk service for status. + */ + private int statusPollIntervalInMilliseconds; + + BulkOperationStatusProvider statusProvider; + private HttpFileService httpFileService; + private ZipExtractor zipExtractor; + + private ServiceClient serviceClient; + + private BulkOperationStatus finalStatus; + + BulkOperation(String requestId, AuthorizationData authorizationData) { + this(requestId, authorizationData, null, null); + } + + BulkOperation(String requestId, AuthorizationData authorizationData, BulkOperationStatusProvider statusProvider) { + this(requestId, authorizationData, statusProvider, null); + } + + BulkOperation(String requestId, AuthorizationData authorizationData, BulkOperationStatusProvider statusProvider, String trackingId) { + this.statusProvider = statusProvider; + this.requestId = requestId; + this.authorizationData = authorizationData; + this.trackingId = trackingId; + + statusPollIntervalInMilliseconds = Config.DEFAULT_STATUS_CHECK_INTERVAL_IN_MS; + + this.serviceClient = new ServiceClient(authorizationData, IBulkService.class); + + zipExtractor = new SimpleZipExtractor(); + + httpFileService = new HttpClientHttpFileService(); + } + + /** + * Runs asynchronously until the bulk service has finished processing the bulk operation. + * + * @param callback A handler that will be called with the BulkOperation when it has completed + * + * @return a Future that will be completed when the result file is available + */ + public Future> trackAsync(AsyncCallback> callback) { + return trackAsync(null, callback); + } + + /** + * Runs asynchronously until the bulk service has finished processing the bulk operation. + * + * @param progress An object to be updated with the progress of the operation + * @param callback A handler that will be called with the BulkOperation when it has completed + * + * @return a Future that will be completed when the result file is available + */ + public Future> trackAsync(Progress progress, AsyncCallback> callback) { + BulkOperationTracker tracker = generateTracker(progress); + + final ResultFuture> resultFuture = new ResultFuture>(callback); + + tracker.trackResultFileAsync(new ParentCallback>(resultFuture) { + @Override + public void onSuccess(BulkOperationStatus status) { + finalStatus = status; + + resultFuture.setResult(finalStatus); + } + }); + + return resultFuture; + } + + private BulkOperationTracker generateTracker(Progress progress) { + BulkOperationTracker tracker; + + tracker = new PollingBulkOperationTracker(statusProvider, this.serviceClient, progress, this.statusPollIntervalInMilliseconds); + + return tracker; + } + + /** + * Gets the status of the bulk operation. + * + * @return the current status of the bulk operation + */ + public Future> getStatusAsync(AsyncCallback> callback) { + final ResultFuture> resultFuture = new ResultFuture>(callback); + + if (finalStatus != null) { + resultFuture.setResult(this.finalStatus); + + return resultFuture; + } + + + statusProvider.getCurrentStatus(this.serviceClient, new ParentCallback>(resultFuture) { + @Override + + public void onSuccess(BulkOperationStatus currentStatus) { + + if (statusProvider.isFinalStatus(currentStatus)) { + finalStatus = currentStatus; + } + + resultFuture.setResult(currentStatus); + } + }); + + return resultFuture; + } + + public AuthorizationData getAuthorizationData() { + return authorizationData; + } + + public String getRequestId() { + return requestId; + } + + public String getTrackingId() { + return trackingId; + } + + BulkOperationStatusProvider getStatusProvider() { + return statusProvider; + } + + void setRequestId(String requestId) { + this.requestId = requestId; + } + + void setTrackingId(String trackingId) { + this.trackingId = trackingId; + } + + void setStatusProvider(BulkOperationStatusProvider statusProvider) { + this.statusProvider = statusProvider; + } + + HttpFileService getHttpFileService() { + return httpFileService; + } + + void setHttpFileService(HttpFileService httpFileService) { + this.httpFileService = httpFileService; + } + + ZipExtractor getZipExtractor() { + return zipExtractor; + } + + void setZipExtractor(ZipExtractor zipExtractor) { + this.zipExtractor = zipExtractor; + } + + /** + * Gets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public int getStatusPollIntervalInMilliseconds() { + return statusPollIntervalInMilliseconds; + } + + /** + * Sets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public void setStatusPollIntervalInMilliseconds(int statusPollIntervalInMilliseconds) { + this.statusPollIntervalInMilliseconds = statusPollIntervalInMilliseconds; + } + + /** + * Downloads and optionally decompress the result file from the bulk operation + * @param localResultDirectoryName the directory to place the result file in + * @param localResultFileName the name to use for final result file + * @param decompress indicates whether the result file should be unzipped + * @param callback {@link AsyncCallback} object with {@link File} + * + * @return a {@link File} object pointing to the result file wrapped in Future + * + * @throws IOException + * @throws URISyntaxException + */ + public Future downloadResultFileAsync(File localResultDirectoryName, String localResultFileName, boolean decompress, AsyncCallback callback) throws IOException, URISyntaxException { + return downloadResultFileAsync(localResultDirectoryName, localResultFileName, decompress, false, callback); + } + + /** + * Downloads and optionally decompress the result file from the bulk operation, allows to overwrite the local result file. + * + * @param localResultDirectoryName the directory to place the result file in + * @param localResultFileName the name to use for final result file + * @param decompress indicates whether the result file should be unzipped + * @param overwrite indicates whether can overwrite if target file exists + * @param callback {@link AsyncCallback} object with {@link File} + * + * @return a {@link File} object pointing to the result file wrapped in Future + */ + public Future downloadResultFileAsync(File localResultDirectoryName, String localResultFileName, boolean decompress, boolean overwrite, AsyncCallback callback) throws IOException, URISyntaxException { + return downloadResultFileAsyncImpl(localResultDirectoryName, localResultFileName, decompress, overwrite, callback); + } + + abstract RuntimeException getOperationCouldNotBeCompletedException(List errors, TStatus status); + + private Future downloadResultFileAsyncImpl(final File localResultDirectoryName, final String localResultFileName, final boolean decompress, final boolean overwrite, AsyncCallback callback) throws IOException, URISyntaxException { + final ResultFuture resultFuture = new ResultFuture(callback); + + if (finalStatus == null) { + getStatusAsync(new ParentCallback>(resultFuture) { + @Override + public void onSuccess(BulkOperationStatus result) throws IOException, URISyntaxException { + if (finalStatus == null) { + resultFuture.setException(new BulkOperationInProgressException()); + + return; + } + + File resultFile = downloadFileWithFinalStatus(localResultDirectoryName, localResultFileName, decompress, overwrite); + + resultFuture.setResult(resultFile); + } + }); + } else { + File resultFile = downloadFileWithFinalStatus(localResultDirectoryName, localResultFileName, decompress, overwrite); + + resultFuture.setResult(resultFile); + } + + return resultFuture; + } + + private File downloadFileWithFinalStatus(File localResultDirectoryName, String localResultFileName, final boolean decompress, final boolean overwrite) throws IOException, URISyntaxException { + if (!statusProvider.isSuccessStatus(finalStatus.getStatus())) { + List errors = finalStatus.getErrors(); + + throw getOperationCouldNotBeCompletedException(errors, finalStatus.getStatus()); + } + + String effectiveFileName; + + if (localResultFileName == null) { + effectiveFileName = requestId; + } else { + effectiveFileName = localResultFileName; + } + + final File fullPath = new File(localResultDirectoryName, effectiveFileName); + + final File zipResultPath = new File(localResultDirectoryName, effectiveFileName + ".zip"); + + downloadResultFileZip(finalStatus.getResultFileUrl(), zipResultPath, overwrite); + + if (!decompress) { + return zipResultPath; + } else { + return zipExtractor.extractFirstEntryToFile(zipResultPath, fullPath, localResultFileName == null, overwrite); + } + } + + private File downloadResultFileZip(String url, File tempZipFile, boolean overwrite) throws IOException, URISyntaxException { + if (httpFileService == null) { + httpFileService = new HttpClientHttpFileService(); + } + + httpFileService.downloadFile(url, tempZipFile, overwrite); + + return tempZipFile; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationInProgressException.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationInProgressException.java new file mode 100644 index 0000000000..6702695d68 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationInProgressException.java @@ -0,0 +1,8 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * This exception is thrown when trying to download the result file for an operation that hasn't completed yet. + */ +public class BulkOperationInProgressException extends RuntimeException { + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationProgressInfo.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationProgressInfo.java new file mode 100644 index 0000000000..0c74fe2bc7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationProgressInfo.java @@ -0,0 +1,20 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * Contains percent complete progress information for the bulk operation. + */ +public class BulkOperationProgressInfo { + + private final int percentComplete; + + /** + * Gets progress information for the bulk operation in percent. + */ + public int getPercentComplete() { + return percentComplete; + } + + public BulkOperationProgressInfo(Integer percentComplete) { + this.percentComplete = percentComplete; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationStatus.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationStatus.java new file mode 100644 index 0000000000..406a21bc22 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkOperationStatus.java @@ -0,0 +1,69 @@ +package com.microsoft.bingads.v10.bulk; + +import java.util.List; + + +/** + * Contains tracking details about the results and status of the corresponding bulk operation. + * + * @param the type of operation status + */ +public class BulkOperationStatus { + + private final TStatus status; + + private final int percentComplete; + + private final String resultFileUrl; + + private final String trackingId; + + private final List errors; + + public BulkOperationStatus(TStatus status, int percentComplete, String resultFileUrl, String trackingId, List errors) { + this.status = status; + + this.percentComplete = percentComplete; + + this.resultFileUrl = resultFileUrl; + + this.trackingId = trackingId; + + this.errors = errors; + } + + /** + * Gets current status of the operation. + */ + public TStatus getStatus() { + return status; + } + + /** + * Gets progress of the operation in percent. + */ + public int getPercentComplete() { + return percentComplete; + } + + /** + * Gets the result file URL for the operation. + */ + public String getResultFileUrl() { + return resultFileUrl; + } + + /** + * Gets the tracking Id for the operation. + */ + public String getTrackingId() { + return this.trackingId; + } + + /** + * Gets the list of errors for the operation. + */ + public List getErrors() { + return errors; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkServiceManager.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkServiceManager.java new file mode 100644 index 0000000000..66c7106efe --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkServiceManager.java @@ -0,0 +1,686 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.Authentication; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.HeadersImpl; +import com.microsoft.bingads.InternalException; +import com.microsoft.bingads.internal.ParentCallback; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.internal.ServiceUtils; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.internal.HttpHeaders; +import com.microsoft.bingads.internal.ResultFuture; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.Config; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.v10.internal.bulk.BulkFileReaderFactory; +import com.microsoft.bingads.v10.internal.bulk.CSVBulkFileReaderFactory; +import com.microsoft.bingads.internal.utilities.HttpClientHttpFileService; +import com.microsoft.bingads.internal.utilities.HttpFileService; +import com.microsoft.bingads.internal.utilities.SimpleZipExtractor; +import com.microsoft.bingads.internal.utilities.UnsuccessfulFileUpload; +import com.microsoft.bingads.internal.utilities.ZipExtractor; +import com.microsoft.bingads.v10.bulk.ArrayOfCampaignScope; +import com.microsoft.bingads.v10.bulk.ArrayOflong; +import com.microsoft.bingads.v10.bulk.CampaignScope; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsRequest; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsResponse; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsRequest; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsResponse; +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.GetBulkUploadUrlRequest; +import com.microsoft.bingads.v10.bulk.GetBulkUploadUrlResponse; +import com.microsoft.bingads.v10.bulk.IBulkService; + +import java.io.File; +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; +import org.apache.http.HttpRequest; + +/** + * Provides high level methods for uploading and downloading entities using the Bulk API functionality. Also provides methods for submitting upload or download operations. + * + *

+ * Example: {@link BulkServiceManager#downloadFileAsync} will submit the download request to the bulk service, + * poll until the status is completed (or returns an error), and downloads the file locally. + * If instead you want to manage the low level details you would first call {@link BulkServiceManager#submitDownloadAsync}, + * wait for the results file to be prepared using either {@link BulkOperation#getStatusAsync} + * or {@link BulkOperation#trackAsync}, and then download the file with the + * {@link BulkOperation#downloadResultFileAsync} method. + *

+ * + */ +public class BulkServiceManager { + + private static final String FORMAT_VERSION = "4.0"; + private AuthorizationData authorizationData; + private HttpFileService httpFileService; + private ZipExtractor zipExtractor; + private BulkFileReaderFactory bulkFileReaderFactory; + + private int statusPollIntervalInMilliseconds; + + private final ServiceClient serviceClient; + + private File workingDirectory; + + /** + * Initializes a new instance of this class with the specified {@link AuthorizationData}. + * + * @param authorizationData Represents a user who intends to access the corresponding customer and account. + */ + public BulkServiceManager(AuthorizationData authorizationData) { + this(authorizationData, new HttpClientHttpFileService(), new SimpleZipExtractor(), new CSVBulkFileReaderFactory()); + } + + private BulkServiceManager(AuthorizationData authorizationData, + HttpFileService httpFileService, ZipExtractor zipExtractor, + BulkFileReaderFactory bulkFileReaderFactory) { + this.authorizationData = authorizationData; + this.httpFileService = httpFileService; + this.zipExtractor = zipExtractor; + this.bulkFileReaderFactory = bulkFileReaderFactory; + + serviceClient = new ServiceClient(this.authorizationData, IBulkService.class); + + workingDirectory = new File(System.getProperty("java.io.tmpdir"), "BingAdsSDK"); + + statusPollIntervalInMilliseconds = Config.DEFAULT_STATUS_CHECK_INTERVAL_IN_MS; + } + + /** + * Gets the authorization data for the user performing the operation. + */ + public AuthorizationData getAuthorizationData() { + return authorizationData; + } + + /** + * Downloads the specified Bulk entities. + * + * @param parameters Determines the download entities and file path. If a file path is not specified in the download parameters, the enumerable of {@link BulkEntity} is read from a temporary file path designated at run time. + * @param callback a callback to call with an {@link Iterable} of {@link BulkEntity} objects + * + * @return a Future indicating whether the operation has been completed + */ + public Future downloadEntitiesAsync(DownloadParameters parameters, AsyncCallback callback) { + return this.downloadEntitiesAsync(parameters, null, callback); + } + + /** + * Downloads the specified Bulk entities. + * + * @param parameters Determines the download entities and file path. If a file path is not specified in the download parameters, the enumerable of {@link BulkEntity} is read from a temporary file path designated at run time. + * @param progress an object which is updated with the progress of a bulk operation + * @param callback a callback to call with an {@link Iterable} of {@link BulkEntity} objects + * + * @return a Future indicating whether the operation has been completed + */ + public Future downloadEntitiesAsync(DownloadParameters parameters, Progress progress, AsyncCallback callback) { + this.validateSubmitDownloadParameters(parameters.getSubmitDownloadParameters()); + + this.validateUserData(); + + return downloadEntitiesAsyncImpl(parameters, progress, callback); + } + + /** + * Uploads the specified Bulk entities. + * + * @param parameters determines the upload entities parameters + * @param progress an object which is updated with the progress of bulk operation + * @param callback a callback to call with an {@link Iterable} of {@link BulkEntity} objects + * + * @return a Future indicating whether the operation has been completed + */ + public Future uploadEntitiesAsync(EntityUploadParameters parameters, Progress progress, AsyncCallback callback) { + validateEntityUploadParameters(parameters); + + validateUserData(); + + return uploadEntitiesAsyncImpl(createFileUploadParameters(parameters), progress, callback); + } + + /** + * Uploads the specified Bulk entities. + * + * @param parameters determines the upload entities parameters + * @param callback a callback to call with an {@link Iterable} of {@link BulkEntity} objects + * + * @return a Future indicating whether the operation has been completed + */ + public Future uploadEntitiesAsync(EntityUploadParameters parameters, AsyncCallback callback) { + return uploadEntitiesAsync(parameters, null, callback); + } + + /** + * Uploads the specified Bulk file. + * + * @param parameters determines the file upload parameters + * @param callback a callback which is called with the file path when the file is downloaded and available + * + * @return a Future indicating whether the operation has been completed + */ + public Future uploadFileAsync(final FileUploadParameters parameters, AsyncCallback callback) { + return uploadFileAsync(parameters, null, callback); + } + + /** + * Uploads the specified Bulk file. + * + * @param parameters determines the file upload parameters + * @param progress an object which is updated with the progress of bulk operation + * @param callback a callback which is called with the file path when the file is downloaded and available + * + * @return a Future indicating whether the operation has been completed + */ + public Future uploadFileAsync(final FileUploadParameters parameters, final Progress progress, AsyncCallback callback) { + validateSubmitUploadParameters(parameters.getSubmitUploadParameters()); + + validateUserData(); + + return uploadFileAsyncImpl(parameters, progress, callback); + } + + private void validateEntityUploadParameters(EntityUploadParameters parameters) { + if (parameters == null) { + throw new NullPointerException("parameters must not be null"); + } + + if (parameters.getEntities() == null) { + throw new NullPointerException("parameters.getEntities() must not be null"); + } + + if (!parameters.getEntities().iterator().hasNext()) { + throw new IllegalArgumentException("parameters.getEntities() must not be empty"); + } + } + + private void validateSubmitUploadParameters(SubmitUploadParameters parameters) { + if (parameters == null) { + throw new NullPointerException("parameters must not be null"); + } + + if (parameters.getUploadFilePath() == null) { + throw new NullPointerException("parameters.getUploadFilePath() must not be null"); + } + } + + private Future uploadEntitiesAsyncImpl(FileUploadParameters parameters, Progress progress, AsyncCallback callback) { + final ResultFuture resultFuture = new ResultFuture(callback); + + uploadFileAsyncImpl(parameters, progress, new ParentCallback(resultFuture) { + @Override + public void onSuccess(File resultFile) throws IOException { + resultFuture.setResult(bulkFileReaderFactory.createBulkFileReader(resultFile, ResultFileType.UPLOAD, DownloadFileType.CSV).getEntities()); + } + }); + + return resultFuture; + } + + private Future uploadFileAsyncImpl(final FileUploadParameters parameters, final Progress progress, AsyncCallback callback) { + final ResultFuture resultFuture = new ResultFuture(callback); + + workingDirectory.mkdirs(); + + submitUploadAsync(parameters, new ParentCallback(resultFuture) { + @Override + public void onSuccess(final BulkUploadOperation operation) { + operation.trackAsync(progress, new ParentCallback>(resultFuture) { + @Override + public void onSuccess(BulkOperationStatus status) throws IOException, URISyntaxException { + downloadBulkFileAsync(parameters.getResultFileDirectory(), parameters.getResultFileName(), parameters.getOverwriteResultFile(), operation, new ParentCallback(resultFuture) { + @Override + public void onSuccess(File localFile) { + resultFuture.setResult(localFile); + } + }); + } + }); + } + }); + + return resultFuture; + } + + private void validateSubmitDownloadParameters(SubmitDownloadParameters parameters) { + if (parameters == null) { + throw new NullPointerException("parameters must not be null"); + } + } + + private Future downloadEntitiesAsyncImpl(final DownloadParameters parameters, Progress progress, AsyncCallback callback) { + final ResultFuture resultFuture = new ResultFuture(callback); + + this.downloadFileAsyncImpl(parameters, progress, new ParentCallback(resultFuture) { + @Override + public void onSuccess(File result) throws IOException { + ResultFileType resultFileType = parameters.getLastSyncTimeInUTC() != null ? ResultFileType.PARTIAL_DOWNLOAD : ResultFileType.FULL_DOWNLOAD; + + BulkFileReader reader = bulkFileReaderFactory.createBulkFileReader(result, resultFileType, parameters.getFileType()); + + resultFuture.setResult(reader.getEntities()); + } + }); + + return resultFuture; + } + + /** + * Downloads the specified Bulk entities to a local file. + * + * @param parameters Determines the download entities and file path. + * @param callback a callback which is called with the file path when the file is downloaded and available + * + * @return a {@link Future} that will indicate completion of the operation + */ + public Future downloadFileAsync(DownloadParameters parameters, AsyncCallback callback) { + return this.downloadFileAsync(parameters, null, callback); + } + + /** + * Downloads the specified Bulk entities to a local file. + * + * @param parameters Determines the download entities and file path. + * @param progress An object which is updated with the progress of a bulk operation + * @param callback a callback which is called with the file path when the file is downloaded and available + * + * @return a {@link Future} that will indicate completion of the operation + */ + public Future downloadFileAsync(DownloadParameters parameters, Progress progress, AsyncCallback callback) { + validateUserData(); + + validateSubmitDownloadParameters(parameters.getSubmitDownloadParameters()); + + return downloadFileAsyncImpl(parameters, progress, callback); + } + + private Future downloadFileAsyncImpl(final DownloadParameters parameters, final Progress progress, AsyncCallback callback) { + final ResultFuture resultFuture = new ResultFuture(callback); + + workingDirectory.mkdirs(); + + // TODO: handle cancellations + this.submitDownloadAsync(parameters.getSubmitDownloadParameters(), new ParentCallback(resultFuture) { + @Override + public void onSuccess(final BulkDownloadOperation operation) { + operation.trackAsync(progress, new ParentCallback>(resultFuture) { + @Override + public void onSuccess(BulkOperationStatus status) throws IOException, URISyntaxException { + downloadBulkFileAsync(parameters.getResultFileDirectory(), parameters.getResultFileName(), parameters.getOverwriteResultFile(), operation, new ParentCallback(resultFuture) { + @Override + public void onSuccess(File localFile) { + resultFuture.setResult(localFile); + } + }); + } + }); + } + }); + + return resultFuture; + } + + private Future downloadBulkFileAsync(File resultFileDirectory, String resultFileName, boolean overwriteResultFile, BulkOperation operation, AsyncCallback callback) throws IOException, URISyntaxException { + operation.setHttpFileService(this.httpFileService); + operation.setZipExtractor(this.zipExtractor); + + final ResultFuture resultFuture = new ResultFuture(callback); + + File effectiveResultFileDirectory = resultFileDirectory; + + if (effectiveResultFileDirectory == null) { + effectiveResultFileDirectory = workingDirectory; + } + + operation.downloadResultFileAsync(effectiveResultFileDirectory, resultFileName, true, overwriteResultFile, new ParentCallback(resultFuture) { + @Override + public void onSuccess(File file) { + resultFuture.setResult(file); + } + }); + + return resultFuture; + } + + private void validateUserData() { + authorizationData.validate(); + } + + /** + * Submits a download request to the Bing Ads bulk service with the specified parameters. + * + *

+ * The {@link DownloadParameters#getResultFileDirectory } and {@link DownloadParameters#getResultFileName + * } properties are ignored by this method. + * When the file is ready for download, specify the result file path and name as parameters of the + * {@link BulkOperation#downloadResultFileAsync} method. + *

+ * + * @param parameters Describes the type of entities and data scope that you want to download. + * @param callback a callback will be called when the {@link BulkDownloadOperation} has been created + * + * @return a {@link Future} that will indicate completion of the operation + */ + public Future submitDownloadAsync(SubmitDownloadParameters parameters, AsyncCallback callback) { + Authentication auth = authorizationData.getAuthentication(); + + if (auth == null) { + throw new IllegalArgumentException("Missing authentication"); + } + + final ResultFuture resultFuture = new ResultFuture(callback); + + if (parameters.getCampaignIds() == null) { + DownloadCampaignsByAccountIdsRequest request = generateCampaignsByAccountIdRequest(parameters); + + final IBulkService service = serviceClient.getService(); + + service.downloadCampaignsByAccountIdsAsync(request, new AsyncHandler() { + @Override + public void handleResponse(Response res) { + try { + DownloadCampaignsByAccountIdsResponse response; + + response = res.get(); + + String trackingId = ServiceUtils.GetTrackingId(res); + + BulkDownloadOperation operation = new BulkDownloadOperation(response.getDownloadRequestId(), authorizationData, trackingId); + + operation.setStatusPollIntervalInMilliseconds(statusPollIntervalInMilliseconds); + + resultFuture.setResult(operation); + } catch (InterruptedException e) { + resultFuture.setException(e); + } catch (ExecutionException e) { + resultFuture.setException(e); + } + } + }); + } else { + DownloadCampaignsByCampaignIdsRequest request = generateCampaignsByCampaignIdsRequest(parameters); + + final IBulkService service = serviceClient.getService(); + + service.downloadCampaignsByCampaignIdsAsync(request, new AsyncHandler() { + @Override + public void handleResponse(Response res) { + try { + DownloadCampaignsByCampaignIdsResponse response; + + response = res.get(); + + BulkDownloadOperation operation = new BulkDownloadOperation(response.getDownloadRequestId(), authorizationData, ServiceUtils.GetTrackingId(res)); + + operation.setStatusPollIntervalInMilliseconds(statusPollIntervalInMilliseconds); + + resultFuture.setResult(operation); + } catch (InterruptedException e) { + resultFuture.setException(e); + } catch (ExecutionException e) { + resultFuture.setException(e); + } + } + }); + } + + return resultFuture; + } + + /** + * Submits an upload request to the Bing Ads bulk service with the specified parameters. + * + *

+ * The {@link FileUploadParameters#getResultFileDirectory} and {@link FileUploadParameters#getResultFileName + * } properties are ignored by this method. + * When the file is ready for download, specify the result file path and name as parameters of the + * {@link BulkOperation#downloadResultFileAsync} method. + *

+ * + * @param parameters Describes the upload response mode and file name. + * @param callback a callback will be called when the {@link BulkDownloadOperation} has been created + * + * @return a {@link Future} that will indicate completion of the operation + */ + public Future submitUploadAsync(final FileUploadParameters parameters, AsyncCallback callback) { + GetBulkUploadUrlRequest request = new GetBulkUploadUrlRequest(); + request.setResponseMode(parameters.getResponseMode()); + request.setAccountId(authorizationData.getAccountId()); + + final ResultFuture resultFuture = new ResultFuture(callback); + + final IBulkService service = serviceClient.getService(); + + service.getBulkUploadUrlAsync(request, new AsyncHandler() { + @Override + public void handleResponse(Response res) { + try { + GetBulkUploadUrlResponse response = res.get(); + + String trackingId = ServiceUtils.GetTrackingId(res); + + String uploadUrl = response.getUploadUrl(); + + File effectiveUploadPath = parameters.getUploadFilePath(); + + boolean shouldCompress = parameters.getCompressUploadFile() && !StringExtensions.getFileExtension(effectiveUploadPath.toString()).equals(".zip"); + + File compressedFilePath = null; + + if (shouldCompress) { + compressedFilePath = compressUploadFile(effectiveUploadPath); + + effectiveUploadPath = compressedFilePath; + } + + Consumer addHeaders = new Consumer() { + @Override + public void accept(final HttpRequest request) { + request.addHeader(HttpHeaders.DEVELOPER_TOKEN, authorizationData.getDeveloperToken()); + request.addHeader(HttpHeaders.CUSTOMER_ID, Long.toString(authorizationData.getCustomerId())); + request.addHeader(HttpHeaders.ACCOUNT_ID, Long.toString(authorizationData.getAccountId())); + authorizationData.getAuthentication().addHeaders(new HeadersImpl() { + @Override + public void addHeader(String name, String value) { + request.addHeader(name, value); + } + }); + } + }; + + httpFileService.uploadFile(new URI(uploadUrl), effectiveUploadPath, addHeaders); + + if (shouldCompress) { + compressedFilePath.delete(); + } + + BulkUploadOperation operation = new BulkUploadOperation(response.getRequestId(), authorizationData, service, trackingId); + + operation.setStatusPollIntervalInMilliseconds(statusPollIntervalInMilliseconds); + + resultFuture.setResult(operation); + } catch (InterruptedException e) { + resultFuture.setException(e); + } catch (ExecutionException e) { + resultFuture.setException(e); + } catch (URISyntaxException e) { + resultFuture.setException(e); + } catch (UnsuccessfulFileUpload e) { + resultFuture.setException(e); + } + } + }); + + return resultFuture; + } + + private File compressUploadFile(File uploadFilePath) { + workingDirectory.mkdirs(); + + File compressedFilePath = new File(workingDirectory, StringExtensions.getFileNameWithoutExtension(uploadFilePath) + "_" + UUID.randomUUID() + ".zip"); + + zipExtractor.compressFile(uploadFilePath, compressedFilePath); + + return compressedFilePath; + } + + private DownloadCampaignsByCampaignIdsRequest generateCampaignsByCampaignIdsRequest(SubmitDownloadParameters parameters) { + DownloadCampaignsByCampaignIdsRequest request = new DownloadCampaignsByCampaignIdsRequest(); + + ArrayOfCampaignScope arrayOfCampaigns = new ArrayOfCampaignScope(); + + List campaigns = arrayOfCampaigns.getCampaignScopes(); + for (Long campaignId : parameters.getCampaignIds()) { + CampaignScope scope = new CampaignScope(); + scope.setCampaignId(campaignId); + scope.setParentAccountId(authorizationData.getAccountId()); + campaigns.add(scope); + } + + request.setCampaigns(arrayOfCampaigns); + + request.setDataScope(parameters.getDataScope()); + request.setDownloadFileType(parameters.getFileType()); + request.setEntities(parameters.getEntities()); + request.setFormatVersion(FORMAT_VERSION); + request.setLastSyncTimeInUTC(parameters.getLastSyncTimeInUTC()); + request.setPerformanceStatsDateRange(parameters.getPerformanceStatsDateRange()); + + return request; + } + + private DownloadCampaignsByAccountIdsRequest generateCampaignsByAccountIdRequest(SubmitDownloadParameters parameters) { + DownloadCampaignsByAccountIdsRequest request = new DownloadCampaignsByAccountIdsRequest(); + + ArrayOflong accountIds = new ArrayOflong(); + + accountIds.getLongs().add(this.authorizationData.getAccountId()); + + request.setAccountIds(accountIds); + + request.setDataScope(parameters.getDataScope()); + request.setDownloadFileType(parameters.getFileType()); + request.setEntities(parameters.getEntities()); + request.setFormatVersion(FORMAT_VERSION); + request.setLastSyncTimeInUTC(parameters.getLastSyncTimeInUTC()); + request.setPerformanceStatsDateRange(parameters.getPerformanceStatsDateRange()); + + return request; + } + + private FileUploadParameters createFileUploadParameters(EntityUploadParameters parameters) { + workingDirectory.mkdirs(); + + File tempFilePath = new File(getWorkingDirectory(), UUID.randomUUID() + ".csv"); + + BulkFileWriter writer = null; + + try { + writer = new BulkFileWriter(tempFilePath); + + for (BulkEntity entity : parameters.getEntities()) { + writer.writeEntity(entity); + } + } catch (IOException ex) { + throw new InternalException(ex); + } finally { + if (writer != null) { + try { + writer.close(); + } catch (IOException ex) { + throw new InternalException(ex); + } + } + } + + FileUploadParameters fileUploadParameters = new FileUploadParameters(); + + fileUploadParameters.setUploadFilePath(tempFilePath); + fileUploadParameters.setResponseMode(parameters.getResponseMode()); + fileUploadParameters.setResultFileDirectory(parameters.getResultFileDirectory()); + fileUploadParameters.setResultFileName(parameters.getResultFileName()); + fileUploadParameters.setOverwriteResultFile(parameters.getOverwriteResultFile()); + + return fileUploadParameters; + } + + /** + * Reserved for internal use. + */ + public HttpFileService getHttpFileService() { + return httpFileService; + } + + /** + * Reserved for internal use. + */ + public void setHttpFileService(HttpFileService httpFileService) { + this.httpFileService = httpFileService; + } + + /** + * Reserved for internal use. + */ + public ZipExtractor getZipExtractor() { + return zipExtractor; + } + + /** + * Reserved for internal use. + */ + public void setZipExtractor(ZipExtractor zipExtractor) { + this.zipExtractor = zipExtractor; + } + + /** + * Reserved for internal use. + */ + public BulkFileReaderFactory getBulkFileReaderFactory() { + return bulkFileReaderFactory; + } + + /** + * Reserved for internal use. + */ + public void setBulkFileReaderFactory(BulkFileReaderFactory bulkFileReaderFactory) { + this.bulkFileReaderFactory = bulkFileReaderFactory; + } + + /** + * Gets the directory for storing temporary files needed for some operations. + */ + public File getWorkingDirectory() { + return workingDirectory; + } + + /** + * Sets the directory for storing temporary files needed for some operations. + */ + public void setWorkingDirectory(File value) { + this.workingDirectory = value; + } + + /** + * Gets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public int getStatusPollIntervalInMilliseconds() { + return statusPollIntervalInMilliseconds; + } + + /** + * Sets the time interval in milliseconds between two status polling attempts. The default value is 1000 (1 second). + */ + public void setStatusPollIntervalInMilliseconds(int statusPollIntervalInMilliseconds) { + this.statusPollIntervalInMilliseconds = statusPollIntervalInMilliseconds; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadCouldNotBeCompletedException.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadCouldNotBeCompletedException.java new file mode 100644 index 0000000000..8edbeeac34 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadCouldNotBeCompletedException.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.bulk; + +import java.util.List; + +import com.microsoft.bingads.v10.bulk.OperationError; + +/** + * This exception is thrown when trying to download the result file for an operation that has completed with an error. + */ +public class BulkUploadCouldNotBeCompletedException extends RuntimeException { + + private final List errors; + + private final UploadStatus status; + + public BulkUploadCouldNotBeCompletedException(List errors, UploadStatus status) { + this.errors = errors; + + this.status = status; + } + + public BulkUploadCouldNotBeCompletedException(List errors, UploadStatus status, String message) { + super(message); + + this.errors = errors; + + this.status = status; + } + + public List getErrors() { + return errors; + } + + public UploadStatus getStatus() { + return status; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadOperation.java b/src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadOperation.java new file mode 100644 index 0000000000..55effa17c1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/BulkUploadOperation.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.v10.internal.bulk.UploadStatusProvider; + + +import java.util.List; + +/** + * Represents a bulk upload operation requested by a user. + * + *

+ * Example: {@link BulkServiceManager#submitUploadAsync} method returns an instance of this + * class. If for any reason you do not want to wait for the file to finish + * uploading, for example if your application quits unexpectedly or you have + * other tasks to process, you can use an instance of + * {@link BulkUploadOperation} to download the upload results file when it is + * available. + *

+ * + */ +public class BulkUploadOperation extends BulkOperation { + + /** + * Initializes a new instance of this class with the specified requestId and authorization data. + * + * @param requestId The identifier of an upload request that has previously been submitted. + * @param authorizationData Represents a user who intends to access the corresponding customer and account. + */ + public BulkUploadOperation(String requestId, AuthorizationData authorizationData, IBulkService service) { + this(requestId, authorizationData, service, null); + } + + protected BulkUploadOperation(String requestId, AuthorizationData authorizationData, IBulkService service, String trackingId) { + super(requestId, authorizationData, new UploadStatusProvider(requestId), trackingId); + } + + @Override + RuntimeException getOperationCouldNotBeCompletedException(List errors, UploadStatus status) { + return new BulkUploadCouldNotBeCompletedException(errors, status); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/DownloadParameters.java b/src/main/java/com/microsoft/bingads/v10/bulk/DownloadParameters.java new file mode 100644 index 0000000000..540f67470e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/DownloadParameters.java @@ -0,0 +1,203 @@ +package com.microsoft.bingads.v10.bulk; + +import java.io.File; +import java.util.Calendar; +import java.util.Collection; +import java.util.List; + +import com.microsoft.bingads.v10.bulk.DownloadFileType; + + +/** + * Describes the available parameters when performing a download, such as the type of entities and data scope that you want to download. + */ +public class DownloadParameters { + + private SubmitDownloadParameters submitDownloadParameters; + + SubmitDownloadParameters getSubmitDownloadParameters() { + return submitDownloadParameters; + } + + void setSubmitDownloadParameters(SubmitDownloadParameters submitParams) { + this.submitDownloadParameters = submitParams; + } + + private File resultFileDirectory; + private String resultFileName; + + /** + * Gets or sets a value indicating whether the local result file should be + * overwritten if it already exists. + */ + private boolean overwriteResultFile; + + public DownloadParameters() { + this.submitDownloadParameters = new SubmitDownloadParameters(); + } + + /** + * Gets the extension type of the downloaded file. For possible values, see + * DownloadFileType Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620273. + */ + public DownloadFileType getFileType() { + return this.submitDownloadParameters.getFileType(); + } + + /** + * Sets the extension type of the downloaded file. For possible values, see + * DownloadFileType Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620273. + */ + public void setFileType(DownloadFileType fileType) { + this.submitDownloadParameters.setFileType(fileType); + } + + /** + * Gets the scope or types of data to download. For possible values, see + * DataScope Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620271. + */ + public Collection getDataScope() { + return this.submitDownloadParameters.getDataScope(); + } + + /** + * Sets the scope or types of data to download. For possible values, see + * DataScope Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620271. + */ + public void setDataScope(Collection value) { + this.submitDownloadParameters.setDataScope(value); + } + + /** + * Gets the type of entities to download. For possible values, see + * BulkDownloadEntity Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620272. + */ + public Collection getEntities() { + return this.submitDownloadParameters.getEntities(); + } + + /** + * Sets the type of entities to download. For possible values, see + * BulkDownloadEntity Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620272. + */ + public void setEntities(Collection entities) { + submitDownloadParameters.setEntities(entities); + } + + /** + * Gets the Ids of the campaigns to download. You can specify a maximum of 1,000 campaigns. + * The campaigns that you specify must belong to the same account. + */ + public List getCampaignIds() { + return this.submitDownloadParameters.getCampaignIds(); + } + + /** + * Sets the Ids of the campaigns to download. You can specify a maximum of 1,000 campaigns. + * The campaigns that you specify must belong to the same account. + */ + public void setCampaignIds(List campaignIds) { + this.submitDownloadParameters.setCampaignIds(campaignIds); + } + + /** + * Gets the last time that you requested a download. The date and time is + * expressed in Coordinated Universal Time (UTC). Typically, you request a + * full download the first time you call the operation by setting this + * element to null. On all subsequent calls you set the last sync time to + * the time stamp of the previous download. The download file contains the + * time stamp of the download in the SyncTime column of the Account record. + * Use the time stamp to set LastSyncTimeInUTC the next time that you + * request a download. If you specify the last sync time, only those + * entities that have changed (been updated or deleted) since the specified + * date and time will be downloaded. However, if the campaign data has not + * been previously downloaded, the operation performs a full download. + */ + public Calendar getLastSyncTimeInUTC() { + return this.submitDownloadParameters.getLastSyncTimeInUTC(); + } + + /** + * Sets the last time that you requested a download. The date and time is + * expressed in Coordinated Universal Time (UTC). Typically, you request a + * full download the first time you call the operation by setting this + * element to null. On all subsequent calls you set the last sync time to + * the time stamp of the previous download. The download file contains the + * time stamp of the download in the SyncTime column of the Account record. + * Use the time stamp to set LastSyncTimeInUTC the next time that you + * request a download. If you specify the last sync time, only those + * entities that have changed (been updated or deleted) since the specified + * date and time will be downloaded. However, if the campaign data has not + * been previously downloaded, the operation performs a full download. + */ + public void setLastSyncTimeInUTC(Calendar lastSyncTimeInUTC) { + this.submitDownloadParameters.setLastSyncTimeInUTC(lastSyncTimeInUTC); + } + + /** + * Gets the date range values for the requested performance data in a bulk + * download. For possible values, see PerformanceStatsDateRange Data Object + * at http://go.microsoft.com/fwlink/?LinkId=620274. + */ + public PerformanceStatsDateRange getPerformanceStatsDateRange() { + return this.submitDownloadParameters.getPerformanceStatsDateRange(); + } + + /** + * Sets the date range values for the requested performance data in a bulk + * download. For possible values, see PerformanceStatsDateRange Data Object + * at http://go.microsoft.com/fwlink/?LinkId=620274. + */ + public void setPerformanceStatsDateRange( + PerformanceStatsDateRange performanceStatsDateRange) { + this.submitDownloadParameters.setPerformanceStatsDateRange(performanceStatsDateRange); + } + + /** + * Gets the directory where the file will be downloaded. + */ + public File getResultFileDirectory() { + return resultFileDirectory; + } + + /** + * Sets the directory where the file will be downloaded. + */ + public void setResultFileDirectory(File resultFileDirectory) { + this.resultFileDirectory = resultFileDirectory; + } + + /** + * Gets the name of the local download result file. + */ + public String getResultFileName() { + return resultFileName; + } + + /** + * Sets the name of the local download result file. + */ + public void setResultFileName(String resultFileName) { + this.resultFileName = resultFileName; + } + + /** + * Gets whether the local result file should be overwritten if it already exists. + */ + public boolean getOverwriteResultFile() { + return overwriteResultFile; + } + + /** + * Sets whether the local result file should be overwritten if it already exists. + */ + public void setOverwriteResultFile(boolean overwriteResultFile) { + this.overwriteResultFile = overwriteResultFile; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/DownloadStatus.java b/src/main/java/com/microsoft/bingads/v10/bulk/DownloadStatus.java new file mode 100644 index 0000000000..d6214c34f0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/DownloadStatus.java @@ -0,0 +1,32 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * Defines the possible status values of the bulk download. + */ +public enum DownloadStatus { + + COMPLETED("Completed"), + IN_PROGRESS("InProgress"), + FAILED("Failed"), + FAILED_FULL_SYNC_REQUIRED("FailedFullSyncRequired"); + + private final String value; + + DownloadStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DownloadStatus fromValue(String v) { + for (DownloadStatus c : DownloadStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/EntityReadException.java b/src/main/java/com/microsoft/bingads/v10/bulk/EntityReadException.java new file mode 100644 index 0000000000..ce51f29f66 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/EntityReadException.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * This exception is thrown when attempting to read entities from a bulk file using BulkFileReader.readEntities. + */ +public class EntityReadException extends RuntimeException { + + private final String columnValues; + + /** + * Initializes a new instance of the EntityReadException class. + * + * @param message the error message + * @param columnValues the column values + * @param cause the cause + */ + public EntityReadException(String message, String columnValues, Throwable cause) { + super(message, cause); + + this.columnValues = columnValues; + } + + /** + * Gets the comma separated column values of the record that caused the exception. + */ + public String getColumnValues() { + return columnValues; + } + + @Override + public String toString() { + return String.format("Column values are %s", columnValues); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/EntityUploadParameters.java b/src/main/java/com/microsoft/bingads/v10/bulk/EntityUploadParameters.java new file mode 100644 index 0000000000..86c61ac9a3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/EntityUploadParameters.java @@ -0,0 +1,99 @@ +package com.microsoft.bingads.v10.bulk; + +import com.microsoft.bingads.v10.bulk.ResponseMode; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import java.io.File; + +/** + * Describes the available parameters when submitting entities for upload, such as the entities that you want to upload. + */ +public class EntityUploadParameters { + + private Iterable entities; + + private ResponseMode responseMode; + + private File resultFileDirectory; + + private String resultFileName; + + private boolean overwriteResultFile; + + /** + * Initializes a new instance of this class. + */ + public EntityUploadParameters() { + responseMode = ResponseMode.ERRORS_AND_RESULTS; + } + + /** + * Gets whether the bulk service should return success and error results or only error results. + */ + public ResponseMode getResponseMode() { + return responseMode; + } + + /** + * Sets whether the bulk service should return success and error results or only error results. + */ + public void setResponseMode(ResponseMode responseMode) { + this.responseMode = responseMode; + } + + /** + * Gets the list of bulk entities that you want to upload. + */ + public Iterable getEntities() { + return this.entities; + } + + /** + * Sets the list of bulk entities that you want to upload. + */ + public void setEntities(Iterable entities) { + this.entities = entities; + } + + /** + * Gets the directory where the result file will be downloaded. + */ + public File getResultFileDirectory() { + return resultFileDirectory; + } + + /** + * Sets the directory where the result file will be downloaded. + */ + public void setResultFileDirectory(File resultFileDirectory) { + this.resultFileDirectory = resultFileDirectory; + } + + /** + * Gets the name of the local result file. + */ + public String getResultFileName() { + return resultFileName; + } + + /** + * Sets the name of the local result file. + */ + public void setResultFileName(String resultFileName) { + this.resultFileName = resultFileName; + } + + /** + * Gets whether the local result file should be overwritten if it already exists. + */ + public boolean getOverwriteResultFile() { + return overwriteResultFile; + } + + /** + * Sets whether the local result file should be overwritten if it already exists. + */ + public void setOverwriteResultFile(boolean overwriteResultFile) { + this.overwriteResultFile = overwriteResultFile; + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/EntityWriteException.java b/src/main/java/com/microsoft/bingads/v10/bulk/EntityWriteException.java new file mode 100644 index 0000000000..4efca62bc7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/EntityWriteException.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * This exception is thrown when attempting to write entities to a bulk file using BulkFileWriter.writeEntity. + */ +public class EntityWriteException extends RuntimeException { + + /** + * Initializes a new instance of the EntityWriteException class. + * + * @param message the error message + * @param cause the cause + */ + public EntityWriteException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/FileUploadParameters.java b/src/main/java/com/microsoft/bingads/v10/bulk/FileUploadParameters.java new file mode 100644 index 0000000000..1780e3bc59 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/FileUploadParameters.java @@ -0,0 +1,109 @@ +package com.microsoft.bingads.v10.bulk; + +import java.io.File; + + +/** + * Describes the available parameters when submitting a file for upload, such as the path of the upload result file. + */ +public class FileUploadParameters { + + private final SubmitUploadParameters submitUploadParameters = new SubmitUploadParameters(); + + private File resultFileDirectory; + + private String resultFileName; + + private boolean overwriteResultFile; + + /** + * Reserved for internal use. + */ + SubmitUploadParameters getSubmitUploadParameters() { + return submitUploadParameters; + } + + /** + * Gets the directory where the file will be downloaded. + */ + public File getResultFileDirectory() { + return resultFileDirectory; + } + + /** + * Sets the directory where the file will be downloaded. + */ + public void setResultFileDirectory(File resultFileDirectory) { + this.resultFileDirectory = resultFileDirectory; + } + + /** + * Gets the name of the local result file. + */ + public String getResultFileName() { + return resultFileName; + } + + /** + * Sets the name of the local result file. + */ + public void setResultFileName(String resultFileName) { + this.resultFileName = resultFileName; + } + + /** + * Gets whether the bulk service should return success and error results or only error results. + */ + public ResponseMode getResponseMode() { + return submitUploadParameters.getResponseMode(); + } + + /** + * Sets whether the bulk service should return success and error results or only error results. + */ + public void setResponseMode(ResponseMode value) { + submitUploadParameters.setResponseMode(value); + } + + /** + * Gets the fully qualified local path of the upload file. + */ + public File getUploadFilePath() { + return submitUploadParameters.getUploadFilePath(); + } + + /** + * Sets the fully qualified local path of the upload file. + */ + public void setUploadFilePath(File value) { + submitUploadParameters.setUploadFilePath(value); + } + + /** + * Get whether the upload file should be compressed before uploading. The default value is True. + */ + public boolean getCompressUploadFile() { + return submitUploadParameters.getCompressUploadFile(); + } + + /** + * Set whether the upload file should be compressed before uploading. The default value is True. + */ + public void setCompressUploadFile(boolean compressUploadFile) { + submitUploadParameters.setCompressUploadFile(compressUploadFile); + } + + /** + * Gets whether the local result file should be overwritten if it already exists. + */ + public boolean getOverwriteResultFile() { + return overwriteResultFile; + } + + /** + * Gets whether the local result file should be overwritten if it already exists. + */ + public void setOverwriteResultFile(boolean overwriteResultFile) { + this.overwriteResultFile = overwriteResultFile; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/Progress.java b/src/main/java/com/microsoft/bingads/v10/bulk/Progress.java new file mode 100644 index 0000000000..b392ee4453 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/Progress.java @@ -0,0 +1,16 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * Allows to track progress of a long running operation. + * + * @param the type of report value + */ +public interface Progress { + + /** + * This method will be called when a new progress value is available. + * + * @param value the value to be reported + */ + public void report(T value); +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/ResultFileType.java b/src/main/java/com/microsoft/bingads/v10/bulk/ResultFileType.java new file mode 100644 index 0000000000..558eb330bd --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/ResultFileType.java @@ -0,0 +1,23 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * Defines the possible types of result files. + */ +public enum ResultFileType { + + /** + * The result file represents the full sync of entities that were specified + * in the download request. + */ + FULL_DOWNLOAD, + /** + * The result file represents the partial sync of entities that were + * specified in the download request. + */ + PARTIAL_DOWNLOAD, + /** + * The result file represents the entities specified in the upload request, + * or the corresponding errors, or both entities and errors. + */ + UPLOAD; +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/SubmitDownloadParameters.java b/src/main/java/com/microsoft/bingads/v10/bulk/SubmitDownloadParameters.java new file mode 100644 index 0000000000..82a5be5397 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/SubmitDownloadParameters.java @@ -0,0 +1,149 @@ +package com.microsoft.bingads.v10.bulk; + +import java.util.Calendar; +import java.util.Collection; +import java.util.List; + +import com.microsoft.bingads.v10.bulk.BulkDownloadEntity; +import com.microsoft.bingads.v10.bulk.DataScope; +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.PerformanceStatsDateRange; + +/** + * Describes the service request parameters such as the type of entities and data scope that you want to download. + */ +public class SubmitDownloadParameters { + + private Collection dataScope; + + private Collection entities; + + private DownloadFileType fileType; + + private List campaignIds; + + private Calendar lastSyncTimeInUTC; + + private PerformanceStatsDateRange performanceStatsDateRange; + + //Deleted in v10 + //private String locationTargetVersion; + + /** + * Gets the scope or types of data to download. For possible values, see + * DataScope Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620271 + */ + public Collection getDataScope() { + return dataScope; + } + + public void setDataScope(Collection value) { + dataScope = value; + } + + /** + * Gets the type of entities to download. For possible values, see + * BulkDownloadEntity Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620272 + */ + public void setEntities(Collection value) { + entities = value; + } + + /** + * Gets the campaigns to download. You can specify a maximum of 1,000 campaigns. + * The campaigns that you specify must belong to the same account. + */ + public List getCampaignIds() { + return this.campaignIds; + } + + /** + * Sets the campaigns to download. You can specify a maximum of 1,000 campaigns. + * The campaigns that you specify must belong to the same account. + */ + public void setCampaignIds(List campaignIds) { + this.campaignIds = campaignIds; + } + + /** + * Gets the extension type of the downloaded file. For possible values, see + * DownloadFileType Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620273 + */ + public DownloadFileType getFileType() { + return fileType; + } + + /** + * Sets the extension type of the downloaded file. For possible values, see + * DownloadFileType Value Set at + * http://go.microsoft.com/fwlink/?LinkId=620273 + */ + public void setFileType(DownloadFileType fileType) { + this.fileType = fileType; + } + + /** + * Gets the last time that you requested a download. The date and time is + * expressed in Coordinated Universal Time (UTC). Typically, you request a + * full download the first time you call the operation by setting this + * element to null. On all subsequent calls you set the last sync time to + * the time stamp of the previous download. The download file contains the + * time stamp of the download in the SyncTime column of the Account record. + * Use the time stamp to set LastSyncTimeInUTC the next time that you + * request a download. If you specify the last sync time, only those + * entities that have changed (been updated or deleted) since the specified + * date and time will be downloaded. However, if the campaign data has not + * been previously downloaded, the operation performs a full download. + */ + public Calendar getLastSyncTimeInUTC() { + return lastSyncTimeInUTC; + } + + /** + * Sets the last time that you requested a download. The date and time is + * expressed in Coordinated Universal Time (UTC). Typically, you request a + * full download the first time you call the operation by setting this + * element to null. On all subsequent calls you set the last sync time to + * the time stamp of the previous download. The download file contains the + * time stamp of the download in the SyncTime column of the Account record. + * Use the time stamp to set LastSyncTimeInUTC the next time that you + * request a download. If you specify the last sync time, only those + * entities that have changed (been updated or deleted) since the specified + * date and time will be downloaded. However, if the campaign data has not + * been previously downloaded, the operation performs a full download. + */ + public void setLastSyncTimeInUTC(Calendar lastSyncTimeInUTC) { + this.lastSyncTimeInUTC = lastSyncTimeInUTC; + } + + /** + * Gets the date range values for the requested performance data in a bulk + * download. For possible values, see PerformanceStatsDateRange Data Object + * at http://go.microsoft.com/fwlink/?LinkId=620274 + */ + public PerformanceStatsDateRange getPerformanceStatsDateRange() { + return performanceStatsDateRange; + } + + /** + * Sets the date range values for the requested performance data in a bulk + * download. For possible values, see PerformanceStatsDateRange Data Object + * at http://go.microsoft.com/fwlink/?LinkId=620274 + */ + public void setPerformanceStatsDateRange( + PerformanceStatsDateRange performanceStatsDateRange) { + this.performanceStatsDateRange = performanceStatsDateRange; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/SubmitUploadParameters.java b/src/main/java/com/microsoft/bingads/v10/bulk/SubmitUploadParameters.java new file mode 100644 index 0000000000..1e1eda6e5d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/SubmitUploadParameters.java @@ -0,0 +1,68 @@ +package com.microsoft.bingads.v10.bulk; + +import java.io.File; + +import com.microsoft.bingads.v10.bulk.ResponseMode; + +/** + * Describes the minimum available parameters when submitting a file for upload, such as the path of the upload file. + */ +public class SubmitUploadParameters { + + private ResponseMode responseMode; + + private File uploadFilePath; + + private boolean compressUploadFile; + + /** + * Initializes a new instance of the class + */ + protected SubmitUploadParameters() { + responseMode = ResponseMode.ERRORS_AND_RESULTS; + + compressUploadFile = true; + } + + /** + * Gets whether the bulk service should return upload errors with the corresponding entity data. + */ + public ResponseMode getResponseMode() { + return responseMode; + } + + /** + * Sets whether the bulk service should return upload errors with the corresponding entity data. + */ + public void setResponseMode(ResponseMode responseMode) { + this.responseMode = responseMode; + } + + /** + * Gets the fully qualified local path of the upload file. + */ + public File getUploadFilePath() { + return uploadFilePath; + } + + /** + * Sets the fully qualified local path of the upload file. + */ + public void setUploadFilePath(File uploadFilePath) { + this.uploadFilePath = uploadFilePath; + } + + /** + * Gets whether the upload file should be compressed before uploading. The default value is True. + */ + public boolean getCompressUploadFile() { + return compressUploadFile; + } + + /** + * Sets whether the upload file should be compressed before uploading. The default value is True. + */ + public void setCompressUploadFile(boolean compressUploadFile) { + this.compressUploadFile = compressUploadFile; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/UploadStatus.java b/src/main/java/com/microsoft/bingads/v10/bulk/UploadStatus.java new file mode 100644 index 0000000000..1f62f73633 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/UploadStatus.java @@ -0,0 +1,65 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * Defines the possible status values of the bulk upload. + */ +public enum UploadStatus { + + /** + * The upload completed with one or more errors. + */ + COMPLETED("Completed"), + /** + * The upload completed with one or more errors. While the overall upload + * was successful, one or more add or update errors could have occurred. As + * a best practice you should request error information via the + * {@link ResponseMode} element when calling the upload service and check + * the result file for any errors. + */ + COMPLETED_WITH_ERRORS("CompletedWithErrors"), + /** + * The entire upload failed due to an unexpected error. You may submit a new + * upload with fewer entities or try again to submit the same upload later. + */ + FAILED("Failed"), + /** + * The upload request has been received and is in the queue for processing. + */ + FILE_UPLOADED("FileUploaded"), + /** + * The upload file has been accepted and the upload is in progress. + */ + IN_PROGRESS("InProgress"), + /** + * The upload file has not been received for the corresponding RequestId. + */ + PENDING_FILE_UPLOAD("PendingFileUpload"), + /** + * Reserved for future use. + */ + ABORTED("Unknown"), + /** + * Reserved for future use. + */ + EXPIRED("Unknown"); + + private final String value; + + UploadStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static UploadStatus fromValue(String v) { + for (UploadStatus c : UploadStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BidSuggestionData.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BidSuggestionData.java new file mode 100644 index 0000000000..c0c14bdcf3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BidSuggestionData.java @@ -0,0 +1,94 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.SubmitDownloadParameters; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; + +/** + * The best position, main line, and first page bid suggestion data corresponding to one keyword. + * If the requested {@link SubmitDownloadParameters#getDataScope} includes BidSuggestionsData, + * the download will include bulk records corresponding to the properties of this class. + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + */ +public class BidSuggestionData { + + private BulkKeywordBidSuggestion bestPosition; + + private BulkKeywordBidSuggestion mainLine; + + private BulkKeywordBidSuggestion firstPage; + + /** + * Gets the best position bid. + * + *

+ * Represents a best position bid suggestion that is derived from {@link BulkObject} and can only be read from a bulk file by the + * {@link BulkFileReader} when reading the corresponding {@link BulkKeyword}. + * An instance of this class can represent a single best position bid, and thus one record in the bulk file. + * Properties of this class and of classes that it is derived from, correspond to fields of the Keyword Best Position Bid record in a bulk file. + *

+ * + *

+ * For more information, see Keyword Best Position Bid at + * http://go.microsoft.com/fwlink/?LinkID=620266. + *

+ */ + public BulkKeywordBidSuggestion getBestPosition() { + return bestPosition; + } + + void setBestPosition(BulkKeywordBidSuggestion bestPosition) { + this.bestPosition = bestPosition; + } + + /** + * Gets the main line bid. + * + *

+ * Represents a main line bid suggestion that is derived from {@link BulkObject} and can only be read from a bulk file by the + * {@link BulkFileReader} when reading the corresponding {@link BulkKeyword}. + * An instance of this class can represent a single main line bid, and thus one record in the bulk file. + * Properties of this class and of classes that it is derived from, correspond to fields of the Keyword Main Line Bid record in a bulk file. + *

+ * + *

+ * For more information, see Keyword Main Line Bid at + * http://go.microsoft.com/fwlink/?LinkID=620267. + *

+ */ + public BulkKeywordBidSuggestion getMainLine() { + return mainLine; + } + + void setMainLine(BulkKeywordBidSuggestion mainLine) { + this.mainLine = mainLine; + } + + /** + * Gets the first page bid. + * + *

+ * Represents a first page bid suggestion that is derived from {@link BulkObject} and can only be read from a bulk file by the + * {@link BulkFileReader} when reading the corresponding {@link BulkKeyword}. + * An instance of this class can represent a single first page bid, and thus one record in the bulk file. + * Properties of this class and of classes that it is derived from, correspond to fields of the Keyword First Page Bid record in a bulk file. + *

+ * + *

+ * For more information, see Keyword First Page Bid at + * http://go.microsoft.com/fwlink/?LinkID=620268. + *

+ */ + public BulkKeywordBidSuggestion getFirstPage() { + return firstPage; + } + + void setFirstPage(BulkKeywordBidSuggestion firstPage) { + this.firstPage = firstPage; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAccount.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAccount.java new file mode 100644 index 0000000000..14ea35debf --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAccount.java @@ -0,0 +1,200 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.internal.UncheckedParseException; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.GregorianCalendar; +import java.util.List; +import java.util.TimeZone; + +/** + * Represents an account that can be read or written in a bulk file. + * + *

+ * Properties of this class and of classes that it is derived from, correspond to fields of the Account record in a bulk file. + * For more information, see Account at + * http://go.microsoft.com/fwlink/?LinkID=620233. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAccount extends SingleRecordBulkEntity { + + private long id; + + private long customerId; + + private Calendar syncTime; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAccount t) { + return t.getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccount c) { + c.setId(Long.parseLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkAccount t) { + return t.getCustomerId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccount c) { + c.setCustomerId(Long.parseLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SyncTime, + new Function() { + @Override + public String apply(BulkAccount t) { + if (t.getSyncTime() == null) { + return null; + } + + SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + return format.format(t.getSyncTime().getTime()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAccount c) { + c.setSyncTime(StringExtensions.parseOptional(v, new Function() { + @Override + public Calendar apply(String t) { + Calendar c = new GregorianCalendar(); + try { + SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + c.setTime(format.parse(t)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + + return c; + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + /** + * Gets the identifier of the account. + * + *

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

+ */ + public long getId() { + return id; + } + + /** + * Sets the identifier of the account. + * + *

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

+ */ + public void setId(long id) { + this.id = id; + } + + /** + * Gets the identifier of the customer that contains the account. + * + *

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

+ */ + public long getCustomerId() { + return customerId; + } + + /** + * Sets the identifier of the customer that contains the account. + * + *

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

+ */ + public void setCustomerId(long customerId) { + this.customerId = customerId; + } + + /** + * Gets the date and time that you last synced your account using the bulk service. + * + *

+ * You should keep track of this value in UTC time. + * Corresponds to the 'Sync Time' field in the bulk file. + *

+ */ + public Calendar getSyncTime() { + return syncTime; + } + + /** + * Sets the date and time that you last synced your account using the bulk service. + * + *

+ * You should keep track of this value in UTC time. + * Corresponds to the 'Sync Time' field in the bulk file. + *

+ */ + public void setSyncTime(Calendar syncTime) { + this.syncTime = syncTime; + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAd.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAd.java new file mode 100644 index 0000000000..96d6bfa50d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAd.java @@ -0,0 +1,360 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.campaignmanagement.Ad; +import com.microsoft.bingads.v10.campaignmanagement.AdEditorialStatus; +import com.microsoft.bingads.v10.campaignmanagement.AdStatus; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.TextAd; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk ad classes. + * + * @param the type of ad from the {@link com.microsoft.bingads.campaignmanagement} namespace, for example + * {@link TextAd} object. + * + * @see BulkMobileAd + * @see BulkProductAd + * @see BulkTextAd + */ +class BulkAd extends SingleRecordBulkEntity { + + private Long adGroupId; + + private String campaignName; + + private String adGroupName; + + protected T ad; + + private PerformanceData performanceData; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkAd c) { + return c.getAd().getStatus() != null ? c.getAd().getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.getAd().setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public AdStatus apply(String value) { + return AdStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAd c) { + return c.getAd().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.getAd().setId(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(BulkAd c) { + return c.getAdGroupId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.setAdGroupId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkAd c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.setCampaignName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AdGroup, + new Function() { + @Override + public String apply(BulkAd c) { + return c.getAdGroupName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.setAdGroupName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EditorialStatus, + new Function() { + @Override + public String apply(BulkAd t) { + return t.getAd().getEditorialStatus() != null ? t.getAd().getEditorialStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.getAd().setEditorialStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public AdEditorialStatus apply(String value) { + return AdEditorialStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DevicePreference, + new Function() { + @Override + public String apply(BulkAd c) { + return StringExtensions.toDevicePreferenceBulkString(c.getAd().getDevicePreference()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.getAd().setDevicePreference(StringExtensions.parseDevicePreference(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FinalUrl, + new Function() { + @Override + public String apply(BulkAd c) { + return StringExtensions.writeUrls("; ", c.getAd().getFinalUrls()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + c.getAd().setFinalUrls(urls); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FinalMobileUrl, + new Function() { + @Override + public String apply(BulkAd c) { + return StringExtensions.writeUrls("; ", c.getAd().getFinalMobileUrls()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + c.getAd().setFinalMobileUrls(urls); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.TrackingTemplate, + new Function() { + @Override + public String apply(BulkAd c) { + return StringExtensions.toOptionalBulkString(c.getAd().getTrackingUrlTemplate()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + c.getAd().setTrackingUrlTemplate(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CustomParameter, + new Function() { + @Override + public String apply(BulkAd c) { + return StringExtensions.toCustomParaBulkString(c.getAd().getUrlCustomParameters()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAd c) { + try { + c.getAd().setUrlCustomParameters(StringExtensions.parseCustomParameters(v)); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + ; + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + + if (!excludeReadonlyData) { + PerformanceData.writeToRowValuesIfNotNull(performanceData, values); + } + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + performanceData = PerformanceData.readFromRowValuesOrNull(values); + } + + /** + * Gets the identifier of the ad group that contains the ad. + * + *

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

+ */ + public Long getAdGroupId() { + return adGroupId; + } + + /** + * Gets the name of the campaign that contains the ad. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return campaignName; + } + + /** + * Gets the name of the ad group that contains the ad. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return adGroupName; + } + + /** + * Gets the ad from the {@link com.microsoft.bingads.campaignmanagement} namespace, + */ + public T getAd() { + return ad; + } + + /** + * Gets the historical performance data for the ad. + */ + public PerformanceData getPerformanceData() { + return performanceData; + } + + /** + * Sets the identifier of the ad group that contains the ad. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + this.adGroupId = adGroupId; + } + + /** + * Sets the ad from the {@link com.microsoft.bingads.campaignmanagement} namespace, + */ + public void setAd(T ad) { + this.ad = ad; + } + + /** + * Sets the name of the campaign that contains the ad. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * Sets the name of the ad group that contains the ad. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + this.adGroupName = adGroupName; + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtension.java new file mode 100644 index 0000000000..a9bd64a1da --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtension.java @@ -0,0 +1,169 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.campaignmanagement.AdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.campaignmanagement.CallAdExtension; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This base class provides properties that are shared by all bulk ad extension classes. + * + * @param the type of ad extension from the {@link com.microsoft.bingads.campaignmanagement} namespace, + * for example a {@link CallAdExtension} object. + * + * @see BulkCallAdExtension + * @see BulkImageAdExtension + * @see BulkLocationAdExtension + * @see BulkProductAdExtension + * @see BulkSiteLinkAdExtension + */ +class BulkAdExtension extends SingleRecordBulkEntity { + + private Long accountId; + + /** + * Gets the ad extension's parent account identifier. + * + *

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

+ */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the ad extension's parent account identifier. + * + *

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

+ */ + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + /** + * The type of ad extension from the com.microsoft.bing_ads.api.client.CampaignManagement namespace, for example a {@link CallAdExtension} object. + */ + private T adExtension; + + protected T getAdExtension() { + return adExtension; + } + + protected void setAdExtension(T adExtension) { + this.adExtension = adExtension; + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkAdExtension c) { + return StringExtensions.toAdExtensionStatusBulkString(c.getAdExtension().getStatus()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtension c) { + c.getAdExtension().setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public AdExtensionStatus apply(String value) { + return AdExtensionStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAdExtension c) { + return c.getAdExtension().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtension c) { + c.getAdExtension().setId(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(BulkAdExtension c) { + return c.getAccountId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtension c) { + c.setAccountId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Version, + new Function() { + @Override + public Integer apply(BulkAdExtension t) { + return t.getAdExtension().getVersion(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtension c) { + c.getAdExtension().setVersion(StringExtensions.parseOptional(v, new Function() { + @Override + public Integer apply(String value) { + return Integer.parseInt(value); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtensionAssociation.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtensionAssociation.java new file mode 100644 index 0000000000..d6483743ab --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdExtensionAssociation.java @@ -0,0 +1,212 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionEditorialStatus; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionIdToEntityIdAssociation; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Reserved for internal use. This abstract class provides properties that are shared by all bulk ad extension association classes. + * + *

+ * For more information, see Bulk File Schema at + * http://go.microsoft.com/fwlink/?LinkID=620269. + *

+ */ +public abstract class BulkAdExtensionAssociation extends SingleRecordBulkEntity { + + private Status status; + + private AdExtensionIdToEntityIdAssociation adExtensionIdToEntityIdAssociation; + + private PerformanceData performanceData; + + private AdExtensionEditorialStatus editorialStatus; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkAdExtensionAssociation c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionAssociation 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(BulkAdExtensionAssociation c) { + return c.getAdExtensionIdToEntityIdAssociation().getAdExtensionId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionAssociation c) { + c.getAdExtensionIdToEntityIdAssociation().setAdExtensionId(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(BulkAdExtensionAssociation c) { + return c.getAdExtensionIdToEntityIdAssociation().getEntityId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionAssociation c) { + c.getAdExtensionIdToEntityIdAssociation().setEntityId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EditorialStatus, + new Function() { + @Override + public String apply(BulkAdExtensionAssociation t) { + return t.getEditorialStatus() != null ? t.getEditorialStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionAssociation c) { + c.setEditorialStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public AdExtensionEditorialStatus apply(String value) { + return AdExtensionEditorialStatus.fromValue(value); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getAdExtensionIdToEntityIdAssociation(), "AdExtensionIdToEntityIdAssociation"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + + if (!excludeReadonlyData) { + PerformanceData.writeToRowValuesIfNotNull(performanceData, values); + } + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + setAdExtensionIdToEntityIdAssociation(new AdExtensionIdToEntityIdAssociation()); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + performanceData = PerformanceData.readFromRowValuesOrNull(values); + } + + /** + * Gets the status of the ad extension association. + * + *

+ * The value is Active if the EntityId and AdExtensionId are associated. + * The value is Deleted if the association is removed. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public Status getStatus() { + return status; + } + + /** + * Sets the status of the ad extension association. + * + *

+ * The value is Active if the EntityId and AdExtensionId are associated. + * The value is Deleted if the association is removed. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public void setStatus(Status status) { + this.status = status; + } + + /** + * Gets the editorial status of the ad extension and associated entity. + * + *

+ * For more information, see AdExtensionEditorialStatus at + * http://go.microsoft.com/fwlink/?LinkId=620284. + * + * Corresponds to the 'Editorial Status' field in the bulk file. + *

+ */ + public AdExtensionEditorialStatus getEditorialStatus() { + return editorialStatus; + } + + /** + * Sets the editorial status of the ad extension and associated entity. + * + *

+ * For more information, see AdExtensionEditorialStatus at + * http://go.microsoft.com/fwlink/?LinkId=620284. + * + * Corresponds to the 'Editorial Status' field in the bulk file. + *

+ */ + void setEditorialStatus(AdExtensionEditorialStatus editorialStatus) { + this.editorialStatus = editorialStatus; + } + + /** + * Gets an association relationship between an ad extension and a supported entity, for example a campaign or ad group. + */ + public AdExtensionIdToEntityIdAssociation getAdExtensionIdToEntityIdAssociation() { + return adExtensionIdToEntityIdAssociation; + } + + /** + * Sets an association relationship between an ad extension and a supported entity, for example a campaign or ad group. + */ + public void setAdExtensionIdToEntityIdAssociation(AdExtensionIdToEntityIdAssociation adExtensionIdToEntityIdAssociation) { + this.adExtensionIdToEntityIdAssociation = adExtensionIdToEntityIdAssociation; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroup.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroup.java new file mode 100644 index 0000000000..b569c760f2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroup.java @@ -0,0 +1,506 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.internal.UncheckedParseException; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.text.ParseException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents an Ad Group. + *

+ *

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

+ *

+ *

+ * For more information, see Ad Group at + * http://go.microsoft.com/fwlink/?LinkID=620252. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroup extends SingleRecordBulkEntity { + + private Long campaignId; + + private String campaignName; + + private AdGroup adGroup; + + private QualityScoreData qualityScoreData; + + private PerformanceData performanceData; + + private boolean isExpired; + + private static final List> MAPPINGS; + + private static final BiConsumer orSearchAdDistribution = new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + if (StringTable.On.equals(v)) { + c.getAdGroup().getAdDistribution().add(AdDistribution.SEARCH); + } + } + }; + + private static final BiConsumer orContentAdDistribution = new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + if (StringTable.On.equals(v)) { + c.getAdGroup().getAdDistribution().add(AdDistribution.CONTENT); + } + } + }; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAdGroup c) { + return c.getAdGroup().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setId(StringExtensions.nullOrLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkAdGroup c) { + if (c.getIsExpired()) { + return "Expired"; + } + + return c.getAdGroup().getStatus() != null ? c.getAdGroup().getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + if (v.equals("Expired")) { + c.getAdGroup().setStatus(AdGroupStatus.EXPIRED); + + c.setIsExpired(true); + } else { + c.getAdGroup().setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public AdGroupStatus apply(String value) { + return AdGroupStatus.fromValue(value); + } + })); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkAdGroup c) { + return c.getCampaignId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.setCampaignId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.setCampaignName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AdGroup, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getAdGroup().getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.StartDate, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.toDateBulkString(c.getAdGroup().getStartDate()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + try { + c.getAdGroup().setStartDate(StringExtensions.parseDate(v)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EndDate, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.toDateBulkString(c.getAdGroup().getEndDate()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + try { + c.getAdGroup().setEndDate(StringExtensions.parseDate(v)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.NetworkDistribution, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getAdGroup().getNetwork() != null ? c.getAdGroup().getNetwork().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setNetwork(StringExtensions.parseOptional(v, new Function() { + @Override + public Network apply(String value) { + return Network.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.PricingModel, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getAdGroup().getPricingModel() != null ? c.getAdGroup().getPricingModel().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setPricingModel(StringExtensions.parseOptionalUpperCase(v, new Function() { + @Override + public PricingModel apply(String value) { + return PricingModel.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AdRotation, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.toAdRotationBulkString(c.getAdGroup().getAdRotation()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setAdRotation(StringExtensions.parseAdRotation(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SearchNetwork, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.isOnOrOff(c.getAdGroup().getAdDistribution(), AdDistribution.SEARCH); + } + }, + orSearchAdDistribution + )); + + m.add(new SimpleBulkMapping(StringTable.ContentNetwork, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.isOnOrOff(c.getAdGroup().getAdDistribution(), AdDistribution.CONTENT); + } + }, + orContentAdDistribution + )); + + m.add(new SimpleBulkMapping(StringTable.SearchBid, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.toAdGroupBidBulkString(c.getAdGroup().getSearchBid()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setSearchBid(StringExtensions.parseAdGroupBid(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ContentBid, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.toAdGroupBidBulkString(c.getAdGroup().getContentMatchBid()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setContentMatchBid(StringExtensions.parseAdGroupBid(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Language, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getAdGroup().getLanguage(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setLanguage(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkAdGroup c) { + return c.getAdGroup().getNativeBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setNativeBidAdjustment(StringExtensions.parseOptionalInteger(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.TrackingTemplate, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.toOptionalBulkString(c.getAdGroup().getTrackingUrlTemplate()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + c.getAdGroup().setTrackingUrlTemplate(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CustomParameter, + new Function() { + @Override + public String apply(BulkAdGroup c) { + return StringExtensions.toCustomParaBulkString(c.getAdGroup().getUrlCustomParameters()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroup c) { + try { + c.getAdGroup().setUrlCustomParameters(StringExtensions.parseCustomParameters(v)); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setAdGroup(new AdGroup()); + + getAdGroup().setAdDistribution(new ArrayList(2)); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + qualityScoreData = QualityScoreData.readFromRowValuesOrNull(values); + performanceData = PerformanceData.readFromRowValuesOrNull(values); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getAdGroup(), "AdGroup"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + + if (!excludeReadonlyData) { + QualityScoreData.writeToRowValuesIfNotNull(qualityScoreData, values); + + PerformanceData.writeToRowValuesIfNotNull(performanceData, values); + } + } + + /** + * Gets the identifier of the campaign that contains the ad group. + *

+ *

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

+ */ + public Long getCampaignId() { + return campaignId; + } + + /** + * Sets the identifier of the campaign that contains the ad group. + *

+ *

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

+ */ + public void setCampaignId(Long campaignId) { + this.campaignId = campaignId; + } + + /** + * Gets the name of the campaign that contains the ad group. + *

+ *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return campaignName; + } + + /** + * Sets the name of the campaign that contains the ad group. + *

+ *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * Gets the AdGroup Data Object of the Campaign Management Service. + *

+ *

+ * A subset of AdGroup properties are available in the Ad Group record. + * For more information, see Ad Group at + * http://go.microsoft.com/fwlink/?LinkID=620252. + *

+ */ + public AdGroup getAdGroup() { + return adGroup; + } + + /** + * Sets the AdGroup Data Object of the Campaign Management Service. + *

+ *

+ * A subset of AdGroup properties are available in the Ad Group record. + * For more information, see Ad Group at + * http://go.microsoft.com/fwlink/?LinkID=620252. + *

+ */ + public void setAdGroup(AdGroup adGroup) { + this.adGroup = adGroup; + } + + /** + * Gets the quality score data for the ad group. + */ + public QualityScoreData getQualityScoreData() { + return qualityScoreData; + } + + /** + * Gets the historical performance data for the ad group. + */ + public PerformanceData getPerformanceData() { + return performanceData; + } + + /** + * Gets whether the AdGroup is expired. + */ + public boolean getIsExpired() { + return isExpired; + } + + /** + * Sets whether the AdGroup is expired. + */ + private void setIsExpired(boolean isExpired) { + this.isExpired = isExpired; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtension.java new file mode 100644 index 0000000000..47ac258dee --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtension.java @@ -0,0 +1,10 @@ +package com.microsoft.bingads.v10.bulk.entities; + +/** + * This abstract class provides properties that are shared by all bulk ad group + * with ad extension association classes. For more information, see Bulk File + * Schema at http://go.microsoft.com/fwlink/?LinkID=620269. + */ +class BulkAdGroupAdExtension extends BulkAdGroupAdExtensionAssociation { + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtensionAssociation.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtensionAssociation.java new file mode 100644 index 0000000000..ba365c4d3b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAdExtensionAssociation.java @@ -0,0 +1,93 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract class provides properties that are shared by all bulk ad group ad extension association classes. + */ +public abstract class BulkAdGroupAdExtensionAssociation extends BulkAdExtensionAssociation { + private String adGroupName; + + private String campaignName; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.AdGroup, + new Function() { + @Override + public String apply(BulkAdGroupAdExtensionAssociation c) { + return c.getAdGroupName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupAdExtensionAssociation c) { + c.setAdGroupName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkAdGroupAdExtensionAssociation c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupAdExtensionAssociation c) { + c.setCampaignName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + public void setAdGroupName(String adGroupName) { + this.adGroupName = adGroupName; + } + + /** + * The name of the ad group that the ad extension is associated. + *

+ * Corresponds to the 'AdGroup' field in the bulk file. + */ + public String getAdGroupName() { + return this.adGroupName; + } + + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * The name of the campaign containing the ad group that the ad extension is associated. + *

+ * Corresponds to the 'Campaign' field in the bulk file. + */ + public String getCampaignName() { + return this.campaignName; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTarget.java new file mode 100644 index 0000000000..41076d92a7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTarget.java @@ -0,0 +1,113 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents an age target that is associated with an ad group. + * + * This class exposes the {@link BulkAgeTarget#setAgeTarget} and {@link BulkAgeTarget#getAgeTarget} methods + * that can be used to read and write fields of the Ad Group Age Target record in a bulk file. + * + *

+ * One {@link BulkAdGroupAgeTarget} exposes a read only list of {@link BulkAdGroupAgeTargetBid}. + * Each {@link BulkAdGroupAgeTargetBid} instance corresponds to one Ad Group Age Target record in the bulk file. + * If you upload a {@link BulkAdGroupAgeTarget}, + * then you are effectively replacing any existing bids for the corresponding age target. + *

+ * + *

+ * For more information, see Ad Group Age Target at + * http://go.microsoft.com/fwlink/?LinkID=620260. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupAgeTarget extends BulkAgeTarget { + + /** + * Initializes a new instanced of the BulkAdGroupAgeTarget class. + */ + public BulkAdGroupAgeTarget() { + super(BulkAdGroupAgeTargetBid.class); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupAgeTargetBid createBid() { + return new BulkAdGroupAgeTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTargetBid.java new file mode 100644 index 0000000000..35c9a0efd3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAgeTargetBid.java @@ -0,0 +1,105 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one age target bid within an age target that is associated with an ad group. + * + * This class exposes the {@link BulkAgeTargetBid#setAgeTargetBid} and {@link BulkAgeTargetBid#getAgeTargetBid} methods + * that can be used to read and write fields of the Ad Group Age Target record in a bulk file. + * + *

+ * For more information, see Ad Group Age Target at + * http://go.microsoft.com/fwlink/?LinkID=620260. + *

+ * + *

+ * One {@link BulkAdGroupAgeTarget} exposes a read only list of {@link BulkAdGroupAgeTargetBid}. + * Each {@link BulkAdGroupAgeTargetBid} instance corresponds to one Ad Group Age Target record in the bulk file. + * If you upload a {@link BulkAdGroupAgeTarget}, + * then you are effectively replacing any existing bids for the corresponding age target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupAgeTargetBid extends BulkAgeTargetBid { + + /** + * Initializes a new instanced of the BulkAdGroupAgeTargetBid class. + */ + public BulkAdGroupAgeTargetBid() { + super(new BulkAdGroupTargetIdentifier(BulkAdGroupAgeTargetBid.class)); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAppAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAppAdExtension.java new file mode 100644 index 0000000000..8f5cad0f56 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupAppAdExtension.java @@ -0,0 +1,25 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents an ad group level app ad extension. This class exposes + * properties that can be read and written as fields of the Ad Group App Ad + * Extension record in a bulk file. + * + *

+ * For more information, see Ad Group App Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620281. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + * + */ +public class BulkAdGroupAppAdExtension extends BulkAdGroupAdExtension { +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTarget.java new file mode 100644 index 0000000000..4320340310 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTarget.java @@ -0,0 +1,118 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a day and time target that is associated with an ad group. + * + * This class exposes the {@link BulkDayTimeTarget#setDayTimeTarget} and {@link BulkDayTimeTarget#getDayTimeTarget} methods + * that can be used to read and write fields of the Ad Group DayTime Target record in a bulk file. + * + *

+ * One {@link BulkAdGroupDayTimeTarget} exposes a read only list of {@link BulkAdGroupDayTimeTargetBid}. + * Each {@link BulkAdGroupDayTimeTargetBid} instance corresponds to one Ad Group DayTime Target record in the bulk file. + * If you upload a {@link BulkAdGroupDayTimeTarget}, + * then you are effectively replacing any existing bids for the corresponding day and time target. + *

+ * + *

+ * Properties of this class and of classes that it is derived from, + * correspond to fields of the Ad Group DayTime Target record in a bulk file. + *

+ * + *

+ * For more information, see Ad Group DayTime Target at + * http://go.microsoft.com/fwlink/?LinkID=620278. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupDayTimeTarget extends BulkDayTimeTarget { + + /** + * Initializes a new instanced of the BulkAdGroupDayTimeTarget class. + */ + public BulkAdGroupDayTimeTarget() { + super(BulkAdGroupDayTimeTargetBid.class); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupDayTimeTargetBid createBid() { + return new BulkAdGroupDayTimeTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTargetBid.java new file mode 100644 index 0000000000..7fe929853c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDayTimeTargetBid.java @@ -0,0 +1,105 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one day and time target bid within a day and time target that is associated with an ad group. + * + * This class exposes the {@link BulkDayTimeTargetBid#setDayTimeTargetBid} and {@link BulkDayTimeTargetBid#getDayTimeTargetBid} + * methods that can be used to read and write fields of the Ad Group DayTime Target record in a bulk file. + * + *

+ * For more information, see Ad Group DayTime Target at + * http://go.microsoft.com/fwlink/?LinkID=620278. + *

+ * + *

+ * One {@link BulkAdGroupDayTimeTarget} exposes a read only list of {@link BulkAdGroupDayTimeTargetBid}. + * Each {@link BulkAdGroupDayTimeTargetBid} instance corresponds to one Ad Group DayTime Target record in the bulk file. + * If you upload a {@link BulkAdGroupDayTimeTarget}, + * then you are effectively replacing any existing bids for the corresponding day and time target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupDayTimeTargetBid extends BulkDayTimeTargetBid { + + /** + * Initializes a new instanced of the BulkAdGroupDayTimeTargetBid class. + */ + public BulkAdGroupDayTimeTargetBid() { + super(new BulkAdGroupTargetIdentifier(BulkAdGroupDayTimeTargetBid.class)); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTarget.java new file mode 100644 index 0000000000..84a67cc98c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTarget.java @@ -0,0 +1,113 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a device OS target that is associated with an ad group. + * + * This class exposes the {@link BulkDeviceOsTarget#setDeviceOsTarget} and {@link BulkDeviceOsTarget#getDeviceOsTarget} + * methods that can be used to read and write fields of the Ad Group DeviceOS Target record in a bulk file. + * + *

+ * One {@link BulkAdGroupDeviceOsTarget} exposes a read only list of {@link BulkAdGroupDeviceOsTargetBid}. + * Each {@link BulkAdGroupDeviceOsTargetBid} instance corresponds to one Ad Group DeviceOS Target record in the bulk file. + * If you upload a {@link BulkAdGroupDeviceOsTarget}, + * then you are effectively replacing any existing bids for the corresponding device OS target. + *

+ * + *

+ * For more information, see Ad Group DeviceOS Target at + * http://go.microsoft.com/fwlink/?LinkID=620259. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupDeviceOsTarget extends BulkDeviceOsTarget { + + /** + * Initializes a new instanced of the BulkAdGroupDeviceOsTarget class. + */ + public BulkAdGroupDeviceOsTarget() { + super(BulkAdGroupDeviceOsTargetBid.class); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupDeviceOsTargetBid createBid() { + return new BulkAdGroupDeviceOsTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTargetBid.java new file mode 100644 index 0000000000..058bc4f8a9 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupDeviceOsTargetBid.java @@ -0,0 +1,98 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one device OS target bid within a device OS target that is associated with an ad group. + * + * This class exposes the {@link BulkDeviceOsTargetBid#setDeviceOsTargetBid} and {@link BulkDeviceOsTargetBid#getDeviceOsTargetBid} + * methods that can be used to read and write fields of the Ad Group DeviceOS Target record in a bulk file. + * + *

+ * For more information, see Ad Group DeviceOS Target at + * http://go.microsoft.com/fwlink/?LinkID=620259. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupDeviceOsTargetBid extends BulkDeviceOsTargetBid { + + /** + * Initializes a new instanced of the BulkAdGroupDeviceOsTargetBid class. + */ + public BulkAdGroupDeviceOsTargetBid() { + super(new BulkAdGroupTargetIdentifier(BulkAdGroupDeviceOsTargetBid.class)); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTarget.java new file mode 100644 index 0000000000..7b16e1c5da --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTarget.java @@ -0,0 +1,113 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a gender target that is associated with an ad group. + * + * This class exposes the {@link BulkGenderTarget#setGenderTarget} and {@link BulkGenderTarget#getGenderTarget} + * methods that can be used to read and write fields of the Ad Group Gender Target record in a bulk file. + * + *

+ * One {@link BulkAdGroupGenderTarget} exposes a read only list of {@link BulkAdGroupGenderTargetBid}. + * Each {@link BulkAdGroupGenderTargetBid} instance corresponds to one Ad Group Gender Target record in the bulk file. + * If you upload a {@link BulkAdGroupGenderTarget}, + * then you are effectively replacing any existing bids for the corresponding gender target. + *

+ * + *

+ * For more information, see Ad Group Gender Target at + * http://go.microsoft.com/fwlink/?LinkID=620258. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupGenderTarget extends BulkGenderTarget { + + /** + * Initializes a new instanced of the BulkAdGroupGenderTarget class. + */ + public BulkAdGroupGenderTarget() { + super(BulkAdGroupGenderTargetBid.class); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupGenderTargetBid createBid() { + return new BulkAdGroupGenderTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTargetBid.java new file mode 100644 index 0000000000..69ed6da0e1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupGenderTargetBid.java @@ -0,0 +1,105 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one gender target bid within a gender target that is associated with an ad group. + * + * This class exposes the {@link BulkGenderTargetBid#setGenderTargetBid} and {@link BulkGenderTargetBid#getGenderTargetBid} + * methods that can be used to read and write fields of the Ad Group Gender Target record in a bulk file. + * + *

+ * For more information, see Ad Group Gender Target at + * http://go.microsoft.com/fwlink/?LinkID=620258. + *

+ * + *

+ * One {@link BulkAdGroupGenderTarget} exposes a read only list of {@link BulkAdGroupGenderTargetBid}. + * Each {@link BulkAdGroupGenderTargetBid} instance corresponds to one Ad Group Gender Target record in the bulk file. + * If you upload a {@link BulkAdGroupGenderTarget}, + * then you are effectively replacing any existing bids for the corresponding gender target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupGenderTargetBid extends BulkGenderTargetBid { + + /** + * Initializes a new instanced of the BulkAdGroupGenderTargetBid class. + */ + public BulkAdGroupGenderTargetBid() { + super(new BulkAdGroupTargetIdentifier(BulkAdGroupGenderTargetBid.class)); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupImageAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupImageAdExtension.java new file mode 100644 index 0000000000..69601d5885 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupImageAdExtension.java @@ -0,0 +1,25 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents an ad group level image ad extension. This class exposes + * properties that can be read and written as fields of the Ad Group Image Ad + * Extension record in a bulk file. + * + *

+ * For more information, see Ad Group Image Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620261. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + * + */ +public class BulkAdGroupImageAdExtension extends BulkAdGroupAdExtension { +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTarget.java new file mode 100644 index 0000000000..1c6dce14d1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTarget.java @@ -0,0 +1,159 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.IntentOption; +import com.microsoft.bingads.v10.campaignmanagement.LocationTarget; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; + +/** + * Represents a location target that is associated with an ad group. + * + * This class exposes the + * {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * {@link BulkLocationTargetWithStringLocation#setCityTarget} + * {@link BulkLocationTargetWithStringLocation#getCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#setCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#getMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#setMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#getPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#setPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#getStateTarget}, + * and {@link BulkLocationTargetWithStringLocation#setStateTarget} methods, + * + * that represent geographical location sub types. + * Each sub type can be read and written as fields of the Ad Group Location Target record in a bulk file. + * + *

+ * Each location sub type contains a list of bids. For example {@link BulkLocationTargetWithStringLocation#getCityTarget} + * contains a list of {@link CityTargetBid}. Each {@link CityTargetBid} instance + * corresponds to one Ad Group Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding location target. + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} methods determines the geographical location sub type. + *

+ * + *

+ * For more information, see Ad Group Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620255. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupLocationTarget extends BulkLocationTarget { + + /** + * Initializes a new instanced of the BulkAdGroupLocationTarget class. + */ + public BulkAdGroupLocationTarget() { + super(BulkAdGroupLocationTargetBid.class); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of thecampaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Gets intent options for location targeting. + */ + public IntentOption getIntentOption() { + return getLocationProperty(new Function() { + @Override + public IntentOption apply(LocationTarget t) { + return t.getIntentOption(); + } + }); + } + + /** + * Sets intent options for location targeting. + */ + public void setIntentOption(final IntentOption intentOption) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget locationTarget) { + locationTarget.setIntentOption(intentOption); + } + }); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupLocationTargetBid createBid() { + return new BulkAdGroupLocationTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTargetBid.java new file mode 100644 index 0000000000..c575f9948d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupLocationTargetBid.java @@ -0,0 +1,110 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one sub location target bid within a location target that is associated with an ad group. + * + * This class exposes properties that can be read and written as fields of the Ad Group Location Target record in a bulk file. + * + *

+ * For more information, see Ad Group Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620255. + *

+ * + *

+ * Each location sub type contains a list of bids. + * For example {@link BulkLocationTargetWithStringLocation#getCityTarget} contains a list of {@link CityTargetBid}. + * Each {@link CityTargetBid} instance corresponds to one Ad Group Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding location target + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} property determines the geographical location sub type. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupLocationTargetBid extends BulkLocationTargetBid { + + /** + * Initializes a new instanced of the BulkAdGroupLocationTargetBid class. + */ + public BulkAdGroupLocationTargetBid() { + super(new BulkAdGroupTargetIdentifier(BulkAdGroupLocationTargetBid.class)); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeKeyword.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeKeyword.java new file mode 100644 index 0000000000..85ae925eb1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeKeyword.java @@ -0,0 +1,144 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a negative keyword that is assigned to an ad group. Each negative keyword can be read or written in a bulk file. + * This class exposes the {@link #setNegativeKeyword} and {@link #getNegativeKeyword} methods that can be used to read and write + * fields of the Ad Group Negative Keyword record in a bulk file. + * + *

+ * For more information, see Ad Group Negative Keyword at + * http://go.microsoft.com/fwlink/?LinkID=620253. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupNegativeKeyword extends BulkEntityNegativeKeyword { + + private String campaignName; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkAdGroupNegativeKeyword c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupNegativeKeyword c) { + c.setCampaignName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + /** + * Gets the identifier of the ad group that the negative keyword is assigned. + * + *

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

+ */ + public Long getAdGroupId() { + return getParentId(); + } + + /** + * Sets the identifier of the ad group that the negative keyword is assigned. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setParentId(adGroupId); + } + + /** + * Gets the name of the ad group that the negative keyword is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the negative keyword is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that the negative keyword is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return campaignName; + } + + /** + * Sets the name of the campaign that the negative keyword is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + String getEntityColumnName() { + return StringTable.AdGroup; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTarget.java new file mode 100644 index 0000000000..6e136d8eb1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTarget.java @@ -0,0 +1,131 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a negative location target that is associated with an ad group. + * + * This class exposes the + * {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * {@link BulkLocationTargetWithStringLocation#setCityTarget} + * {@link BulkLocationTargetWithStringLocation#getCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#setCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#getMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#setMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#getPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#setPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#getStateTarget}, + * and {@link BulkLocationTargetWithStringLocation#setStateTarget} methods, + * + * that represent geographical location sub types. + * Each sub type can be read and written as fields of the Ad Group Negative Location Target record in a bulk file. + * + *

+ * Each negative location sub type contains a list of bids. For example {@link BulkLocationTargetWithStringLocation#getCityTarget} + * contains a list of {@link CityTargetBid}. Each {@link CityTargetBid} instance + * corresponds to one Ad Group Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding negative location target. + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} methods determines the geographical location sub type. + *

+ * + *

+ * For more information, see Ad Group Negative Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620256. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupNegativeLocationTarget extends BulkNegativeLocationTarget { + + /** + * Initializes a new instanced of the BulkAdGroupNegativeLocationTarget class. + */ + public BulkAdGroupNegativeLocationTarget() { + super(BulkAdGroupNegativeLocationTargetBid.class); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupNegativeLocationTargetBid createBid() { + return new BulkAdGroupNegativeLocationTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTargetBid.java new file mode 100644 index 0000000000..2bdb5322a0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeLocationTargetBid.java @@ -0,0 +1,110 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one sub negative location target bid within a negative location target that is associated with an ad group. + * + * This class exposes properties that can be read and written as fields of the Ad Group Negative Location Target record in a bulk file. + * + *

+ * For more information, see Ad Group Negative Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620256. + *

+ * + *

+ * Each negative location sub type contains a list of bids. + * For example {@link BulkLocationTargetWithStringLocation#getCityTarget} contains a list of {@link CityTargetBid}. + * Each {@link CityTargetBid} instance corresponds to one Ad Group Negative Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding negative location target + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} property determines the geographical location sub type. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupNegativeLocationTargetBid extends BulkNegativeLocationTargetBid { + + /** + * Initializes a new instanced of the BulkAdGroupNegativeLocationTargetBid class. + */ + public BulkAdGroupNegativeLocationTargetBid() { + super(new BulkAdGroupTargetIdentifier(BulkAdGroupNegativeLocationTargetBid.class)); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSite.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSite.java new file mode 100644 index 0000000000..ad41867655 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSite.java @@ -0,0 +1,115 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkAdGroupNegativeSitesIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; + +/** + *

+ * Represents a negative site that is assigned to an ad group. Each negative + * site can be read or written in a bulk file. This class exposes properties + * that can be read and written as fields of the Ad Group Negative Site record + * in a bulk file. + *

+ * + *

+ * For more information, see Ad Group Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620254 + *

+ * + *

+ * One {@link BulkAdGroupNegativeSites} exposes a read only list of + * {@link BulkAdGroupNegativeSite}. Each {@link BulkAdGroupNegativeSite} + * instance corresponds to one Ad Group Negative Site record in the bulk file. + * If you upload a {@link BulkAdGroupNegativeSites}, then you are effectively + * replacing any existing negative sites assigned to the ad group. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupNegativeSite extends BulkNegativeSite { + + /** + * Gets the identifier of the ad group that the negative site is assigned. + * + *

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

+ */ + public long getAdGroupId() { + return this.getIdentifier().getAdGroupId(); + } + + /** + * Sets the identifier of the ad group that the negative site is assigned. + * + *

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

+ */ + public void setAdGroupId(long value) { + this.getIdentifier().setAdGroupId(value); + } + + /** + * Gets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return this.getIdentifier().getAdGroupName(); + } + + /** + * Sets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String value) { + this.getIdentifier().setAdGroupName(value); + } + + /** + * Gets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getCampaignName() { + return this.getIdentifier().getCampaignName(); + } + + /** + * Sets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setCampaignName(String value) { + this.getIdentifier().setCampaignName(value); + } + + /** + * Initializes a new instance of the BulkAdGroupNegativeSite class. + */ + public BulkAdGroupNegativeSite() { + super(new BulkAdGroupNegativeSitesIdentifier()); + } + + @Override + MultiRecordBulkEntity createNegativeSitesWithThisNegativeSite() { + return new BulkAdGroupNegativeSites(this); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSites.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSites.java new file mode 100644 index 0000000000..80db070424 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupNegativeSites.java @@ -0,0 +1,214 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupNegativeSites; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkAdGroupNegativeSitesIdentifier; +import java.util.ArrayList; +import java.util.List; + +/** + *

+ * Represents one or more negative sites that are assigned to an ad group. Each + * negative site can be read or written in a bulk file. This class exposes + * properties that can be read and written as fields of the Ad Group Negative + * Site record in a bulk file. + *

+ * + *

+ * For more information, see Ad Group Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620254 + *

+ * + *

+ * One {@link BulkAdGroupNegativeSites} has one or more + * {@link BulkAdGroupNegativeSite}. Each {@link BulkAdGroupNegativeSite} + * instance corresponds to one Ad Group Negative Site record in the bulk file. + * If you upload a {@link BulkAdGroupNegativeSites}, then you are effectively + * replacing any existing negative sites assigned to the ad group. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupNegativeSites extends BulkNegativeSites { + + private AdGroupNegativeSites adGroupNegativeSites;// { get; set; } + + /** + * Gets the AdGroupNegativeSites Data Object of the Campaign Management Service. + * + *

+ * A subset of AdGroupNegativeSites properties are available in the Ad Group + * Negative Site record. For more information, see Ad Group Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620254. + *

+ */ + public AdGroupNegativeSites getAdGroupNegativeSites() { + return adGroupNegativeSites; + } + + /** + * Sets the AdGroupNegativeSites Data Object of the Campaign Management Service. + * + *

+ * A subset of AdGroupNegativeSites properties are available in the Ad Group + * Negative Site record. For more information, see Ad Group Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620254. + *

+ */ + public void setAdGroupNegativeSites(AdGroupNegativeSites adGroupNegativeSites) { + this.adGroupNegativeSites = adGroupNegativeSites; + } + + private String adGroupName; + + /** + * Gets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return adGroupName; + } + + /** + * Sets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + this.adGroupName = adGroupName; + } + + private String campaignName; + + /** + * Gets the name of the campaign that the negative site is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return campaignName; + } + + /** + * Sets the name of the campaign that the negative site is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * Initializes a new instance of the BulkAdGroupNegativeSites class. + */ + public BulkAdGroupNegativeSites() { + } + + BulkAdGroupNegativeSites(BulkAdGroupNegativeSite site) { + super(site, BulkAdGroupNegativeSite.class, BulkAdGroupNegativeSitesIdentifier.class); + setDataFromIdentifier(site.getIdentifier()); + } + + /** + * Reserved for internal use. + */ + public BulkAdGroupNegativeSites(BulkAdGroupNegativeSitesIdentifier identifier) { + super(identifier, BulkAdGroupNegativeSite.class, BulkAdGroupNegativeSitesIdentifier.class); + setDataFromIdentifier(identifier); + } + + private void setDataFromIdentifier(BulkAdGroupNegativeSitesIdentifier identifier) { + this.adGroupNegativeSites = new AdGroupNegativeSites(); + this.adGroupNegativeSites.setAdGroupId(identifier.getAdGroupId()); + + this.adGroupName = identifier.getAdGroupName(); + this.campaignName = identifier.getCampaignName(); + } + + /** + * Reserved for internal use. + */ + @Override + protected Iterable convertApiToBulkNegativeSites() { + validateListNotNullOrEmpty(this.adGroupNegativeSites.getNegativeSites(), "AdGroupNegativeSites.NegativeSites"); + + List bulkSites = new ArrayList(); + + List negativeSites = adGroupNegativeSites.getNegativeSites().getStrings(); + + for (String negativeSite : negativeSites) { + BulkAdGroupNegativeSite bulkSite = new BulkAdGroupNegativeSite(); + + if (adGroupNegativeSites.getAdGroupId() != null) { + bulkSite.setAdGroupId(adGroupNegativeSites.getAdGroupId()); + } + + bulkSite.setWebsite(negativeSite); + bulkSite.setAdGroupName(getAdGroupName()); + bulkSite.setCampaignName(getCampaignName()); + + bulkSites.add(bulkSite); + } + + return bulkSites; + } + + /** + * Reserved for internal use. + */ + private void validateListNotNullOrEmpty(ArrayOfstring negativeSites, String propertyName) { + super.validateListNotNullOrEmpty(negativeSites, negativeSites.getStrings(), propertyName); + } + + @Override + protected void reconstructApiObjects() { + ArrayOfstring websitesArray = new ArrayOfstring(); + + for (BulkAdGroupNegativeSite bulkNegativeSite : getNegativeSites()) { + websitesArray.getStrings().add(bulkNegativeSite.getWebsite()); + } + + this.adGroupNegativeSites.setNegativeSites(websitesArray); + } + + /** + * Reserved for internal use. + */ + @Override + protected BulkAdGroupNegativeSitesIdentifier createIdentifier() { + BulkAdGroupNegativeSitesIdentifier identifier = new BulkAdGroupNegativeSitesIdentifier(); + + if (adGroupNegativeSites.getAdGroupId() != null) { + identifier.setAdGroupId(this.adGroupNegativeSites.getAdGroupId()); + } + + identifier.setAdGroupName(this.adGroupName); + identifier.setCampaignName(this.campaignName); + + return identifier; + } + + /** + * Reserved for internal use. + */ + @Override + protected void validatePropertiesNotNull() { + validatePropertyNotNull(adGroupNegativeSites, "AdGroupNegativeSites"); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupProductPartition.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupProductPartition.java new file mode 100644 index 0000000000..3f73adb887 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupProductPartition.java @@ -0,0 +1,523 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a Ad Group Criterion that can be read or written in a bulk file. + *

+ * This class exposes the {@link #setAdGroupCriterion} and {@link #getAdGroupCriterion} methods + * that can be used to read and write fields of the Ad Group Product Partition record in a bulk file. + *

+ *

+ * For more information, see Ad Group Product Partition at + * http://go.microsoft.com/fwlink/?LinkId=618642. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupProductPartition extends SingleRecordBulkEntity { + + private AdGroupCriterion adGroupCriterion; + + private String campaignName; + + private String adGroupName; + + private PerformanceData performanceData; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.IsExcluded, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + return "False"; + } else { + return "True"; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + v = v.toLowerCase(); + boolean isExcluded; + if ("yes".equals(v) || "true".equals(v)) { + isExcluded = true; + } else if ("no".equals(v) || "false".equals(v)) { + isExcluded = false; + } else { + throw new IllegalStateException(String.format( + "%s can only be set to TRUE or FALSE in %s ", + StringTable.IsExcluded, + BulkAdGroupProductPartition.class.getSimpleName() + )); + } + if (isExcluded) { + ProductPartition productPartition = new ProductPartition(); + productPartition.setCondition(new ProductCondition()); + productPartition.setType(ProductPartition.class.getSimpleName()); + + NegativeAdGroupCriterion negativeAdGroupCriterion = new NegativeAdGroupCriterion(); + negativeAdGroupCriterion.setCriterion(productPartition); + negativeAdGroupCriterion.setType(NegativeAdGroupCriterion.class.getSimpleName()); + + c.setAdGroupCriterion(negativeAdGroupCriterion); + } else { + ProductPartition productPartition = new ProductPartition(); + productPartition.setCondition(new ProductCondition()); + productPartition.setType(ProductPartition.class.getSimpleName()); + + FixedBid fixedBid = new FixedBid(); + fixedBid.setType(FixedBid.class.getSimpleName()); + + BiddableAdGroupCriterion biddableAdGroupCriterion = new BiddableAdGroupCriterion(); + biddableAdGroupCriterion.setCriterion(productPartition); + biddableAdGroupCriterion.setCriterionBid(fixedBid); + biddableAdGroupCriterion.setType(BiddableAdGroupCriterion.class.getSimpleName()); + + c.setAdGroupCriterion(biddableAdGroupCriterion); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + AdGroupCriterionStatus status = c.getAdGroupCriterion().getStatus(); + + return status == null ? null : status.value(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + c.getAdGroupCriterion().setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public AdGroupCriterionStatus apply(String s) { + return AdGroupCriterionStatus.fromValue(s); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + c.getAdGroupCriterion().setId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String s) { + return Long.parseLong(s); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getAdGroupId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + c.getAdGroupCriterion().setAdGroupId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String s) { + return Long.parseLong(s); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + c.setCampaignName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AdGroup, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return c.getAdGroupName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + c.setAdGroupName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SubType, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion().getCriterion() instanceof ProductPartition){ + + ProductPartitionType productPartitionType = ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getPartitionType(); + return productPartitionType == null ? null : productPartitionType.value(); + } else { + return null; + } + + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + ((ProductPartition) c.getAdGroupCriterion().getCriterion()).setPartitionType( + StringExtensions.parseOptional(v, new Function() { + @Override + public ProductPartitionType apply(String s) { + return ProductPartitionType.fromValue(s); + } + }) + ); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentAdGroupCriterionId, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion().getCriterion() instanceof ProductPartition){ + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getParentCriterionId(); + } else { + return null; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + ((ProductPartition) c.getAdGroupCriterion().getCriterion()).setParentCriterionId( + StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String s) { + return Long.parseLong(s); + } + }) + ); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ProductCondition1, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion().getCriterion() instanceof ProductPartition) { + ProductCondition productCondition = ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition(); + return productCondition == null ? null : productCondition.getOperand(); + } else { + return null; + } + + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition().setOperand(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ProductValue1, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion().getCriterion() instanceof ProductPartition) { + ProductCondition productCondition = ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition(); + return productCondition == null ? null : productCondition.getAttribute(); + } else { + return null; + } + + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition().setAttribute(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Bid, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + CriterionBid bid = ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getCriterionBid(); + + if (bid == null) { + return null; + } else { + return StringExtensions.toAdGroupBidBulkString(((FixedBid) bid).getBid()); + } + } else { + return null; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + ((FixedBid) ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getCriterionBid()).setBid( + StringExtensions.parseAdGroupBid(v) + ); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DestinationUrl, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + return StringExtensions.toOptionalBulkString(((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getDestinationUrl()); + } else { + return null; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).setDestinationUrl(StringExtensions.getValueOrEmptyString(v)); + } + } + }, + true + )); + + m.add(new SimpleBulkMapping(StringTable.FinalUrl, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + return StringExtensions.writeUrls("; ", ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getFinalUrls()); + } else { + return null; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + + ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).setFinalUrls(urls); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FinalMobileUrl, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + return StringExtensions.writeUrls("; ", ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getFinalMobileUrls()); + } else { + return null; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + + ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).setFinalMobileUrls(urls); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.TrackingTemplate, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + return StringExtensions.toOptionalBulkString(((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getTrackingUrlTemplate()); + } else { + return null; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).setTrackingUrlTemplate(StringExtensions.getValueOrEmptyString(v));; + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CustomParameter, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + return StringExtensions.toCustomParaBulkString(((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getUrlCustomParameters()); + } else { + return null; + } + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupProductPartition c) { + if (c.getAdGroupCriterion() instanceof BiddableAdGroupCriterion) { + try { + ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).setUrlCustomParameters(StringExtensions.parseCustomParameters(v)); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + } + )); + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + performanceData = PerformanceData.readFromRowValuesOrNull(values); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getAdGroupCriterion(), AdGroupCriterion.class.getSimpleName()); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + + if (!excludeReadonlyData) { + PerformanceData.writeToRowValuesIfNotNull(getPerformanceData(), values); + } + } + + /** + * Gets an AdGroup Criterion. + */ + public AdGroupCriterion getAdGroupCriterion() { + return adGroupCriterion; + } + + /** + * Sets an AdGroup Criterion. + */ + public void setAdGroupCriterion(AdGroupCriterion adGroupCriterion) { + this.adGroupCriterion = adGroupCriterion; + } + + /** + * Gets the name of the campaign. + * Corresponds to the 'Campaign' field in the bulk file. + */ + public String getCampaignName() { + return campaignName; + } + + /** + * Sets the name of the campaign. + * Corresponds to the 'Campaign' field in the bulk file. + */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * Gets the name of the ad group. + */ + public String getAdGroupName() { + return adGroupName; + } + + /** + * Sets the name of the ad group. + */ + public void setAdGroupName(String adGroupName) { + this.adGroupName = adGroupName; + } + + /** + * Gets the historical performance data for the keyword. + */ + public PerformanceData getPerformanceData() { + return performanceData; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTarget.java new file mode 100644 index 0000000000..6a495733b6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTarget.java @@ -0,0 +1,113 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a radius target that is associated with an ad group. + * + * This class exposes the {@link BulkRadiusTarget#setRadiusTarget} and {@link BulkRadiusTarget#getRadiusTarget} + * methods that can be used to read and write fields of the Ad Group Radius Target record in a bulk file. + * + *

+ * One {@link BulkAdGroupRadiusTarget} exposes a read only list of {@link BulkAdGroupRadiusTargetBid}. + * Each {@link BulkAdGroupRadiusTargetBid} instance corresponds to one Ad Group Radius Target record in the bulk file. + * If you upload a {@link BulkAdGroupRadiusTarget}, + * then you are effectively replacing any existing bids for the corresponding radius target. + *

+ * + *

+ * For more information, see Ad Group Radius Target at + * http://go.microsoft.com/fwlink/?LinkID=620257. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupRadiusTarget extends BulkRadiusTarget { + + /** + * Initializes a new instanced of the BulkAdGroupRadiusTarget class. + */ + public BulkAdGroupRadiusTarget() { + super(BulkAdGroupRadiusTargetBid.class); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupRadiusTargetBid createBid() { + return new BulkAdGroupRadiusTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTargetBid.java new file mode 100644 index 0000000000..05dc4c6e16 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupRadiusTargetBid.java @@ -0,0 +1,105 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one radius target bid within an radius target that is associated with an ad group. + * + * This class exposes the {@link BulkRadiusTargetBid#setRadiusTargetBid} and {@link BulkRadiusTargetBid#getRadiusTargetBid} + * methods that can be used to read and write fields of the Ad Group Radius Target record in a bulk file. + * + *

+ * For more information, see Ad Group Radius Target at + * http://go.microsoft.com/fwlink/?LinkID=620257. + *

+ * + *

+ * One {@link BulkAdGroupRadiusTarget} exposes a read only list of {@link BulkAdGroupRadiusTargetBid}. + * Each {@link BulkAdGroupRadiusTargetBid} instance corresponds to one Ad Group Radius Target record in the bulk file. + * If you upload a {@link BulkAdGroupRadiusTarget}, + * then you are effectively replacing any existing bids for the corresponding radius target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupRadiusTargetBid extends BulkRadiusTargetBid { + + /** + * Initializes a new instanced of the BulkAdGroupRadiusTargetBid class. + */ + public BulkAdGroupRadiusTargetBid() { + super(new BulkAdGroupTargetIdentifier(BulkAdGroupRadiusTargetBid.class)); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + setEntityId(adGroupId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupSiteLinkAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupSiteLinkAdExtension.java new file mode 100644 index 0000000000..6bb537914f --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupSiteLinkAdExtension.java @@ -0,0 +1,25 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents an ad group level sitelink ad extension. This class exposes + * properties that can be read and written as fields of the Ad Group Sitelink Ad + * Extension record in a bulk file. + * + *

+ * For more information, see Ad Group Sitelink Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620262. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupSiteLinkAdExtension extends BulkAdGroupAdExtension { + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTarget.java new file mode 100644 index 0000000000..0127694470 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTarget.java @@ -0,0 +1,163 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.Target; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a target that is associated with an ad group. + * + * The target contains one or more sub targets, including + * age, gender, day and time, device OS, and location. + * Each target can be read or written in a bulk file. + * + *

+ * When requesting downloaded entities of type {@link BulkAdGroupTarget}, the results will include + * Ad Group Age Target, Ad Group DayTime Target, Ad Group DeviceOS Target, Ad Group Gender Target, Ad Group Location Target, + * Ad Group Negative Location Target, and Ad Group Radius Target records. + * For more information, see Bulk File Schema at + * http://go.microsoft.com/fwlink/?LinkID=620269. + *

+ * + *

+ * For upload you must set the {@link Target2} object, + * which will effectively replace any existing bids for the corresponding target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAdGroupTarget extends BulkTarget{ + + /** + * Initializes a new instanced of the BulkAdGroupTarget class. + */ + public BulkAdGroupTarget() { + super(new BulkAdGroupAgeTarget(), BulkAdGroupAgeTargetBid.class, + new BulkAdGroupDayTimeTarget(), BulkAdGroupDayTimeTargetBid.class, + new BulkAdGroupDeviceOsTarget(), BulkAdGroupDeviceOsTargetBid.class, + new BulkAdGroupGenderTarget(), BulkAdGroupGenderTargetBid.class, + new BulkAdGroupLocationTarget(), BulkAdGroupLocationTargetBid.class, + new BulkAdGroupNegativeLocationTarget(), BulkAdGroupNegativeLocationTargetBid.class, + new BulkAdGroupRadiusTarget(), BulkAdGroupRadiusTargetBid.class + ); + } + + /** + * Initializes a new instanced of the BulkAdGroupTarget class with the specified bulk target bid. + */ + BulkAdGroupTarget(BulkTargetBid bid) { + super(bid, + new BulkAdGroupAgeTarget(), BulkAdGroupAgeTargetBid.class, + new BulkAdGroupDayTimeTarget(), BulkAdGroupDayTimeTargetBid.class, + new BulkAdGroupDeviceOsTarget(), BulkAdGroupDeviceOsTargetBid.class, + new BulkAdGroupGenderTarget(), BulkAdGroupGenderTargetBid.class, + new BulkAdGroupLocationTarget(), BulkAdGroupLocationTargetBid.class, + new BulkAdGroupNegativeLocationTarget(), BulkAdGroupNegativeLocationTargetBid.class, + new BulkAdGroupRadiusTarget(), BulkAdGroupRadiusTargetBid.class, + BulkAdGroupTargetIdentifier.class + ); + } + + /** + * Reserved for internal use. + */ + BulkAdGroupTarget(BulkAdGroupTargetIdentifier identifier) { + super(identifier, + new BulkAdGroupAgeTarget(), BulkAdGroupAgeTargetBid.class, + new BulkAdGroupDayTimeTarget(), BulkAdGroupDayTimeTargetBid.class, + new BulkAdGroupDeviceOsTarget(), BulkAdGroupDeviceOsTargetBid.class, + new BulkAdGroupGenderTarget(), BulkAdGroupGenderTargetBid.class, + new BulkAdGroupLocationTarget(), BulkAdGroupLocationTargetBid.class, + new BulkAdGroupNegativeLocationTarget(), BulkAdGroupNegativeLocationTargetBid.class, + new BulkAdGroupRadiusTarget(), BulkAdGroupRadiusTargetBid.class, + BulkAdGroupTargetIdentifier.class + ); + } + + /** + * Gets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public Long getAdGroupId() { + return getEntityId(); + } + + /** + * Sets the identifier of the ad group that the target is associated. + * + *

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

+ */ + public void setAdGroupId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return getEntityName(); + } + + /** + * Sets the name of the ad group that the target is associated. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + setEntityName(adGroupName); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getParentEntityName(); + } + + /** + * Sets the name of thecampaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setParentEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkAdGroupTargetIdentifier createIdentifier(Class bidType) { + return new BulkAdGroupTargetIdentifier(bidType); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTargetIdentifier.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTargetIdentifier.java new file mode 100644 index 0000000000..ee0048b1b3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAdGroupTargetIdentifier.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import static com.microsoft.bingads.internal.utilities.Comparer.compareNullable; + +/** + * Reserved for internal use. + */ +class BulkAdGroupTargetIdentifier extends BulkTargetIdentifier { + + /** + * Initializes a new instanced of the BulkAdGroupTargetIdentifier class. + */ + public BulkAdGroupTargetIdentifier(Class targetBidType) { + super(targetBidType); + } + + @Override + public MultiRecordBulkEntity createEntityWithThisIdentifier() { + return new BulkAdGroupTarget(this); + } + + /** + * Reserved for internal use. + */ + @Override + String getEntityColumnName() { + return StringTable.AdGroup; + } + + @Override + public boolean equals(Object other) { + if (!(other instanceof BulkAdGroupTargetIdentifier)) { + return false; + } + + BulkAdGroupTargetIdentifier otherIdentifier = (BulkAdGroupTargetIdentifier) other; + + boolean isNameNotEmpty = getEntityName() != null && + getEntityName().length() != 0 && + getParentEntityName() != null && + getParentEntityName().length() != 0; + + return compareNullable(getEntityId(), otherIdentifier.getEntityId()) || + ( + isNameNotEmpty && + compareNullable(getEntityName(), otherIdentifier.getEntityName()) && + compareNullable(getParentEntityName(), otherIdentifier.getParentEntityName()) + ); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTarget.java new file mode 100644 index 0000000000..0f2b769202 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTarget.java @@ -0,0 +1,98 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.v10.campaignmanagement.AgeTarget; +import com.microsoft.bingads.v10.campaignmanagement.AgeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfAgeTargetBid; + +import java.util.ArrayList; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk age target classes. + * + * @param see {@link BulkAgeTargetBid} + */ +abstract class BulkAgeTarget extends BulkSubTarget { + + private AgeTarget ageTarget; + + public BulkAgeTarget(Class classOfTBid) { + super(classOfTBid); + } + + /** + * Reserved for internal use. + */ + @Override + void reconstructSubTargets() { + setAgeTarget(new AgeTarget()); + + ArrayOfAgeTargetBid bids = new ArrayOfAgeTargetBid(); + + getAgeTarget().setBids(bids); + + for (TBid bid : getBids()) { + bids.getAgeTargetBids().add(bid.getAgeTargetBid()); + } + } + + /** + * Reserved for internal use. + */ + @Override + List convertApiToBulkBids() { + List bulkBids = new ArrayList(); + + if (getAgeTarget() == null || getAgeTarget().getBids() == null) { + return bulkBids; + } + + for (final AgeTargetBid apiBid : getAgeTarget().getBids().getAgeTargetBids()) { + TBid bulkBid = createAndPopulateBid(new Consumer() { + @Override + public void accept(TBid t) { + t.setAgeTargetBid(apiBid); + } + }); + + bulkBids.add(bulkBid); + } + + return bulkBids; + } + + /** + * Reserved for internal use. + */ + @Override + void validatePropertiesNotNull() { + validatePropertyNotNull(getAgeTarget(), "AgeTarget"); + } + + /** + * Reserved for internal use. + */ + @Override + void validateBidsNotNullOrEmpty() { + if (getAgeTarget() != null) { + validateListNotNullOrEmpty(getAgeTarget().getBids(), getAgeTarget().getBids().getAgeTargetBids(), "AgeTarget.Bids"); + } + } + + /** + * Gets a list of age ranges to target with bid adjustments. + */ + public AgeTarget getAgeTarget() { + return ageTarget; + } + + /** + * Sets a list of age ranges to target with bid adjustments. + */ + public void setAgeTarget(AgeTarget ageTarget) { + this.ageTarget = ageTarget; + } + + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTargetBid.java new file mode 100644 index 0000000000..772e97ff8e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAgeTargetBid.java @@ -0,0 +1,101 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.campaignmanagement.AgeRange; +import com.microsoft.bingads.v10.campaignmanagement.AgeTargetBid; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk age target bid classes. + */ +abstract class BulkAgeTargetBid extends BulkTargetBid { + + private AgeTargetBid ageTargetBid; + + /** + * Reserved for internal use. + */ + BulkAgeTargetBid(BulkTargetIdentifier identifier) { + super(identifier); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Target, + new Function() { + @Override + public String apply(BulkAgeTargetBid c) { + return c.getAgeTargetBid().getAge().value(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAgeTargetBid c) { + c.getAgeTargetBid().setAge(AgeRange.fromValue(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkAgeTargetBid c) { + return c.getAgeTargetBid().getBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAgeTargetBid c) { + c.getAgeTargetBid().setBidAdjustment(Integer.parseInt(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + setAgeTargetBid(new AgeTargetBid()); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getAgeTargetBid(), "AgeTargetBid"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets a list of age ranges to target with bid adjustments. + */ + public AgeTargetBid getAgeTargetBid() { + return ageTargetBid; + } + + /** + * Sets a list of age ranges to target with bid adjustments. + */ + public void setAgeTargetBid(AgeTargetBid ageTargetBid) { + this.ageTargetBid = ageTargetBid; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAppAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAppAdExtension.java new file mode 100644 index 0000000000..76a74c1080 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkAppAdExtension.java @@ -0,0 +1,157 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AppAdExtension; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents an app ad extension that can be read or written in a bulk file. + * This class exposes the properties + * that can be read and written as fields of the App Ad Extension record in a + * bulk file. + * + * For more information, see app Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620280 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkAppAdExtension extends BulkAdExtension { + + /** + * Gets the app ad extension. + */ + public AppAdExtension getAppAdExtension() { + return getAdExtension(); + } + + /** + * Sets the app ad extension. + */ + public void setAppAdExtension(AppAdExtension appAdExtension) { + setAdExtension(appAdExtension); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping( + StringTable.AppPlatform, + new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getAppPlatform(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAppAdExtension c) { + c.getAppAdExtension().setAppPlatform(v); + } + } + )); + + m.add(new SimpleBulkMapping( + StringTable.AppStoreId, + new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getAppStoreId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAppAdExtension c) { + c.getAppAdExtension().setAppStoreId(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DestinationUrl, + new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getDestinationUrl(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAppAdExtension c) { + c.getAppAdExtension().setDestinationUrl(v); + } + } + )); + + m.add(new SimpleBulkMapping( + StringTable.Text, + new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getDisplayText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAppAdExtension c) { + c.getAppAdExtension().setDisplayText(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DevicePreference, + new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return StringExtensions.toDevicePreferenceBulkString(c.getAppAdExtension().getDevicePreference()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAppAdExtension c) { + c.getAppAdExtension().setDevicePreference(StringExtensions.parseDevicePreference(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + AppAdExtension extension = new AppAdExtension(); + + extension.setType("AppAdExtension"); + + setAdExtension(extension); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(this.getAppAdExtension(), "AppAdExtension"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + MappingHelpers.convertToValues(this, values, MAPPINGS); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCallAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCallAdExtension.java new file mode 100644 index 0000000000..d2c37326f1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCallAdExtension.java @@ -0,0 +1,166 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CallAdExtension; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a call ad extension. This class exposes {@link #setCallAdExtension} and {@link #getCallAdExtension} + * that can be used to read and write fields of the Call Ad Extension record in a bulk file. + * + * For more information, see Call Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620234 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCallAdExtension extends BulkAdExtension { + + /** + * Gets the call ad extension. + */ + public CallAdExtension getCallAdExtension() { + return this.getAdExtension(); + } + + /** + * Sets the call ad extension. + */ + public void setCallAdExtension(CallAdExtension value) { + this.setAdExtension(value); + } + + private static List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.PhoneNumber, + new Function() { + @Override + public String apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getPhoneNumber(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCallAdExtension c) { + c.getCallAdExtension().setPhoneNumber(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CountryCode, + new Function() { + @Override + public String apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getCountryCode(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCallAdExtension c) { + c.getCallAdExtension().setCountryCode(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.IsCallOnly, + new Function() { + @Override + public String apply(BulkCallAdExtension c) { + return StringExtensions.toBooleanBulkString(c.getCallAdExtension().getIsCallOnly()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCallAdExtension c) { + c.getCallAdExtension().setIsCallOnly(StringExtensions.parseOptional(v, new Function() { + @Override + public Boolean apply(String value) { + return Boolean.parseBoolean(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.IsCallTrackingEnabled, + new Function() { + @Override + public String apply(BulkCallAdExtension c) { + return StringExtensions.toBooleanBulkString(c.getCallAdExtension().getIsCallTrackingEnabled()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCallAdExtension c) { + c.getCallAdExtension().setIsCallTrackingEnabled(StringExtensions.parseOptional(v, new Function() { + @Override + public Boolean apply(String value) { + return Boolean.parseBoolean(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.RequireTollFreeTrackingNumber, + new Function() { + @Override + public String apply(BulkCallAdExtension c) { + return StringExtensions.toBooleanBulkString(c.getCallAdExtension().getRequireTollFreeTrackingNumber()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCallAdExtension c) { + c.getCallAdExtension().setRequireTollFreeTrackingNumber(StringExtensions.parseOptional(v, new Function() { + @Override + public Boolean apply(String value) { + return Boolean.parseBoolean(value); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + CallAdExtension extension = new CallAdExtension(); + extension.setType("CallAdExtension"); + this.setAdExtension(extension); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + this.validatePropertyNotNull(this.getCallAdExtension(), "CallAdExtension"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaign.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaign.java new file mode 100644 index 0000000000..d3da413daf --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaign.java @@ -0,0 +1,543 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.v10.internal.bulk.*; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.List; + +/** + * Represents a campaign that can be read or written in a bulk file. + *

+ * This class exposes the {@link #setCampaign} and {@link #getCampaign} methods + * that can be used to read and write fields of the Campaign record in a bulk file. + *

+ *

+ * For more information, see Campaign at + * http://go.microsoft.com/fwlink/?LinkID=620239. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaign extends SingleRecordBulkEntity { + + private Long accountId; + private Campaign campaign; + private QualityScoreData qualityScoreData; + private PerformanceData performanceData; + + private static final List> MAPPINGS; + private static BiConsumer budgetToCsv; + private static BiConsumer csvToBudget; + + private static List filterSettings(List settings, CampaignType campaignType) { + ArrayList filteredSettings = new ArrayList(); + + for (Setting setting : settings) { + if (campaignType == CampaignType.SHOPPING) { + if (setting instanceof ShoppingSetting) { + filteredSettings.add(setting); + } + } + } + + return filteredSettings; + } + + private ShoppingSetting getShoppingSetting() { + if (getCampaign().getSettings() == null) return null; + + List shoppingSettings = filterSettings(getCampaign().getSettings().getSettings(), CampaignType.SHOPPING); + + if (shoppingSettings.size() != 1) { + throw new IllegalArgumentException("Can only have 1 ShoppingSetting in Campaign Settings."); + } + + return (ShoppingSetting) shoppingSettings.get(0); + } + + static { + + //Consumers to describe getting and setting Daily and Monthly budget fields based on the budget type and budget columns + budgetToCsv = new BiConsumer() { + @Override + public void accept(BulkCampaign c, RowValues values) { + BudgetLimitType budgetType = c.getCampaign().getBudgetType(); + + if (budgetType == null) { + return; + } + + Double budget; + + if (isDailyBudget(budgetType)) { + budget = c.getCampaign().getDailyBudget(); + } else { + budget = c.getCampaign().getMonthlyBudget(); + } + + if (budget == null) { + return; + } + + values.put(StringTable.Budget, budget.toString()); + } + }; + + csvToBudget = new BiConsumer() { + @Override + public void accept(RowValues values, BulkCampaign c) { + String budgetTypeRowValue = values.get(StringTable.BudgetType); + BudgetLimitType budgetType = StringExtensions.parseOptional(budgetTypeRowValue, new Function() { + @Override + public BudgetLimitType apply(String value) { + return BudgetLimitType.fromValue(value); + } + }); + + if (budgetType == null) { + return; + } + + String budgetRowValue = values.get(StringTable.Budget); + + if (budgetRowValue == null) { + return; + } + + Double budgetValue = StringExtensions.nullOrDouble(budgetRowValue); + + c.getCampaign().setBudgetType(budgetType); + + if (isDailyBudget(budgetType)) { + c.getCampaign().setDailyBudget(budgetValue); + } else { + c.getCampaign().setMonthlyBudget(budgetValue); + } + } + }; + + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.CampaignType, + new Function() { + @Override + public String apply(BulkCampaign c) { + if (c.getCampaign().getCampaignType() == null) { + return null; + } + + if (c.getCampaign().getCampaignType().size() != 1) { + throw new IllegalArgumentException("Only 1 CampaignType can be set in Campaign"); + } + + Collection campaignTypes = c.getCampaign().getCampaignType(); + + return (campaignTypes.toArray(new CampaignType[campaignTypes.size()])[0]).value(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + CampaignType campaignType = StringExtensions.parseOptional(v, new Function() { + @Override + public CampaignType apply(String value) { + return CampaignType.fromValue(value); + } + }); + + if (campaignType != null) { + List campaignTypes = new ArrayList(); + + campaignTypes.add(campaignType); + + c.getCampaign().setCampaignType(campaignTypes); + + if (campaignType == CampaignType.SHOPPING) { + c.getCampaign().setSettings(new ArrayOfSetting()); + + ShoppingSetting shoppingSetting = new ShoppingSetting(); + + shoppingSetting.setType(ShoppingSetting.class.getSimpleName()); + + c.getCampaign().getSettings().getSettings().add(shoppingSetting); + } + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkCampaign c) { + return c.getCampaign().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.getCampaign().setId(StringExtensions.nullOrLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkCampaign c) { + return c.getCampaign().getStatus() != null ? c.getCampaign().getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.getCampaign().setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public CampaignStatus apply(String value) { + return CampaignStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkCampaign c) { + return c.getAccountId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.setAccountId(StringExtensions.nullOrLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkCampaign c) { + return c.getCampaign().getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.getCampaign().setName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.TimeZone, + new Function() { + @Override + public String apply(BulkCampaign c) { + return c.getCampaign().getTimeZone(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.getCampaign().setTimeZone(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BudgetType, + new Function() { + @Override + public String apply(BulkCampaign c) { + return c.getCampaign().getBudgetType() != null ? c.getCampaign().getBudgetType().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.getCampaign().setBudgetType(StringExtensions.parseOptional(v, new Function() { + @Override + public BudgetLimitType apply(String value) { + return BudgetLimitType.fromValue(value); + } + })); + } + } + )); + + m.add(new ComplexBulkMapping(BulkCampaign.budgetToCsv, BulkCampaign.csvToBudget)); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkCampaign c) { + return c.getCampaign().getNativeBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.getCampaign().setNativeBidAdjustment(StringExtensions.parseOptionalInteger(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BingMerchantCenterId, + new Function() { + @Override + public Long apply(BulkCampaign c) { + if (c.getCampaign().getCampaignType() == null) { + return null; + } + + if (c.getCampaign().getCampaignType().contains(CampaignType.SHOPPING)) { + ShoppingSetting shoppingSetting = c.getShoppingSetting(); + + if (shoppingSetting == null) { + return null; + } + + return shoppingSetting.getStoreId(); + } + + return null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + if (c.getCampaign().getCampaignType() == null) { + return; + } + + if (c.getCampaign().getCampaignType().contains(CampaignType.SHOPPING)) { + ShoppingSetting shoppingSetting = c.getShoppingSetting(); + + if (shoppingSetting == null) { + return; + } + + shoppingSetting.setStoreId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String s) { + return Long.parseLong(s); + } + })); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CampaignPriority, + new Function() { + @Override + public Integer apply(BulkCampaign c) { + if (c.getCampaign().getCampaignType() == null) { + return null; + } + + if (c.getCampaign().getCampaignType().contains(CampaignType.SHOPPING)) { + ShoppingSetting shoppingSetting = c.getShoppingSetting(); + + if (shoppingSetting == null) { + return null; + } + + return shoppingSetting.getPriority(); + } + + return null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + if (c.getCampaign().getCampaignType() == null) { + return; + } + + if (c.getCampaign().getCampaignType().contains(CampaignType.SHOPPING)) { + ShoppingSetting shoppingSetting = c.getShoppingSetting(); + + if (shoppingSetting == null) { + return; + } + + shoppingSetting.setPriority(StringExtensions.parseOptional(v, new Function() { + @Override + public Integer apply(String s) { + return Integer.parseInt(s); + } + })); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CountryCode, + new Function() { + @Override + public String apply(BulkCampaign c) { + if (c.getCampaign().getCampaignType() == null) { + return null; + } + + if (c.getCampaign().getCampaignType().contains(CampaignType.SHOPPING)) { + ShoppingSetting shoppingSetting = c.getShoppingSetting(); + + if (shoppingSetting == null) { + return null; + } + + return shoppingSetting.getSalesCountryCode(); + } + + return null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + if (c.getCampaign().getCampaignType() == null) { + return; + } + + if (c.getCampaign().getCampaignType().contains(CampaignType.SHOPPING)) { + ShoppingSetting shoppingSetting = c.getShoppingSetting(); + + if (shoppingSetting == null) { + return; + } + + shoppingSetting.setSalesCountryCode(v); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.TrackingTemplate, + new Function() { + @Override + public String apply(BulkCampaign c) { + return StringExtensions.toOptionalBulkString(c.getCampaign().getTrackingUrlTemplate()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + c.getCampaign().setTrackingUrlTemplate(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CustomParameter, + new Function() { + @Override + public String apply(BulkCampaign c) { + return StringExtensions.toCustomParaBulkString(c.getCampaign().getUrlCustomParameters()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaign c) { + try { + c.getCampaign().setUrlCustomParameters(StringExtensions.parseCustomParameters(v)); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + )); + MAPPINGS = Collections.unmodifiableList(m); + } + + /** + * Gets the identifier of the account that contains the campaign. + *

+ *

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

+ */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the identifier of the account that contains the campaign. + *

+ *

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

+ */ + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + /** + * Gets a campaign within an account. + */ + public Campaign getCampaign() { + return campaign; + } + + /** + * Sets a campaign within an account. + */ + public void setCampaign(Campaign campaign) { + this.campaign = campaign; + } + + /** + * Gets the quality score data for the campaign. + */ + public QualityScoreData getQualityScoreData() { + return qualityScoreData; + } + + /** + * Sets the historical performance data for the campaign. + */ + public PerformanceData getPerformanceData() { + return performanceData; + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setCampaign(new Campaign()); + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + qualityScoreData = QualityScoreData.readFromRowValuesOrNull(values); + performanceData = PerformanceData.readFromRowValuesOrNull(values); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getCampaign(), "Campaign"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + + if (!excludeReadonlyData) { + QualityScoreData.writeToRowValuesIfNotNull(qualityScoreData, values); + + PerformanceData.writeToRowValuesIfNotNull(performanceData, values); + } + } + + public static boolean isDailyBudget(BudgetLimitType budgetType) { + return BudgetLimitType.DAILY_BUDGET_ACCELERATED.equals(budgetType) || BudgetLimitType.DAILY_BUDGET_STANDARD.equals(budgetType); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtension.java new file mode 100644 index 0000000000..b245707dc0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtension.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.bulk.entities; + +/** + * This abstract class provides properties that are shared by all bulk campaign + * with ad extension association classes. + *

+ *

+ * For more information, see Bulk File Schema at + * http://go.microsoft.com/fwlink/?LinkID=620269 + *

+ */ +abstract class BulkCampaignAdExtension extends BulkCampaignAdExtensionAssociation { + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtensionAssociation.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtensionAssociation.java new file mode 100644 index 0000000000..8fda4e49e0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAdExtensionAssociation.java @@ -0,0 +1,64 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract class provides properties that are shared by all bulk campaign ad extension association classes. + */ +public abstract class BulkCampaignAdExtensionAssociation extends BulkAdExtensionAssociation { + private String campaignName; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkCampaignAdExtensionAssociation c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignAdExtensionAssociation c) { + c.setCampaignName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * The name of the campaign containing the ad group that the ad extension is associated. + *

+ * Corresponds to the 'Campaign' field in the bulk file. + */ + public String getCampaignName() { + return this.campaignName; + } +} + diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTarget.java new file mode 100644 index 0000000000..1e7f621bb5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTarget.java @@ -0,0 +1,91 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents an age target that is associated with a campaign. + * + * This class exposes the {@link BulkAgeTarget#setAgeTarget} and {@link BulkAgeTarget#getAgeTarget} methods + * that can be used to read and write fields of the Campaign Age Target record in a bulk file. + * + *

+ * One {@link BulkCampaignAgeTarget} exposes a read only list of {@link BulkCampaignAgeTargetBid}. + * Each {@link BulkCampaignAgeTargetBid} instance corresponds to one Campaign Age Target record in the bulk file. + * If you upload a {@link BulkCampaignAgeTarget}, + * then you are effectively replacing any existing bids for the corresponding age target. + *

+ * + *

+ * For more information, see Campaign Age Target at + * http://go.microsoft.com/fwlink/?LinkID=620248. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignAgeTarget extends BulkAgeTarget { + + /** + * Initializes a new instanced of the BulkCampaignAgeTarget class. + */ + public BulkCampaignAgeTarget() { + super(BulkCampaignAgeTargetBid.class); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignAgeTargetBid createBid() { + return new BulkCampaignAgeTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTargetBid.java new file mode 100644 index 0000000000..a5b8419118 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAgeTargetBid.java @@ -0,0 +1,83 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one age target bid within an age target that is associated with a campaign. + * + * This class exposes the {@link BulkAgeTargetBid#setAgeTargetBid} and {@link BulkAgeTargetBid#getAgeTargetBid} methods + * that can be used to read and write fields of the Campaign Age Target record in a bulk file. + * + *

+ * For more information, see Campaign Age Target at + * http://go.microsoft.com/fwlink/?LinkID=620248. + *

+ * + *

+ * One {@link BulkCampaignAgeTarget} exposes a read only list of {@link BulkCampaignAgeTargetBid}. + * Each {@link BulkCampaignAgeTargetBid} instance corresponds to one Campaign Age Target record in the bulk file. + * If you upload a {@link BulkCampaignAgeTarget}, + * then you are effectively replacing any existing bids for the corresponding age target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignAgeTargetBid extends BulkAgeTargetBid { + + /** + * Initializes a new instanced of the BulkCampaignAgeTargetBid class. + */ + public BulkCampaignAgeTargetBid() { + super(new BulkCampaignTargetIdentifier(BulkCampaignAgeTargetBid.class)); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAppAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAppAdExtension.java new file mode 100644 index 0000000000..d286f81157 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignAppAdExtension.java @@ -0,0 +1,22 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; + +/** + * Represents a campaign level app ad extension. This class exposes properties + * that can be read and written as fields of the Campaign App Ad Extension + * record in a bulk file. + * + * For more information, see Campaign App Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620282 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignAppAdExtension extends BulkCampaignAdExtension { +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignCallAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignCallAdExtension.java new file mode 100644 index 0000000000..bcbdc9e40b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignCallAdExtension.java @@ -0,0 +1,22 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; + +/** + * Represents a campaign level call ad extension. This class exposes properties + * that can be read and written as fields of the Campaign Call Ad Extension + * record in a bulk file. + * + * For more information, see Campaign Call Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620249 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignCallAdExtension extends BulkCampaignAdExtension { +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTarget.java new file mode 100644 index 0000000000..7ed2d3c321 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTarget.java @@ -0,0 +1,96 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a day and time target that is associated with a campaign. + * + * This class exposes the {@link BulkDayTimeTarget#setDayTimeTarget} and {@link BulkDayTimeTarget#getDayTimeTarget} methods + * that can be used to read and write fields of the Campaign DayTime Target record in a bulk file. + * + *

+ * One {@link BulkCampaignDayTimeTarget} exposes a read only list of {@link BulkCampaignDayTimeTargetBid}. + * Each {@link BulkCampaignDayTimeTargetBid} instance corresponds to one Campaign DayTime Target record in the bulk file. + * If you upload a {@link BulkCampaignDayTimeTarget}, + * then you are effectively replacing any existing bids for the corresponding day and time target. + *

+ * + *

+ * Properties of this class and of classes that it is derived from, + * correspond to fields of the Campaign DayTime Target record in a bulk file. + *

+ * + *

+ * For more information, see Campaign DayTime Target at + * http://go.microsoft.com/fwlink/?LinkID=620279. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignDayTimeTarget extends BulkDayTimeTarget { + + /** + * Initializes a new instanced of the BulkCampaignDayTimeTarget class. + */ + public BulkCampaignDayTimeTarget() { + super(BulkCampaignDayTimeTargetBid.class); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignDayTimeTargetBid createBid() { + return new BulkCampaignDayTimeTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTargetBid.java new file mode 100644 index 0000000000..b07a4e379c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDayTimeTargetBid.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one day and time target bid within a day and time target that is associated with a campaign. + * + * This class exposes the {@link BulkDayTimeTargetBid#setDayTimeTargetBid} and {@link BulkDayTimeTargetBid#getDayTimeTargetBid} + * methods that can be used to read and write fields of the Campaign DayTime Target record in a bulk file. + * + *

+ * For more information, see Campaign DayTime Target at + * http://go.microsoft.com/fwlink/?LinkID=620279. + *

+ * + *

+ * One {@link BulkCampaignDayTimeTarget} exposes a read only list of {@link BulkCampaignDayTimeTargetBid}. + * Each {@link BulkCampaignDayTimeTargetBid} instance corresponds to one Campaign DayTime Target record in the bulk file. + * If you upload a {@link BulkCampaignDayTimeTarget}, + * then you are effectively replacing any existing bids for the corresponding day and time target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignDayTimeTargetBid extends BulkDayTimeTargetBid { + + public BulkCampaignDayTimeTargetBid() { + super(new BulkCampaignTargetIdentifier(BulkCampaignDayTimeTargetBid.class)); + } + + public Long getCampaignId() { + return getEntityId(); + } + + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + public String getCampaignName() { + return getEntityName(); + } + + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTarget.java new file mode 100644 index 0000000000..0850a21d2d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTarget.java @@ -0,0 +1,91 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a device OS target that is associated with a campaign. + * + * This class exposes the {@link BulkDeviceOsTarget#setDeviceOsTarget} and {@link BulkDeviceOsTarget#getDeviceOsTarget} + * methods that can be used to read and write fields of the Campaign DeviceOS Target record in a bulk file. + * + *

+ * One {@link BulkCampaignDeviceOsTarget} exposes a read only list of {@link BulkCampaignDeviceOsTargetBid}. + * Each {@link BulkCampaignDeviceOsTargetBid} instance corresponds to one Campaign DeviceOS Target record in the bulk file. + * If you upload a {@link BulkCampaignDeviceOsTarget}, + * then you are effectively replacing any existing bids for the corresponding device OS target. + *

+ * + *

+ * For more information, see Campaign DeviceOS Target at + * http://go.microsoft.com/fwlink/?LinkID=620247. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignDeviceOsTarget extends BulkDeviceOsTarget { + + /** + * Initializes a new instanced of the BulkCampaignDeviceOsTarget class. + */ + public BulkCampaignDeviceOsTarget() { + super(BulkCampaignDeviceOsTargetBid.class); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignDeviceOsTargetBid createBid() { + return new BulkCampaignDeviceOsTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTargetBid.java new file mode 100644 index 0000000000..6e2f4662dc --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignDeviceOsTargetBid.java @@ -0,0 +1,76 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one device OS target bid within a device OS target that is associated with a campaign. + * + * This class exposes the {@link BulkDeviceOsTargetBid#setDeviceOsTargetBid} and {@link BulkDeviceOsTargetBid#getDeviceOsTargetBid} + * methods that can be used to read and write fields of the Campaign DeviceOS Target record in a bulk file. + * + *

+ * For more information, see Campaign DeviceOS Target at + * http://go.microsoft.com/fwlink/?LinkID=620247. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignDeviceOsTargetBid extends BulkDeviceOsTargetBid { + + /** + * Initializes a new instanced of the BulkCampaignDeviceOsTargetBid class. + */ + public BulkCampaignDeviceOsTargetBid() { + super(new BulkCampaignTargetIdentifier(BulkCampaignDeviceOsTargetBid.class)); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTarget.java new file mode 100644 index 0000000000..0e9afea5a5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTarget.java @@ -0,0 +1,91 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a gender target that is associated with a campaign. + * + * This class exposes the {@link BulkGenderTarget#setGenderTarget} and {@link BulkGenderTarget#getGenderTarget} + * methods that can be used to read and write fields of the Campaign Gender Target record in a bulk file. + * + *

+ * One {@link BulkCampaignGenderTarget} exposes a read only list of {@link BulkCampaignGenderTargetBid}. + * Each {@link BulkCampaignGenderTargetBid} instance corresponds to one Campaign Gender Target record in the bulk file. + * If you upload a {@link BulkCampaignGenderTarget}, + * then you are effectively replacing any existing bids for the corresponding gender target. + *

+ * + *

+ * For more information, see Campaign Gender Target at + * http://go.microsoft.com/fwlink/?LinkID=620246. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignGenderTarget extends BulkGenderTarget { + + /** + * Initializes a new instanced of the BulkCampaignGenderTarget class. + */ + public BulkCampaignGenderTarget() { + super(BulkCampaignGenderTargetBid.class); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignGenderTargetBid createBid() { + return new BulkCampaignGenderTargetBid(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTargetBid.java new file mode 100644 index 0000000000..63ed1ddacd --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignGenderTargetBid.java @@ -0,0 +1,83 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one gender target bid within a gender target that is associated with a campaign. + * + * This class exposes the {@link BulkGenderTargetBid#setGenderTargetBid} and {@link BulkGenderTargetBid#getGenderTargetBid} + * methods that can be used to read and write fields of the Campaign Gender Target record in a bulk file. + * + *

+ * For more information, see Campaign Gender Target at + * http://go.microsoft.com/fwlink/?LinkID=620246. + *

+ * + *

+ * One {@link BulkCampaignGenderTarget} exposes a read only list of {@link BulkCampaignGenderTargetBid}. + * Each {@link BulkCampaignGenderTargetBid} instance corresponds to one Campaign Gender Target record in the bulk file. + * If you upload a {@link BulkCampaignGenderTarget}, + * then you are effectively replacing any existing bids for the corresponding gender target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignGenderTargetBid extends BulkGenderTargetBid { + + /** + * Initializes a new instanced of the BulkCampaignGenderTargetBid class. + */ + public BulkCampaignGenderTargetBid() { + super(new BulkCampaignTargetIdentifier(BulkCampaignGenderTargetBid.class)); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignImageAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignImageAdExtension.java new file mode 100644 index 0000000000..8dd9e2f55c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignImageAdExtension.java @@ -0,0 +1,22 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; + +/** + * Represents a campaign level image ad extension. This class exposes properties + * that can be read and written as fields of the Campaign Image Ad Extension + * record in a bulk file. + * + * For more information, see Campaign Image Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620276 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignImageAdExtension extends BulkCampaignAdExtension { +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationAdExtension.java new file mode 100644 index 0000000000..15f7c87f71 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationAdExtension.java @@ -0,0 +1,22 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; + +/** + * Represents a campaign level location ad extension. This class exposes properties + * that can be read and written as fields of the Campaign Location Ad Extension + * record in a bulk file. + * + * For more information, see Campaign Location Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=511534 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignLocationAdExtension extends BulkCampaignAdExtension { +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTarget.java new file mode 100644 index 0000000000..e88230d853 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTarget.java @@ -0,0 +1,138 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.IntentOption; +import com.microsoft.bingads.v10.campaignmanagement.LocationTarget; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; + +/** + * Represents a location target that is associated with a campaign. + * + * This class exposes the + * {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * {@link BulkLocationTargetWithStringLocation#setCityTarget} + * {@link BulkLocationTargetWithStringLocation#getCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#setCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#getMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#setMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#getPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#setPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#getStateTarget}, + * and {@link BulkLocationTargetWithStringLocation#setStateTarget} methods, + * + * that represent geographical location sub types. + * Each sub type can be read and written as fields of the Campaign Location Target record in a bulk file. + * + *

+ * Each location sub type contains a list of bids. For example {@link BulkLocationTargetWithStringLocation#getCityTarget} + * contains a list of {@link CityTargetBid}. Each {@link CityTargetBid} instance + * corresponds to one Campaign Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding location target. + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} methods determines the geographical location sub type. + *

+ * + *

+ * For more information, see Campaign Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620243. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignLocationTarget extends BulkLocationTarget { + + /** + * Initializes a new instanced of the BulkCampaignLocationTarget class. + */ + public BulkCampaignLocationTarget() { + super(BulkCampaignLocationTargetBid.class); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Gets intent options for location targeting. + */ + public IntentOption getIntentOption() { + return getLocationProperty(new Function() { + @Override + public IntentOption apply(LocationTarget t) { + return t.getIntentOption(); + } + }); + } + + /** + * Sets intent options for location targeting. + */ + public void setIntentOption(final IntentOption intentOption) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget locationTarget) { + locationTarget.setIntentOption(intentOption); + } + }); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignLocationTargetBid createBid() { + return new BulkCampaignLocationTargetBid(); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTargetBid.java new file mode 100644 index 0000000000..4920f702d5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignLocationTargetBid.java @@ -0,0 +1,101 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a location target that is associated with a campaign. + * + * This class exposes the + * {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * {@link BulkLocationTargetWithStringLocation#setCityTarget} + * {@link BulkLocationTargetWithStringLocation#getCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#setCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#getMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#setMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#getPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#setPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#getStateTarget}, + * and {@link BulkLocationTargetWithStringLocation#setStateTarget} methods, + * + * that represent geographical location sub types. + * Each sub type can be read and written as fields of the Campaign Location Target record in a bulk file. + * + *

+ * Each location sub type contains a list of bids. For example {@link BulkLocationTargetWithStringLocation#getCityTarget} + * contains a list of {@link CityTargetBid}. Each {@link CityTargetBid} instance + * corresponds to one Campaign Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding location target. + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} methods determines the geographical location sub type. + *

+ * + *

+ * For more information, see Campaign Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620243. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignLocationTargetBid extends BulkLocationTargetBid { + + /** + * Initializes a new instanced of the BulkCampaignLocationTargetBid class. + */ + public BulkCampaignLocationTargetBid() { + super(new BulkCampaignTargetIdentifier(BulkCampaignLocationTargetBid.class)); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeyword.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeyword.java new file mode 100644 index 0000000000..ec1387e8b6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeyword.java @@ -0,0 +1,75 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringTable; + +/** + * Represents a negative keyword that is assigned to a campaign. Each negative keyword can be read or written in a bulk file. + * This class exposes the {@link #setNegativeKeyword} and {@link #getNegativeKeyword} methods that can be used to read and write + * fields of the Campaign Negative Keyword record in a bulk file. + * + *

+ * For more information, see Campaign Negative Keyword at + * http://go.microsoft.com/fwlink/?LinkID=620240. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignNegativeKeyword extends BulkEntityNegativeKeyword { + + /** + * Gets the identifier of the campaign that the negative keyword is assigned. + * + *

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

+ */ + public Long getCampaignId() { + return this.getParentId(); + } + + /** + * Sets the identifier of the campaign that the negative keyword is assigned. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + this.setParentId(campaignId); + } + + /** + * Gets the name of the campaign that the negative keyword is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return this.getEntityName(); + } + + /** + * Sets the name of the campaign that the negative keyword is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + @Override + String getEntityColumnName() { + return StringTable.Campaign; + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeywordList.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeywordList.java new file mode 100644 index 0000000000..523f24ab72 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeKeywordList.java @@ -0,0 +1,172 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.campaignmanagement.SharedEntityAssociation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a negative keyword list that is assigned to a campaign. + * 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 Campaign Negative Keyword List Association at + * http://go.microsoft.com/fwlink/?LinkID=620241. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignNegativeKeywordList extends SingleRecordBulkEntity { + + private SharedEntityAssociation sharedEntityAssociation; + + private Status status; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + AdExtensionStatus a; + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkCampaignNegativeKeywordList c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignNegativeKeywordList 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(BulkCampaignNegativeKeywordList c) { + return c.getSharedEntityAssociation().getSharedEntityId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignNegativeKeywordList 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(BulkCampaignNegativeKeywordList c) { + return c.getSharedEntityAssociation().getEntityId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignNegativeKeywordList 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("Campaign"); + 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 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 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/v10/bulk/entities/BulkCampaignNegativeLocationTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeLocationTarget.java new file mode 100644 index 0000000000..d0d82eb1f2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeLocationTarget.java @@ -0,0 +1,110 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a negative location target that is associated with a campaign. + * + * This class exposes the + * {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * {@link BulkLocationTargetWithStringLocation#setCityTarget} + * {@link BulkLocationTargetWithStringLocation#getCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#setCountryTarget}, + * {@link BulkLocationTargetWithStringLocation#getMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#setMetroAreaTarget}, + * {@link BulkLocationTargetWithStringLocation#getPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#setPostalCodeTarget}, + * {@link BulkLocationTargetWithStringLocation#getStateTarget}, + * and {@link BulkLocationTargetWithStringLocation#setStateTarget} methods, + * + * that represent geographical location sub types. + * Each sub type can be read and written as fields of the Campaign Negative Location Target record in a bulk file. + * + *

+ * Each negative location sub type contains a list of bids. For example {@link BulkLocationTargetWithStringLocation#getCityTarget} + * contains a list of {@link CityTargetBid}. Each {@link CityTargetBid} instance + * corresponds to one Campaign Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding negative location target. + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} methods determines the geographical location sub type. + *

+ * + *

+ * For more information, see Campaign Negative Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620244. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignNegativeLocationTarget extends BulkNegativeLocationTarget { + + /** + * Initializes a new instanced of the BulkCampaignNegativeLocationTarget class. + */ + public BulkCampaignNegativeLocationTarget() { + super(BulkCampaignNegativeLocationTargetBid.class); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignNegativeLocationTargetBid createBid() { + return new BulkCampaignNegativeLocationTargetBid(); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeLocationTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeLocationTargetBid.java new file mode 100644 index 0000000000..79cf7644b5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeLocationTargetBid.java @@ -0,0 +1,88 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one sub negative location target bid within a negative location target that is associated with a campaign. + * + * This class exposes properties that can be read and written as fields of the Campaign Negative Location Target record in a bulk file. + * + *

+ * For more information, see Campaign Negative Location Target at + * http://go.microsoft.com/fwlink/?LinkID=620244. + *

+ * + *

+ * Each negative location sub type contains a list of bids. + * For example {@link BulkLocationTargetWithStringLocation#getCityTarget} contains a list of {@link CityTargetBid}. + * Each {@link CityTargetBid} instance corresponds to one Campaign Negative Location Target record in the bulk file. + * If you upload a {@link BulkLocationTargetWithStringLocation#getCityTarget}, + * then you are effectively replacing any existing city bids for the corresponding negative location target + *

+ * + *

+ * The {@link BulkLocationTargetBidWithStringLocation#getLocationType} property determines the geographical location sub type. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignNegativeLocationTargetBid extends BulkNegativeLocationTargetBid { + + /** + * Initializes a new instanced of the BulkCampaignNegativeLocationTargetBid class. + */ + public BulkCampaignNegativeLocationTargetBid() { + super(new BulkCampaignTargetIdentifier(BulkCampaignNegativeLocationTargetBid.class)); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSite.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSite.java new file mode 100644 index 0000000000..a2e5c8dc3b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSite.java @@ -0,0 +1,92 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkCampaignNegativeSitesIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; + +/** + *

+ * Represents a negative site that is assigned to a campaign. Each negative site + * can be read or written in a bulk file. This class exposes properties that can + * be read and written as fields of the Campaign Negative Site record in a bulk + * file. + *

+ *

+ * For more information, see Campaign Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620242 + *

+ * + *

+ * One {@link BulkCampaignNegativeSites} has one or more + * {@link BulkCampaignNegativeSite}. Each {@link BulkCampaignNegativeSite} + * instance corresponds to one Campaign Negative Site record in the bulk file. + * If you upload a {@link BulkCampaignNegativeSites}, then you are effectively + * replacing any existing negative sites assigned to the campaign. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignNegativeSite extends BulkNegativeSite { + + /** + * Gets the identifier of the campaign that the negative site is assigned. + * + *

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

+ */ + public long getCampaignId() { + return this.getIdentifier().getCampaignId(); + } + + /** + * Sets the identifier of the campaign that the negative site is assigned. + * + *

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

+ */ + public void setCampaignId(long value) { + this.getIdentifier().setCampaignId(value); + } + + /** + * Gets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getCampaignName() { + return this.getIdentifier().getCampaignName(); + } + + /** + * Sets the name of the ad group that the negative site is assigned. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setCampaignName(String value) { + this.getIdentifier().setCampaignName(value); + } + + /** + * Initializes a new instance of the BulkCampaignNegativeSite class. + */ + public BulkCampaignNegativeSite() { + super(new BulkCampaignNegativeSitesIdentifier()); + } + + @Override + MultiRecordBulkEntity createNegativeSitesWithThisNegativeSite() { + return new BulkCampaignNegativeSites(this); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSites.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSites.java new file mode 100644 index 0000000000..3ae32cab9b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignNegativeSites.java @@ -0,0 +1,177 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.entities.BulkCampaignNegativeSitesIdentifier; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.CampaignNegativeSites; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import java.util.ArrayList; +import java.util.List; + +/** + *

+ * Represents one or more negative sites that are assigned to a campaign. Each + * negative site can be read or written in a bulk file. This class exposes + * properties that can be read and written as fields of the Campaign Negative + * Site record in a bulk file. + *

+ *

+ * For more information, see Campaign Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620242 + *

+ * + *

+ * One {@link BulkCampaignNegativeSites} has one or more + * {@link BulkCampaignNegativeSite}. Each {@link BulkCampaignNegativeSite} + * instance corresponds to one Campaign Negative Site record in the bulk file. + * If you upload a {@link BulkCampaignNegativeSites}, then you are effectively + * replacing any existing negative sites assigned to the campaign. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignNegativeSites extends BulkNegativeSites { + + private CampaignNegativeSites campaignNegativeSites; + + /** + * Gets the CampaignNegativeSites Data Object of the Campaign Management Service. + * A subset of CampaignNegativeSites properties are available in the + * Campaign Negative Site record. + * + *

+ * For more information, see Campaign Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620242. + *

+ */ + public CampaignNegativeSites getCampaignNegativeSites() { + return campaignNegativeSites; + } + + /** + * Sets the CampaignNegativeSites Data Object of the Campaign Management Service. + * A subset of CampaignNegativeSites properties are available in the + * Campaign Negative Site record. + * + *

+ * For more information, see Campaign Negative Site at + * http://go.microsoft.com/fwlink/?LinkID=620242. + *

+ */ + public void setCampaignNegativeSites(CampaignNegativeSites campaignNegativeSites) { + this.campaignNegativeSites = campaignNegativeSites; + } + + private String campaignName; + + /** + * Gets the name of the campaign that the negative site is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return campaignName; + } + + /** + * Sets the name of the campaign that the negative site is assigned. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * Initializes a new instance of the BulkCampaignNegativeSites class. + */ + public BulkCampaignNegativeSites() { + } + + BulkCampaignNegativeSites(BulkCampaignNegativeSite site) { + super(site, BulkCampaignNegativeSite.class, BulkCampaignNegativeSitesIdentifier.class); + setDataFromIdentifier(site.getIdentifier()); + } + + public BulkCampaignNegativeSites(BulkCampaignNegativeSitesIdentifier identifier) { + super(identifier, BulkCampaignNegativeSite.class, BulkCampaignNegativeSitesIdentifier.class); + setDataFromIdentifier(identifier); + } + + private void setDataFromIdentifier(BulkCampaignNegativeSitesIdentifier identifier) { + this.campaignNegativeSites = new CampaignNegativeSites(); + this.campaignNegativeSites.setCampaignId(identifier.getCampaignId()); + + this.campaignName = identifier.getCampaignName(); + } + + /** + * Reserved for internal use. + */ + @Override + protected Iterable convertApiToBulkNegativeSites() { + validateListNotNullOrEmpty(this.campaignNegativeSites.getNegativeSites(), this.campaignNegativeSites.getNegativeSites().getStrings(), "CampaignNegativeSites.NegativeSites"); + + List bulkSites = new ArrayList(); + + List negativeSites = campaignNegativeSites.getNegativeSites().getStrings(); + + for (String negativeSite : negativeSites) { + BulkCampaignNegativeSite bulkSite = new BulkCampaignNegativeSite(); + + if (campaignNegativeSites.getCampaignId() != null) { + bulkSite.setCampaignId(campaignNegativeSites.getCampaignId()); + } + bulkSite.setWebsite(negativeSite); + bulkSite.setCampaignName(getCampaignName()); + + bulkSites.add(bulkSite); + } + + return bulkSites; + } + + /** + * Reserved for internal use. + */ + @Override + protected void reconstructApiObjects() { + ArrayOfstring websitesArray = new ArrayOfstring(); + + for (BulkCampaignNegativeSite bulkNegativeSite : getNegativeSites()) { + websitesArray.getStrings().add(bulkNegativeSite.getWebsite()); + } + + this.campaignNegativeSites.setNegativeSites(websitesArray); + } + + /** + * Reserved for internal use. + */ + @Override + protected BulkCampaignNegativeSitesIdentifier createIdentifier() { + BulkCampaignNegativeSitesIdentifier identifier = new BulkCampaignNegativeSitesIdentifier(); + if (this.campaignNegativeSites.getCampaignId() != null) { + identifier.setCampaignId(this.campaignNegativeSites.getCampaignId()); + } + identifier.setCampaignName(this.campaignName); + return identifier; + } + + /** + * Reserved for internal use. + */ + @Override + protected void validatePropertiesNotNull() { + validatePropertyNotNull(campaignNegativeSites, "CampaignNegativeSites"); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignProductScope.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignProductScope.java new file mode 100644 index 0000000000..e259107a6a --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignProductScope.java @@ -0,0 +1,212 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfProductCondition; +import com.microsoft.bingads.v10.campaignmanagement.CampaignCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductScope; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.*; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a Campaign Criterion that can be read or written in a bulk file. + *

+ * This class exposes the {@link #setCampaignCriterion} and {@link #getCampaignCriterion} methods + * that can be used to read and write fields of the Campaign Product Scope record in a bulk file. + *

+ *

+ * For more information, see Campaign Product Scope at + * http://go.microsoft.com/fwlink/?LinkId=618643 + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignProductScope extends SingleRecordBulkEntity { + + private CampaignCriterion campaignCriterion; + + private String campaignName; + + 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(BulkCampaignProductScope c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignProductScope 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(BulkCampaignProductScope c) { + return c.getCampaignCriterion().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignProductScope c) { + c.getCampaignCriterion().setId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String s) { + return Long.parseLong(s); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkCampaignProductScope c) { + return c.getCampaignCriterion().getCampaignId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignProductScope c) { + c.getCampaignCriterion().setCampaignId(Long.parseLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkCampaignProductScope c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkCampaignProductScope c) { + c.setCampaignName(v); + } + } + )); + + m.add(new ComplexBulkMapping( + new BiConsumer() { + @Override + public void accept(BulkCampaignProductScope c, RowValues v) { + ProductScope product = (ProductScope) c.getCampaignCriterion().getCriterion(); + + if (product == null || product.getConditions() == null) { + return; + } + + ProductConditionHelper.addRowValuesFromConditions(product.getConditions(), v); + } + }, + new BiConsumer() { + @Override + public void accept(RowValues v, BulkCampaignProductScope c) { + ProductScope product = (ProductScope) c.getCampaignCriterion().getCriterion(); + product.setConditions(new ArrayOfProductCondition()); + + ProductConditionHelper.addConditionsFromRowValues(v, product.getConditions()); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + CampaignCriterion campaignCriterion = new CampaignCriterion(); + + campaignCriterion.setCriterion(new ProductScope()); + + campaignCriterion.setType(CampaignCriterion.class.getSimpleName()); + + campaignCriterion.getCriterion().setType(ProductScope.class.getSimpleName()); + + setCampaignCriterion(campaignCriterion); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getCampaignCriterion(), CampaignCriterion.class.getSimpleName()); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets a Campaign Criterion. + */ + public CampaignCriterion getCampaignCriterion() { + return campaignCriterion; + } + + /** + * Sets a Campaign Criterion + */ + public void setCampaignCriterion(CampaignCriterion campaignCriterion) { + this.campaignCriterion = campaignCriterion; + } + + /** + * Gets the name of the campaign. + * Corresponds to the 'Campaign' field in the bulk file. + */ + public String getCampaignName() { + return campaignName; + } + + /** + * Sets the name of the campaign. + * Corresponds to the 'Campaign' field in the bulk file. + */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * Gets the status of the Campaign Criterion. + */ + public Status getStatus() { + return status; + } + + /** + * Sets the status of the Campaign Criterion. + */ + public void setStatus(Status status) { + this.status = status; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTarget.java new file mode 100644 index 0000000000..0794f87618 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTarget.java @@ -0,0 +1,92 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a radius target that is associated with a campaign. + * + * This class exposes the {@link BulkRadiusTarget#setRadiusTarget} and {@link BulkRadiusTarget#getRadiusTarget} + * methods that can be used to read and write fields of the Campaign Radius Target record in a bulk file. + * + *

+ * One {@link BulkCampaignRadiusTarget} exposes a read only list of {@link BulkCampaignRadiusTargetBid}. + * Each {@link BulkCampaignRadiusTargetBid} instance corresponds to one Campaign Radius Target record in the bulk file. + * If you upload a {@link BulkCampaignRadiusTarget}, + * then you are effectively replacing any existing bids for the corresponding radius target. + *

+ * + *

+ * For more information, see Campaign Radius Target at + * http://go.microsoft.com/fwlink/?LinkID=620245. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignRadiusTarget extends BulkRadiusTarget { + + /** + * Initializes a new instanced of the BulkCampaignRadiusTarget class. + */ + public BulkCampaignRadiusTarget() { + super(BulkCampaignRadiusTargetBid.class); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignRadiusTargetBid createBid() { + return new BulkCampaignRadiusTargetBid(); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTargetBid.java new file mode 100644 index 0000000000..d86d81d62c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignRadiusTargetBid.java @@ -0,0 +1,83 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents one radius target bid within an radius target that is associated with a campaign. + * + * This class exposes the {@link BulkRadiusTargetBid#setRadiusTargetBid} and {@link BulkRadiusTargetBid#getRadiusTargetBid} + * methods that can be used to read and write fields of the Campaign Radius Target record in a bulk file. + * + *

+ * For more information, see Campaign Radius Target at + * http://go.microsoft.com/fwlink/?LinkID=620245. + *

+ * + *

+ * One {@link BulkCampaignRadiusTarget} exposes a read only list of {@link BulkCampaignRadiusTargetBid}. + * Each {@link BulkCampaignRadiusTargetBid} instance corresponds to one Campaign Radius Target record in the bulk file. + * If you upload a {@link BulkCampaignRadiusTarget}, + * then you are effectively replacing any existing bids for the corresponding radius target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignRadiusTargetBid extends BulkRadiusTargetBid { + + /** + * Initializes a new instanced of the BulkCampaignRadiusTargetBid class. + */ + public BulkCampaignRadiusTargetBid() { + super(new BulkCampaignTargetIdentifier(BulkCampaignRadiusTargetBid.class)); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignSiteLinkAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignSiteLinkAdExtension.java new file mode 100644 index 0000000000..b51f0e12cf --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignSiteLinkAdExtension.java @@ -0,0 +1,22 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; + +/** + * Represents a campaign level site link ad extension. This class exposes properties + * that can be read and written as fields of the Campaign Site Link Ad Extension + * record in a bulk file. + * + * For more information, see Campaign SiteLink Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620251 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignSiteLinkAdExtension extends BulkCampaignAdExtension { +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTarget.java new file mode 100644 index 0000000000..545d7ee443 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTarget.java @@ -0,0 +1,141 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.Target; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * Represents a target that is associated with a campaign. + * + * The target contains one or more sub targets, including + * age, gender, day and time, device OS, and location. + * Each target can be read or written in a bulk file. + * + *

+ * When requesting downloaded entities of type {@link BulkCampaignTarget}, the results will include + * Campaign Age Target, Campaign DayTime Target, Campaign DeviceOS Target, Campaign Gender Target, Campaign Location Target, + * Campaign Negative Location Target, and Campaign Radius Target records. + * For more information, see Bulk File Schema at + * http://go.microsoft.com/fwlink/?LinkID=620269. + *

+ * + *

+ * For upload you must set the {@link Target2} object, + * which will effectively replace any existing bids for the corresponding target. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkCampaignTarget extends BulkTarget{ + + /** + * Initializes a new instanced of the BulkCampaignTarget class. + */ + public BulkCampaignTarget() { + super(new BulkCampaignAgeTarget(), BulkCampaignAgeTargetBid.class, + new BulkCampaignDayTimeTarget(), BulkCampaignDayTimeTargetBid.class, + new BulkCampaignDeviceOsTarget(), BulkCampaignDeviceOsTargetBid.class, + new BulkCampaignGenderTarget(), BulkCampaignGenderTargetBid.class, + new BulkCampaignLocationTarget(), BulkCampaignLocationTargetBid.class, + new BulkCampaignNegativeLocationTarget(), BulkCampaignNegativeLocationTargetBid.class, + new BulkCampaignRadiusTarget(), BulkCampaignRadiusTargetBid.class + ); + } + + /** + * Initializes a new instanced of the BulkCampaignTarget class with the specified bulk target bid. + */ + BulkCampaignTarget(BulkTargetBid bid) { + super(bid, + new BulkCampaignAgeTarget(), BulkCampaignAgeTargetBid.class, + new BulkCampaignDayTimeTarget(), BulkCampaignDayTimeTargetBid.class, + new BulkCampaignDeviceOsTarget(), BulkCampaignDeviceOsTargetBid.class, + new BulkCampaignGenderTarget(), BulkCampaignGenderTargetBid.class, + new BulkCampaignLocationTarget(), BulkCampaignLocationTargetBid.class, + new BulkCampaignNegativeLocationTarget(), BulkCampaignNegativeLocationTargetBid.class, + new BulkCampaignRadiusTarget(), BulkCampaignRadiusTargetBid.class, + BulkCampaignTargetIdentifier.class + ); + } + + /** + * Reserved for internal use. + */ + BulkCampaignTarget(BulkCampaignTargetIdentifier identifier) { + super(identifier, + new BulkCampaignAgeTarget(), BulkCampaignAgeTargetBid.class, + new BulkCampaignDayTimeTarget(), BulkCampaignDayTimeTargetBid.class, + new BulkCampaignDeviceOsTarget(), BulkCampaignDeviceOsTargetBid.class, + new BulkCampaignGenderTarget(), BulkCampaignGenderTargetBid.class, + new BulkCampaignLocationTarget(), BulkCampaignLocationTargetBid.class, + new BulkCampaignNegativeLocationTarget(), BulkCampaignNegativeLocationTargetBid.class, + new BulkCampaignRadiusTarget(), BulkCampaignRadiusTargetBid.class, + BulkCampaignTargetIdentifier.class + ); + } + + /** + * Gets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public Long getCampaignId() { + return getEntityId(); + } + + /** + * Sets the identifier of the campaign that the target is associated. + * + *

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

+ */ + public void setCampaignId(Long campaignId) { + setEntityId(campaignId); + } + + /** + * Gets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return getEntityName(); + } + + /** + * Sets the name of the campaign that target is associated. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + setEntityName(campaignName); + } + + /** + * Reserved for internal use. + */ + @Override + BulkCampaignTargetIdentifier createIdentifier(Class bidType) { + return new BulkCampaignTargetIdentifier(bidType); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTargetIdentifier.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTargetIdentifier.java new file mode 100644 index 0000000000..57b1536fb2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkCampaignTargetIdentifier.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import static com.microsoft.bingads.internal.utilities.Comparer.compareNullable; + +/** + * Reserved for internal use. + */ +class BulkCampaignTargetIdentifier extends BulkTargetIdentifier { + + /** + * Initializes a new instanced of the BulkCampaignTargetIdentifier class. + */ + public BulkCampaignTargetIdentifier(Class targetBidType) { + super(targetBidType); + } + + @Override + public MultiRecordBulkEntity createEntityWithThisIdentifier() { + return new BulkCampaignTarget(this); + } + + /** + * Reserved for internal use. + */ + @Override + String getEntityColumnName() { + return StringTable.Campaign; + } + + @Override + public boolean equals(Object other) { + if (!(other instanceof BulkCampaignTargetIdentifier)) { + return false; + } + + BulkCampaignTargetIdentifier otherIdentifier = (BulkCampaignTargetIdentifier) other; + + boolean isNameNotEmpty = getEntityName() != null && getEntityName().length() != 0; + + return compareNullable(getEntityId(), otherIdentifier.getEntityId()) || + ( + isNameNotEmpty && + compareNullable(getEntityName(), otherIdentifier.getEntityName()) + ); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTarget.java new file mode 100644 index 0000000000..13c60178cb --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTarget.java @@ -0,0 +1,96 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.DayTimeTarget; +import com.microsoft.bingads.v10.campaignmanagement.DayTimeTargetBid; + +import java.util.ArrayList; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk day and time target classes. + * + * @param see {@link BulkDayTimeTargetBid} + */ +abstract class BulkDayTimeTarget extends BulkSubTarget { + + private DayTimeTarget dayTimeTarget; + + public BulkDayTimeTarget(Class classOfTBid) { + super(classOfTBid); + } + + /** + * Reserved for internal use. + */ + @Override + void reconstructSubTargets() { + setDayTimeTarget(new DayTimeTarget()); + + ArrayOfDayTimeTargetBid bids = new ArrayOfDayTimeTargetBid(); + + getDayTimeTarget().setBids(bids); + + for (TBid bid : getBids()) { + bids.getDayTimeTargetBids().add(bid.getDayTimeTargetBid()); + } + } + + /** + * Reserved for internal use. + */ + @Override + List convertApiToBulkBids() { + List bulkBids = new ArrayList(); + + if (getDayTimeTarget() == null || getDayTimeTarget().getBids() == null) { + return bulkBids; + } + + for (final DayTimeTargetBid apiBid : getDayTimeTarget().getBids().getDayTimeTargetBids()) { + TBid bulkBid = createAndPopulateBid(new Consumer() { + @Override + public void accept(TBid t) { + t.setDayTimeTargetBid(apiBid); + } + }); + + bulkBids.add(bulkBid); + } + + return bulkBids; + } + + /** + * Reserved for internal use. + */ + @Override + void validatePropertiesNotNull() { + validatePropertyNotNull(getDayTimeTarget(), "DayTimeTarget"); + } + + /** + * Reserved for internal use. + */ + @Override + void validateBidsNotNullOrEmpty() { + if (getDayTimeTarget() != null) { + validateListNotNullOrEmpty(getDayTimeTarget().getBids(), getDayTimeTarget().getBids().getDayTimeTargetBids(), "DayTimeTarget.Bids"); + } + } + + /** + * Gets a list of days of the week and time ranges to target with bid adjustments. + */ + public DayTimeTarget getDayTimeTarget() { + return dayTimeTarget; + } + + /** + * Sets a list of days of the week and time ranges to target with bid adjustments. + */ + public void setDayTimeTarget(DayTimeTarget dayTimeTarget) { + this.dayTimeTarget = dayTimeTarget; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTargetBid.java new file mode 100644 index 0000000000..989fda2bd0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDayTimeTargetBid.java @@ -0,0 +1,162 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.campaignmanagement.Day; +import com.microsoft.bingads.v10.campaignmanagement.DayTimeTargetBid; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk day and time target bid classes. + */ +abstract class BulkDayTimeTargetBid extends BulkTargetBid { + + private DayTimeTargetBid dayTimeTargetBid; + + /** + * Reserved for internal use. + */ + BulkDayTimeTargetBid(BulkTargetIdentifier identifier) { + super(identifier); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Target, + new Function() { + @Override + public String apply(BulkDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getDay().value(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDayTimeTargetBid c) { + c.getDayTimeTargetBid().setDay(Day.fromValue(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FromHour, + new Function() { + @Override + public Integer apply(BulkDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getFromHour(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDayTimeTargetBid c) { + c.getDayTimeTargetBid().setFromHour(Integer.parseInt(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ToHour, + new Function() { + @Override + public Integer apply(BulkDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getToHour(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDayTimeTargetBid c) { + c.getDayTimeTargetBid().setToHour(Integer.parseInt(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FromMinute, + new Function() { + @Override + public String apply(BulkDayTimeTargetBid c) { + return StringExtensions.toMinuteBulkString(c.getDayTimeTargetBid().getFromMinute()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDayTimeTargetBid c) { + c.getDayTimeTargetBid().setFromMinute(StringExtensions.parseMinute(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ToMinute, + new Function() { + @Override + public String apply(BulkDayTimeTargetBid c) { + return StringExtensions.toMinuteBulkString(c.getDayTimeTargetBid().getToMinute()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDayTimeTargetBid c) { + c.getDayTimeTargetBid().setToMinute(StringExtensions.parseMinute(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDayTimeTargetBid c) { + c.getDayTimeTargetBid().setBidAdjustment(Integer.parseInt(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + setDayTimeTargetBid(new DayTimeTargetBid()); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getDayTimeTargetBid(), "DayTimeTargetBid"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets a specific day of the week and time range to target. + */ + public DayTimeTargetBid getDayTimeTargetBid() { + return dayTimeTargetBid; + } + + /** + * Sets a specific day of the week and time range to target. + */ + public void setDayTimeTargetBid(DayTimeTargetBid dayTimeTargetBid) { + this.dayTimeTargetBid = dayTimeTargetBid; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTarget.java new file mode 100644 index 0000000000..f2f57557c1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTarget.java @@ -0,0 +1,98 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfDeviceOSTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.DeviceOSTarget; +import com.microsoft.bingads.v10.campaignmanagement.DeviceOSTargetBid; + +import java.util.ArrayList; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk device OS target classes. + * + * @param see {@link BulkDeviceOsTargetBid} + */ +abstract class BulkDeviceOsTarget extends BulkSubTarget { + + private DeviceOSTarget deviceOSTarget; + + public BulkDeviceOsTarget(Class classOfTBid) { + super(classOfTBid); + } + + /** + * Reserved for internal use. + */ + @Override + void reconstructSubTargets() { + setDeviceOsTarget(new DeviceOSTarget()); + + ArrayOfDeviceOSTargetBid bids = new ArrayOfDeviceOSTargetBid(); + + getDeviceOsTarget().setBids(bids); + + for (TBid bid : getBids()) { + bids.getDeviceOSTargetBids().add(bid.getDeviceOsTargetBid()); + } + } + + /** + * Reserved for internal use. + */ + @Override + List convertApiToBulkBids() { + List bulkBids = new ArrayList(); + + if (getDeviceOsTarget() == null || getDeviceOsTarget().getBids() == null) { + return bulkBids; + } + + for (final DeviceOSTargetBid apiBid : getDeviceOsTarget().getBids().getDeviceOSTargetBids()) { + TBid bulkBid = createAndPopulateBid(new Consumer() { + @Override + public void accept(TBid t) { + t.setDeviceOsTargetBid(apiBid); + } + }); + + bulkBids.add(bulkBid); + } + + return bulkBids; + } + + /** + * Reserved for internal use. + */ + @Override + void validatePropertiesNotNull() { + validatePropertyNotNull(getDeviceOsTarget(), "DeviceOsTarget"); + } + + /** + * Reserved for internal use. + */ + @Override + void validateBidsNotNullOrEmpty() { + if (getDeviceOsTarget() != null) { + validateListNotNullOrEmpty(getDeviceOsTarget().getBids(), getDeviceOsTarget().getBids().getDeviceOSTargetBids(), "DeviceOsTarget.Bids"); + } + } + + /** + * Gets a list of devices to target with bid adjustments. + */ + public DeviceOSTarget getDeviceOsTarget() { + return deviceOSTarget; + } + + /** + * Sets a list of devices to target with bid adjustments. + */ + public void setDeviceOsTarget(DeviceOSTarget ageTarget) { + this.deviceOSTarget = ageTarget; + } + + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTargetBid.java new file mode 100644 index 0000000000..7f6b69f077 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkDeviceOsTargetBid.java @@ -0,0 +1,129 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.DeviceOSTargetBid; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk device OS target bid classes. + */ +abstract class BulkDeviceOsTargetBid extends BulkTargetBid { + + private DeviceOSTargetBid deviceOsTargetBid; + + /** + * Reserved for internal use. + */ + BulkDeviceOsTargetBid(BulkTargetIdentifier identifier) { + super(identifier); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Target, + new Function() { + @Override + public String apply(BulkDeviceOsTargetBid c) { + return c.getDeviceOsTargetBid().getDeviceName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDeviceOsTargetBid c) { + c.getDeviceOsTargetBid().setDeviceName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.OsNames, + new Function() { + @Override + public String apply(BulkDeviceOsTargetBid c) { + return c.getDeviceOsTargetBid().getOSNames() != null + ? StringExtensions.join(";", c.getDeviceOsTargetBid().getOSNames().getStrings()) + : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDeviceOsTargetBid c) { + if (!StringExtensions.isNullOrEmpty(v)) { + ArrayOfstring nameArray = new ArrayOfstring(); + + //TODO: implement RemoveEmptyEntries + nameArray.getStrings().addAll(Arrays.asList(v.split(";"))); + + c.getDeviceOsTargetBid().setOSNames(nameArray); + } else { + c.getDeviceOsTargetBid().setOSNames(null); + } + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkDeviceOsTargetBid c) { + return c.getDeviceOsTargetBid().getBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkDeviceOsTargetBid c) { + c.getDeviceOsTargetBid().setBidAdjustment(Integer.parseInt(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + setDeviceOsTargetBid(new DeviceOSTargetBid()); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getDeviceOsTargetBid(), "DeviceOsTargetBid"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets a specific device to target. + */ + public DeviceOSTargetBid getDeviceOsTargetBid() { + return deviceOsTargetBid; + } + + /** + * Sets a specific device to target. + */ + public void setDeviceOsTargetBid(DeviceOSTargetBid deviceTargetBid) { + this.deviceOsTargetBid = deviceTargetBid; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntity.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntity.java new file mode 100644 index 0000000000..4c932a540b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntity.java @@ -0,0 +1,54 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.internal.ErrorMessages; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import java.util.Calendar; +import java.util.List; + +/** + * The abstract base class for all bulk entities that can be read or written in a bulk file. + * + *

+ * For more information, see Bulk File Schema at + * http://go.microsoft.com/fwlink/?LinkID=620269. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter* + */ +public abstract class BulkEntity extends BulkObject { + + /** + * Determines whether the bulk entity has associated errors. + */ + public abstract boolean hasErrors(); + + /** + * Gets the last modified time for the entity. + */ + public abstract Calendar getLastModifiedTime(); + + /** + * Reserved for internal use. + */ + protected void validatePropertyNotNull(Object propertyValue, String propertyName) { + if (propertyValue == null) { + throw new IllegalArgumentException(ErrorMessages.getPropertyMustNotBeNullMessage(getClass().getName(), propertyName)); + } + } + + /** + * Reserved for internal use. + */ + protected void validateListNotNullOrEmpty(Object listObject, List list, String propertyName) { + if (listObject == null || list.isEmpty()) { + throw new IllegalArgumentException(ErrorMessages.getListMustNotBeEmptyMessage(getClass().getName(), propertyName)); + } + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntityNegativeKeyword.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntityNegativeKeyword.java new file mode 100644 index 0000000000..6e03375b9c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkEntityNegativeKeyword.java @@ -0,0 +1,84 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.DynamicColumnNameMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class for all bulk negative keywords that are assigned individually to a campaign or ad group entity. + * + * @see BulkAdGroupNegativeKeyword + * @see BulkCampaignNegativeKeyword + */ +abstract class BulkEntityNegativeKeyword extends BulkNegativeKeyword { + + private String entityName; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new DynamicColumnNameMapping( + new Function() { + @Override + public String apply(BulkEntityNegativeKeyword c) { + return c.getEntityColumnName(); + } + }, + new Function() { + @Override + public String apply(BulkEntityNegativeKeyword c) { + return c.getEntityName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkEntityNegativeKeyword c) { + c.setEntityName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Reserved for internal use. + */ + String getEntityName() { + return entityName; + } + + /** + * Reserved for internal use. + */ + void setEntityName(String entityName) { + this.entityName = entityName; + } + + /** + * Reserved for internal use. + */ + abstract String getEntityColumnName(); +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkError.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkError.java new file mode 100644 index 0000000000..ff3ab2ab96 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkError.java @@ -0,0 +1,236 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Contains bulk file error details in a separate record that corresponds to the record of a BulkEntity derived instance. + */ +public class BulkError extends BulkObject { + + private String error; + + private Integer number; + + private String fieldPath; + + private String editorialLocation; + + private String editorialTerm; + + private Integer editorialReasonCode; + + private String publisherCountries; + + private BulkEntity entity; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Error, + new Function() { + @Override + public String apply(BulkError c) { + return c.getError(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkError c) { + c.setError(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ErrorNumber, + new Function() { + @Override + public Integer apply(BulkError c) { + return c.getNumber(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkError c) { + c.setNumber(StringExtensions.parseOptional(v, new Function() { + @Override + public Integer apply(String value) { + return Integer.parseInt(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FieldPath, + new Function() { + @Override + public String apply(BulkError c) { + return c.getFieldPath(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkError c) { + c.setFieldPath(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EditorialLocation, + new Function() { + @Override + public String apply(BulkError c) { + return c.getEditorialLocation(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkError c) { + c.setEditorialLocation(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EditorialReasonCode, + new Function() { + @Override + public Integer apply(BulkError c) { + return c.getEditorialReasonCode(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkError c) { + c.setEditorialReasonCode(StringExtensions.parseOptional(v, new Function() { + @Override + public Integer apply(String value) { + return Integer.parseInt(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.EditorialTerm, + new Function() { + @Override + public String apply(BulkError c) { + return c.getEditorialTerm(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkError c) { + c.setEditorialTerm(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.PublisherCountries, + new Function() { + @Override + public String apply(BulkError c) { + return c.getPublisherCountries(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkError c) { + c.setPublisherCountries(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + // Error row also contains corresponding entity data, so write the entity to RowValues first + getEntity().writeToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + public String getError() { + return error; + } + + public Integer getNumber() { + return number; + } + + public String getFieldPath() { + return fieldPath; + } + + public String getEditorialLocation() { + return editorialLocation; + } + + public String getEditorialTerm() { + return editorialTerm; + } + + public Integer getEditorialReasonCode() { + return editorialReasonCode; + } + + public String getPublisherCountries() { + return publisherCountries; + } + + private void setError(String error) { + this.error = error; + } + + private void setNumber(Integer number) { + this.number = number; + } + + private void setFieldPath(String path) { + this.fieldPath = path; + } + + private void setEditorialLocation(String editorialLocation) { + this.editorialLocation = editorialLocation; + } + + private void setEditorialTerm(String editorialTerm) { + this.editorialTerm = editorialTerm; + } + + private void setEditorialReasonCode(Integer editorialReasonCode) { + this.editorialReasonCode = editorialReasonCode; + } + + private void setPublisherCountries(String publisherCountries) { + this.publisherCountries = publisherCountries; + } + + public BulkEntity getEntity() { + return entity; + } + + public void setEntity(BulkEntity entity) { + this.entity = entity; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTarget.java new file mode 100644 index 0000000000..57542fa6a1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTarget.java @@ -0,0 +1,98 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfGenderTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.GenderTarget; +import com.microsoft.bingads.v10.campaignmanagement.GenderTargetBid; + +import java.util.ArrayList; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk gender target classes. + * + * @param see {@link BulkGenderTargetBid} + */ +abstract class BulkGenderTarget extends BulkSubTarget { + + private GenderTarget genderTarget; + + public BulkGenderTarget(Class classOfTBid) { + super(classOfTBid); + } + + /** + * Reserved for internal use. + */ + @Override + void reconstructSubTargets() { + setGenderTarget(new GenderTarget()); + + ArrayOfGenderTargetBid bids = new ArrayOfGenderTargetBid(); + + getGenderTarget().setBids(bids); + + for (TBid bid : getBids()) { + bids.getGenderTargetBids().add(bid.getGenderTargetBid()); + } + } + + /** + * Reserved for internal use. + */ + @Override + List convertApiToBulkBids() { + List bulkBids = new ArrayList(); + + if (getGenderTarget() == null || getGenderTarget().getBids() == null) { + return bulkBids; + } + + for (final GenderTargetBid apiBid : getGenderTarget().getBids().getGenderTargetBids()) { + TBid bulkBid = createAndPopulateBid(new Consumer() { + @Override + public void accept(TBid t) { + t.setGenderTargetBid(apiBid); + } + }); + + bulkBids.add(bulkBid); + } + + return bulkBids; + } + + /** + * Reserved for internal use. + */ + @Override + void validatePropertiesNotNull() { + validatePropertyNotNull(getGenderTarget(), "GenderTarget"); + } + + /** + * Reserved for internal use. + */ + @Override + void validateBidsNotNullOrEmpty() { + if (getGenderTarget() != null) { + validateListNotNullOrEmpty(getGenderTarget().getBids(), getGenderTarget().getBids().getGenderTargetBids(), "GenderTarget.Bids"); + } + } + + /** + * Gets a list of genders to target with bid adjustments. + */ + public GenderTarget getGenderTarget() { + return genderTarget; + } + + /** + * Sets a list of genders to target with bid adjustments. + */ + public void setGenderTarget(GenderTarget ageTarget) { + this.genderTarget = ageTarget; + } + + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTargetBid.java new file mode 100644 index 0000000000..5e1ee0ea19 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkGenderTargetBid.java @@ -0,0 +1,101 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.campaignmanagement.GenderTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.GenderType; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk gender target bid classes. + */ +abstract class BulkGenderTargetBid extends BulkTargetBid { + + private GenderTargetBid genderTargetBid; + + /** + * Reserved for internal use. + */ + BulkGenderTargetBid(BulkTargetIdentifier identifier) { + super(identifier); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Target, + new Function() { + @Override + public String apply(BulkGenderTargetBid c) { + return c.getGenderTargetBid().getGender().value(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkGenderTargetBid c) { + c.getGenderTargetBid().setGender(GenderType.fromValue(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkGenderTargetBid c) { + return c.getGenderTargetBid().getBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkGenderTargetBid c) { + c.getGenderTargetBid().setBidAdjustment(Integer.parseInt(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + setGenderTargetBid(new GenderTargetBid()); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getGenderTargetBid(), "GenderTargetBid"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets a specific gender target. + */ + public GenderTargetBid getGenderTargetBid() { + return genderTargetBid; + } + + /** + * Sets a specific gender target. + */ + public void setGenderTargetBid(GenderTargetBid genderTargetBid) { + this.genderTargetBid = genderTargetBid; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkImageAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkImageAdExtension.java new file mode 100644 index 0000000000..5e800b4ed3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkImageAdExtension.java @@ -0,0 +1,135 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOflong; +import com.microsoft.bingads.v10.campaignmanagement.ImageAdExtension; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents an image ad extension that can be read or written in a bulk file. + * This class exposes the properties + * that can be read and written as fields of the Image Ad Extension record in a + * bulk file. + * + * For more information, see Image Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620277 + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkImageAdExtension extends BulkAdExtension { + + /** + * Gets the image ad extension. + */ + public ImageAdExtension getImageAdExtension() { + return getAdExtension(); + } + + /** + * Sets the image ad extension. + */ + public void setImageAdExtension(ImageAdExtension imageAdExtension) { + setAdExtension(imageAdExtension); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.DestinationUrl, + new Function() { + @Override + public String apply(BulkImageAdExtension c) { + return StringExtensions.toOptionalBulkString(c.getImageAdExtension().getDestinationUrl()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkImageAdExtension c) { + c.getImageAdExtension().setDestinationUrl(StringExtensions.getValueOrEmptyString(v)); + } + }, + true + )); + + m.add(new SimpleBulkMapping(StringTable.AltText, + new Function() { + @Override + public String apply(BulkImageAdExtension c) { + return c.getImageAdExtension().getAlternativeText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkImageAdExtension c) { + c.getImageAdExtension().setAlternativeText(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.MediaIds, + new Function() { + @Override + public String apply(BulkImageAdExtension c) { + return StringExtensions.writeMediaIds(";", c.getImageAdExtension().getImageMediaIds()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkImageAdExtension c) { + ArrayOflong ids = new ArrayOflong(); + List idArray = StringExtensions.parseImageMediaIds(v); + + if (idArray == null) { + ids = null; + } else { + ids.getLongs().addAll(idArray); + } + + c.getImageAdExtension().setImageMediaIds(ids); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + ImageAdExtension extension = new ImageAdExtension(); + + extension.setType("ImageAdExtension"); + + setAdExtension(extension); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(this.getImageAdExtension(), "ImageAdExtension"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + MappingHelpers.convertToValues(this, values, MAPPINGS); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeyword.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeyword.java new file mode 100644 index 0000000000..be1bdf8bae --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeyword.java @@ -0,0 +1,527 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionEditorialStatus; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.Keyword; +import com.microsoft.bingads.v10.campaignmanagement.KeywordEditorialStatus; +import com.microsoft.bingads.v10.campaignmanagement.KeywordStatus; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.TryResult; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a keyword that can be read or written in a bulk file. + * + * This class exposes the {@link #setKeyword} and {@link #getKeyword} methods + * that can be used to read and write fields of the Keyword record in a bulk file. + * + *

+ * Properties of this class and of classes that it is derived from, + * correspond to fields of the Keyword record in a bulk file. + * For more information, see Keyword at + * http://go.microsoft.com/fwlink/?LinkID=620265. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkKeyword extends SingleRecordBulkEntity { + + private Long adGroupId; + + private Keyword keyword; + + private String campaignName; + + private String adGroupName; + + private PerformanceData performanceData; + + private QualityScoreData qualityScoreData; + + private BidSuggestionData bidSuggestions; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkKeyword c) { + return c.getKeyword().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setId(StringExtensions.nullOrLong(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkKeyword c) { + return c.getAdGroupId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.setAdGroupId(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(BulkKeyword c) { + return c.getKeyword().getStatus() != null ? c.getKeyword().getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public KeywordStatus apply(String value) { + return KeywordStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.setCampaignName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AdGroup, + new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getAdGroupName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.setAdGroupName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Keyword, + new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getKeyword().getText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setText(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DestinationUrl, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toOptionalBulkString(c.getKeyword().getDestinationUrl()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setDestinationUrl(StringExtensions.getValueOrEmptyString(v)); + } + }, + true + )); + + m.add(new SimpleBulkMapping(StringTable.EditorialStatus, + new Function() { + @Override + public String apply(BulkKeyword t) { + return t.getKeyword().getEditorialStatus() != null ? t.getKeyword().getEditorialStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setEditorialStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public KeywordEditorialStatus apply(String value) { + return KeywordEditorialStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.MatchType, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toMatchTypeBulkString(c.getKeyword().getMatchType()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setMatchType(StringExtensions.parseOptional(v, new Function() { + @Override + public MatchType apply(String value) { + return MatchType.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Bid, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toKeywordBidBulkString(c.getKeyword().getBid()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setBid(StringExtensions.parseKeywordBid(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Param1, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toOptionalBulkString(c.getKeyword().getParam1()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setParam1(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Param2, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toOptionalBulkString(c.getKeyword().getParam2()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setParam2(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Param3, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toOptionalBulkString(c.getKeyword().getParam3()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setParam3(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FinalUrl, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.writeUrls("; ", c.getKeyword().getFinalUrls()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + + c.getKeyword().setFinalUrls(urls); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FinalMobileUrl, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.writeUrls("; ", c.getKeyword().getFinalMobileUrls()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + + c.getKeyword().setFinalMobileUrls(urls); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.TrackingTemplate, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toOptionalBulkString(c.getKeyword().getTrackingUrlTemplate()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + c.getKeyword().setTrackingUrlTemplate(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CustomParameter, + new Function() { + @Override + public String apply(BulkKeyword c) { + return StringExtensions.toCustomParaBulkString(c.getKeyword().getUrlCustomParameters()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeyword c) { + try { + c.getKeyword().setUrlCustomParameters(StringExtensions.parseCustomParameters(v)); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setKeyword(new Keyword()); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + qualityScoreData = QualityScoreData.readFromRowValuesOrNull(values); + performanceData = PerformanceData.readFromRowValuesOrNull(values); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getKeyword(), "Keyword"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + + if (!excludeReadonlyData) { + QualityScoreData.writeToRowValuesIfNotNull(qualityScoreData, values); + + PerformanceData.writeToRowValuesIfNotNull(performanceData, values); + } + } + + @Override + public void readAdditionalData(BulkStreamReader reader) { + TryResult nextBidSuggestionResult = reader.tryRead(BulkKeywordBidSuggestion.class); + + while (nextBidSuggestionResult.isSuccessful()) { + if (this.bidSuggestions == null) { + this.bidSuggestions = new BidSuggestionData(); + } + + BulkKeywordBidSuggestion nextBidSuggestion = nextBidSuggestionResult.getResult(); + + if (nextBidSuggestion instanceof BulkKeywordBestPositionBid) { + this.bidSuggestions.setBestPosition(nextBidSuggestion); + } else if (nextBidSuggestion instanceof BulkKeywordMainLineBid) { + bidSuggestions.setMainLine(nextBidSuggestion); + } else if (nextBidSuggestion instanceof BulkKeywordFirstPageBid) { + bidSuggestions.setFirstPage(nextBidSuggestion); + } + + nextBidSuggestionResult = reader.tryRead(BulkKeywordBidSuggestion.class); + } + } + + @Override + public void writeAdditionalData(BulkObjectWriter writer) throws IOException { + if (getBidSuggestions() != null) { + BulkKeywordBidSuggestion.writeIfNotNull(getBidSuggestions().getBestPosition(), writer); + + BulkKeywordBidSuggestion.writeIfNotNull(getBidSuggestions().getMainLine(), writer); + + BulkKeywordBidSuggestion.writeIfNotNull(getBidSuggestions().getFirstPage(), writer); + } + } + + /** + * Gets the identifier of the ad group that contains the keyword. + * + *

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

+ */ + public Long getAdGroupId() { + return adGroupId; + } + + /** + * Sets the identifier of the ad group that contains the keyword. + * + *

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

+ */ + public void setAdGroupId(Long adGroupId) { + this.adGroupId = adGroupId; + } + + /** + * Gets a keyword within an ad group. + */ + public Keyword getKeyword() { + return keyword; + } + + /** + * Sets a keyword within an ad group. + */ + public void setKeyword(Keyword keyword) { + this.keyword = keyword; + } + + /** + * Sets the name of the campaign that contains the keyword. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + /** + * Sets the name of the ad group that contains the keyword. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public void setAdGroupName(String adGroupName) { + this.adGroupName = adGroupName; + } + + /** + * Gets the name of the campaign that contains the keyword. + * + *

+ * Corresponds to the 'Campaign' field in the bulk file. + *

+ */ + public String getCampaignName() { + return campaignName; + } + + /** + * Gets the name of the ad group that contains the keyword. + * + *

+ * Corresponds to the 'Ad Group' field in the bulk file. + *

+ */ + public String getAdGroupName() { + return adGroupName; + } + + /** + * Gets the historical performance data for the keyword. + */ + public PerformanceData getPerformanceData() { + return performanceData; + } + + /** + * Gets the quality score data for the keyword. + */ + public QualityScoreData getQualityScoreData() { + return qualityScoreData; + } + + /** + * Gets the bid suggestion data for the keyword. + */ + public BidSuggestionData getBidSuggestions() { + return bidSuggestions; + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBestPositionBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBestPositionBid.java new file mode 100644 index 0000000000..98319c4135 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBestPositionBid.java @@ -0,0 +1,5 @@ +package com.microsoft.bingads.v10.bulk.entities; + +class BulkKeywordBestPositionBid extends BulkKeywordBidSuggestion { + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBidSuggestion.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBidSuggestion.java new file mode 100644 index 0000000000..51a4de998e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordBidSuggestion.java @@ -0,0 +1,146 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a best position bid suggestion that can only be read from a bulk file by the + * {@link BulkFileReader} when reading the corresponding {@link BulkKeyword}. + * An instance of this class can represent a single keyword bid position, and thus one record in the bulk file. + * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + */ +public class BulkKeywordBidSuggestion extends BulkObject { + + private String keywordText; + private Double bid; + private PerformanceData performanceData; + + /** + * Initializes a new instance of the BulkKeywordBidSuggestion class. + */ + public BulkKeywordBidSuggestion() { + this.performanceData = new PerformanceData(); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Keyword, + new Function() { + @Override + public String apply(BulkKeywordBidSuggestion t) { + return t.getKeywordText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeywordBidSuggestion c) { + c.setKeywordText(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Bid, + new Function() { + @Override + public Double apply(BulkKeywordBidSuggestion t) { + return t.getBid(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkKeywordBidSuggestion c) { + c.setBid(StringExtensions.parseOptional(v, new Function() { + @Override + public Double apply(String value) { + return Double.parseDouble(value); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + this.performanceData.readFromRowValues(values); + } + + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + + PerformanceData.writeToRowValuesIfNotNull(performanceData, values); + } + + static void writeIfNotNull(BulkKeywordBidSuggestion bidSuggestion, BulkObjectWriter writer) throws IOException { + if (bidSuggestion != null) { + writer.writeObjectRow(bidSuggestion); + } + } + + /** + * Gets the keyword corresponding to the suggested bid. + * + *

+ * Corresponds to the 'Keyword' field in the bulk file. + *

+ */ + public String getKeywordText() { + return keywordText; + } + + /** + * Gets the suggested bid for the keyword. + * + *

+ * Corresponds to the 'Bid' field in the bulk file. + *

+ */ + public Double getBid() { + return bid; + } + + /** + * Gets the historical performance data corresponding to the suggested bid. + */ + public PerformanceData getPerformanceData() { + return performanceData; + } + + private void setKeywordText(String keywordText) { + this.keywordText = keywordText; + } + + private void setBid(Double bid) { + this.bid = bid; + } + + private void setPerformanceData(PerformanceData performanceData) { + this.performanceData = performanceData; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordFirstPageBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordFirstPageBid.java new file mode 100644 index 0000000000..83a2644317 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordFirstPageBid.java @@ -0,0 +1,5 @@ +package com.microsoft.bingads.v10.bulk.entities; + +class BulkKeywordFirstPageBid extends BulkKeywordBidSuggestion { + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordMainLineBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordMainLineBid.java new file mode 100644 index 0000000000..9f8a6bf94b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkKeywordMainLineBid.java @@ -0,0 +1,5 @@ +package com.microsoft.bingads.v10.bulk.entities; + +class BulkKeywordMainLineBid extends BulkKeywordBidSuggestion { + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationAdExtension.java new file mode 100644 index 0000000000..1eb1e3e0c7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationAdExtension.java @@ -0,0 +1,410 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.Address; +import com.microsoft.bingads.v10.campaignmanagement.BusinessGeoCodeStatus; +import com.microsoft.bingads.v10.campaignmanagement.GeoPoint; +import com.microsoft.bingads.v10.campaignmanagement.LocationAdExtension; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents an location ad extension. This class exposes + * properties that can be read + * and written as fields of the Location Ad Extension record in a bulk file. + * + *

+ * For more information, see Location Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620235 + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkLocationAdExtension extends BulkAdExtension { + + /** + * Gets the location ad extension. + */ + public LocationAdExtension getLocationAdExtension() { + return this.getAdExtension(); + } + + public void setLocationAdExtension(LocationAdExtension extension) { + this.setAdExtension(extension); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.BusinessName, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getCompanyName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationAdExtension c) { + c.getLocationAdExtension().setCompanyName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.PhoneNumber, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return StringExtensions.toOptionalBulkString(c.getLocationAdExtension().getPhoneNumber()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationAdExtension c) { + c.getLocationAdExtension().setPhoneNumber(StringExtensions.getValueOrEmptyString(v)); + } + }, + true + )); + + m.add(new SimpleBulkMapping(StringTable.GeoCodeStatus, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return StringExtensions.toGeoCodeStatusBulkString(c.getLocationAdExtension().getGeoCodeStatus()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationAdExtension c) { + c.getLocationAdExtension().setGeoCodeStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public BusinessGeoCodeStatus apply(String value) { + return BusinessGeoCodeStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.IconMediaId, + new Function() { + @Override + public Long apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getIconMediaId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationAdExtension c) { + c.getLocationAdExtension().setIconMediaId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AddressLine1, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return getAddressPart(c, new Function() { + @Override + public String apply(Address x) { + return x.getStreetAddress(); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setAddressPart(c, new Consumer
() { + @Override + public void accept(Address x) { + x.setStreetAddress(StringExtensions.getValueOrEmptyString(v)); + } + }); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AddressLine2, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return getAddressPart(c, new Function() { + @Override + public String apply(Address x) { + return StringExtensions.toOptionalBulkString(x.getStreetAddress2()); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setAddressPart(c, new Consumer
() { + @Override + public void accept(Address x) { + x.setStreetAddress2(StringExtensions.getValueOrEmptyString(v)); + } + }); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.City, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return getAddressPart(c, new Function() { + @Override + public String apply(Address x) { + return x.getCityName(); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setAddressPart(c, new Consumer
() { + @Override + public void accept(Address x) { + x.setCityName(v); + } + }); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ProvinceName, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return getAddressPart(c, new Function() { + @Override + public String apply(Address x) { + return x.getProvinceName(); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setAddressPart(c, new Consumer
() { + @Override + public void accept(Address x) { + x.setProvinceName(v); + } + }); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.StateOrProvince, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return getAddressPart(c, new Function() { + @Override + public String apply(Address x) { + return x.getProvinceCode(); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setAddressPart(c, new Consumer
() { + @Override + public void accept(Address x) { + x.setProvinceCode(v); + } + }); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.PostalCode, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return getAddressPart(c, new Function() { + @Override + public String apply(Address x) { + return x.getPostalCode(); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setAddressPart(c, new Consumer
() { + @Override + public void accept(Address x) { + x.setPostalCode(v); + } + }); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CountryCode, + new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return getAddressPart(c, new Function() { + @Override + public String apply(Address x) { + return x.getCountryCode(); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setAddressPart(c, new Consumer
() { + @Override + public void accept(Address x) { + x.setCountryCode(v); + } + }); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Latitude, + new Function() { + @Override + public Double apply(BulkLocationAdExtension c) { + return getGeoPointPart(c, new Function() { + @Override + public Double apply(GeoPoint x) { + return (x.getLatitudeInMicroDegrees() / 1000000.0); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setGeoPointPart(c, new BiConsumer() { + @Override + public void accept(GeoPoint x, final String longitude) { + x.setLatitudeInMicroDegrees(StringExtensions.parseLatLngInMicroDegrees(longitude)); + } + }, v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Longitude, + new Function() { + @Override + public Double apply(BulkLocationAdExtension c) { + return getGeoPointPart(c, new Function() { + @Override + public Double apply(GeoPoint x) { + return (x.getLongitudeInMicroDegrees() / 1000000.0); + } + }); + } + }, + new BiConsumer() { + @Override + public void accept(final String v, BulkLocationAdExtension c) { + setGeoPointPart(c, new BiConsumer() { + @Override + public void accept(GeoPoint x, final String longitude) { + x.setLongitudeInMicroDegrees(StringExtensions.parseLatLngInMicroDegrees(longitude)); + } + }, v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + private static String getAddressPart(BulkLocationAdExtension adExtension, Function getFunc) { + return adExtension.getLocationAdExtension().getAddress() != null ? getFunc.apply(adExtension.getLocationAdExtension().getAddress()) : null; + } + + private static void setAddressPart(BulkLocationAdExtension adExtension, Consumer
setFunc) { + if (adExtension.getLocationAdExtension().getAddress() == null) { + adExtension.getLocationAdExtension().setAddress(new Address()); + } + + setFunc.accept(adExtension.getLocationAdExtension().getAddress()); + } + + private static Double getGeoPointPart(BulkLocationAdExtension adExtension, Function getFunc) { + return adExtension.getLocationAdExtension().getGeoPoint() != null ? getFunc.apply(adExtension.getLocationAdExtension().getGeoPoint()) : null; + } + + private static void setGeoPointPart(BulkLocationAdExtension adExtension, BiConsumer setFunc, String value) { + if (StringExtensions.isNullOrEmpty(value)) { + return; + } + + if (adExtension.getLocationAdExtension().getGeoPoint() == null) { + adExtension.getLocationAdExtension().setGeoPoint(new GeoPoint()); + } + + setFunc.accept(adExtension.getLocationAdExtension().getGeoPoint(), value); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + LocationAdExtension extension = new LocationAdExtension(); + + extension.setType("LocationAdExtension"); + + this.setLocationAdExtension(extension); + + if (!StringExtensions.isNullOrEmpty(values.get(StringTable.Latitude)) || !StringExtensions.isNullOrEmpty(values.get(StringTable.Longitude))) { + this.getLocationAdExtension().setGeoPoint(new GeoPoint()); + } + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(this.getLocationAdExtension(), "LocationAdExtension"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTarget.java new file mode 100644 index 0000000000..1d10688f0e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTarget.java @@ -0,0 +1,122 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import java.util.List; + +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.CountryTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.MetroAreaTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.PostalCodeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.StateTargetBid; + +/** + * A base class for all bulk location target classes. + * + * @param see {@link BulkLocationTargetBid} + */ +abstract class BulkLocationTarget extends BulkLocationTargetWithStringLocation { + + public BulkLocationTarget(Class classOfTBid) { + super(classOfTBid); + } + + @Override + boolean shouldConvertPostalCodeTargetBid(PostalCodeTargetBid bid) { + return !bid.isIsExcluded(); + } + + @Override + void setPostalCodeBidAdditionialProperties(PostalCodeTargetBid postalCodeBid, TBid t) { + postalCodeBid.setBidAdjustment(t.getBidAdjustment()); + } + + @Override + void setBulkPostalCodeBidAdditionalProperties(TBid bulkBid, PostalCodeTargetBid postalCodeTargetBid) { + bulkBid.setBidAdjustment(postalCodeTargetBid.getBidAdjustment()); + } + + @Override + boolean shouldConvertCityTargetBid(CityTargetBid bid) { + return !bid.isIsExcluded(); + } + + @Override + void setCityBidAdditionialProperties(CityTargetBid cityBid, TBid t) { + cityBid.setBidAdjustment(t.getBidAdjustment()); + } + + @Override + void setBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid cityTargetBid) { + bulkBid.setBidAdjustment(cityTargetBid.getBidAdjustment()); + } + + @Override + boolean shouldConvertMetroAreaTargetBid(MetroAreaTargetBid bid) { + return !bid.isIsExcluded(); + } + + @Override + void setMetroAreaBidAdditionialProperties(MetroAreaTargetBid metroAreaBid, TBid t) { + metroAreaBid.setBidAdjustment(t.getBidAdjustment()); + } + + @Override + void setBulkMetroAreaBidAdditionalProperties(TBid bulkBid, MetroAreaTargetBid metroAreaTargetBid) { + bulkBid.setBidAdjustment(metroAreaTargetBid.getBidAdjustment()); + } + + @Override + boolean shouldConvertStateTargetBid(StateTargetBid bid) { + return !bid.isIsExcluded(); + } + + @Override + void setStateBidAdditionialProperties(StateTargetBid cityBid, TBid t) { + cityBid.setBidAdjustment(t.getBidAdjustment()); + } + + @Override + void setBulkStateBidAdditionalProperties(TBid bulkBid, StateTargetBid stateTargetBid) { + bulkBid.setBidAdjustment(stateTargetBid.getBidAdjustment()); + } + + @Override + boolean shouldConvertCountryTargetBid(CountryTargetBid bid) { + return !bid.isIsExcluded(); + } + + @Override + void setCountryBidAdditionialProperties(CountryTargetBid cityBid, TBid t) { + cityBid.setBidAdjustment(t.getBidAdjustment()); + } + + @Override + void setBulkCountryBidAdditionalProperties(TBid bulkBid, CountryTargetBid countryTargetBid) { + bulkBid.setBidAdjustment(countryTargetBid.getBidAdjustment()); + } + + /** + * Reserved for internal use. + */ + @Override + List convertApiToBulkBids() { + List bulkBids = super.convertApiToBulkBids(); + + for (TBid bid : bulkBids) { + bid.setIntentOption(getLocation().getIntentOption()); + } + + return bulkBids; + } + + /** + * Reserved for internal use. + */ + @Override + void reconstructSubTargets() { + super.reconstructSubTargets(); + + if (!getBids().isEmpty()) { + getLocation().setIntentOption(getBids().get(0).getIntentOption()); + } + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBid.java new file mode 100644 index 0000000000..4c4b4e5ad8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBid.java @@ -0,0 +1,126 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.campaignmanagement.IntentOption; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk location target bid classes. + */ +abstract class BulkLocationTargetBid extends BulkLocationTargetBidWithStringLocation { + + private int bidAdjustment; + + private IntentOption intentOption; + + /** + * Reserved for internal use. + */ + BulkLocationTargetBid(BulkTargetIdentifier identifier) { + super(identifier); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkLocationTargetBid c) { + return c.getBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationTargetBid c) { + c.setBidAdjustment(Integer.parseInt(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.PhysicalIntent, + new Function() { + @Override + public String apply(BulkLocationTargetBid c) { + return c.getIntentOption() != null ? c.getIntentOption().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationTargetBid c) { + c.setIntentOption(StringExtensions.parseOptional(v, new Function() { + @Override + public IntentOption apply(String value) { + return IntentOption.fromValue(value); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets the percentage adjustment to the base bid. + * + *

+ * Corresponds to the 'Bid Adjustment' field in the bulk file. + *

+ */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the percentage adjustment to the base bid. + * + *

+ * Corresponds to the 'Bid Adjustment' field in the bulk file. + *

+ */ + public void setBidAdjustment(int bidAdjustment) { + this.bidAdjustment = bidAdjustment; + } + + /** + * Gets the possible intent options for location targeting. + */ + public IntentOption getIntentOption() { + return intentOption; + } + + /** + * Sets the possible intent options for location targeting. + */ + void setIntentOption(IntentOption intentOption) { + this.intentOption = intentOption; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBidWithStringLocation.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBidWithStringLocation.java new file mode 100644 index 0000000000..3b22fef398 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetBidWithStringLocation.java @@ -0,0 +1,129 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by + * all bulk location target bid classes defining Location as string. + */ +abstract class BulkLocationTargetBidWithStringLocation extends BulkTargetBid { + + private String location; + + private LocationTargetType locationType; + + /** + * Reserved for internal use. + */ + BulkLocationTargetBidWithStringLocation(BulkTargetIdentifier identifier) { + super(identifier); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Target, + new Function() { + @Override + public String apply(BulkLocationTargetBidWithStringLocation c) { + return c.getLocation(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationTargetBidWithStringLocation c) { + c.setLocation(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SubType, + new Function() { + @Override + public String apply(BulkLocationTargetBidWithStringLocation c) { + return StringExtensions.toLocationTargetTypeBulkString(c.getLocationType()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkLocationTargetBidWithStringLocation c) { + c.setLocationType(StringExtensions.parseLocationTargetType(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets the geographical location code. + * + *

+ * Corresponds to the 'Target' field in the bulk file. + *

+ */ + public String getLocation() { + return location; + } + + /** + * Sets the geographical location code. + * + *

+ * Corresponds to the 'Target' field in the bulk file. + *

+ */ + public void setLocation(String location) { + this.location = location; + } + + /** + * Gets the sub location target type. + * + *

+ * Corresponds to the 'Sub Type' field in the bulk file. + *

+ */ + public LocationTargetType getLocationType() { + return locationType; + } + + /** + * Sets the sub location target type. + * + *

+ * Corresponds to the 'Sub Type' field in the bulk file. + *

+ */ + public void setLocationType(LocationTargetType locationType) { + this.locationType = locationType; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetWithStringLocation.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetWithStringLocation.java new file mode 100644 index 0000000000..630d022ddc --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkLocationTargetWithStringLocation.java @@ -0,0 +1,621 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCityTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCountryTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfMetroAreaTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfPostalCodeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfStateTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.CityTarget; +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.CountryTarget; +import com.microsoft.bingads.v10.campaignmanagement.CountryTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.LocationTarget; +import com.microsoft.bingads.v10.campaignmanagement.MetroAreaTarget; +import com.microsoft.bingads.v10.campaignmanagement.MetroAreaTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.PostalCodeTarget; +import com.microsoft.bingads.v10.campaignmanagement.PostalCodeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.StateTarget; +import com.microsoft.bingads.v10.campaignmanagement.StateTargetBid; + +import java.util.ArrayList; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk location target classes. + * + * @param see {@link BulkLocationTargetBid} + */ +abstract class BulkLocationTargetWithStringLocation extends BulkTargetWithLocation { + + public BulkLocationTargetWithStringLocation(Class classOfTBid) { + super(classOfTBid); + } + + /** + * Gets a list of postal codes to target with bid adjustments. + */ + public PostalCodeTarget getPostalCodeTarget() { + return getLocationProperty(new Function() { + @Override + public PostalCodeTarget apply(LocationTarget t) { + return t.getPostalCodeTarget(); + } + }); + } + + /** + * Sets a list of postal codes to target with bid adjustments. + */ + public void setPostalCodeTarget(final PostalCodeTarget postalCodeTarget) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget t) { + t.setPostalCodeTarget(postalCodeTarget); + } + }); + } + + /** + * Gets a list of cities to target with bid adjustments. + */ + public CityTarget getCityTarget() { + return getLocationProperty(new Function() { + @Override + public CityTarget apply(LocationTarget t) { + return t.getCityTarget(); + } + }); + } + + /** + * Sets a list of cities to target with bid adjustments. + */ + public void setCityTarget(final CityTarget cityTarget) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget t) { + t.setCityTarget(cityTarget); + } + }); + } + + /** + * Gets a list of metro areas to target with bid adjustments. + */ + public MetroAreaTarget getMetroAreaTarget() { + return getLocationProperty(new Function() { + @Override + public MetroAreaTarget apply(LocationTarget t) { + return t.getMetroAreaTarget(); + } + }); + } + + /** + * Sets a list of metro areas to target with bid adjustments. + */ + public void setMetroAreaTarget(final MetroAreaTarget cityTarget) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget t) { + t.setMetroAreaTarget(cityTarget); + } + }); + } + + /** + * Gets a list of states to target with bid adjustments. + */ + public StateTarget getStateTarget() { + return getLocationProperty(new Function() { + @Override + public StateTarget apply(LocationTarget t) { + return t.getStateTarget(); + } + }); + } + + /** + * Sets a list of states to target with bid adjustments. + */ + public void setStateTarget(final StateTarget stateTarget) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget t) { + t.setStateTarget(stateTarget); + } + }); + } + + /** + * Gets a list of countries to target with bid adjustments. + */ + public CountryTarget getCountryTarget() { + return getLocationProperty(new Function() { + @Override + public CountryTarget apply(LocationTarget t) { + return t.getCountryTarget(); + } + }); + } + + /** + * Sets a list of countries to target with bid adjustments. + */ + public void setCountryTarget(final CountryTarget countryTarget) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget t) { + t.setCountryTarget(countryTarget); + } + }); + } + + abstract void setPostalCodeBidAdditionialProperties(PostalCodeTargetBid postalCodeBid, TBid t); + + abstract void setCityBidAdditionialProperties(CityTargetBid cityBid, TBid t); + + abstract void setMetroAreaBidAdditionialProperties(MetroAreaTargetBid metroAreaBid, TBid t); + + abstract void setStateBidAdditionialProperties(StateTargetBid stateBid, TBid t); + + abstract void setCountryBidAdditionialProperties(CountryTargetBid countryBid, TBid t); + + @Override + void reconstructSubTargets() { + reconstructApiBids(LocationTargetType.POSTAL_CODE, new Function() { + @Override + public PostalCodeTargetBid apply(TBid t) { + PostalCodeTargetBid postalCodeBid = new PostalCodeTargetBid(); + + postalCodeBid.setPostalCode(t.getLocation()); + + setPostalCodeBidAdditionialProperties(postalCodeBid, t); + + return postalCodeBid; + } + }, new Supplier() { + @Override + public PostalCodeTarget get() { + return getLocation().getPostalCodeTarget(); + } + }, new Supplier() { + @Override + public PostalCodeTarget get() { + return new PostalCodeTarget(); + } + }, new Consumer() { + @Override + public void accept(PostalCodeTarget t) { + getLocation().setPostalCodeTarget(t); + } + }, new Supplier>() { + @Override + public List get() { + return getLocation().getPostalCodeTarget().getBids().getPostalCodeTargetBids(); + } + }, new Consumer>() { + @Override + public void accept(List t) { + getLocation().getPostalCodeTarget().setBids(new ArrayOfPostalCodeTargetBid()); + + getLocation().getPostalCodeTarget().getBids().getPostalCodeTargetBids().addAll(t); + } + }); + + reconstructApiBids(LocationTargetType.CITY, new Function() { + @Override + public CityTargetBid apply(TBid t) { + CityTargetBid cityBid = new CityTargetBid(); + + cityBid.setCity(t.getLocation()); + + setCityBidAdditionialProperties(cityBid, t); + + return cityBid; + } + }, new Supplier() { + @Override + public CityTarget get() { + return getLocation().getCityTarget(); + } + }, new Supplier() { + @Override + public CityTarget get() { + return new CityTarget(); + } + }, new Consumer() { + @Override + public void accept(CityTarget t) { + getLocation().setCityTarget(t); + } + }, new Supplier>() { + @Override + public List get() { + return getLocation().getCityTarget().getBids().getCityTargetBids(); + } + }, new Consumer>() { + @Override + public void accept(List t) { + getLocation().getCityTarget().setBids(new ArrayOfCityTargetBid()); + + getLocation().getCityTarget().getBids().getCityTargetBids().addAll(t); + } + }); + + reconstructApiBids(LocationTargetType.METRO_AREA, new Function() { + @Override + public MetroAreaTargetBid apply(TBid t) { + MetroAreaTargetBid metroArea = new MetroAreaTargetBid(); + + metroArea.setMetroArea(t.getLocation()); + + setMetroAreaBidAdditionialProperties(metroArea, t); + + return metroArea; + } + }, new Supplier() { + @Override + public MetroAreaTarget get() { + return getLocation().getMetroAreaTarget(); + } + }, new Supplier() { + @Override + public MetroAreaTarget get() { + return new MetroAreaTarget(); + } + }, new Consumer() { + @Override + public void accept(MetroAreaTarget t) { + getLocation().setMetroAreaTarget(t); + } + }, new Supplier>() { + @Override + public List get() { + return getLocation().getMetroAreaTarget().getBids().getMetroAreaTargetBids(); + } + }, new Consumer>() { + @Override + public void accept(List t) { + getLocation().getMetroAreaTarget().setBids(new ArrayOfMetroAreaTargetBid()); + + getLocation().getMetroAreaTarget().getBids().getMetroAreaTargetBids().addAll(t); + } + }); + + reconstructApiBids(LocationTargetType.STATE, new Function() { + @Override + public StateTargetBid apply(TBid t) { + StateTargetBid stateBid = new StateTargetBid(); + + stateBid.setState(t.getLocation()); + + setStateBidAdditionialProperties(stateBid, t); + + return stateBid; + } + }, new Supplier() { + @Override + public StateTarget get() { + return getLocation().getStateTarget(); + } + }, new Supplier() { + @Override + public StateTarget get() { + return new StateTarget(); + } + }, new Consumer() { + @Override + public void accept(StateTarget t) { + getLocation().setStateTarget(t); + } + }, new Supplier>() { + @Override + public List get() { + return getLocation().getStateTarget().getBids().getStateTargetBids(); + } + }, new Consumer>() { + @Override + public void accept(List t) { + getLocation().getStateTarget().setBids(new ArrayOfStateTargetBid()); + + getLocation().getStateTarget().getBids().getStateTargetBids().addAll(t); + } + }); + + reconstructApiBids(LocationTargetType.COUNTRY, new Function() { + @Override + public CountryTargetBid apply(TBid t) { + CountryTargetBid countryBid = new CountryTargetBid(); + + countryBid.setCountryAndRegion(t.getLocation()); + + setCountryBidAdditionialProperties(countryBid, t); + + return countryBid; + } + }, new Supplier() { + @Override + public CountryTarget get() { + return getLocation().getCountryTarget(); + } + }, new Supplier() { + @Override + public CountryTarget get() { + return new CountryTarget(); + } + }, new Consumer() { + @Override + public void accept(CountryTarget t) { + getLocation().setCountryTarget(t); + } + }, new Supplier>() { + @Override + public List get() { + return getLocation().getCountryTarget().getBids().getCountryTargetBids(); + } + }, new Consumer>() { + @Override + public void accept(List t) { + getLocation().getCountryTarget().setBids(new ArrayOfCountryTargetBid()); + + getLocation().getCountryTarget().getBids().getCountryTargetBids().addAll(t); + } + }); + } + + abstract boolean shouldConvertPostalCodeTargetBid(PostalCodeTargetBid bid); + + abstract boolean shouldConvertCityTargetBid(CityTargetBid bid); + + abstract boolean shouldConvertMetroAreaTargetBid(MetroAreaTargetBid bid); + + abstract boolean shouldConvertStateTargetBid(StateTargetBid bid); + + abstract boolean shouldConvertCountryTargetBid(CountryTargetBid bid); + + abstract void setBulkPostalCodeBidAdditionalProperties(TBid bulkBid, PostalCodeTargetBid postalCodeTargetBid); + + abstract void setBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid cityTargetBid); + + abstract void setBulkMetroAreaBidAdditionalProperties(TBid bulkBid, MetroAreaTargetBid metroAreaTargetBid); + + abstract void setBulkStateBidAdditionalProperties(TBid bulkBid, StateTargetBid stateTargetBid); + + abstract void setBulkCountryBidAdditionalProperties(TBid bulkBid, CountryTargetBid countryTargetBid); + + @Override + List convertApiToBulkBids() { + List bids = new ArrayList(); + + convertBidsFromApi(LocationTargetType.POSTAL_CODE, + bids, + new Supplier() { + @Override + public PostalCodeTarget get() { + return getLocation().getPostalCodeTarget(); + } + }, new Function>() { + @Override + public List apply(PostalCodeTarget t) { + return t.getBids() != null ? t.getBids().getPostalCodeTargetBids() : null; + } + }, new Function() { + @Override + public String apply(PostalCodeTargetBid t) { + return t.getPostalCode(); + } + }, new Function() { + @Override + public Integer apply(PostalCodeTargetBid t) { + return t.getBidAdjustment(); + } + }, new Function() { + @Override + public Boolean apply(PostalCodeTargetBid t) { + return shouldConvertPostalCodeTargetBid(t); + } + }); + + convertBidsFromApi(LocationTargetType.CITY, + bids, + new Supplier() { + @Override + public CityTarget get() { + return getLocation().getCityTarget(); + } + }, new Function>() { + @Override + public List apply(CityTarget t) { + return t.getBids() != null ? t.getBids().getCityTargetBids() : null; + } + }, new Function() { + @Override + public String apply(CityTargetBid t) { + return t.getCity(); + } + }, new Function() { + @Override + public Integer apply(CityTargetBid t) { + return t.getBidAdjustment(); + } + }, new Function() { + @Override + public Boolean apply(CityTargetBid t) { + return shouldConvertCityTargetBid(t); + } + }); + + convertBidsFromApi(LocationTargetType.METRO_AREA, + bids, + new Supplier() { + @Override + public MetroAreaTarget get() { + return getLocation().getMetroAreaTarget(); + } + }, new Function>() { + @Override + public List apply(MetroAreaTarget t) { + return t.getBids() != null ? t.getBids().getMetroAreaTargetBids() : null; + } + }, new Function() { + @Override + public String apply(MetroAreaTargetBid t) { + return t.getMetroArea(); + } + }, new Function() { + @Override + public Integer apply(MetroAreaTargetBid t) { + return t.getBidAdjustment(); + } + }, new Function() { + @Override + public Boolean apply(MetroAreaTargetBid t) { + return shouldConvertMetroAreaTargetBid(t); + } + }); + + convertBidsFromApi(LocationTargetType.STATE, + bids, + new Supplier() { + @Override + public StateTarget get() { + return getLocation().getStateTarget(); + } + }, new Function>() { + @Override + public List apply(StateTarget t) { + return t.getBids() != null ? t.getBids().getStateTargetBids() : null; + } + }, new Function() { + @Override + public String apply(StateTargetBid t) { + return t.getState(); + } + }, new Function() { + @Override + public Integer apply(StateTargetBid t) { + return t.getBidAdjustment(); + } + }, new Function() { + @Override + public Boolean apply(StateTargetBid t) { + return shouldConvertStateTargetBid(t); + } + }); + + convertBidsFromApi(LocationTargetType.COUNTRY, + bids, + new Supplier() { + @Override + public CountryTarget get() { + return getLocation().getCountryTarget(); + } + }, new Function>() { + @Override + public List apply(CountryTarget t) { + return t.getBids() != null ? t.getBids().getCountryTargetBids() : null; + } + }, new Function() { + @Override + public String apply(CountryTargetBid t) { + return t.getCountryAndRegion(); + } + }, new Function() { + @Override + public Integer apply(CountryTargetBid t) { + return t.getBidAdjustment(); + } + }, new Function() { + @Override + public Boolean apply(CountryTargetBid t) { + return shouldConvertCountryTargetBid(t); + } + }); + + return bids; + } + + @Override + void validatePropertiesNotNull() { + if (getCityTarget() == null && getMetroAreaTarget() == null && getStateTarget() == null && getCountryTarget() == null && getPostalCodeTarget() == null) { + throw new IllegalStateException("At least one location sub target must be not null."); + } + } + + @Override + void validateBidsNotNullOrEmpty() { + if (getCityTarget() != null) { + validateListNotNullOrEmpty(getCityTarget().getBids(), getCityTarget().getBids().getCityTargetBids(), "CityTarget.Bids"); + } + + if (getMetroAreaTarget() != null) { + validateListNotNullOrEmpty(getMetroAreaTarget().getBids(), getMetroAreaTarget().getBids().getMetroAreaTargetBids(), "MetroAreaTarget.Bids"); + } + + if (getCountryTarget() != null) { + validateListNotNullOrEmpty(getCountryTarget().getBids(), getCountryTarget().getBids().getCountryTargetBids(), "CountryTarget.Bids"); + } + + if (getStateTarget() != null) { + validateListNotNullOrEmpty(getStateTarget().getBids(), getStateTarget().getBids().getStateTargetBids(), "StateTarget.Bids"); + } + + if (getPostalCodeTarget() != null) { + validateListNotNullOrEmpty(getPostalCodeTarget().getBids(), getPostalCodeTarget().getBids().getPostalCodeTargetBids(), "PostalCodeTarget.Bids"); + } + } + + protected void reconstructApiBids(LocationTargetType locationType, + Function createBid, + Supplier getTarget, + Supplier createNewTarget, + Consumer setTarget, + Supplier> getBids, + Consumer> setBids) { + List bulkBidsForLocationType = new ArrayList(); + + for (TBid bulkBid : getBids()) { + if (bulkBid.getLocationType() == locationType) { + bulkBidsForLocationType.add(bulkBid); + } + } + + reconstructApiBids(bulkBidsForLocationType, createBid, getTarget, createNewTarget, setTarget, getBids, setBids); + } + + protected void convertBidsFromApi(final LocationTargetType locationType, + List bids, + Supplier getTarget, + Function> getBids, + final Function getLocation, + final Function getBidAdjustment, + Function shouldConvertBid + ) { + convertBidsFromApi(bids, getTarget, getBids, new BiConsumer() { + @Override + public void accept(TBid bid, T rawBid) { + bid.setLocationType(locationType); + bid.setLocation(getLocation.apply(rawBid)); + + if (rawBid instanceof CityTargetBid) { + setBulkCityBidAdditionalProperties(bid, (CityTargetBid) rawBid); + } else if (rawBid instanceof MetroAreaTargetBid) { + setBulkMetroAreaBidAdditionalProperties(bid, (MetroAreaTargetBid) rawBid); + } else if (rawBid instanceof StateTargetBid) { + setBulkStateBidAdditionalProperties(bid, (StateTargetBid) rawBid); + } else if (rawBid instanceof CountryTargetBid) { + setBulkCountryBidAdditionalProperties(bid, (CountryTargetBid) rawBid); + } else if (rawBid instanceof PostalCodeTargetBid) { + setBulkPostalCodeBidAdditionalProperties(bid, (PostalCodeTargetBid) rawBid); + } else { + throw new UnsupportedOperationException("unsupported bid type"); + } + } + }, shouldConvertBid); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeyword.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeyword.java new file mode 100644 index 0000000000..dd60140026 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeyword.java @@ -0,0 +1,210 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.v10.campaignmanagement.NegativeKeyword; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class for all bulk negative keywords that + * are either assigned individually to a campaign or ad group entity, + * or shared in a negative keyword list. + * + * @see BulkAdGroupNegativeKeyword + * @see BulkCampaignNegativeKeyword + * @see BulkSharedNegativeKeyword + */ +abstract class BulkNegativeKeyword extends SingleRecordBulkEntity { + + private NegativeKeyword negativeKeyword; + + private Status status; + + private Long parentId; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkNegativeKeyword c) { + return c.getNegativeKeyword().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeyword c) { + c.getNegativeKeyword().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(BulkNegativeKeyword c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeyword c) { + c.setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public Status apply(String value) { + return Status.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public Long apply(BulkNegativeKeyword c) { + return c.getParentId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeyword c) { + c.setParentId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Keyword, + new Function() { + @Override + public String apply(BulkNegativeKeyword c) { + return c.getNegativeKeyword().getText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeyword c) { + c.getNegativeKeyword().setText(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.MatchType, + new Function() { + @Override + public String apply(BulkNegativeKeyword c) { + return StringExtensions.toMatchTypeBulkString(c.getNegativeKeyword().getMatchType()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeyword c) { + c.getNegativeKeyword().setMatchType(StringExtensions.parseOptional(v, new Function() { + @Override + public MatchType apply(String t) { + return MatchType.fromValue(t); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + /** + * Gets a negative keyword with match type. + */ + public NegativeKeyword getNegativeKeyword() { + return negativeKeyword; + } + + /** + * Sets a negative keyword with match type. + */ + public void setNegativeKeyword(NegativeKeyword negativeKeyword) { + this.negativeKeyword = negativeKeyword; + } + + /** + * Gets the status of the negative keyword association. + * + *

+ * The value is Active if the negative keyword is assigned to the parent entity. + * The value is Deleted if the negative keyword is removed from the parent entity, + * or should be removed 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 association. + * + *

+ * The value is Active if the negative keyword is assigned to the parent entity. + * The value is Deleted if the negative keyword is removed from the parent entity, + * or should be removed in a subsequent upload operation. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public void setStatus(Status status) { + this.status = status; + } + + /** + * Reserved for internal use. + */ + Long getParentId() { + return parentId; + } + + /** + * Reserved for internal use. + */ + void setParentId(Long parentId) { + this.parentId = parentId; + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.negativeKeyword = new NegativeKeyword(); + this.negativeKeyword.setType("NegativeKeyword"); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getNegativeKeyword(), "NegativeKeyword"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeywordList.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeywordList.java new file mode 100644 index 0000000000..a406896502 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeKeywordList.java @@ -0,0 +1,164 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.NegativeKeywordList; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a negative keyword list that can be read or written in a bulk file. + * + * This class exposes the {@link BulkNegativeKeywordList#setNegativeKeywordList} and {@link BulkNegativeKeywordList#getNegativeKeywordList} + * methods that can be used to read and write fields of the Negative Keyword List record in a bulk file. + * + *

+ * For more information, see Negative Keyword List at + * http://go.microsoft.com/fwlink/?LinkID=620237. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkNegativeKeywordList extends SingleRecordBulkEntity { + + private NegativeKeywordList negativeKeywordList; + + 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(BulkNegativeKeywordList c) { + return c.getNegativeKeywordList().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeywordList c) { + c.getNegativeKeywordList().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(BulkNegativeKeywordList c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeywordList 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(BulkNegativeKeywordList c) { + return c.getNegativeKeywordList().getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeKeywordList c) { + c.getNegativeKeywordList().setName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setNegativeKeywordList(new NegativeKeywordList()); + + this.getNegativeKeywordList().setType("NegativeKeywordList"); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getNegativeKeywordList(), "NegativeKeywordList"); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets the negative keyword list. + */ + public NegativeKeywordList getNegativeKeywordList() { + return negativeKeywordList; + } + + /** + * Sets the negative keyword list. + */ + public void setNegativeKeywordList(NegativeKeywordList negativeKeywordList) { + this.negativeKeywordList = negativeKeywordList; + } + + /** + * Gets the status of the 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 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/v10/bulk/entities/BulkNegativeLocationTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeLocationTarget.java new file mode 100644 index 0000000000..af40b50c38 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeLocationTarget.java @@ -0,0 +1,94 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.campaignmanagement.CityTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.CountryTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.MetroAreaTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.PostalCodeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.StateTargetBid; + +/** + * A base class for all bulk negative location target classes, for example {@link BulkAdGroupNegativeLocationTarget}. + * + * @param see {@link BulkNegativeLocationTargetBid} + */ +abstract class BulkNegativeLocationTarget extends BulkLocationTargetWithStringLocation { + + public BulkNegativeLocationTarget(Class classOfTBid) { + super(classOfTBid); + } + + @Override + void setPostalCodeBidAdditionialProperties(PostalCodeTargetBid postalCodeBid, TBid t) { + postalCodeBid.setIsExcluded(true); + } + + @Override + boolean shouldConvertPostalCodeTargetBid(PostalCodeTargetBid bid) { + return bid.isIsExcluded(); + } + + @Override + void setBulkPostalCodeBidAdditionalProperties(TBid bulkBid, PostalCodeTargetBid postalCodeTargetBid) { + postalCodeTargetBid.setIsExcluded(true); + } + + @Override + void setCityBidAdditionialProperties(CityTargetBid cityBid, TBid t) { + cityBid.setIsExcluded(true); + } + + @Override + boolean shouldConvertCityTargetBid(CityTargetBid bid) { + return bid.isIsExcluded(); + } + + @Override + void setBulkCityBidAdditionalProperties(TBid bulkBid, CityTargetBid cityTargetBid) { + cityTargetBid.setIsExcluded(true); + } + + @Override + void setMetroAreaBidAdditionialProperties(MetroAreaTargetBid metroAreBid, TBid t) { + metroAreBid.setIsExcluded(true); + } + + @Override + boolean shouldConvertMetroAreaTargetBid(MetroAreaTargetBid bid) { + return bid.isIsExcluded(); + } + + @Override + void setBulkMetroAreaBidAdditionalProperties(TBid bulkBid, MetroAreaTargetBid metroAreaTargetBid) { + metroAreaTargetBid.setIsExcluded(true); + } + + @Override + void setStateBidAdditionialProperties(StateTargetBid stateBid, TBid t) { + stateBid.setIsExcluded(true); + } + + @Override + boolean shouldConvertStateTargetBid(StateTargetBid bid) { + return bid.isIsExcluded(); + } + + @Override + void setBulkStateBidAdditionalProperties(TBid bulkBid, StateTargetBid stateTargetBid) { + stateTargetBid.setIsExcluded(true); + } + + @Override + void setCountryBidAdditionialProperties(CountryTargetBid cityBid, TBid t) { + cityBid.setIsExcluded(true); + } + + @Override + boolean shouldConvertCountryTargetBid(CountryTargetBid bid) { + return bid.isIsExcluded(); + } + + @Override + void setBulkCountryBidAdditionalProperties(TBid bulkBid, CountryTargetBid countryTargetBid) { + countryTargetBid.setIsExcluded(true); + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeLocationTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeLocationTargetBid.java new file mode 100644 index 0000000000..11d2c9fdcf --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeLocationTargetBid.java @@ -0,0 +1,16 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; + +/** + * This abstract base class provides properties that are shared by all bulk negative location target bid classes. + */ +abstract class BulkNegativeLocationTargetBid extends BulkLocationTargetBidWithStringLocation { + + /** + * Reserved for internal use. + */ + BulkNegativeLocationTargetBid(BulkTargetIdentifier identifier) { + super(identifier); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSite.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSite.java new file mode 100644 index 0000000000..aadc0f278c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSite.java @@ -0,0 +1,142 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkNegativeSiteIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class for the bulk negative sites that are assigned + * individually to a campaign or ad group entity. + * + * @see BulkAdGroupNegativeSite + * @see BulkCampaignNegativeSite + */ +abstract class BulkNegativeSite extends SingleRecordBulkEntity { + + private TIdentifier identifier; + + public TIdentifier getIdentifier() { + return identifier; + } + + public void setIdentifier(TIdentifier identifier) { + this.identifier = identifier; + } + + /** + * Gets the status of the negative site association. + * + *

+ * The value is Active if the negative site is assigned to the parent entity identified by the EntityId. + * The value is Deleted if the negative site is removed from the + * parent entity, or should be removed in a subsequent upload operation. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public Status getStatus() { + return this.identifier.getStatus(); + } + + /** + * Sets the status of the negative site association. + * + *

+ * The value is Active if the negative site is assigned to the parent entity identified by the EntityId. + * The value is Deleted if the negative site is removed from the + * parent entity, or should be removed in a subsequent upload operation. + * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public void setStatus(Status status) { + this.identifier.setStatus(status); + } + + /** + * The URL of a website on which you do not want your ads displayed. + * Corresponds to the 'Website' field in the bulk file. + */ + private String website; + + /** + * Gets the URL of a website on which you do not want your ads displayed. + * + *

+ * Corresponds to the 'Website' field in the bulk file. + *

+ */ + public String getWebsite() { + return website; + } + + /** + * Sets the URL of a website on which you do not want your ads displayed. + * + *

+ * Corresponds to the 'Website' field in the bulk file. + *

+ */ + public void setWebsite(String website) { + this.website = website; + } + + protected BulkNegativeSite(TIdentifier identifier) { + this.identifier = identifier; + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Website, + new Function() { + @Override + public String apply(BulkNegativeSite c) { + return c.getWebsite(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeSite c) { + c.setWebsite(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.identifier.readFromRowValues(values); + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + this.identifier.writeToRowValues(values, excludeReadonlyData); + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public boolean canEncloseInMultilineEntity() { + return true; + } + + @Override + public MultiRecordBulkEntity encloseInMultilineEntity() { + return createNegativeSitesWithThisNegativeSite(); + } + + abstract MultiRecordBulkEntity createNegativeSitesWithThisNegativeSite(); +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSites.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSites.java new file mode 100644 index 0000000000..c4d71f208e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkNegativeSites.java @@ -0,0 +1,159 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.TryResult; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkNegativeSiteIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.Predicate; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class for the bulk negative sites that assigned in sets to + * a campaign or ad group entity. + * + * @see BulkAdGroupNegativeSites + * @see BulkCampaignNegativeSites + */ +abstract class BulkNegativeSites, TIdentifier extends BulkNegativeSiteIdentifier> extends MultiRecordBulkEntity { + + private final List bulkNegativeSites = new ArrayList(); + + private TIdentifier firstRowIdentifier; + + private boolean hasDeleteAllRow; + + /** + * The status of the negative site association. The value is Active if the + * negative site is assigned to the parent entity. The value is Deleted if + * the negative site is removed from the parent entity, or should be removed + * in a subsequent upload operation. Corresponds to the 'Status' field in + * the bulk file. + */ + private Status status; + + private Class negativeSiteClass; + + private Class identifierClass; + + public Status getStatus() { + return status; + } + + public void setStatus(Status status) { + this.status = status; + } + + public List getNegativeSites() { + return Collections.unmodifiableList(this.bulkNegativeSites); + } + + @Override + public List getChildEntities() { + return Collections.unmodifiableList(this.bulkNegativeSites); + } + + /** + * Reserved for internal use. + */ + protected BulkNegativeSites() { + + } + + protected BulkNegativeSites(TNegativeSite site, Class negativeSiteClass, Class identifierClass) { + this(site.getIdentifier(), negativeSiteClass, identifierClass); + bulkNegativeSites.add(site); + } + + protected BulkNegativeSites(TIdentifier identifier, Class negativeSiteClass, Class identifierClass) { + this.negativeSiteClass = negativeSiteClass; + this.identifierClass = identifierClass; + this.firstRowIdentifier = identifier; + + this.hasDeleteAllRow = identifier.isDeleteRow(); + } + + /** + * Reserved for internal use. + */ + protected abstract TIdentifier createIdentifier(); + + protected abstract void validatePropertiesNotNull(); + + @Override + public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException { + validatePropertiesNotNull(); + + TIdentifier deleteRow = createIdentifier(); + + deleteRow.setStatus(Status.DELETED); + rowWriter.writeObjectRow(deleteRow, excludeReadonlyData); + + if (status == Status.DELETED) { + return; + } + + for (TNegativeSite site : convertApiToBulkNegativeSites()) { + site.writeToStream(rowWriter, excludeReadonlyData); + } + } + + /** + * Reserved for internal use. + */ + protected abstract Iterable convertApiToBulkNegativeSites(); + + /** + * Reserved for internal use. + */ + protected abstract void reconstructApiObjects(); + + @Override + public void readRelatedDataFromStream(BulkStreamReader reader) { + boolean hasMoreRows = true; + + while (hasMoreRows) { + + TryResult nextSiteResult = reader.tryRead(new Predicate() { + @Override + public boolean test(TNegativeSite x) { + return x.getIdentifier().equals(firstRowIdentifier); + } + }, this.negativeSiteClass); + + if (nextSiteResult.isSuccessful()) { + this.bulkNegativeSites.add(nextSiteResult.getResult()); + continue; + } + + TryResult identifierResult = reader.tryRead(new Predicate() { + @Override + public boolean test(TIdentifier x) { + return x.equals(firstRowIdentifier); + } + }, this.identifierClass); + + if (identifierResult.isSuccessful()) { + if (identifierResult.getResult().isDeleteRow()) { + this.hasDeleteAllRow = true; + } + } else { + hasMoreRows = false; + } + } + + reconstructApiObjects(); + + this.status = bulkNegativeSites != null && bulkNegativeSites.size() > 0 + ? Status.ACTIVE + : Status.DELETED; + } + + @Override + public boolean allChildrenPresent() { + return this.hasDeleteAllRow; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkProductAd.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkProductAd.java new file mode 100644 index 0000000000..3b3b62826e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkProductAd.java @@ -0,0 +1,94 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AdType; +import com.microsoft.bingads.v10.campaignmanagement.ProductAd; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a product ad. + * + * This class exposes the {@link #setProductAd} and {@link #getProductAd} methods + * that can be used to read and write fields of the Product Ad record in a bulk file. + * + *

+ * For more information, see Product Ad at + * http://go.microsoft.com/fwlink/?LinkID=620264. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkProductAd extends BulkAd { + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.PromotionalText, + new Function() { + @Override + public String apply(BulkProductAd c) { + return c.getAd().getPromotionalText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkProductAd c) { + c.getAd().setPromotionalText(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getProductAd(), "ProductAd"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + setAd(new ProductAd()); + + getAd().setType(AdType.PRODUCT); + + super.processMappingsFromRowValues(values); + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + /** + * Gets the product ad. + */ + public ProductAd getProductAd() { + return ad; + } + + /** + * Sets the product ad. + */ + public void setProductAd(ProductAd ad) { + this.setAd(ad); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTarget.java new file mode 100644 index 0000000000..eb5e467181 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTarget.java @@ -0,0 +1,160 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfRadiusTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.IntentOption; +import com.microsoft.bingads.v10.campaignmanagement.LocationTarget; +import com.microsoft.bingads.v10.campaignmanagement.RadiusTarget; +import com.microsoft.bingads.v10.campaignmanagement.RadiusTargetBid; + +import java.util.ArrayList; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk radius target classes. + * + * @param see {@link BulkRadiusTargetBid} + */ +abstract class BulkRadiusTarget extends BulkTargetWithLocation { + + public BulkRadiusTarget(Class classOfTBid) { + super(classOfTBid); + } + + @Override + void reconstructSubTargets() { + reconstructApiBids(getBids(), new Function() { + @Override + public RadiusTargetBid apply(TBid t) { + return t.getRadiusTargetBid(); + } + }, new Supplier() { + @Override + public RadiusTarget get() { + return getLocation().getRadiusTarget(); + } + }, new Supplier() { + @Override + public RadiusTarget get() { + return new RadiusTarget(); + } + }, new Consumer() { + @Override + public void accept(RadiusTarget t) { + getLocation().setRadiusTarget(t); + } + }, new Supplier>() { + @Override + public List get() { + return getLocation().getRadiusTarget().getBids().getRadiusTargetBids(); + } + }, new Consumer>() { + @Override + public void accept(List t) { + getLocation().getRadiusTarget().setBids(new ArrayOfRadiusTargetBid()); + + getLocation().getRadiusTarget().getBids().getRadiusTargetBids().addAll(t); + } + }); + + if (!getBids().isEmpty()) { + getLocation().setIntentOption(getBids().get(0).getIntentOption()); + } + } + + @Override + List convertApiToBulkBids() { + List bulkBids = new ArrayList(); + + convertBidsFromApi(bulkBids, new Supplier() { + @Override + public RadiusTarget get() { + return getLocation().getRadiusTarget(); + } + }, new Function>() { + @Override + public List apply(RadiusTarget t) { + return t.getBids().getRadiusTargetBids(); + } + }, new BiConsumer() { + @Override + public void accept(TBid t, RadiusTargetBid u) { + t.setRadiusTargetBid(u); + } + }, new Function() { + @Override + public Boolean apply(RadiusTargetBid t) { + return true; + } + }); + + for (TBid bid : bulkBids) { + bid.setIntentOption(getLocation().getIntentOption()); + } + + return bulkBids; + } + + @Override + void validatePropertiesNotNull() { + validatePropertyNotNull(getRadiusTarget(), "RadiusTarget"); + } + + @Override + void validateBidsNotNullOrEmpty() { + if (getRadiusTarget() != null) { + validateListNotNullOrEmpty(getRadiusTarget().getBids(), getRadiusTarget().getBids().getRadiusTargetBids(), "RadiusTarget.Bids"); + } + } + + /** + * Gets a list of geographical radius targets with bid adjustments. + */ + public RadiusTarget getRadiusTarget() { + return getLocationProperty(new Function() { + @Override + public RadiusTarget apply(LocationTarget t) { + return t.getRadiusTarget(); + } + }); + } + + /** + * Sets a list of geographical radius targets with bid adjustments. + */ + public void setRadiusTarget(final RadiusTarget radiusTarget) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget t) { + t.setRadiusTarget(radiusTarget); + } + }); + } + + /** + * Gets the possible intent options for location targeting. + */ + public IntentOption getIntentOption() { + return getLocationProperty(new Function() { + @Override + public IntentOption apply(LocationTarget t) { + return t.getIntentOption(); + } + }); + } + + /** + * Sets the possible intent options for location targeting. + */ + public void setIntentOption(final IntentOption intentOption) { + setLocationProperty(new Consumer() { + @Override + public void accept(LocationTarget t) { + t.setIntentOption(intentOption); + } + }); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTargetBid.java new file mode 100644 index 0000000000..a1913f86bd --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkRadiusTargetBid.java @@ -0,0 +1,217 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.campaignmanagement.DistanceUnit; +import com.microsoft.bingads.v10.campaignmanagement.IntentOption; +import com.microsoft.bingads.v10.campaignmanagement.RadiusTargetBid; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk radius target bid classes, + * for example {@link BulkAdGroupRadiusTargetBid}. + */ +abstract class BulkRadiusTargetBid extends BulkTargetBid { + + private RadiusTargetBid radiusTargetBid; + + private IntentOption intentOption; + + BulkRadiusTargetBid(BulkTargetIdentifier identifier) { + super(identifier); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.RadiusTargetId, + new Function() { + @Override + public Long apply(BulkRadiusTargetBid c) { + return c.getRadiusTargetBid().getId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.getRadiusTargetBid().setId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Name, + new Function() { + @Override + public String apply(BulkRadiusTargetBid c) { + return c.getRadiusTargetBid().getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.getRadiusTargetBid().setName(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Radius, + new Function() { + @Override + public Double apply(BulkRadiusTargetBid c) { + return c.getRadiusTargetBid().getRadius(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.getRadiusTargetBid().setRadius(Double.parseDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Unit, + new Function() { + @Override + public String apply(BulkRadiusTargetBid c) { + return c.getRadiusTargetBid().getRadiusUnit() != null ? c.getRadiusTargetBid().getRadiusUnit().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.getRadiusTargetBid().setRadiusUnit(DistanceUnit.fromValue(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Latitude, + new Function() { + @Override + public Double apply(BulkRadiusTargetBid c) { + return c.getRadiusTargetBid().getLatitudeDegrees(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.getRadiusTargetBid().setLatitudeDegrees(Double.parseDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Longitude, + new Function() { + @Override + public Double apply(BulkRadiusTargetBid c) { + return c.getRadiusTargetBid().getLongitudeDegrees(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.getRadiusTargetBid().setLongitudeDegrees(Double.parseDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.BidAdjustment, + new Function() { + @Override + public Integer apply(BulkRadiusTargetBid c) { + return c.getRadiusTargetBid().getBidAdjustment(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.getRadiusTargetBid().setBidAdjustment(Integer.parseInt(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.PhysicalIntent, + new Function() { + @Override + public String apply(BulkRadiusTargetBid c) { + return c.getIntentOption() != null ? c.getIntentOption().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkRadiusTargetBid c) { + c.setIntentOption(StringExtensions.parseOptional(v, new Function() { + @Override + public IntentOption apply(String value) { + return IntentOption.fromValue(value); + } + })); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + setRadiusTargetBid(new RadiusTargetBid()); + + super.processMappingsFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getRadiusTargetBid(), "RadiusTargetBid"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + /** + * Gets a specific geographical radius to target. + */ + public RadiusTargetBid getRadiusTargetBid() { + return radiusTargetBid; + } + + /** + * Sets a specific geographical radius to target. + */ + public void setRadiusTargetBid(RadiusTargetBid radiusTargetBid) { + this.radiusTargetBid = radiusTargetBid; + } + + /** + * Gets the possible intent options for location targeting. + */ + public IntentOption getIntentOption() { + return intentOption; + } + + /** + * Sets the possible intent options for location targeting. + */ + void setIntentOption(IntentOption intentOption) { + this.intentOption = intentOption; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSharedNegativeKeyword.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSharedNegativeKeyword.java new file mode 100644 index 0000000000..e95563350d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSharedNegativeKeyword.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; + +/** + * 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 + * http://go.microsoft.com/fwlink/?LinkID=620238. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkSharedNegativeKeyword 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/v10/bulk/entities/BulkSiteLink.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSiteLink.java new file mode 100644 index 0000000000..55301e3c2f --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSiteLink.java @@ -0,0 +1,408 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.SiteLink; +import com.microsoft.bingads.v10.campaignmanagement.SiteLinksAdExtension; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.SiteLinkAdExtensionIdentifier; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a sitelink. + * + * This class exposes the {@link #setSiteLink} and {@link #getSiteLink} methods that can be used to + * read and write fields of the Sitelink Ad Extension record in a bulk file. + * + *

+ * For more information, see Sitelink Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620236 + *

+ * + *

+ * The Sitelink Ad Extension record includes the distinct properties of the {@link BulkSiteLink} class, + * combined with the commmon properties of the {@link BulkSiteLinkAdExtension} class, + * for example {@link BulkSiteLinkAdExtension#getAccountId} and + * {@link BulkSiteLinkAdExtension#getSiteLinksAdExtension}. + *

+ * + *

+ * One {@link BulkSiteLinkAdExtension} has one or more {@link BulkSiteLink}. + * Each {@link BulkSiteLink} instance corresponds to one Sitelink Ad Extension record in the bulk file. + * If you upload a {@link BulkSiteLinkAdExtension}, + * then you are effectively replacing any existing site links for the sitelink ad extension. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkSiteLink extends SingleRecordBulkEntity { + + private SiteLinkAdExtensionIdentifier identifier; + + SiteLinkAdExtensionIdentifier getIdentifier() { + return identifier; + } + + void setIdentifier(SiteLinkAdExtensionIdentifier identifier) { + this.identifier = identifier; + } + + /** + * Gets the identifier of the ad extension. + * + *

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

+ */ + public Long getAdExtensionId() { + return this.identifier.getAdExtensionId(); + } + + /** + * Sets the identifier of the ad extension. + * + *

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

+ */ + public void setAdExtensionId(Long adExtensionId) { + this.identifier.setAdExtensionId(adExtensionId); + } + + /** + * Gets the ad extension's parent account identifier. + * + *

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

+ */ + public Long getAccountId() { + return this.identifier.getAccountId(); + } + + /** + * Sets the ad extension's parent account identifier. + * + *

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

+ */ + public void setAccountId(Long accountId) { + this.identifier.setAccountId(accountId); + } + + /** + * Gets the status of the ad extension. + * + *

+ * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public AdExtensionStatus getStatus() { + return this.identifier.getStatus(); + } + + /** + * Sets the status of the ad extension. + * + *

+ * Corresponds to the 'Status' field in the bulk file. + *

+ */ + public void setStatus(AdExtensionStatus status) { + this.identifier.setStatus(status); + } + + /** + * Gets the version of the ad extension. + * + *

+ * Corresponds to the 'Version' field in the bulk file. + *

+ */ + public Integer getVersion() { + return this.identifier.getVersion(); + } + + /** + * Sets the version of the ad extension. + * + *

+ * Corresponds to the 'Version' field in the bulk file. + *

+ */ + public void setVersion(Integer version) { + this.identifier.setVersion(version); + } + + private int order; + + private SiteLink siteLink; + + /** + * Gets the order of the sitelink displayed to a search user in the ad. + * + *

+ * Corresponds to the 'Sitelink Extension Order' field in the bulk file. + *

+ */ + public int getOrder() { + return order; + } + + /** + * Gets the order of the sitelink displayed to a search user in the ad. + * + *

+ * Corresponds to the 'Sitelink Extension Order' field in the bulk file. + *

+ */ + public void setOrder(int order) { + this.order = order; + } + + /** + * Gets the sitelink. + */ + public SiteLink getSiteLink() { + return siteLink; + } + + /** + * Sets the sitelink. + */ + public void setSiteLink(SiteLink siteLink) { + this.siteLink = siteLink; + } + + /** + * Initializes a new instance of the BulkSiteLink class. + */ + public BulkSiteLink() { + this.identifier = new SiteLinkAdExtensionIdentifier(); + } + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.SiteLinkExtensionOrder, + new Function() { + @Override + public Integer apply(BulkSiteLink c) { + return c.getOrder(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + c.setOrder(StringExtensions.parseInt(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SiteLinkDisplayText, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getDisplayText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + c.getSiteLink().setDisplayText(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SiteLinkDestinationUrl, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return StringExtensions.toOptionalBulkString(c.getSiteLink().getDestinationUrl()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + c.getSiteLink().setDestinationUrl(StringExtensions.getValueOrEmptyString(v)); + } + }, + true + + )); + + m.add(new SimpleBulkMapping(StringTable.SiteLinkDescription1, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getDescription1(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + c.getSiteLink().setDescription1(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.SiteLinkDescription2, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getDescription2(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + c.getSiteLink().setDescription2(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DevicePreference, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return StringExtensions.toDevicePreferenceBulkString(c.getSiteLink().getDevicePreference()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + c.getSiteLink().setDevicePreference(StringExtensions.parseDevicePreference(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FinalUrl, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return StringExtensions.writeUrls("; ", c.getSiteLink().getFinalUrls()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + + c.getSiteLink().setFinalUrls(urls); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.FinalMobileUrl, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return StringExtensions.writeUrls("; ", c.getSiteLink().getFinalMobileUrls()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + ArrayOfstring urls = new ArrayOfstring(); + List urlArray = StringExtensions.parseUrls(v); + if(urlArray == null) { + urls = null; + } else { + urls.getStrings().addAll(urlArray); + } + + c.getSiteLink().setFinalMobileUrls(urls); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.TrackingTemplate, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return StringExtensions.toOptionalBulkString(c.getSiteLink().getTrackingUrlTemplate()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + c.getSiteLink().setTrackingUrlTemplate(StringExtensions.getValueOrEmptyString(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CustomParameter, + new Function() { + @Override + public String apply(BulkSiteLink c) { + return StringExtensions.toCustomParaBulkString(c.getSiteLink().getUrlCustomParameters()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkSiteLink c) { + try { + c.getSiteLink().setUrlCustomParameters(StringExtensions.parseCustomParameters(v)); + } catch (Exception e) { + e.printStackTrace(); + } + } + } + )); + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.siteLink = new SiteLink(); + + this.identifier.readFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + this.validatePropertyNotNull(this.siteLink, StringTable.SiteLink); + this.identifier.writeToRowValues(values, excludeReadonlyData); + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public boolean canEncloseInMultilineEntity() { + return true; + } + + @Override + public MultiRecordBulkEntity encloseInMultilineEntity() { + return new BulkSiteLinkAdExtension(this); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSiteLinkAdExtension.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSiteLinkAdExtension.java new file mode 100644 index 0000000000..933fcb4a5d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSiteLinkAdExtension.java @@ -0,0 +1,278 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.SiteLink; +import com.microsoft.bingads.v10.campaignmanagement.SiteLinksAdExtension; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.TryResult; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.SiteLinkAdExtensionIdentifier; +import com.microsoft.bingads.internal.functionalinterfaces.Predicate; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +/** + * Represents a sitelink ad extension that is derived from {@link BulkEntity} + * and can be read or written in a bulk file. Properties of this class and of + * classes that it is derived from, correspond to fields of the Sitelink Ad + * Extension record in a bulk file. + * + *

+ * For more information, see Sitelink Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620236. + *

+ * + *

+ * The Sitelink Ad Extension record includes the distinct properties of the {@link BulkSiteLink} class, + * combined with the commmon properties of the {@link BulkSiteLinkAdExtension} class, for example + * {@link #getAccountId} and {@link #getSiteLinksAdExtension}. + *

+ * + *

+ * One {@link BulkSiteLinkAdExtension} has one or more {@link BulkSiteLink}. + * Each {@link BulkSiteLink} instance corresponds to one Sitelink Ad Extension record in the bulk file. + * If you upload a {@link BulkSiteLinkAdExtension}, + * then you are effectively replacing any existing site links for the sitelink ad extension. + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkSiteLinkAdExtension extends MultiRecordBulkEntity { + + private Long accountId; + + private SiteLinksAdExtension siteLinksAdExtension; + + private final List bulkSiteLinkResults = new ArrayList(); + + /** + * Get The list of {@link BulkSiteLink} are represented by multiple Sitelink Ad Extension records in the file. + *

+ * Each item in the list corresponds to a separate Sitelink Ad Extension record that includes the distinct properties of + * the {@link BulkSiteLink} class, combined with + * the commmon properties of the {@link BulkSiteLinkAdExtension} class, + * for example {@link #getAccountId} and {@link #getSiteLinksAdExtension}. + *

+ */ + public List getSiteLinks() { + return Collections.unmodifiableList(this.bulkSiteLinkResults); + } + + @Override + public List getChildEntities() { + return Collections.unmodifiableList(this.bulkSiteLinkResults); + } + + private SiteLinkAdExtensionIdentifier identifier; + + private boolean hasDeleteAllRow; + + /** + * Initializes a new instance of the BulkSiteLinkAdExtension class. + */ + public BulkSiteLinkAdExtension() { + + } + + public BulkSiteLinkAdExtension(SiteLinkAdExtensionIdentifier identifier) { + this(); + + this.identifier = identifier; + + this.hasDeleteAllRow = AdExtensionStatus.DELETED.equals(identifier.getStatus()); + + this.siteLinksAdExtension = new SiteLinksAdExtension(); + + this.siteLinksAdExtension.setType(StringTable.SITE_LINKS_AD_EXTENSION); + this.siteLinksAdExtension.setId(identifier.getAdExtensionId()); + this.siteLinksAdExtension.setStatus(identifier.getStatus()); + this.siteLinksAdExtension.setVersion(identifier.getVersion()); + + this.accountId = identifier.getAccountId(); + } + + BulkSiteLinkAdExtension(BulkSiteLink firstSiteLink) { + this(firstSiteLink.getIdentifier()); + bulkSiteLinkResults.add(firstSiteLink); + } + + @Override + public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException { + validatePropertyNotNull(siteLinksAdExtension, StringTable.SITE_LINKS_AD_EXTENSION); + + validatePropertyNotNull(siteLinksAdExtension.getId(), StringTable.SITE_LINKS_AD_EXTENSION + ".getId()"); + + if (!AdExtensionStatus.DELETED.equals(siteLinksAdExtension.getStatus())) { + validateListNotNullOrEmpty( + siteLinksAdExtension.getSiteLinks(), + siteLinksAdExtension.getSiteLinks().getSiteLinks(), + StringTable.SITE_LINKS_AD_EXTENSION_SITE_LINKS + ); + } + + SiteLinkAdExtensionIdentifier identifier = new SiteLinkAdExtensionIdentifier(); + identifier.setStatus(AdExtensionStatus.DELETED); + identifier.setAccountId(accountId); + identifier.setAdExtensionId(this.siteLinksAdExtension.getId()); + + rowWriter.writeObjectRow(identifier, excludeReadonlyData); + + if (AdExtensionStatus.DELETED.equals(siteLinksAdExtension.getStatus())) { + return; + } + + for (BulkSiteLink bulkSiteLink : convertV9ToBulkSiteLinks()) { + bulkSiteLink.writeToStream(rowWriter, excludeReadonlyData); + } + } + + private List convertV9ToBulkSiteLinks() { + int order = 1; + + List siteLinks = siteLinksAdExtension.getSiteLinks().getSiteLinks(); + + List bulkSiteLinks = new ArrayList(); + + for (SiteLink siteLink : siteLinks) { + BulkSiteLink bulkSiteLink = new BulkSiteLink(); + + bulkSiteLink.setSiteLink(siteLink); + bulkSiteLink.setAccountId(accountId); + bulkSiteLink.setAdExtensionId(siteLinksAdExtension.getId()); + bulkSiteLink.setOrder(order++); + + bulkSiteLinks.add(bulkSiteLink); + } + + return bulkSiteLinks; + } + + @Override + public void readRelatedDataFromStream(BulkStreamReader reader) { + boolean hasMoreRows = true; + + while (hasMoreRows) { + + TryResult nextSiteLinkResult = reader.tryRead(new Predicate() { + @Override + public boolean test(BulkSiteLink x) { + return x.getIdentifier().equals(identifier); + } + }, BulkSiteLink.class); + + if (nextSiteLinkResult.isSuccessful()) { + bulkSiteLinkResults.add(nextSiteLinkResult.getResult()); + continue; + } + + TryResult identifierResult = reader.tryRead(new Predicate() { + @Override + public boolean test(SiteLinkAdExtensionIdentifier x) { + return x.equals(identifier); + } + }, SiteLinkAdExtensionIdentifier.class); + if (identifierResult.isSuccessful()) { + if (AdExtensionStatus.DELETED.equals(identifierResult.getResult().getStatus())) { + this.hasDeleteAllRow = true; + } + } else { + hasMoreRows = false; + } + } + + if (bulkSiteLinkResults.size() > 0) { + siteLinksAdExtension.setSiteLinks(this.getSortedSiteLinks()); + siteLinksAdExtension.setStatus(AdExtensionStatus.ACTIVE); + } else { + siteLinksAdExtension.setStatus(AdExtensionStatus.DELETED); + } + } + + private ArrayOfSiteLink getSortedSiteLinks() { + List sortedBulkSiteLinks = new ArrayList(bulkSiteLinkResults); + Collections.sort(sortedBulkSiteLinks, ORDER_BY_ORDER); + + ArrayOfSiteLink apiSiteLinks = new ArrayOfSiteLink(); + + for (BulkSiteLink bulkSiteLink : sortedBulkSiteLinks) { + apiSiteLinks.getSiteLinks().add(bulkSiteLink.getSiteLink()); + } + + return apiSiteLinks; + } + + static final Comparator ORDER_BY_ORDER = new Comparator() { + @Override + public int compare(BulkSiteLink o1, BulkSiteLink o2) { + return ((Integer)o1.getOrder()).compareTo(o2.getOrder()); + } + }; + + @Override + public boolean allChildrenPresent() { + return hasDeleteAllRow; + } + + /** + * Gets the ad extension's parent account identifier. + * + *

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

+ */ + public Long getAccountId() { + return accountId; + } + + /** + * Sets the ad extension's parent account identifier. + * + *

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

+ */ + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + /** + * Gets the SiteLinksAdExtension Data Object of the Campaign Management Service. + * + *

+ * A subset of SiteLinksAdExtension properties are available + * in the Sitelink Ad Extension record. For more information, see Sitelink Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620236. + *

+ */ + public SiteLinksAdExtension getSiteLinksAdExtension() { + return siteLinksAdExtension; + } + + /** + * Sets the SiteLinksAdExtension Data Object of the Campaign Management Service. + * + *

+ * A subset of SiteLinksAdExtension properties are available + * in the Sitelink Ad Extension record. For more information, see Sitelink Ad Extension at + * http://go.microsoft.com/fwlink/?LinkID=620236. + *

+ */ + public void setSiteLinksAdExtension(SiteLinksAdExtension siteLinksAdExtension) { + this.siteLinksAdExtension = siteLinksAdExtension; + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSubTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSubTarget.java new file mode 100644 index 0000000000..a959174dff --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkSubTarget.java @@ -0,0 +1,233 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.InternalException; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk sub target classes. + * + * @param see {@link BulkTargetBid} + */ +abstract class BulkSubTarget extends MultiRecordBulkEntity { + + private Status status; + + private Long targetId; + + private Long entityId; + + private String entityName; + + private String parentEntityName; + + private boolean hasDeleteAllRow; + + private final List bids = new ArrayList(); + + private final Class classOfTBid; + + boolean isBeingWrittenAsPartOfParentTarget; + + public BulkSubTarget(Class classOfTBid) { + this.classOfTBid = classOfTBid; + } + + /** + * Gets the list of target bids corresponding the this sub target type. + */ + public List getBids() { + return Collections.unmodifiableList(bids); + } + + /** + * Sets the list of target bids corresponding the this sub target type. + */ + void setBids(List bids) { + for (TBid bid : bids) { + this.bids.add(bid); + } + + reconstructSubTargets(); + + setStatus(bids.size() > 0 ? Status.ACTIVE : Status.DELETED); + } + + void setIdentifier(BulkTargetIdentifier identifier) { + if (identifier.getTargetBidType() != classOfTBid) { + throw new InternalException(new IllegalArgumentException("Invalid identifier type")); + } + + hasDeleteAllRow = identifier.isDeleteRow(); + + setEntityId(identifier.getEntityId()); + + setTargetId(identifier.getTargetId()); + + setEntityName(identifier.getEntityName()); + + setParentEntityName(identifier.getParentEntityName()); + } + + @Override + public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException { + // If the sub-target (for example BulkAgeTarget) is being written as part of BulkTarget, + // AgeTarget may be null, which means no Age bids should be written. + // Otherwise, if BulkAgeTarget is written individually, AgeTarget must be set. + // Also, if target is being deleted, don't require SubTarget API properties to be set + if (!isBeingWrittenAsPartOfParentTarget && getStatus() != Status.DELETED) { + validatePropertiesNotNull(); + } + + // In any case, for non-empty targets Bids list need to be validated. API doesn't allow passing null or empty list of bids, so shouldn't SDK + validateBidsNotNullOrEmpty(); + + BulkTargetIdentifier identifier = createBid().getIdentifier(); + + identifier.setStatus(Status.DELETED); + identifier.setTargetId(getTargetId()); + identifier.setEntityId(getEntityId()); + identifier.setEntityName(getEntityName()); + identifier.setParentEntityName(getParentEntityName()); + + identifier.writeToStream(rowWriter, excludeReadonlyData); + + if (getStatus() == Status.DELETED) { + return; + } + + for (TBid bid : convertApiToBulkBids()) { + bid.writeToStream(rowWriter, excludeReadonlyData); + } + } + + abstract void reconstructSubTargets(); + + void validatePropertiesNotNull() + { + // To be implemented by specific target types + } + + void validateBidsNotNullOrEmpty() + { + // To be implemented by specific target types + } + + abstract TBid createBid(); + + abstract List convertApiToBulkBids(); + + TBid createAndPopulateBid(Consumer setAdditionalProperties) { + TBid bid = createBid(); + + bid.setStatus(getStatus()); + bid.setTargetId(getTargetId()); + bid.setEntityId(getEntityId()); + bid.setEntityName(getEntityName()); + bid.setParentEntityName(getParentEntityName()); + + setAdditionalProperties.accept(bid); + + return bid; + } + + @Override + public List getChildEntities() { + return getBids(); + } + + @Override + public boolean allChildrenPresent() { + return hasDeleteAllRow; + } + + /** + * Gets the status of the target. + * + *

+ * The value is Active if the target is available in the customer's shared library. + * The value is Deleted if the target is deleted from the customer's shared 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 target. + * + *

+ * The value is Active if the target is available in the customer's shared library. + * The value is Deleted if the target is deleted from the customer's shared 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; + } + + /** + * Gets the identifier of the target. + */ + public Long getTargetId() { + return targetId; + } + + /** + * Sets the identifier of the target. + */ + public void setTargetId(Long targetId) { + this.targetId = targetId; + } + + /** + * Reserved for internal use. + */ + Long getEntityId() { + return entityId; + } + + /** + * Reserved for internal use. + */ + void setEntityId(Long entityId) { + this.entityId = entityId; + } + + /** + * Reserved for internal use. + */ + String getEntityName() { + return entityName; + } + + /** + * Reserved for internal use. + */ + void setEntityName(String entityName) { + this.entityName = entityName; + } + + /** + * Reserved for internal use. + */ + String getParentEntityName() { + return parentEntityName; + } + + /** + * Reserved for internal use. + */ + void setParentEntityName(String parentEntityName) { + this.parentEntityName = parentEntityName; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTarget.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTarget.java new file mode 100644 index 0000000000..013fbef0cf --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTarget.java @@ -0,0 +1,608 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.campaignmanagement.LocationTarget; +import com.microsoft.bingads.v10.campaignmanagement.Target; +import com.microsoft.bingads.InternalException; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.TryResult; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.Predicate; + +import static com.microsoft.bingads.internal.utilities.Comparer.compareNullable; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk target classes, + * for example {@link BulkAdGroupDayTimeTarget}. + * + * @param the common target identifier accross all sub types for a given target + * @param an age target bid + * @param an age target + * @param a day and time target bid + * @param a day and time target + * @param a device OS target bid + * @param a device OS target + * @param a gender target bid + * @param a gender target + * @param a location target bid + * @param a location target + * @param a negative location bid + * @param a negative location + * @param a radius target bid + * @param a radius target + */ +abstract class BulkTarget< + TIdentifier extends BulkTargetIdentifier, TAgeBid extends BulkAgeTargetBid, TAge extends BulkAgeTarget, TDayTimeBid extends BulkDayTimeTargetBid, TDayTime extends BulkDayTimeTarget, TDeviceOsBid extends BulkDeviceOsTargetBid, TDeviceOs extends BulkDeviceOsTarget, TGenderBid extends BulkGenderTargetBid, TGender extends BulkGenderTarget, TLocationBid extends BulkLocationTargetBid, TLocation extends BulkLocationTarget, TNegativeLocationBid extends BulkNegativeLocationTargetBid, TNegativeLocation extends BulkNegativeLocationTarget, TRadiusTargetBid extends BulkRadiusTargetBid, TRadius extends BulkRadiusTarget> extends MultiRecordBulkEntity { + + private Status status; + + private Long entityId; + + private String entityName; + + private String parentEntityName; + + private Target target; + + private TAge ageTarget; + private Class classOfTAgeBid; + + private TDayTime dayTimeTarget; + private Class classOfTDayTimeBid; + + private TDeviceOs deviceOsTarget; + private Class classOfTDeviceOsBid; + + private TGender genderTarget; + private Class classOfTGenderBid; + + private TLocation locationTarget; + private Class classOfTLocationBid; + + private TNegativeLocation negativeLocationTarget; + private Class classOfTNegativeLocationBid; + + private TRadius radiusTarget; + private Class classOfTRadiusBid; + + private TIdentifier originalIdentifier; + + private Class classOfTIdentifier; + + private final List bids = new ArrayList(); + + private final List deleteAllRows = new ArrayList(); + + protected BulkTarget(BulkTargetBid bid, + TAge age, Class classOfTAgeBid, + TDayTime dayTime, Class classOfTDayTimeBid, + TDeviceOs deviceOs, Class classOfTDeviceOsBid, + TGender gender, Class classOfTGenderBid, + TLocation location, Class classOfTLocationBid, + TNegativeLocation negativeLocation, Class classOfTNegativeLocationBid, + TRadius radius, Class classOfTRadiusBid, + Class classOfTIdentifier) { + this((TIdentifier) bid.getIdentifier(), + age, classOfTAgeBid, + dayTime, classOfTDayTimeBid, + deviceOs, classOfTDeviceOsBid, + gender, classOfTGenderBid, + location, classOfTLocationBid, + negativeLocation, classOfTNegativeLocationBid, + radius, classOfTRadiusBid, + classOfTIdentifier); + + bids.add(bid); + } + + protected BulkTarget(TIdentifier identifier, + TAge age, Class classOfTAgeBid, + TDayTime dayTime, Class classOfTDayTimeBid, + TDeviceOs deviceOs, Class classOfTDeviceOsBid, + TGender gender, Class classOfTGenderBid, + TLocation location, Class classOfTLocationBid, + TNegativeLocation negativeLocation, Class classOfTNegativeLocationBid, + TRadius radiusTarget, Class classOfTRadiusBid, + Class classOfTIdentifier) { + this( + age, classOfTAgeBid, + dayTime, classOfTDayTimeBid, + deviceOs, classOfTDeviceOsBid, + gender, classOfTGenderBid, + location, classOfTLocationBid, + negativeLocation, classOfTNegativeLocationBid, + radiusTarget, classOfTRadiusBid + ); + + setTarget(new Target()); + + getTarget().setId(identifier.getTargetId()); + + setEntityId(identifier.getEntityId()); + + setEntityName(identifier.getEntityName()); + + setParentEntityName(identifier.getParentEntityName()); + + if (identifier.isDeleteRow()) { + deleteAllRows.add(identifier); + } + + originalIdentifier = identifier; + + this.classOfTIdentifier = classOfTIdentifier; + } + + protected BulkTarget( + TAge age, Class classOfTAgeBid, + TDayTime dayTime, Class classOfTDayTimeBid, + TDeviceOs deviceOs, Class classOfTDeviceOsBid, + TGender gender, Class classOfTGenderBid, + TLocation location, Class classOfTLocationBid, + TNegativeLocation negativeLocation, Class classOfTNegativeLocationBid, + TRadius radiusTarget, Class classOfTRadiusBid + ) { + setAgeTarget(age); + setDayTime(dayTime); + setDeviceOs(deviceOs); + setGender(gender); + setLocationTarget(location); + setNegativeLocationTarget(negativeLocation); + setRadiusTarget(radiusTarget); + + this.classOfTAgeBid = classOfTAgeBid; + this.classOfTDayTimeBid = classOfTDayTimeBid; + this.classOfTDeviceOsBid = classOfTDeviceOsBid; + this.classOfTGenderBid = classOfTGenderBid; + this.classOfTLocationBid = classOfTLocationBid; + this.classOfTNegativeLocationBid = classOfTNegativeLocationBid; + this.classOfTRadiusBid = classOfTRadiusBid; + } + + @Override + public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException { + if (getStatus() != Status.DELETED) { + validatePropertyNotNull(getTarget(), "Target"); + } + + if (getTarget() != null) { + if (getTarget().getAge() == null) { + throw new IllegalStateException("At least one sub target must not be null."); + } + } + + if (getTarget() != null) { + getAgeTarget().setAgeTarget(getTarget().getAge()); + getDayTimeTarget().setDayTimeTarget(getTarget().getDayTime()); + getDeviceOsTarget().setDeviceOsTarget(getTarget().getDeviceOS()); + getGenderTarget().setGenderTarget(getTarget().getGender()); + getLocationTarget().setLocation(getTarget().getLocation()); + getNegativeLocationTarget().setLocation(getTarget().getLocation()); + getRadiusTarget().setLocation(getTarget().getLocation()); + } + + setDefaultIdentifier(getAgeTarget(), classOfTAgeBid); + setDefaultIdentifier(getDayTimeTarget(), classOfTDayTimeBid); + setDefaultIdentifier(getDeviceOsTarget(), classOfTDeviceOsBid); + setDefaultIdentifier(getGenderTarget(), classOfTGenderBid); + setDefaultIdentifier(getLocationTarget(), classOfTLocationBid); + setDefaultIdentifier(getNegativeLocationTarget(), classOfTNegativeLocationBid); + setDefaultIdentifier(getRadiusTarget(), classOfTRadiusBid); + + getAgeTarget().isBeingWrittenAsPartOfParentTarget = true; + getDayTimeTarget().isBeingWrittenAsPartOfParentTarget = true; + getDeviceOsTarget().isBeingWrittenAsPartOfParentTarget = true; + getGenderTarget().isBeingWrittenAsPartOfParentTarget = true; + getLocationTarget().isBeingWrittenAsPartOfParentTarget = true; + getNegativeLocationTarget().isBeingWrittenAsPartOfParentTarget = true; + getRadiusTarget().isBeingWrittenAsPartOfParentTarget = true; + + for (BulkEntity childEntity : getAllSubTargets()) { + childEntity.writeToStream(rowWriter, excludeReadonlyData); + } + } + + @Override + public void readRelatedDataFromStream(BulkStreamReader reader) { + if (classOfTIdentifier == null) { + throw new InternalException(new IllegalStateException("Can't read a target that has been initialized manually")); + } + + boolean hasMoreRows = true; + + while (hasMoreRows) { + TryResult nextBulkTargetBidResult = reader.tryRead(new Predicate() { + @Override + public boolean test(BulkTargetBid x) { + return originalIdentifier.equals(x.getIdentifier()); + } + }, BulkTargetBid.class); + + if (nextBulkTargetBidResult.isSuccessful()) { + BulkTargetBid nextBid = nextBulkTargetBidResult.getResult(); + + bids.add(nextBid); + + // Delta download sends delete-all rows first, which don't have targetId. Have to look at all rows and set first non-null Id. + if (getTarget().getId() == null && nextBid.getTargetId() != null) { + getTarget().setId(nextBid.getTargetId()); + } + + continue; + } + + TryResult identifierResult = reader.tryRead(new Predicate() { + @Override + public boolean test(TIdentifier x) { + return compareNullable(x.getEntityId(), getEntityId()) && x.isDeleteRow(); + } + }, classOfTIdentifier); + + if (identifierResult.isSuccessful()) { + deleteAllRows.add(identifierResult.getResult()); + + continue; + } + + hasMoreRows = false; + } + + setStatus(bids.size() > 0 ? Status.ACTIVE : Status.DELETED); + + LocationTarget location = new LocationTarget(); + + getLocationTarget().setLocation(location); + getNegativeLocationTarget().setLocation(location); + getRadiusTarget().setLocation(location); + + HashMap> bidGroups = groupBidsByType(); + + populateChildTargetBids(getAgeTarget(), bidGroups, classOfTAgeBid); + populateChildTargetBids(getDayTimeTarget(), bidGroups, classOfTDayTimeBid); + populateChildTargetBids(getDeviceOsTarget(), bidGroups, classOfTDeviceOsBid); + populateChildTargetBids(getGenderTarget(), bidGroups, classOfTGenderBid); + populateChildTargetBids(getLocationTarget(), bidGroups, classOfTLocationBid); + populateChildTargetBids(getNegativeLocationTarget(), bidGroups, classOfTNegativeLocationBid); + populateChildTargetBids(getRadiusTarget(), bidGroups, classOfTRadiusBid); + + HashMap> deleteAllGroups = groupDeleteAllRowsByType(); + + populateChildTargetIdentifiers(getAgeTarget(), deleteAllGroups, classOfTAgeBid); + populateChildTargetIdentifiers(getDayTimeTarget(), deleteAllGroups, classOfTDayTimeBid); + populateChildTargetIdentifiers(getDeviceOsTarget(), deleteAllGroups, classOfTDeviceOsBid); + populateChildTargetIdentifiers(getGenderTarget(), deleteAllGroups, classOfTGenderBid); + populateChildTargetIdentifiers(getLocationTarget(), deleteAllGroups, classOfTLocationBid); + populateChildTargetIdentifiers(getNegativeLocationTarget(), deleteAllGroups, classOfTNegativeLocationBid); + populateChildTargetIdentifiers(getRadiusTarget(), deleteAllGroups, classOfTRadiusBid); + + if (location.getCityTarget() != null || location.getMetroAreaTarget() != null || location.getStateTarget() != null || location.getCountryTarget() != null || location.getPostalCodeTarget() != null || location.getRadiusTarget() != null) { + getTarget().setLocation(location); + } + + getTarget().setAge(getAgeTarget().getAgeTarget()); + getTarget().setDayTime(getDayTimeTarget().getDayTimeTarget()); + getTarget().setDeviceOS(getDeviceOsTarget().getDeviceOsTarget()); + getTarget().setGender(getGenderTarget().getGenderTarget()); + } + + private HashMap> groupDeleteAllRowsByType() { + HashMap> deleteAllGroups = new HashMap>(); + for (TIdentifier identifier : deleteAllRows) { + List identifiersForBidType = deleteAllGroups.get(identifier.getTargetBidType()); + + if (identifiersForBidType == null) { + identifiersForBidType = new ArrayList(); + + deleteAllGroups.put(identifier.getTargetBidType(), identifiersForBidType); + } + + identifiersForBidType.add(identifier); + } + return deleteAllGroups; + } + + private HashMap> groupBidsByType() { + HashMap> bidGroups = new HashMap>(); + for (BulkTargetBid bid : bids) { + List bidsForType = bidGroups.get(bid.getClass()); + + if (bidsForType == null) { + bidsForType = new ArrayList(); + + bidGroups.put(bid.getClass(), bidsForType); + } + + bidsForType.add(bid); + } + return bidGroups; + } + + private void populateChildTargetBids(BulkSubTarget target, HashMap> groups, Class classOfT) { + if (!groups.containsKey(classOfT)) { + target.setStatus(Status.DELETED); + + return; + } + + List bidsForTarget = groups.get(classOfT); + + List bidsForTargetAsT = new ArrayList(); + + for (BulkTargetBid bid : bidsForTarget) { + bidsForTargetAsT.add((T) bid); + } + + target.setBids(bidsForTargetAsT); + } + + private void populateChildTargetIdentifiers(BulkSubTarget target, HashMap> groups, Class classOfT) { + // no delete all row for this target bid type + if (!groups.containsKey(classOfT)) { + setDefaultIdentifier(target, classOfT); + + return; + } + + List identifiers = groups.get(classOfT); + + // should have only one delete row at most + for (TIdentifier identifier : identifiers) { + target.setIdentifier(identifier); + } + } + + /** + * Gets the list of sub targets that the target contains can include + * LocationTarget, AgeTarget, GenderTarget, DayTimeTarget, DeviceOsTarget, NegativeLocationTarget, and RadiusTarget. + */ + public List getSubTargets() { + ArrayList nonEmptySubTargets = new ArrayList(); + for (BulkEntity subTarget: getAllSubTargets()) { + if (!((MultiRecordBulkEntity) subTarget).allChildrenPresent()) { + nonEmptySubTargets.add(subTarget); + } + } + return Collections.unmodifiableList(nonEmptySubTargets); + } + + private List getAllSubTargets() { + return Collections.unmodifiableList( + Arrays.asList( + (BulkEntity) getAgeTarget(), + (BulkEntity) getDayTimeTarget(), + (BulkEntity) getDeviceOsTarget(), + (BulkEntity) getGenderTarget(), + (BulkEntity) getLocationTarget(), + (BulkEntity) getNegativeLocationTarget(), + (BulkEntity) getRadiusTarget() + )); + } + + @Override + public List getChildEntities() { + return getSubTargets(); + } + + @Override + public boolean allChildrenPresent() { + for (BulkEntity child : getAllSubTargets()) { + if (!((MultiRecordBulkEntity) child).allChildrenPresent()) { + return false; + } + } + + return true; + } + + abstract TIdentifier createIdentifier(Class bidType); + + private void setDefaultIdentifier(BulkSubTarget target, Class classOfTBid) { + TIdentifier identifier = createIdentifier(classOfTBid); + + identifier.setEntityId(getEntityId()); + + if (getTarget() != null) { + identifier.setTargetId(getTarget().getId()); + } + + identifier.setEntityName(getEntityName()); + + identifier.setParentEntityName(getParentEntityName()); + + if (getStatus() == Status.DELETED) { + target.setStatus(Status.DELETED); + } + + target.setIdentifier(identifier); + } + + /** + * Gets the status of the target. + * + *

+ * The value is Active if the target is available in the customer's shared library. + * The value is Deleted if the target is deleted from the customer's shared 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 target. + * + *

+ * The value is Active if the target is available in the customer's shared library. + * The value is Deleted if the target is deleted from the customer's shared 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; + } + + /** + * Reserved for internal use. + */ + protected Long getEntityId() { + return entityId; + } + + /** + * Reserved for internal use. + */ + protected void setEntityId(Long entityId) { + this.entityId = entityId; + } + + /** + * Reserved for internal use. + */ + protected String getEntityName() { + return entityName; + } + + /** + * Reserved for internal use. + */ + protected void setEntityName(String entityName) { + this.entityName = entityName; + } + + /** + * Reserved for internal use. + */ + protected String getParentEntityName() { + return parentEntityName; + } + + /** + * Reserved for internal use. + */ + protected void setParentEntityName(String parentEntityName) { + this.parentEntityName = parentEntityName; + } + + /** + * Gets the associated target. + */ + public Target getTarget() { + return target; + } + + /** + * Sets the associated target. + */ + public void setTarget(Target target) { + this.target = target; + } + + /** + * Gets the {@link BulkAgeTarget} contains multiple {@link BulkAgeTargetBid}. + */ + public TAge getAgeTarget() { + return ageTarget; + } + + /** + * Sets the {@link BulkAgeTarget} contains multiple {@link BulkAgeTargetBid}. + */ + public void setAgeTarget(TAge ageTarget) { + this.ageTarget = ageTarget; + } + + /** + * Gets the {@link BulkDayTimeTarget} contains multiple {@link BulkDayTimeTargetBid}. + */ + public TDayTime getDayTimeTarget() { + return dayTimeTarget; + } + + /** + * Sets the {@link BulkDayTimeTarget} contains multiple {@link BulkDayTimeTargetBid}. + */ + public void setDayTime(TDayTime dayTimeTarget) { + this.dayTimeTarget = dayTimeTarget; + } + + /** + * Gets the {@link BulkDeviceOsTarget} contains multiple {@link BulkDeviceOsTargetBid}. + */ + public TDeviceOs getDeviceOsTarget() { + return deviceOsTarget; + } + + /** + * Sets the {@link BulkDeviceOsTarget} contains multiple {@link BulkDeviceOsTargetBid}. + */ + public void setDeviceOs(TDeviceOs deviceOsTarget) { + this.deviceOsTarget = deviceOsTarget; + } + + /** + * Gets the {@link BulkGenderTarget} contains multiple {@link BulkGenderTargetBid}. + */ + public TGender getGenderTarget() { + return genderTarget; + } + + /** + * Sets the {@link BulkGenderTarget} contains multiple {@link BulkGenderTargetBid}. + */ + public void setGender(TGender genderTarget) { + this.genderTarget = genderTarget; + } + + /** + * Gets the {@link BulkLocationTarget} contains multiple {@link BulkLocationTargetBid}. + */ + public TLocation getLocationTarget() { + return locationTarget; + } + + /** + * Sets the {@link BulkLocationTarget} contains multiple {@link BulkLocationTargetBid}. + */ + public void setLocationTarget(TLocation locationTarget) { + this.locationTarget = locationTarget; + } + + /** + * Gets the {@link BulkNegativeLocationTarget} contains multiple {@link BulkNegativeLocationTargetBid}. + */ + public TNegativeLocation getNegativeLocationTarget() { + return negativeLocationTarget; + } + + /** + * Sets the {@link BulkNegativeLocationTarget} contains multiple {@link BulkNegativeLocationTargetBid}. + */ + public void setNegativeLocationTarget(TNegativeLocation negativeLocationTarget) { + this.negativeLocationTarget = negativeLocationTarget; + } + + /** + * Gets the {@link BulkRadiusTarget} contains multiple {@link BulkRadiusTargetBid}. + */ + public TRadius getRadiusTarget() { + return radiusTarget; + } + + /** + * Sets the {@link BulkRadiusTarget} contains multiple {@link BulkRadiusTargetBid}. + */ + // TODO fix the typo + public void setRadiusTarget(TRadius radiusTarvet) { + this.radiusTarget = radiusTarvet; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetBid.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetBid.java new file mode 100644 index 0000000000..ce364fc228 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetBid.java @@ -0,0 +1,146 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkTargetIdentifier; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; + +/** + * This abstract base class provides properties that are shared by all bulk target bid classes, + * for example {@link BulkAdGroupDayTimeTargetBid}. + */ +class BulkTargetBid extends SingleRecordBulkEntity { + + BulkTargetIdentifier identifier; + + /** + * Reserved for internal use. + */ + public BulkTargetBid(BulkTargetIdentifier identifier) { + this.identifier = identifier; + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + getIdentifier().readFromRowValues(values); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + getIdentifier().writeToRowValues(values, excludeReadonlyData); + } + + @Override + public boolean canEncloseInMultilineEntity() { + return true; + } + + @Override + public MultiRecordBulkEntity encloseInMultilineEntity() { + if (getIdentifier() instanceof BulkCampaignTargetIdentifier) { + return new BulkCampaignTarget(this); + } + + return new BulkAdGroupTarget(this); + } + + /** + * Gets the status of the target. + * + *

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

+ */ + public Status getStatus() { + return getIdentifier().getStatus(); + } + + /** + * Sets the status of the target. + * + *

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

+ */ + public void setStatus(Status status) { + getIdentifier().setStatus(status); + } + + /** + * Gets the identifier of the target that contains this target bid. + * + *

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

+ */ + public Long getTargetId() { + return getIdentifier().getTargetId(); + } + + /** + * Sets the identifier of the target that contains this target bid. + * + *

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

+ */ + public void setTargetId(Long targetId) { + getIdentifier().setTargetId(targetId); + } + + /** + * Reserved for internal use. + */ + Long getEntityId() { + return getIdentifier().getEntityId(); + } + + /** + * Reserved for internal use. + */ + void setEntityId(Long entityId) { + getIdentifier().setEntityId(entityId); + } + + /** + * Reserved for internal use. + */ + String getEntityName() { + return getIdentifier().getEntityName(); + } + + /** + * Reserved for internal use. + */ + void setEntityName(String entityName) { + getIdentifier().setEntityName(entityName); + } + + /** + * Reserved for internal use. + */ + String getParentEntityName() { + return getIdentifier().getParentEntityName(); + } + + /** + * Reserved for internal use. + */ + void setParentEntityName(String entityName) { + getIdentifier().setParentEntityName(entityName); + } + + BulkTargetIdentifier getIdentifier() { + return identifier; + } + + void setIdentifier(BulkTargetIdentifier identifier) { + this.identifier = identifier; + } +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetIdentifier.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetIdentifier.java new file mode 100644 index 0000000000..48279c6282 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetIdentifier.java @@ -0,0 +1,207 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.ConditionalBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.DynamicColumnNameMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkEntityIdentifier; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Reserved for internal use. + */ +public abstract class BulkTargetIdentifier extends BulkEntityIdentifier { + + private Status status; + + private Long targetId; + + private Long entityId; + + private String entityName; + + private String parentEntityName; + + private Class targetBidType; + + abstract String getEntityColumnName(); + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkTargetIdentifier c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkTargetIdentifier 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(BulkTargetIdentifier c) { + return c.getTargetId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkTargetIdentifier c) { + c.setTargetId(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(BulkTargetIdentifier c) { + return c.getEntityId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkTargetIdentifier c) { + c.setEntityId(StringExtensions.parseOptional(v, new Function() { + @Override + public Long apply(String value) { + return Long.parseLong(value); + } + })); + } + } + )); + + m.add(new DynamicColumnNameMapping(new Function() { + @Override + public String apply(BulkTargetIdentifier t) { + return t.getEntityColumnName(); + } + }, new Function() { + @Override + public String apply(BulkTargetIdentifier t) { + return t.getEntityName(); + } + }, new BiConsumer() { + @Override + public void accept(String t, BulkTargetIdentifier u) { + u.setEntityName(t); + } + })); + + m.add(new ConditionalBulkMapping(StringTable.Campaign, + new Function() { + @Override + public Boolean apply(BulkTargetIdentifier t) { + return t instanceof BulkAdGroupTargetIdentifier; + } + }, new Function() { + @Override + public String apply(BulkTargetIdentifier t) { + return t.getParentEntityName(); + } + }, new BiConsumer() { + @Override + public void accept(String t, BulkTargetIdentifier u) { + u.setParentEntityName(t); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + protected BulkTargetIdentifier(Class targetBidType) { + this.targetBidType = targetBidType; + } + + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public boolean isDeleteRow() { + return getStatus() == Status.DELETED; + } + + public Status getStatus() { + return status; + } + + public void setStatus(Status status) { + this.status = status; + } + + public Long getTargetId() { + return targetId; + } + + public void setTargetId(Long targetId) { + this.targetId = targetId; + } + + Long getEntityId() { + return entityId; + } + + void setEntityId(Long entityId) { + this.entityId = entityId; + } + + String getEntityName() { + return entityName; + } + + void setEntityName(String entityName) { + this.entityName = entityName; + } + + String getParentEntityName() { + return parentEntityName; + } + + void setParentEntityName(String parentEntityName) { + this.parentEntityName = parentEntityName; + } + + Class getTargetBidType() { + return targetBidType; + } + + void setTargetBidType(Class targetBidType) { + this.targetBidType = targetBidType; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetWithLocation.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetWithLocation.java new file mode 100644 index 0000000000..f5c38a8c14 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTargetWithLocation.java @@ -0,0 +1,111 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.campaignmanagement.LocationTarget; + +import java.util.ArrayList; +import java.util.List; + +/** + * This abstract base class provides properties that are shared by all bulk entities mapped to the API LocationTarget2 object. + * + * @param see {@link BulkTargetBid} + */ +abstract class BulkTargetWithLocation extends BulkSubTarget { + + protected LocationTarget location; + + public BulkTargetWithLocation(Class classOfTBid) { + super(classOfTBid); + } + + protected void reconstructApiBids(List bulkBids, + Function createBid, + Supplier getTarget, + Supplier createNewTarget, + Consumer setTarget, + Supplier> getBids, + Consumer> setBids) { + List apiBidsFromFile = new ArrayList(); + + for (TBid bulkBid : bulkBids) { + apiBidsFromFile.add(createBid.apply(bulkBid)); + } + + if (apiBidsFromFile.isEmpty()) { + return; + } + + if (getTarget.get() == null) { + setTarget.accept(createNewTarget.get()); + + setBids.accept(new ArrayList()); + } + + List targetBids = getBids.get(); + + for (TApiBid apiBid : apiBidsFromFile) { + targetBids.add(apiBid); + } + } + + protected void convertBidsFromApi(List bids, + Supplier getTarget, + Function> getBids, + final BiConsumer setAdditionalBidProperties, + Function shouldConvertBid + ) { + TTarget target = getTarget.get(); + + if (target == null) { + return; + } + + List rawBids = getBids.apply(target); + + if (rawBids == null) { + return; + } + + for (final T rawBid : rawBids) { + if (shouldConvertBid.apply(rawBid)) { + + TBid bid = createAndPopulateBid(new Consumer() { + @Override + public void accept(TBid t) { + setAdditionalBidProperties.accept(t, rawBid); + } + }); + + bids.add(bid); + } + } + } + + protected T getLocationProperty(Function getFunc) { + if (getLocation() == null) { + return null; + } + + return getFunc.apply(getLocation()); + } + + protected void setLocationProperty(Consumer setAction) { + if (getLocation() == null) { + setLocation(new LocationTarget()); + } + + setAction.accept(getLocation()); + } + + public LocationTarget getLocation() { + return location; + } + + public void setLocation(LocationTarget location) { + this.location = location; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTextAd.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTextAd.java new file mode 100644 index 0000000000..7b4393f5e4 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/BulkTextAd.java @@ -0,0 +1,141 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.campaignmanagement.AdType; +import com.microsoft.bingads.v10.campaignmanagement.TextAd; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.BulkOperation; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a text ad. + * + * This class exposes the {@link #setTextAd} and {@link #getTextAd} methods + * that can be used to read and write fields of the Text Ad record in a bulk file. + * + *

+ * For more information, see Text Ad at + * http://go.microsoft.com/fwlink/?LinkID=620263 + *

+ * + * @see BulkServiceManager + * @see BulkOperation + * @see BulkFileReader + * @see BulkFileWriter + */ +public class BulkTextAd extends BulkAd { + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Title, + new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getAd().getTitle(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkTextAd c) { + c.getAd().setTitle(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Text, + new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getAd().getText(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkTextAd c) { + c.getAd().setText(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DisplayUrl, + new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getAd().getDisplayUrl(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkTextAd c) { + c.getAd().setDisplayUrl(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.DestinationUrl, + new Function() { + @Override + public String apply(BulkTextAd c) { + return StringExtensions.toOptionalBulkString(c.getAd().getDestinationUrl()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkTextAd c) { + c.getAd().setDestinationUrl(StringExtensions.getValueOrEmptyString(v)); + } + }, + true + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + validatePropertyNotNull(getTextAd(), "TextAd"); + + super.processMappingsToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public void processMappingsFromRowValues(RowValues values) { + this.setAd(new TextAd()); + + this.getAd().setType(AdType.TEXT); + + super.processMappingsFromRowValues(values); + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + /** + * Gets the text ad. + */ + public TextAd getTextAd() { + return this.ad; + } + + /** + * Sets the text ad. + */ + public void setTextAd(TextAd ad) { + this.setAd(ad); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/EntityInfo.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/EntityInfo.java new file mode 100644 index 0000000000..1a1f5c3420 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/EntityInfo.java @@ -0,0 +1,79 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.Creator; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkEntityIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; + +/** + * Encapsulates the information and creators required for instantiation of blank + * entities of various types + * + */ +class EntityInfo { + + private Creator creator; + private String deleteAllColumnName; + private Creator identifierCreator; + + /** + * Initializes a new instance of the EntityInfo class. + * + * @param creator A function which creates a instance of the encapsulated + * object + */ + public EntityInfo(Creator creator) { + this(creator, null, null); + } + + /** + * Initializes a new instance of the EntityInfo class. + * + * @param creator A function which creates a instance of the encapsulated + * object + * @param deleteAllColumnName The name of the column which indicates whether + * to delete all + */ + public EntityInfo(Creator creator, String deleteAllColumnName) { + this(creator, deleteAllColumnName, null); + } + + /** + * Initializes a new instance of the EntityInfo class. + * + * @param creator A function which creates a instance of the encapsulated + * object + * @param deleteAllColumnName The name of the column which indicates whether + * to delete all + * @param identifierCreator A function which creates a instance of an + * identifier for the encapsulated object + */ + public EntityInfo(Creator creator, String deleteAllColumnName, Creator identifierCreator) { + this.creator = creator; + this.deleteAllColumnName = deleteAllColumnName; + this.identifierCreator = identifierCreator; + } + + public Creator getCreator() { + return creator; + } + + public void setCreator(Creator creator) { + this.creator = creator; + } + + public String getDeleteAllColumnName() { + return deleteAllColumnName; + } + + public void setDeleteAllColumnName(String deleteAllColumnName) { + this.deleteAllColumnName = deleteAllColumnName; + } + + public Creator getIdentifierCreator() { + return identifierCreator; + } + + public void setIdentifierCreator(Creator identifierCreator) { + this.identifierCreator = identifierCreator; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/LocationTargetType.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/LocationTargetType.java new file mode 100644 index 0000000000..0cdc208436 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/LocationTargetType.java @@ -0,0 +1,31 @@ +package com.microsoft.bingads.v10.bulk.entities; + +/** + * Location target type, determines whether a string location is a City, State etc. + */ +public enum LocationTargetType { + POSTAL_CODE("PostalCode"), + CITY("City"), + METRO_AREA("MetroArea"), + STATE("State"), + COUNTRY("Country"); + + private final String value; + + LocationTargetType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static LocationTargetType fromValue(String v) { + for (LocationTargetType c : LocationTargetType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/PerformanceData.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/PerformanceData.java new file mode 100644 index 0000000000..37ed2e87c0 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/PerformanceData.java @@ -0,0 +1,356 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a subset of the fields available in bulk records + * that support historical performance data, for example {@link BulkKeyword}. + * + *

+ * For more information, see Bulk File Schema at + * http://go.microsoft.com/fwlink/?LinkID=620269. + *

+ */ +public class PerformanceData { + + private Double spend; + + private Integer impressions; + + private Integer clicks; + + private Double clickThroughRate; + + private Double averageCostPerClick; + + private Double averageCostPerThousandImpressions; + + private Double averagePosition; + + private Integer conversions; + + private Double costPerConversion; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Spend, + new Function() { + @Override + public Double apply(PerformanceData t) { + return t.getSpend(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setSpend(StringExtensions.nullOrDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Impressions, + new Function() { + @Override + public Integer apply(PerformanceData t) { + return t.getImpressions(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setImpressions(StringExtensions.parseOptionalInteger(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Clicks, + new Function() { + @Override + public Integer apply(PerformanceData t) { + return t.getClicks(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setClicks(StringExtensions.parseOptionalInteger(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CTR, + new Function() { + @Override + public Double apply(PerformanceData t) { + return t.getClickThroughRate(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setClickThroughRate(StringExtensions.nullOrDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AvgCPC, + new Function() { + @Override + public Double apply(PerformanceData t) { + return t.getAverageCostPerClick(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setAverageCostPerClick(StringExtensions.nullOrDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AvgCPM, + new Function() { + @Override + public Double apply(PerformanceData t) { + return t.getAverageCostPerThousandImpressions(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setAverageCostPerThousandImpressions(StringExtensions.nullOrDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.AvgPosition, + new Function() { + @Override + public Double apply(PerformanceData t) { + return t.getAveragePosition(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setAveragePosition(StringExtensions.nullOrDouble(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Conversions, + new Function() { + @Override + public Integer apply(PerformanceData t) { + return t.getConversions(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setConversions(StringExtensions.parseOptionalInteger(v)); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.CPA, + new Function() { + @Override + public Double apply(PerformanceData t) { + return t.getCostPerConversion(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, PerformanceData d) { + d.setCostPerConversion(StringExtensions.nullOrDouble(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + static PerformanceData readFromRowValuesOrNull(RowValues values) { + PerformanceData performanceData = new PerformanceData(); + + performanceData.readFromRowValues(values); + + return performanceData.hasAnyValues() ? performanceData : null; + } + + static void writeToRowValuesIfNotNull(PerformanceData performanceData, RowValues values) { + if (performanceData != null) { + performanceData.writeToRowValues(values); + } + } + + /** + * Gets the spend. + * + *

+ * Corresponds to the 'Spend' field in the bulk file. + *

+ */ + public Double getSpend() { + return spend; + } + + /** + * Gets the impressions. + * + *

+ * Corresponds to the 'Impressions' field in the bulk file. + *

+ */ + public Integer getImpressions() { + return impressions; + } + + /** + * Gets the clicks. + * + *

+ * Corresponds to the 'Clicks' field in the bulk file. + *

+ */ + public Integer getClicks() { + return clicks; + } + + /** + * Gets the click through rate. + * + *

+ * Corresponds to the 'CTR' field in the bulk file. + *

+ */ + public Double getClickThroughRate() { + return clickThroughRate; + } + + /** + * Gets the average cost per click. + * + *

+ * Corresponds to the 'Avg CPC' field in the bulk file. + *

+ */ + public Double getAverageCostPerClick() { + return averageCostPerClick; + } + + /** + * Gets the average cost per thousand impressions. + * + *

+ * Corresponds to the 'Avg CPM' field in the bulk file. + *

+ */ + public Double getAverageCostPerThousandImpressions() { + return averageCostPerThousandImpressions; + } + + /** + * Gets the average position. + * + *

+ * Corresponds to the 'Avg position' field in the bulk file. + *

+ */ + public Double getAveragePosition() { + return averagePosition; + } + + /** + * Gets the conversions. + * + *

+ * Corresponds to the 'Conversions' field in the bulk file. + *

+ */ + public Integer getConversions() { + return conversions; + } + + /** + * Gets the cost per conversion. + * + *

+ * Corresponds to the 'CPA' field in the bulk file. + *

+ */ + public Double getCostPerConversion() { + return costPerConversion; + } + + void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + void writeToRowValues(RowValues values) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + private boolean hasAnyValues() { + return spend != null + || impressions != null + || clicks != null + || clickThroughRate != null + || averageCostPerClick != null + || averageCostPerThousandImpressions != null + || averagePosition != null + || conversions != null + || costPerConversion != null; + } + + private void setSpend(Double spend) { + this.spend = spend; + } + + private void setImpressions(Integer impressions) { + this.impressions = impressions; + } + + private void setClicks(Integer clicks) { + this.clicks = clicks; + } + + private void setClickThroughRate(Double clickThroughRate) { + this.clickThroughRate = clickThroughRate; + } + + private void setAverageCostPerClick(Double averageCostPerClick) { + this.averageCostPerClick = averageCostPerClick; + } + + private void setAverageCostPerThousandImpressions( + Double averageCostPerThousandImpressions) { + this.averageCostPerThousandImpressions = averageCostPerThousandImpressions; + } + + private void setAveragePosition(Double averagePosition) { + this.averagePosition = averagePosition; + } + + private void setConversions(Integer conversions) { + this.conversions = conversions; + } + + private void setCostPerConversion(Double costPerConversion) { + this.costPerConversion = costPerConversion; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/ProductConditionHelper.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/ProductConditionHelper.java new file mode 100644 index 0000000000..3a6c998c74 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/ProductConditionHelper.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfProductCondition; +import com.microsoft.bingads.v10.campaignmanagement.ProductCondition; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import java.util.List; + +class ProductConditionHelper { + + public static final int MaxNumberOfConditions = 8; + + public static void addRowValuesFromConditions(ArrayOfProductCondition arrayOfProductCondition, RowValues rowValues) { + List conditions = arrayOfProductCondition.getProductConditions(); + for (int i = 1; i <= conditions.size(); i++) { + rowValues.put(StringTable.ProductConditionColumnPrefix + i, conditions.get(i - 1).getOperand()); + rowValues.put(StringTable.ProductValueColumnPrefix + i, conditions.get(i - 1).getAttribute()); + } + } + + public static void addConditionsFromRowValues(RowValues values, + ArrayOfProductCondition productConditionArray) { + List conditions = productConditionArray.getProductConditions(); + + for (int i = 1; i <= MaxNumberOfConditions; i++) { + String productCondition; + String productValue; + + productCondition = values.tryGet(StringTable.ProductConditionColumnPrefix + i); + productValue = values.tryGet(StringTable.ProductValueColumnPrefix + i); + + if (productCondition != null && !productCondition.isEmpty() && productValue != null && !productValue.isEmpty()) { + ProductCondition condition = new ProductCondition(); + condition.setAttribute(productValue); + condition.setOperand(productCondition); + conditions.add(condition); + } + } + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/QualityScoreData.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/QualityScoreData.java new file mode 100644 index 0000000000..78a12a6ad4 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/QualityScoreData.java @@ -0,0 +1,185 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Represents a subset of the fields available in bulk records + * that support quality score data, for example {@link BulkKeyword}. + * + *

+ * For more information, see Bulk File Schema at + * http://go.microsoft.com/fwlink/?LinkID=620269. + *

+ */ +public class QualityScoreData { + + private Integer qualityScore; + + private Integer keywordRelevance; + + private Integer landingPageRelevance; + + private Integer landingPageUserExperience; + + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.QualityScore, + new Function() { + @Override + public Integer apply(QualityScoreData t) { + return t.getQualityScore(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, QualityScoreData d) { + d.setQualityScore(StringExtensions.parseOptionalInteger(v)); + } + })); + + m.add(new SimpleBulkMapping(StringTable.KeywordRelevance, + new Function() { + @Override + public Integer apply(QualityScoreData t) { + return t.getKeywordRelevance(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, QualityScoreData d) { + d.setKeywordRelevance(StringExtensions.parseOptionalInteger(v)); + } + })); + + m.add(new SimpleBulkMapping(StringTable.LandingPageRelevance, + new Function() { + @Override + public Integer apply(QualityScoreData t) { + return t.getLandingPageRelevance(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, QualityScoreData d) { + d.setLandingPageRelevance(StringExtensions.parseOptionalInteger(v)); + } + })); + + m.add(new SimpleBulkMapping(StringTable.LandingPageUserExperience, + new Function() { + @Override + public Integer apply(QualityScoreData t) { + return t.getLandingPageUserExperience(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, QualityScoreData d) { + d.setLandingPageUserExperience(StringExtensions.parseOptionalInteger(v)); + } + })); + + MAPPINGS = Collections.unmodifiableList(m); + } + + /** + * Gets the landing page user experience. + * + *

+ * Corresponds to the 'Landing Page User Experience' field in the bulk file. + *

+ */ + public Integer getLandingPageUserExperience() { + return landingPageUserExperience; + } + + private void setLandingPageUserExperience(Integer landingPageUserExperience) { + this.landingPageUserExperience = landingPageUserExperience; + } + + /** + * Gets the quality score. + * + *

+ * Corresponds to the 'Quality Score' field in the bulk file. + *

+ */ + public Integer getQualityScore() { + return qualityScore; + } + + private void setQualityScore(Integer qualityScore) { + this.qualityScore = qualityScore; + } + + /** + * Gets the keyword relevance. + * + *

+ * Corresponds to the 'Keyword Relevance' field in the bulk file. + *

+ */ + public Integer getKeywordRelevance() { + return keywordRelevance; + } + + private void setKeywordRelevance(Integer keywordRelevance) { + this.keywordRelevance = keywordRelevance; + } + + /** + * Gets the landing page relevance. + * + *

+ * Corresponds to the 'Landing Page Relevance' field in the bulk file. + *

+ */ + public Integer getLandingPageRelevance() { + return landingPageRelevance; + } + + private void setLandingPageRelevance(Integer landingPageRelevance) { + this.landingPageRelevance = landingPageRelevance; + } + + static QualityScoreData readFromRowValuesOrNull(RowValues values) { + QualityScoreData qualityScoreData = new QualityScoreData(); + + qualityScoreData.readFromRowValues(values); + + return qualityScoreData.hasAnyValues() ? qualityScoreData : null; + } + + static void writeToRowValuesIfNotNull(QualityScoreData qualityScoreData, RowValues values) { + if (qualityScoreData != null) { + qualityScoreData.writeToRowValues(values); + } + } + + private boolean hasAnyValues() { + return qualityScore != null || keywordRelevance != null + || landingPageRelevance != null + || landingPageUserExperience != null; + } + + void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + void writeToRowValues(RowValues values) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/StaticBulkObjectFactory.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/StaticBulkObjectFactory.java new file mode 100644 index 0000000000..8224ee44e2 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/StaticBulkObjectFactory.java @@ -0,0 +1,489 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectFactory; +import com.microsoft.bingads.v10.internal.bulk.Creator; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkAdGroupNegativeSitesIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkCampaignNegativeSitesIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkEntityIdentifier; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.SiteLinkAdExtensionIdentifier; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + +/** + * Reserved for internal use. + * + */ +public class StaticBulkObjectFactory implements BulkObjectFactory { + + private static final Map, String> TYPE_REVERSE_MAP; + + private static final Map> TARGET_IDENTIFIER_TYPE_REVERSE_MAP; + + private static final Map INDIVIDUAL_ENTITY_MAP; + + private static final Map> ADDITIONAL_OBJECT_MAP; + + static { + //List of entities creatable by the factory + Map m = new HashMap(); + m.put(StringTable.Account, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAccount(); + } + })); + m.put(StringTable.Campaign, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaign(); + } + })); + m.put(StringTable.AdGroup, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroup(); + } + })); + m.put(StringTable.ProductAd, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkProductAd(); + } + })); + m.put(StringTable.TextAd, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkTextAd(); + } + })); + m.put(StringTable.Keyword, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkKeyword(); + } + })); + m.put(StringTable.SiteLinksAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkSiteLink(); + } + }, StringTable.SiteLinkExtensionOrder, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new SiteLinkAdExtensionIdentifier(); + } + })); + m.put(StringTable.CampaignSiteLinksAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignSiteLinkAdExtension(); + } + })); + m.put(StringTable.AdGroupSiteLinksAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupSiteLinkAdExtension(); + } + })); + m.put(StringTable.ImageAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkImageAdExtension(); + } + })); + m.put(StringTable.CampaignImageAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignImageAdExtension(); + } + })); + m.put(StringTable.AdGroupImageAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupImageAdExtension(); + } + })); + m.put(StringTable.LocationAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkLocationAdExtension(); + } + })); + m.put(StringTable.CampaignLocationAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignLocationAdExtension(); + } + })); + m.put(StringTable.CallAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCallAdExtension(); + } + })); + m.put(StringTable.CampaignCallAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignCallAdExtension(); + } + })); + m.put(StringTable.AppAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAppAdExtension(); + } + })); + m.put(StringTable.CampaignAppAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignAppAdExtension(); + } + })); + m.put(StringTable.AdGroupAppAdExtension, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupAppAdExtension(); + } + })); + m.put(StringTable.CampaignNegativeSite, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignNegativeSite(); + } + }, StringTable.Website, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignNegativeSitesIdentifier(); + } + })); + m.put(StringTable.AdGroupNegativeSite, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupNegativeSite(); + } + }, StringTable.Website, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupNegativeSitesIdentifier(); + } + })); + m.put("Campaign Product Scope", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignProductScope(); + } + })); + m.put("Ad Group Product Partition", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupProductPartition(); + } + })); + m.put("Campaign Age Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignAgeTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignTargetIdentifier(BulkCampaignAgeTargetBid.class); + } + })); + + m.put("Campaign DayTime Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignDayTimeTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignTargetIdentifier(BulkCampaignDayTimeTargetBid.class); + } + })); + + m.put("Campaign DeviceOS Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignDeviceOsTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignTargetIdentifier(BulkCampaignDeviceOsTargetBid.class); + } + })); + + m.put("Campaign Gender Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignGenderTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignTargetIdentifier(BulkCampaignGenderTargetBid.class); + } + })); + + m.put("Campaign Location Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignLocationTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignTargetIdentifier(BulkCampaignLocationTargetBid.class); + } + })); + + m.put("Campaign Negative Location Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignNegativeLocationTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignTargetIdentifier(BulkCampaignNegativeLocationTargetBid.class); + } + })); + + m.put("Campaign Radius Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignRadiusTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkCampaignTargetIdentifier(BulkCampaignRadiusTargetBid.class); + } + })); + + m.put("Ad Group Age Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupAgeTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupTargetIdentifier(BulkAdGroupAgeTargetBid.class); + } + })); + + m.put("Ad Group DayTime Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupDayTimeTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupTargetIdentifier(BulkAdGroupDayTimeTargetBid.class); + } + })); + + m.put("Ad Group DeviceOS Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupDeviceOsTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupTargetIdentifier(BulkAdGroupDeviceOsTargetBid.class); + } + })); + + m.put("Ad Group Gender Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupGenderTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupTargetIdentifier(BulkAdGroupGenderTargetBid.class); + } + })); + + m.put("Ad Group Location Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupLocationTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupTargetIdentifier(BulkAdGroupLocationTargetBid.class); + } + })); + + m.put("Ad Group Negative Location Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupNegativeLocationTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupTargetIdentifier(BulkAdGroupNegativeLocationTargetBid.class); + } + })); + + m.put("Ad Group Radius Target", new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupRadiusTargetBid(); + } + }, StringTable.Target, new Creator() { + @Override + public BulkEntityIdentifier create() { + return new BulkAdGroupTargetIdentifier(BulkAdGroupRadiusTargetBid.class); + } + })); + + m.put(StringTable.CampaignNegativeKeyword, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignNegativeKeyword(); + } + })); + m.put(StringTable.AdGroupNegativeKeyword, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkAdGroupNegativeKeyword(); + } + })); + m.put(StringTable.NegativeKeywordList, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkNegativeKeywordList(); + } + })); + m.put(StringTable.ListNegativeKeyword, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkSharedNegativeKeyword(); + } + })); + m.put(StringTable.CampaignNegativeKeywordList, new EntityInfo(new Creator() { + @Override + public SingleRecordBulkEntity create() { + return new BulkCampaignNegativeKeywordList(); + } + })); + + + INDIVIDUAL_ENTITY_MAP = Collections.unmodifiableMap(m); + + Map> addl = new HashMap>(); + addl.put(StringTable.KeywordBestPositionBidType, new Supplier() { + @Override + public BulkObject get() { + return new BulkKeywordBestPositionBid(); + } + }); + addl.put(StringTable.KeywordMainLineBidType, new Supplier() { + @Override + public BulkObject get() { + return new BulkKeywordMainLineBid(); + } + }); + addl.put(StringTable.KeywordFirstPageBidType, new Supplier() { + @Override + public BulkObject get() { + return new BulkKeywordFirstPageBid(); + } + }); + + ADDITIONAL_OBJECT_MAP = Collections.unmodifiableMap(addl); + + //Create reverse map + Map, String> c = new HashMap, String>(); + + Map> targetIdentifierTypeReverseMap = new HashMap>(); + + for (Entry entry : INDIVIDUAL_ENTITY_MAP.entrySet()) { + c.put(entry.getValue().getCreator().create().getClass(), entry.getKey()); + + if (entry.getValue().getIdentifierCreator() != null) { + BulkEntityIdentifier identifier = entry.getValue().getIdentifierCreator().create(); + + if (identifier instanceof BulkTargetIdentifier) { + if (!targetIdentifierTypeReverseMap.containsKey(identifier.getClass())) { + targetIdentifierTypeReverseMap.put(identifier.getClass(), new HashMap()); + } + + targetIdentifierTypeReverseMap.get(identifier.getClass()).put(((BulkTargetIdentifier) identifier).getTargetBidType(), entry.getKey()); + } else { + c.put(identifier.getClass(), entry.getKey()); + } + } + } + + for (Entry> entry : ADDITIONAL_OBJECT_MAP.entrySet()) { + c.put(entry.getValue().get().getClass(), entry.getKey()); + } + + TYPE_REVERSE_MAP = Collections.unmodifiableMap(c); + + TARGET_IDENTIFIER_TYPE_REVERSE_MAP = Collections.unmodifiableMap(targetIdentifierTypeReverseMap); + } + + @Override + public BulkObject createBulkObject(RowValues values) { + String type = values.get(StringTable.Type); + + if (type.endsWith("Error")) { + return new BulkError(); + } + + if (ADDITIONAL_OBJECT_MAP.containsKey(type)) { + return ADDITIONAL_OBJECT_MAP.get(type).get(); + } + + if (!INDIVIDUAL_ENTITY_MAP.containsKey(type)) { + return new UnknownBulkEntity(); + } + + EntityInfo info = INDIVIDUAL_ENTITY_MAP.get(type); + + if ("Deleted".equals(values.get(StringTable.Status)) + && !(info.getDeleteAllColumnName() == null || info.getDeleteAllColumnName().isEmpty()) + && (values.get(info.getDeleteAllColumnName()) == null || values.get(info.getDeleteAllColumnName()).isEmpty())) { + return info.getIdentifierCreator().create(); + } + + return info.getCreator().create(); + } + + @Override + public String getBulkRowType(BulkObject bulkObject) { + if (bulkObject instanceof BulkError) { + BulkError error = (BulkError)bulkObject; + + return getBulkRowType(error.getEntity()) + " Error"; + } + + if (bulkObject instanceof BulkTargetIdentifier) { + BulkTargetIdentifier identifier = (BulkTargetIdentifier) bulkObject; + + return TARGET_IDENTIFIER_TYPE_REVERSE_MAP.get(identifier.getClass()).get(identifier.getTargetBidType()); + } + + return TYPE_REVERSE_MAP.get(bulkObject.getClass()); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/Status.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/Status.java new file mode 100644 index 0000000000..e99c3b744c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/Status.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.bulk.entities; + +/** + * Provides possible status values for bulk entities. + */ +public enum Status { + + /** + * The bulk entity is associated with the entity identified by the bulk + * record's 'Parent Id'. + */ + ACTIVE("Active"), + /** + * The bulk entity is not associated with the entity identified by the bulk + * record's 'Parent Id'. In a bulk upload file, you can use this value to + * delete the association of an entity from the parent entity. + */ + DELETED("Deleted"); + + private final String value; + + Status(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Status fromValue(String v) { + for (Status c : Status.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/bulk/entities/UnknownBulkEntity.java b/src/main/java/com/microsoft/bingads/v10/bulk/entities/UnknownBulkEntity.java new file mode 100644 index 0000000000..b770b2b155 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/bulk/entities/UnknownBulkEntity.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import java.util.Map; +import java.util.Map.Entry; + +/** + * Describes an entity whose type is unknown + * + */ +public class UnknownBulkEntity extends SingleRecordBulkEntity { + + private Map values; + + public Map getValues() { + return values; + } + + void setValues(Map values) { + this.values = values; + } + + @Override + public void processMappingsFromRowValues(RowValues rowValues) { + values = rowValues.toMap(); + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + for (Entry entry : this.values.entrySet()) { + values.put(entry.getKey(), entry.getValue()); + } + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkFileReaderFactory.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkFileReaderFactory.java new file mode 100644 index 0000000000..8a32beeaf7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkFileReaderFactory.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import java.io.File; +import java.io.IOException; + +public interface BulkFileReaderFactory { + + BulkFileReader createBulkFileReader(File localFile, ResultFileType fileType, DownloadFileType downloadFileType) throws IOException; + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkMapping.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkMapping.java new file mode 100644 index 0000000000..43c9873f2d --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkMapping.java @@ -0,0 +1,26 @@ +package com.microsoft.bingads.v10.internal.bulk; + +/** + * Maps from a field on entity to a column in a CSV data row + * + * @param + */ +public interface BulkMapping { + + /** + * Moves a value from csv column to a field on an entity + * + * @param values CSV values + * @param entity entity to modify + */ + void convertToEntity(RowValues values, + TEntity entity); + + /** + * Moves a value from an object to a column in the CSV + * + * @param entity entity to pull value from + * @param values CSV columns data to modify + */ + void convertToCsv(TEntity entity, RowValues values); +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObject.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObject.java new file mode 100644 index 0000000000..064f76ea34 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObject.java @@ -0,0 +1,81 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import java.io.IOException; + +/** + * A representation of a block of data (set of csv lines) provided in the {{ + * + * @see Bulk + * File Schema}}. + * + */ +public abstract class BulkObject { + + /** + * Reads object data from consecutive rows. + *
    + *
  • SingleLineBulkEntity: reads entity errors.
  • + *
  • MultilineBulkEntity: reads child entities.
  • + *
+ * + * @param reader + */ + public void readRelatedDataFromStream(BulkStreamReader reader) { + } + + /** + * Read object data from a single row. + * + *
    + *
  • SingleLineBulkEntity: reads entity fields.
  • + *
  • BulkError: reads error fields.
  • + *
  • BulkEntityIdentifier: reads identifier fields (Id, status etc.).
  • + *
+ * + * @param values + */ + public void readFromRowValues(RowValues values) { + throw new UnsupportedOperationException(); + } + + /** + * Writes object data to a single row. + * + *
    + *
  • SingleLineBulkEntity: writes entity fields.
  • + *
  • BulkEntityIdentifier: writes identifier fields (Id, status etc.)
  • + *
+ * + * @param values + */ + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + throw new UnsupportedOperationException(); + } + + /** + * Writes object data to consecutive rows. + * + *
    + *
  • SingleLineBulkEntity: writes entity.
  • + *
  • MultilineBulkEntity: writes child entities.
  • + *
  • BulkEntityIdentifier: writes identifier information (Id, status + * etc.)
  • + *
+ * + * @param rowWriter + * @throws IOException + */ + public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException { + throw new UnsupportedOperationException(); + } + + public boolean canEncloseInMultilineEntity() { + return false; + } + + public MultiRecordBulkEntity encloseInMultilineEntity() { + throw new UnsupportedOperationException(); + } +; +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectFactory.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectFactory.java new file mode 100644 index 0000000000..8011034d71 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectFactory.java @@ -0,0 +1,23 @@ +package com.microsoft.bingads.v10.internal.bulk; + +public interface BulkObjectFactory { + + /** + * Create a {@link BulkObject} of the appropriate type from a row of values. + * Uses the "Type" column value to determine the type that it should return + * + * @param values a set of column data + * @return an empty bulk object of the appropriate type + */ + BulkObject createBulkObject(RowValues values); + + /** + * Returns the type string which corresponds to the type of + * {@link BulkObject} provided + * + * @param bulkObject object to determine type string for + * @return the name of the type + */ + String getBulkRowType(BulkObject bulkObject); + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectReader.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectReader.java new file mode 100644 index 0000000000..ddf1d81828 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectReader.java @@ -0,0 +1,15 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import java.io.Closeable; +import java.util.Iterator; + +public interface BulkObjectReader extends Closeable, Iterator { + + /** + * Reads the next csv row values, creates a new instance of the object and + * populates it with the row values. + * + * @return Next {@link BulkObject} + */ + BulkObject readNextBulkObject(); +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectWriter.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectWriter.java new file mode 100644 index 0000000000..09917eec2e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkObjectWriter.java @@ -0,0 +1,31 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import java.io.Closeable; +import java.io.IOException; + +public interface BulkObjectWriter extends Closeable { + + /** + * Writes all relevant metadata to the file + * + * @throws IOException Occurs when the file can not be written + */ + public abstract void writeFileMetadata() throws IOException; + + /** + * Writes a single object to file + * + * @param bulkObject The object to be written to file + * @throws IOException Occurs when the file can not be written + */ + public abstract void writeObjectRow(BulkObject bulkObject) throws IOException; + + /** + * Writes a single object to file + * + * @param bulkObject The object to be written to file + * @throws IOException Occurs when the file can not be written + */ + public abstract void writeObjectRow(BulkObject bulkObject, boolean excludeReadonlyData) throws IOException; + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationStatusProvider.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationStatusProvider.java new file mode 100644 index 0000000000..dc0c8211b8 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationStatusProvider.java @@ -0,0 +1,16 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.IBulkService; +import java.util.concurrent.Future; + +public interface BulkOperationStatusProvider { + + Future> getCurrentStatus(ServiceClient serviceClient, AsyncCallback> callback); + + boolean isFinalStatus(BulkOperationStatus currentStatus); + + boolean isSuccessStatus(TStatus status); +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationTracker.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationTracker.java new file mode 100644 index 0000000000..bb10430bee --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkOperationTracker.java @@ -0,0 +1,10 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import java.util.concurrent.Future; + +public interface BulkOperationTracker { + + Future> trackResultFileAsync(AsyncCallback> callback); +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReader.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReader.java new file mode 100644 index 0000000000..bb1b2e6bb3 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReader.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.internal.functionalinterfaces.Predicate; +import java.io.Closeable; + +public interface BulkStreamReader extends Closeable { + + /** + * Reads a single bulk object from the file + * + * @return the next bulk object from the file + */ + public BulkObject read(); + + /** + * Attempts to read an entity of a particular type + * + * @param klazz the type to attempt to read + * @return an entity which is of the correct type or null if the next object + * is not of the correct type + */ + public TryResult tryRead(Class klazz); + + /** + * Attempts to read an entity of a particular type and which passes the + * passed test function + * + * @param predicate A function with which to test the object + * @param klazz the type to attempt to read + * @return an entity which is of the correct type or null if the next object + * is not of the correct type + */ + public TryResult tryRead(Predicate predicate, Class klazz); +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/CSVBulkFileReaderFactory.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/CSVBulkFileReaderFactory.java new file mode 100644 index 0000000000..b5a5fdf89e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/CSVBulkFileReaderFactory.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import java.io.File; +import java.io.IOException; + +public class CSVBulkFileReaderFactory implements BulkFileReaderFactory { + + @Override + public BulkFileReader createBulkFileReader(File localFile, + ResultFileType resultType, DownloadFileType downloadFileType) throws IOException { + return new BulkFileReader(localFile, resultType, downloadFileType); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/ComplexBulkMapping.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ComplexBulkMapping.java new file mode 100644 index 0000000000..5eeb030803 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ComplexBulkMapping.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +/** + * A bulk mapping with which to do complex transformation usually involving more + * than one field + * + * @param + */ +public class ComplexBulkMapping implements BulkMapping { + + private BiConsumer entityToCsv; + private BiConsumer csvToEntity; + + /** + * @param entityToCsv Function describing reading an entity and setting the + * appropriate columns + * @param csvToEntity Function describes getting values from CSV columns and + * setting the correct values on + */ + public ComplexBulkMapping(BiConsumer entityToCsv, + BiConsumer csvToEntity) { + this.entityToCsv = entityToCsv; + this.csvToEntity = csvToEntity; + } + + /** + * Calls the custom function provided for csv to entity translation + */ + @Override + public void convertToEntity(RowValues values, TEntity entity) { + this.csvToEntity.accept(values, entity); + } + + /** + * Calls the custom function provided for entity to csv translation + */ + @Override + public void convertToCsv(TEntity entity, RowValues values) { + if (this.entityToCsv == null) { + return; //This mapping is read only + } + this.entityToCsv.accept(entity, values); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/ConditionalBulkMapping.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ConditionalBulkMapping.java new file mode 100644 index 0000000000..7394eebcbb --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ConditionalBulkMapping.java @@ -0,0 +1,31 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +public class ConditionalBulkMapping implements BulkMapping { + + private SimpleBulkMapping simpleMapping; + + private Function condition; + + public ConditionalBulkMapping(String csvHeader, Function condition, Function fieldToCsv, BiConsumer csvToField) { + simpleMapping = new SimpleBulkMapping(csvHeader, fieldToCsv, csvToField); + + this.condition = condition; + } + + @Override + public void convertToCsv(TEntity entity, RowValues values) { + if (condition.apply(entity)) { + simpleMapping.convertToCsv(entity, values); + } + } + + @Override + public void convertToEntity(RowValues values, TEntity entity) { + if (condition.apply(entity)) { + simpleMapping.convertToEntity(values, entity); + } + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/Config.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/Config.java new file mode 100644 index 0000000000..2419393f00 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/Config.java @@ -0,0 +1,5 @@ +package com.microsoft.bingads.v10.internal.bulk; + +public class Config { + public static final int DEFAULT_STATUS_CHECK_INTERVAL_IN_MS = 5000; +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/Creator.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/Creator.java new file mode 100644 index 0000000000..b6a1ee3ba4 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/Creator.java @@ -0,0 +1,6 @@ +package com.microsoft.bingads.v10.internal.bulk; + +public interface Creator { + + public T create(); +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/CsvHeaders.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/CsvHeaders.java new file mode 100644 index 0000000000..37637d6e60 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/CsvHeaders.java @@ -0,0 +1,220 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; + +import java.util.HashMap; +import java.util.Map; + +/** + * Creates and provides a column name to positional index mapping + */ +public class CsvHeaders { + + public final static String[] HiddenHeaders = {}; + + public final static String[] Headers = new String[]{ + + // common + StringTable.Type, + StringTable.Status, + StringTable.Id, + StringTable.ParentId, + StringTable.SubType, + StringTable.Campaign, + StringTable.AdGroup, + StringTable.Website, + StringTable.SyncTime, + StringTable.ClientId, + StringTable.LastModifiedTime, + + // campaign + StringTable.TimeZone, + StringTable.Budget, + StringTable.BudgetType, + StringTable.KeywordVariantMatchEnabled, + + // Ad Group + StringTable.StartDate, + StringTable.EndDate, + StringTable.NetworkDistribution, + StringTable.PricingModel, + StringTable.AdRotation, + StringTable.SearchNetwork, + StringTable.SearchBid, + StringTable.ContentNetwork, + StringTable.ContentBid, + StringTable.Language, + + // Ads + StringTable.Title, + StringTable.Text, + StringTable.DisplayUrl, + StringTable.DestinationUrl, + StringTable.BusinessName, + StringTable.PhoneNumber, + StringTable.PromotionalText, + StringTable.EditorialStatus, + StringTable.EditorialLocation, + StringTable.EditorialTerm, + StringTable.EditorialReasonCode, + StringTable.EditorialAppealStatus, + StringTable.DevicePreference, + + // Keywords + StringTable.Keyword, + StringTable.MatchType, + StringTable.Bid, + StringTable.Param1, + StringTable.Param2, + StringTable.Param3, + + // location target + StringTable.Target, + StringTable.PhysicalIntent, + StringTable.TargetAll, + StringTable.BidAdjustment, + StringTable.RadiusTargetId, + StringTable.Name, + StringTable.OsNames, + StringTable.Radius, + StringTable.Unit, + StringTable.BusinessId, + + // DayTime target + StringTable.FromHour, + StringTable.FromMinute, + StringTable.ToHour, + StringTable.ToMinute, + + // AdExtensions common + StringTable.Version, + + // Site link ad extensions + StringTable.SiteLinkExtensionOrder, + StringTable.SiteLinkDisplayText, + StringTable.SiteLinkDestinationUrl, + StringTable.SiteLinkDescription1, + StringTable.SiteLinkDescription2, + + // Location ad extensions + StringTable.GeoCodeStatus, + StringTable.IconMediaId, + StringTable.ImageMediaId, + StringTable.AddressLine1, + StringTable.AddressLine2, + StringTable.PostalCode, + StringTable.City, + StringTable.StateOrProvince, + StringTable.ProvinceName, + StringTable.Latitude, + StringTable.Longitude, + + // Call ad extensions + StringTable.CountryCode, + StringTable.IsCallOnly, + StringTable.IsCallTrackingEnabled, + StringTable.RequireTollFreeTrackingNumber, + + // Image ad extension + StringTable.AltText, + StringTable.MediaIds, + StringTable.PublisherCountries, + + // Product target + StringTable.BingMerchantCenterId, + StringTable.BingMerchantCenterName, + StringTable.ProductCondition1, + StringTable.ProductValue1, + StringTable.ProductCondition2, + StringTable.ProductValue2, + StringTable.ProductCondition3, + StringTable.ProductValue3, + StringTable.ProductCondition4, + StringTable.ProductValue4, + StringTable.ProductCondition5, + StringTable.ProductValue5, + StringTable.ProductCondition6, + StringTable.ProductValue6, + StringTable.ProductCondition7, + StringTable.ProductValue7, + StringTable.ProductCondition8, + StringTable.ProductValue8, + + // BI + StringTable.Spend, + StringTable.Impressions, + StringTable.Clicks, + StringTable.CTR, + StringTable.AvgCPC, + StringTable.AvgCPM, + StringTable.AvgPosition, + StringTable.Conversions, + StringTable.CPA, + StringTable.QualityScore, + StringTable.KeywordRelevance, + StringTable.LandingPageRelevance, + StringTable.LandingPageUserExperience, + + // Social Network Ad Extension + //TODO-social: NOTE: Also comment/uncomment entry in headerToImportColumnMapping of ImportRowToMicrosoftRowTranslator. + //TODO-social: Headers and properties need to be in sync for Unknown type errors. + //StringTable.SocialNetworkType, + + // App Ad Extension + StringTable.AppPlatform, + StringTable.AppStoreId, + StringTable.IsTrackingEnabled, + + StringTable.Error, + StringTable.ErrorNumber, + StringTable.FieldPath, + + // Bing Shopping Campaigns + StringTable.IsExcluded, + StringTable.ParentAdGroupCriterionId, + StringTable.CampaignType, + StringTable.CampaignPriority, + + //Upgrade Url + StringTable.FinalUrl, + StringTable.FinalMobileUrl, + StringTable.TrackingTemplate, + StringTable.CustomParameter, + }; + + private static final Map columnIndexMap = initializeMap(); + + public static Map getMappings() { + return columnIndexMap; + } + + /** + * Get index for a given column name + * + * @param columnName + * @return the index + */ + public static int GetColumnIndex(String columnName) { + if (!columnIndexMap.containsKey(columnName)) { + throw new IllegalArgumentException(String.format("Column name %s is not present in headers.", columnName)); + } + + Integer index = columnIndexMap.get(columnName); + return index.intValue(); + } + + /** + * maps column name into its positional index + * + * @return a map to positional indices + */ + private static Map initializeMap() { + Map mapping = new HashMap(); + + for (int i = 0; i < CsvHeaders.Headers.length; i++) { + mapping.put(CsvHeaders.Headers[i], new Integer(i)); + } + + return mapping; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/DownloadStatusProvider.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/DownloadStatusProvider.java new file mode 100644 index 0000000000..02e3a79dbe --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/DownloadStatusProvider.java @@ -0,0 +1,74 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.DownloadStatus; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse; +import com.microsoft.bingads.v10.bulk.IBulkService; +import com.microsoft.bingads.internal.ResultFuture; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; + +public class DownloadStatusProvider implements BulkOperationStatusProvider { + + private final String requestId; + + private final AuthorizationData authorizationData; + + public DownloadStatusProvider(String requestId, AuthorizationData authorizationData) { + this.requestId = requestId; + this.authorizationData = authorizationData; + } + + @Override + public Future> getCurrentStatus(ServiceClient serviceClient, AsyncCallback> callback) { + GetBulkDownloadStatusRequest request = new GetBulkDownloadStatusRequest(); + request.setRequestId(this.requestId); + + final ResultFuture> resultFuture = new ResultFuture>(callback); + + serviceClient.getService().getBulkDownloadStatusAsync(request, new AsyncHandler() { + @Override + public void handleResponse(Response result) { + try { + GetBulkDownloadStatusResponse statusResponse = result.get(); + + BulkOperationStatus status = new BulkOperationStatus( + DownloadStatus.fromValue(statusResponse.getRequestStatus()), + statusResponse.getPercentComplete(), + statusResponse.getResultFileUrl(), + null, + statusResponse.getErrors() != null ? statusResponse.getErrors().getOperationErrors() : null + ); + + resultFuture.setResult(status); + } catch (InterruptedException e) { + resultFuture.setException(e); + } catch (ExecutionException e) { + resultFuture.setException(e); + } + } + }); + + return resultFuture; + } + + @Override + public boolean isFinalStatus(BulkOperationStatus status) { + if (status == null) { + return false; + } + + return status.getStatus() == DownloadStatus.COMPLETED || status.getStatus() == DownloadStatus.FAILED || status.getStatus() == DownloadStatus.FAILED_FULL_SYNC_REQUIRED; + } + + @Override + public boolean isSuccessStatus(DownloadStatus status) { + return status == DownloadStatus.COMPLETED; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/DynamicColumnNameMapping.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/DynamicColumnNameMapping.java new file mode 100644 index 0000000000..78fe78485c --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/DynamicColumnNameMapping.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +/** + * A bulk mapping which accepts a function to dynamically determine the column + * for data to be stored at based on the entity + * + * @param The type of {@link BulkEntity} that the binding is for + * @param The type of the property on the {@link BulkEntity} that is + * being managed by this mapping + */ +public class DynamicColumnNameMapping extends + SingleFieldBulkMapping { + + private Function fetchColumnName; + + /** + * Constructor for read only mappings + * + * @param fetchColumnName Function to determine header for data to be stored + * at + * @param csvToField Function to set the value from CSV on an object + */ + public DynamicColumnNameMapping(Function fetchColumnName, + BiConsumer csvToField) { + this(fetchColumnName, null, csvToField); + } + + /** + * Constructor for mappings both directions + * + * @param fetchColumnName Function to determine header for data to be stored + * at + * @param fieldToCsv Function to get the value from an entity + * @param csvToField Function to set the value from CSV on an object + */ + public DynamicColumnNameMapping(Function fetchColumnName, Function fieldToCsv, BiConsumer csvToField) { + super(fieldToCsv, csvToField); + + this.fetchColumnName = fetchColumnName; + } + + @Override + public String getHeader(TEntity entity) { + return this.fetchColumnName.apply(entity); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityExtractor.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityExtractor.java new file mode 100644 index 0000000000..468e31b9ea --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityExtractor.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + +class EntityExtractor { + + /** + * Reserved for internal use. + * @param entity + * @return + */ + public static Iterator extractChildEntitiesIfNeeded(BulkEntity entity) { + + MultiRecordBulkEntity multirecordEntity = null; + if (MultiRecordBulkEntity.class.isInstance(entity)) { + multirecordEntity = MultiRecordBulkEntity.class.cast(entity); + } + + // If the entity is a multiline entity and it has all child objects (delete all row was present), just return it + if (multirecordEntity == null || multirecordEntity.allChildrenPresent()) { + List entities = new ArrayList(); + entities.add(entity); + return entities.iterator(); + } else { + // If not all child objects are present (there was no delete all row and we only have part of the multiline entity), return child object individually + return new ExtractChildEntitiesIterator(multirecordEntity.getChildEntities().iterator()); + } + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityIterator.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityIterator.java new file mode 100644 index 0000000000..772e282df6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/EntityIterator.java @@ -0,0 +1,91 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.MultiRecordBulkEntity; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + +/** + * Provides an iterable interface for the BulkStreamReader + * + */ +public class EntityIterator implements Iterator { + + private BulkStreamReader reader; + private Iterator nextBatch = null; + private boolean isForFullDownload; + + public EntityIterator(BulkStreamReader reader, boolean isForFullDownload) { + this.reader = reader; + this.isForFullDownload = isForFullDownload; + } + + @Override + public boolean hasNext() { + this.updateNextBatch(); + return (this.nextBatch != null && this.nextBatch.hasNext()); + } + + @Override + public BulkEntity next() { + this.updateNextBatch(); + + if (this.nextBatch != null && this.nextBatch.hasNext()) { + BulkEntity returnEntity = this.nextBatch.next(); + return returnEntity; + } + + // Something went wrong and we got an unexpected object from the file at this point... + throw new UnsupportedOperationException("Invalid bulk object returned!!!"); + } + + private void updateNextBatch() { + if (this.nextBatch == null || !this.nextBatch.hasNext()) { + this.nextBatch = readNextBatch(); + } + } + + private Iterator readNextBatch() { + // Parse the next row in the file. The returned object can be: + // * Object inherited from SingleLineBulkEntity - representing an entity from a single file line, such as BulkCampaign or BulkKeyword or BulkSiteLink + // * Object inherited from BulkEntityIdentifier with Status = Deleted - representing a delete all row + BulkObject nextObject = this.reader.read(); + + // If returned object is null means we have reached the end of file + if (nextObject == null) { + return null; + } + + // If returned object is logically part of multiline entity (for example BulkSiteLink is logically part of multiline BulkSiteLinkAdExtension) + if (nextObject.canEncloseInMultilineEntity()) { + // Create multiline object containing the current child object + MultiRecordBulkEntity multirecordEntity = nextObject.encloseInMultilineEntity(); + + // Read related data for the multiline object (will read other child objects belonging to the same parent) + multirecordEntity.readRelatedDataFromStream(this.reader); + + if (this.isForFullDownload) { + List entities = new ArrayList(); + entities.add(multirecordEntity); + return entities.iterator(); + } + + // Otherwise, either return the multiline entity itself or its child objects (depending on if the multiline entity is fully constructed (has all child objects), which is determined by the presence of the delete all row) + return EntityExtractor.extractChildEntitiesIfNeeded(multirecordEntity); + } + + if (BulkEntity.class.isInstance(nextObject)) { + List entities = new ArrayList(); + entities.add(BulkEntity.class.cast(nextObject)); + return entities.iterator(); + } + + throw new UnsupportedOperationException("Invalid bulk object returned!!!"); + } + + @Override + public void remove() { + throw new UnsupportedOperationException("Not supported yet."); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/ExtractChildEntitiesIterator.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ExtractChildEntitiesIterator.java new file mode 100644 index 0000000000..83f0b8706b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ExtractChildEntitiesIterator.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import java.util.Iterator; + +public class ExtractChildEntitiesIterator implements Iterator { + + private Iterator children; + private Iterator currentChildIterator; + + public ExtractChildEntitiesIterator(Iterator children) { + this.children = children; + } + + @Override + public boolean hasNext() { + this.update(); + + if (this.currentChildIterator == null) { + return false; + } + + return this.currentChildIterator.hasNext(); + } + + @Override + public BulkEntity next() { + this.update(); + + if (this.currentChildIterator.hasNext()) { + return this.currentChildIterator.next(); + } + + throw new UnsupportedOperationException(); + } + + public void update() { + if (currentChildIterator == null || !currentChildIterator.hasNext()) { + if (children.hasNext()) { + BulkEntity nextChild = children.next(); + currentChildIterator = EntityExtractor.extractChildEntitiesIfNeeded(nextChild); + } else { + currentChildIterator = null; + } + } + } + + @Override + public void remove() { + throw new UnsupportedOperationException("Not supported yet."); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/MappingHelpers.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/MappingHelpers.java new file mode 100644 index 0000000000..dac856e465 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/MappingHelpers.java @@ -0,0 +1,93 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.internal.UncheckedParseException; +import com.microsoft.bingads.v10.bulk.EntityReadException; +import com.microsoft.bingads.v10.bulk.EntityWriteException; +import java.util.List; + +public class MappingHelpers { + + /** + * Runs a series of mappings to populate an entity from CSV data + * + * @param values Incoming row values + * @param mappings The mappings for that type + * @param entity Bulk Entity to be populated + */ + public static void convertToEntity(RowValues values, List> mappings, T entity) { + for (BulkMapping mapping : mappings) { + try { + mapping.convertToEntity(values, entity); + } catch (NumberFormatException ex) { + throw createEntityReadException(values, mapping, ex, entity.getClass()); + } catch (UncheckedParseException ex) { + throw createEntityReadException(values, mapping, ex, entity.getClass()); + } catch (NullPointerException ex) { + throw createEntityReadException(values, mapping, ex, entity.getClass()); + } catch (IllegalArgumentException ex) { + throw createEntityReadException(values, mapping, ex, entity.getClass()); + } + } + } + + /** + * Runs a series of mappings to populate CSV data from an entity + * + * @param entity Bulk Entity to pull values from + * @param values CSV row to be filled with data from entity + * @param mappings The mappings between fields + */ + public static void convertToValues(T entity, RowValues values, List> mappings) { + for (BulkMapping mapping : mappings) { + try { + mapping.convertToCsv(entity, values); + } catch (NullPointerException ex) { + throw createEntityWriteException(mapping, ex, entity.getClass()); + } catch (IllegalArgumentException ex) { + throw createEntityWriteException(mapping, ex, entity.getClass()); + } + } + } + + private static EntityReadException createEntityReadException(RowValues values, BulkMapping mapping, Throwable exception, Class classOfT) { + String entityType = classOfT.getSimpleName(); + + String message; + + if (mapping instanceof SimpleBulkMapping) { + SimpleBulkMapping simpleMapping = (SimpleBulkMapping)mapping; + + message = String.format("Couldn't parse column %s of %s entity: %s", + simpleMapping.getHeader(null), //TODO: refactor mappings so that it doesn't require to pass an entity + entityType, + exception.getMessage()); + } else { + message = String.format("Couldn't parse %s entity: %s", entityType, exception.getMessage()); + } + + message += ". See ColumnValues for detailed row information and cause for error details."; + + return new EntityReadException(message, values.toDebugString(), exception); + } + + private static EntityWriteException createEntityWriteException(BulkMapping mapping, Throwable exception, Class classOfT) { + String entityType = classOfT.getSimpleName(); + + String message; + + if (mapping instanceof SimpleBulkMapping) { + SimpleBulkMapping simpleMapping = (SimpleBulkMapping)mapping; + + message = String.format("Couldn't write column %s of %s entity: %s", + simpleMapping.getHeader(null), //TODO: refactor mappings so that it doesn't require to pass an entity + entityType, + exception.getMessage()); + } else { + message = String.format("Couldn't write %s entity: %s", entityType, exception.getMessage()); + } + + message += ". See cause for error details."; + + return new EntityWriteException(message, exception); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/PollingBulkOperationTracker.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/PollingBulkOperationTracker.java new file mode 100644 index 0000000000..fc72782dbc --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/PollingBulkOperationTracker.java @@ -0,0 +1,217 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.internal.ParentCallback; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.v10.bulk.BulkOperationProgressInfo; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.IBulkService; +import com.microsoft.bingads.v10.bulk.Progress; +import com.microsoft.bingads.internal.ResultFuture; +import com.microsoft.bingads.internal.utilities.ThreadPool; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; + +public class PollingBulkOperationTracker implements BulkOperationTracker { + + private static final int INITIAL_STATUS_CHECK_INTERVAL_IN_MS = 1000; + private static final int NUMBER_OF_INITIAL_STATUS_CHECKS = 5; + private int numberOfStatusChecks = 0; + private ScheduledExecutorService executorService; + private BulkOperationStatusProvider statusProvider; + private Progress progress; + private boolean stopTracking; + protected int lastProgressReported; + private BulkOperationStatus currentStatus; + private final int statusCheckIntervalInMs; + + private ResultFuture> trackResultFuture; + + private ServiceClient serviceClient; + + private final Runnable pollExecutorTask = new Runnable() { + @Override + public void run() { + pollOperationStatus(); + } + }; + + public PollingBulkOperationTracker( + BulkOperationStatusProvider statusProvider, + ServiceClient serviceClient, + Progress progress, + int statusCheckIntervalInMs) { + + this.statusCheckIntervalInMs = statusCheckIntervalInMs; + this.statusProvider = statusProvider; + this.serviceClient = serviceClient; + this.progress = progress; + } + + AtomicBoolean statusUpdateInProgress = new AtomicBoolean(false); + + public void pollOperationStatus() { + try { + if (!statusUpdateInProgress.compareAndSet(false, true)) { + return; + } + + if (trackingWasStopped()) { + return; + } + + if (cancelPollingIfRequestedByUser()) { + return; + } + + refreshStatus(new AsyncCallback>() { + @Override + public void onCompleted(Future> result) { + try { + result.get(); + + numberOfStatusChecks++; + + reportProgressIfNeeded(); + + completeTaskIfOperationIsComplete(); + } catch (InterruptedException ex) { + stopTracking(); + + propagateExceptionToCallingThread(ex); + } catch (ExecutionException ex) { + stopTracking(); + + propagateExceptionToCallingThread(ex); + } finally { + statusUpdateInProgress.set(false); + + if (!stopTracking) { + int interval = INITIAL_STATUS_CHECK_INTERVAL_IN_MS; + + if (numberOfStatusChecks >= NUMBER_OF_INITIAL_STATUS_CHECKS) { + interval = statusCheckIntervalInMs; + } + + executorService.schedule(pollExecutorTask, interval, TimeUnit.MILLISECONDS); + } + } + } + }); + } catch (Throwable ex) { + stopTracking(); + + propagateExceptionToCallingThread(ex); + } + } + + private boolean cancelPollingIfRequestedByUser() { + if (trackResultFuture.isCancelled()) { + stopTracking(); + + return true; + } + return false; + } + + private void reportProgressIfNeeded() { + if (!userRequestedProgressReports()) { + return; + } + + if (progressChangedSinceLastReport()) { + reportProgress(); + } + } + + private void reportProgress() { + ThreadPool.execute(new Runnable() { + @Override + public void run() { + try { + progress.report(new BulkOperationProgressInfo(currentStatus.getPercentComplete())); + + updateLastProgressReported(); + } catch (Exception ex) { + // ignore exceptions from progress update thread + } + } + }); + } + + private boolean userRequestedProgressReports() { + return this.progress != null; + } + + private boolean progressChangedSinceLastReport() { + return currentStatus.getPercentComplete() != lastProgressReported; + } + + private void updateLastProgressReported() { + this.lastProgressReported = currentStatus.getPercentComplete(); + } + + private void propagateExceptionToCallingThread(Throwable ex) { + trackResultFuture.setException(ex); + } + + private void completeTaskIfOperationIsComplete() { + if (operationIsComplete()) { + stopTracking(); + completeTaskWithResult(); + } + } + + private void completeTaskWithResult() { + trackResultFuture.setResult(currentStatus); + } + + private boolean operationIsComplete() { + return statusProvider.isFinalStatus(currentStatus); + } + + private void refreshStatus(AsyncCallback> callback) { + final ResultFuture> resultFuture = new ResultFuture>(callback); + + statusProvider.getCurrentStatus(this.serviceClient, new ParentCallback>(resultFuture) { + @Override + public void onSuccess(BulkOperationStatus result) { + currentStatus = result; + + resultFuture.setResult(currentStatus); + } + }); + } + + private boolean trackingWasStopped() { + return this.stopTracking; + } + + private void stopTracking() { + this.stopTracking = true; + + this.executorService.shutdown(); + } + + /* (non-Javadoc) + * @see com.microsoft.bingads.api.internal.bulk.operations.BulkOperationTracker#trackResultFileAsync() + */ + @Override + public Future> trackResultFileAsync(AsyncCallback> callback) { + this.trackResultFuture = new ResultFuture>(callback); + + this.startTracking(); + + return trackResultFuture; + } + + private void startTracking() { + executorService = Executors.newSingleThreadScheduledExecutor(); + + executorService.schedule(pollExecutorTask, INITIAL_STATUS_CHECK_INTERVAL_IN_MS, TimeUnit.MILLISECONDS); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/ReplaceNullsWithEmptyStringCSVEntryConverter.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ReplaceNullsWithEmptyStringCSVEntryConverter.java new file mode 100644 index 0000000000..90c1a601be --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/ReplaceNullsWithEmptyStringCSVEntryConverter.java @@ -0,0 +1,25 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.googlecode.jcsv.writer.CSVEntryConverter; + +/** + * An entry converter which replaces nulls in the input with empty strings + * + */ +class ReplaceNullsWithEmptyStringCSVEntryConverter implements CSVEntryConverter { + + @Override + public String[] convertEntry(String[] values) { + String[] resultValues = new String[values.length]; + + for (int i = 0; i < values.length; i++) { + if (values[i] == null) { + resultValues[i] = ""; + } else { + resultValues[i] = values[i]; + } + } + + return resultValues; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValues.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValues.java new file mode 100644 index 0000000000..a4089271b9 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValues.java @@ -0,0 +1,83 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + +/** + * Encapsulates a row of csv values and the corresponding header mappings for that array + * + */ +public class RowValues { + + private String[] columns; + private Map mappings; + + public RowValues(String[] columns, Map mappings) { + this.columns = columns; + this.mappings = mappings; + } + + public RowValues(Map rowValues) { + this.mappings = CsvHeaders.getMappings(); + this.columns = new String[this.mappings.keySet().size()]; + + for (String key : rowValues.keySet()) { + this.put(key, rowValues.get(key)); + } + } + + public RowValues() { + this(new HashMap()); + } + + public String get(String header) { + + return columns[this.mappings.get(header)]; + } + + public String tryGet(String header) { + if (!this.mappings.containsKey(header) || this.mappings.get(header) == null) { + return null; + } + + return this.get(header); + } + + public void put(String header, String value) { + columns[mappings.get(header)] = value; + } + + public boolean containsHeader(String header) { + return mappings.containsKey(header); + } + + public String[] getColumns() { + return this.columns; + } + + public Map toMap() { + Map values = new HashMap(); + + for (Entry entry : this.mappings.entrySet()) { + String value = this.columns[entry.getValue()]; + + values.put(entry.getKey(), value); + } + + return values; + } + + public String toDebugString() { + String result = ""; + + for (Entry entry : this.mappings.entrySet()) { + String value = this.columns[entry.getValue()]; + + result += String.format("%s = '%s'", entry.getKey(), value) + "; "; + } + + return result; + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValuesCSVEntryConverter.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValuesCSVEntryConverter.java new file mode 100644 index 0000000000..0fa7100c4f --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/RowValuesCSVEntryConverter.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.googlecode.jcsv.writer.CSVEntryConverter; + +/** + * An entry converter which converts a RowValues object to a String array by + * fetching the internal columns array + * + */ +public class RowValuesCSVEntryConverter implements CSVEntryConverter { + + @Override + public String[] convertEntry(RowValues values) { + return values.getColumns(); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkMapping.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkMapping.java new file mode 100644 index 0000000000..562d369ddc --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkMapping.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +/** + * A simple bulk mapping which translates values from a single field to a single + * column + * + * @param The type of {@link BulkEntity} that the binding is for + * @param The type of the property on the {@link BulkEntity} that is + * being managed by this mapping + */ +public class SimpleBulkMapping extends SingleFieldBulkMapping { + + private String csvHeader; + + public SimpleBulkMapping(String csvHeader, Function fieldToCsv, BiConsumer csvToField, boolean passNulls) { + super(fieldToCsv, csvToField, passNulls); + this.csvHeader = csvHeader; + } + + /** + * Constructor for mappings + * + * @param csvHeader Name of the header + * @param fieldToCsv Function to get the value from an entity + * @param csvToField Function to set the value from CSV on an entity + */ + public SimpleBulkMapping(String csvHeader, Function fieldToCsv, BiConsumer csvToField) { + this(csvHeader, fieldToCsv, csvToField, false); + } + + @Override + public String getHeader(TEntity entity) { + return this.csvHeader; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectReader.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectReader.java new file mode 100644 index 0000000000..1a360da052 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectReader.java @@ -0,0 +1,159 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.googlecode.jcsv.CSVStrategy; +import com.googlecode.jcsv.reader.CSVReader; +import com.googlecode.jcsv.reader.internal.CSVReaderBuilder; +import com.googlecode.jcsv.reader.internal.DefaultCSVEntryParser; +import com.microsoft.bingads.v10.bulk.entities.StaticBulkObjectFactory; +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.Reader; +import java.io.UnsupportedEncodingException; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; + +/** + * Provides a method to read one row from bulk file and return the corresponding + * + * + */ +class SimpleBulkObjectReader implements BulkObjectReader { + + private BulkObjectFactory bulkObjectFactory; + private Iterator objectIterator; + private Map columnMapping; + private CSVReader csvReader; + private boolean headersInitialized = false; + + public SimpleBulkObjectReader(File file, char delimiter) throws FileNotFoundException, UnsupportedEncodingException { + this(new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8")), new StaticBulkObjectFactory(), delimiter); + } + + /** + * For unit testing + * + * @param csvParser + * @param factory + * @throws FileNotFoundException + */ + public SimpleBulkObjectReader(Reader reader, BulkObjectFactory factory, char delimiter) throws FileNotFoundException { + this(buildCSVReader(reader, delimiter), factory); + } + + /** + * For unit testing + * + * @param csvParser + * @param factory + * @throws FileNotFoundException + */ + public SimpleBulkObjectReader(CSVReader csvReader, BulkObjectFactory factory) throws FileNotFoundException { + this.csvReader = csvReader; + this.objectIterator = csvReader.iterator(); + this.bulkObjectFactory = factory; + } + + private Map generateColumnMapping(String[] headers) { + Map mapping = new HashMap(); + + for (int i = 0; i < headers.length; i++) { + mapping.put(headers[i], i); + } + + return mapping; + } + + /** + * + * @param reader + * @param delimiter + * @return a CSV reader which uses the delimiter provided + */ + private static CSVReader buildCSVReader(Reader reader, char delimiter) { + try { + // Mark the reader stream to read 1 character ahead, so that we can reset to that point if the first character is not UTF-8 BOM + reader.mark(1); + + int read = reader.read(); + + if (read != 0xFEFF) { + reader.reset(); + } + } catch (IOException e) { + e.printStackTrace(); + } + + return new CSVReaderBuilder(reader).entryParser(new DefaultCSVEntryParser()).strategy(SimpleBulkObjectReader.createStrategyWithDelimiter(delimiter)).build(); + } + + /** + * Create a parsing strategy using the delimiter provided + * + * @param delimiter The character used to separate records in the same line + * @return a csv parsing strategy + */ + private static CSVStrategy createStrategyWithDelimiter(char delimiter) { + return new CSVStrategy(delimiter, '"', '#', false, true); + } + + /** + * Reads the next csv row values, creates a new instance of the object and + * populates it with the row values + * + * @returns>Next {@link BulkObject} + */ + @Override + public BulkObject readNextBulkObject() { + this.initializeHeadersIfNeeded(); + + if (!objectIterator.hasNext()) { + return null; + } + + String[] fields = objectIterator.next(); + + RowValues values = new RowValues(fields, columnMapping); + BulkObject obj = bulkObjectFactory.createBulkObject(values); + obj.readFromRowValues(values); + + return obj; + } + + private void initializeHeadersIfNeeded() { + if (!this.headersInitialized) { + if (objectIterator.hasNext()) { + String[] headers = objectIterator.next(); + columnMapping = generateColumnMapping(headers); + } + + this.headersInitialized = true; + } + } + + @Override + public boolean hasNext() { + this.initializeHeadersIfNeeded(); + return objectIterator.hasNext(); + } + + @Override + public void close() throws IOException { + this.csvReader.close(); + } + + @Override + public BulkObject next() { + return this.readNextBulkObject(); + } + + @Override + public void remove() { + throw new UnsupportedOperationException("Not supported yet."); + } + +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectWriter.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectWriter.java new file mode 100644 index 0000000000..3101564896 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkObjectWriter.java @@ -0,0 +1,106 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.googlecode.jcsv.CSVStrategy; +import com.googlecode.jcsv.writer.CSVWriter; +import com.googlecode.jcsv.writer.internal.CSVWriterBuilder; +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.entities.StaticBulkObjectFactory; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStreamWriter; +import java.io.Writer; + +/** + * + * + */ +public class SimpleBulkObjectWriter implements BulkObjectWriter { + + private BulkObjectFactory bulkObjectFactory; + private CSVWriter csvWriter; + private Writer writer; + + public SimpleBulkObjectWriter(File filePath, DownloadFileType fileFormat) throws IOException { + bulkObjectFactory = new StaticBulkObjectFactory(); + + writer = new OutputStreamWriter(new FileOutputStream(filePath), "UTF-8"); + + csvWriter = this.buildCSVWriter(writer, fileFormat == DownloadFileType.CSV ? ',' : '\t'); + } + + /** + * @see + * com.microsoft.bingads.internal.bulk.file.BulkObjectWriter#writeFileMetadata() + */ + @Override + public void writeFileMetadata() throws IOException { + this.writeHeaders(); + this.writeFormatVersion(); + } + + private void writeFormatVersion() throws IOException { + RowValues versionRow = new RowValues(); + + versionRow.put(StringTable.Type, StringTable.SemanticVersion); + versionRow.put(StringTable.Name, "4.0"); //TODO: move to BulkServiceManager + + csvWriter.write(versionRow.getColumns()); + } + + private void writeHeaders() throws IOException { + writer.write(0xFEFF); + + this.csvWriter.write(CsvHeaders.Headers); + + this.csvWriter.flush(); + } + + /** + * + * @param writer + * @param delimiter + * @return a CSV writer which uses the delimiter provided + */ + private CSVWriter buildCSVWriter(Writer writer, char delimiter) { + return new CSVWriterBuilder(writer) + .entryConverter(new ReplaceNullsWithEmptyStringCSVEntryConverter()) + .strategy(this.createStrategyWithDelimiter(delimiter)).build(); + } + + /** + * + * @param delimiter + * @return a strategy for writing the CSV using the delimiter provided + */ + private CSVStrategy createStrategyWithDelimiter(char delimiter) { + return new CSVStrategy(delimiter, '"', '#', false, true); + } + + @Override + public void writeObjectRow(BulkObject bulkObject, boolean excludeReadonlyData) throws IOException { + RowValues values = new RowValues(); + bulkObject.writeToRowValues(values, excludeReadonlyData); + + String type = bulkObjectFactory.getBulkRowType(bulkObject); + values.put(StringTable.Type, type); + + this.csvWriter.write(values.getColumns()); + this.csvWriter.flush(); + } + + /** + * @see + * com.microsoft.bingads.internal.bulk.file.BulkObjectWriter#writeObjectRow(com.microsoft.bingads.internal.bulk.file.BulkObject) + */ + @Override + public void writeObjectRow(BulkObject bulkObject) throws IOException { + writeObjectRow(bulkObject, false); + } + + @Override + public void close() throws IOException { + this.csvWriter.close(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkStreamReader.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkStreamReader.java new file mode 100644 index 0000000000..d779ce4f05 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SimpleBulkStreamReader.java @@ -0,0 +1,116 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.entities.UnknownBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.Predicate; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.UnsupportedEncodingException; + +/** + * Reads a bulk object and also its related data (for example corresponding + * errors) from the stream + */ +public class SimpleBulkStreamReader implements BulkStreamReader { + + private BulkObjectReader objectReader; + private BulkObject nextObject; + private boolean passedFirstRow = false; + + public SimpleBulkStreamReader(File file, DownloadFileType fileFormat) throws FileNotFoundException, UnsupportedEncodingException { + this(new SimpleBulkObjectReader(file, fileFormat == DownloadFileType.TSV ? '\t' : ',')); + } + + public SimpleBulkStreamReader(BulkObjectReader reader) { + objectReader = reader; + } + + /** + * Returns the next object from the file + * + * @return Next object + */ + @Override + public BulkObject read() { + TryResult result = tryRead(BulkObject.class); + if (result.isSuccessful()) { + return result.getResult(); + } + + return null; + } + + /** + * Reads the object only if it has a certain type + * + * @param Type of the object + * @param result The next object from the file if the object has the same + * type as requested, null otherwise + * @return True if object has requested type, false otherwise + */ + @Override + public TryResult tryRead(Class klazz) { + return tryRead(new Predicate() { + @Override + public boolean test(T obj) { + return true; + } + }, klazz); + } + + /** + * Reads the object only if it matches a predicate + * + * @param Type of the object + * @param predicate Predicate that needs to be matched + * @param result The next object from the file if the object matches the + * predicate, null otherwise + * @return True if object matches the predicate, false otherwise + */ + @Override + public TryResult tryRead(Predicate predicate, Class klazz) { + BulkObject peeked = peek(); + + if (klazz.isInstance(peeked)) { + if (predicate.test(klazz.cast(peeked))) { + nextObject = null; + + peeked.readRelatedDataFromStream(this); + + return new TryResult(true, klazz.cast(peeked)); + } + } + + return new TryResult(false, null); + } + + private BulkObject peek() { + if (!passedFirstRow) { + BulkObject firstRowObject = objectReader.readNextBulkObject(); + + if (firstRowObject instanceof UnknownBulkEntity) { + UnknownBulkEntity formatVersion = (UnknownBulkEntity)firstRowObject; + + // TODO: validate format version + } else { + nextObject = firstRowObject; + } + + passedFirstRow = true; + } + + if (nextObject != null) { + return nextObject; + } + + nextObject = objectReader.readNextBulkObject(); + + return nextObject; + } + + @Override + public void close() throws IOException { + this.objectReader.close(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/SingleFieldBulkMapping.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SingleFieldBulkMapping.java new file mode 100644 index 0000000000..a5cfe01b64 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/SingleFieldBulkMapping.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +abstract class SingleFieldBulkMapping implements BulkMapping { + + protected Function fieldToCsv; + protected BiConsumer csvToField; + protected Function bulkToString; + private boolean passNulls; + + public SingleFieldBulkMapping(Function fieldToCsv, + BiConsumer csvToField) { + this(fieldToCsv, csvToField, false); + } + + public SingleFieldBulkMapping(Function fieldToCsv, + BiConsumer csvToField, boolean passNulls) { + this.fieldToCsv = fieldToCsv; + this.csvToField = csvToField; + this.passNulls = passNulls; + } + + @Override + public void convertToEntity(RowValues values, TEntity entity) { + String header = this.getHeader(entity); + + if (values.containsHeader(header) && (values.get(header) != null || this.passNulls)) { + csvToField.accept(values.get(header), entity); + } + } + + @Override + public void convertToCsv(TEntity entity, RowValues values) { + if (this.fieldToCsv == null) { + return; //This mapping is read only. + } + + TProperty value = this.fieldToCsv.apply(entity); + values.put(this.getHeader(entity), StringExtensions.toBulkString(value)); + } + + /** + * + * @param value A {@link BulkEntity} containing data + * @return the header to store/read data from + */ + public abstract String getHeader(TEntity value); +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/StringExtensions.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/StringExtensions.java new file mode 100644 index 0000000000..ae02a9e3d5 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/StringExtensions.java @@ -0,0 +1,703 @@ +package com.microsoft.bingads.v10.internal.bulk; + + +import com.microsoft.bingads.v10.bulk.entities.LocationTargetType; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.v10.campaignmanagement.AdDistribution; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.campaignmanagement.AdRotation; +import com.microsoft.bingads.v10.campaignmanagement.AdRotationType; +import com.microsoft.bingads.v10.campaignmanagement.AdStatus; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOflong; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.v10.campaignmanagement.BusinessGeoCodeStatus; +import com.microsoft.bingads.v10.campaignmanagement.CriterionBid; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; +import com.microsoft.bingads.v10.campaignmanagement.Date; +import com.microsoft.bingads.v10.campaignmanagement.FixedBid; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.v10.campaignmanagement.Minute; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.io.File; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Calendar; +import java.util.Collection; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import java.lang.IllegalArgumentException; + +import javax.xml.bind.JAXBElement; + +public class StringExtensions { + + private static final String UNKNOWN_DEVICE_PREFERENCE = "Unknown device preference"; + private static final String ALL = "All"; + private static final String MOBILE = "Mobile"; + private static final String DATE_OUTPUT_FORMAT = "%d/%d/%d"; + //private static final DateTimeFormatter DATE_INPUT_FORMATTER = DateTimeFormatter.ofPattern("MM/dd/yyyy"); + + private static final String urlSplitter = ";\\s*(?=https?://)"; + private static final String customParameterSplitter = "(? String toBulkString(T value) { + if (value == null) { + return null; + } + + return value.toString(); + } + + /** + * Catches NumberFormatException and returns a null value instead + * + * @param value + * @return a Double or a null if the value is not parseable as a double + */ + public static Double nullOrDouble(String value) { + try { + return Double.parseDouble(value); + } catch (NumberFormatException e) { + return null; + } + } + + /** + * Catches NumberFormatException and returns a null value instead + * + * @param value + * @return an Integer or a null if the value is null or empty + */ + public static Integer parseOptionalInteger(String value) { + if (isNullOrEmpty(value)) { + return null; + } + + return Integer.parseInt(value); + } + + public static int parseInt(String value) { + return Integer.parseInt(value); + } + + public static Date parseDate(String headerValue) throws ParseException { + if (headerValue == null || headerValue.length() == 0) { + return null; + } + + SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"); + format.setLenient(false); + + Calendar calendar = Calendar.getInstance(); + calendar.setTime(format.parse(headerValue)); + + Date bingDate = new Date(); + bingDate.setDay(calendar.get(Calendar.DAY_OF_MONTH)); + bingDate.setMonth(calendar.get(Calendar.MONTH) + 1); // Calendar months are zero-based + bingDate.setYear(calendar.get(Calendar.YEAR)); + + return bingDate; + } + + public static String isOnOrOff(Collection values, AdDistribution lookingFor) { + if (values == null) { + return null; + } + + return values.contains(lookingFor) ? StringTable.On : StringTable.Off; + } + + public static Bid parseAdGroupBid(String v) { + if (v == null || v.isEmpty()) { + return null; + } + + Bid bid = new Bid(); + + if (v.equals(StringTable.DeleteValue)) { + bid.setAmount(0.0); + return bid; + } + + Double bidAmount = nullOrDouble(v); + + if (bidAmount != null) { + bid.setAmount(bidAmount); + return bid; + } else { + return null; + } + } + + public static Bid parseKeywordBid(String v) { + if (v == null || v.isEmpty()) { + return null; + } + + Bid bid = new Bid(); + + if (v.equals(StringTable.DeleteValue)) { + bid.setAmount(null); + return bid; + } + + Double bidAmount = nullOrDouble(v); + + if (bidAmount != null) { + bid.setAmount(bidAmount); + return bid; + } else { + return null; + } + } + + public static SimpleDateFormat SYNC_TIME_FORMATTER = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + + public static java.util.Date parseSyncTime(String v) throws ParseException { + if (v == null || v.isEmpty()) { + return null; + } + + return SYNC_TIME_FORMATTER.parse(v); + } + + public static String toDateBulkString(Date c) { + if (c == null) { + return null; + } + + return String.format(DATE_OUTPUT_FORMAT, c.getMonth(), c.getDay(), c.getYear()); + } + + /** + * Determines the ad rotation represented by a String. Returns null if the String does not match any known. + * + * @param v A String representation of a ad rotation + * @return a {@link AdRotation} or null if there is no match + */ + public static AdRotation parseAdRotation(String v) { + if (StringTable.DeleteValue.equals(v)) { + return null; + } + + if (v == null || v.isEmpty()) { + return null; + } + + try { + AdRotation rotation = new AdRotation(); + rotation.setType(AdRotationType.fromValue(v)); + return rotation; + } catch (IllegalArgumentException e) { + return null; + } + } + + /** + * Determines if the search ad distribution is marked as on. Returns null if the String does not match any known. + * + * @param v A String representation of the state of ad distribution + * @return a {@link AdDistribution} or null if there is no match or it is not turned on + */ + public static AdDistribution parseSearchAdDistribution(String v) { + if (StringExtensions.isTurnedOn(v)) { + return AdDistribution.SEARCH; + } else { + return null; + } + } + + /** + * Determines if the content ad distribution is marked as on. Returns null if the String does not match any known. + * + * @param v A String representation of the state of ad distribution + * @return a {@link AdDistribution} or null if there is no match or it is not turned on + */ + public static AdDistribution parseContentAdDistribution(String v) { + if (StringExtensions.isTurnedOn(v)) { + return AdDistribution.CONTENT; + } else { + return null; + } + } + + public static boolean isTurnedOn(String v) { + return v != null && v.length() != 0 && !StringTable.DeleteValue.equals(v) && v.equals(StringTable.On); + } + + public static T parseOptionalUpperCase(String v, Function parse) { + if (v == null | v.length() == 0) { + return null; + } + + return parseOptional(v.substring(0, 1) + v.substring(1, v.length()).toLowerCase(), parse); + } + + public static T parseOptional(String v, Function parse) { + if (v == null || v.length() == 0) { + return null; + } + + return parse.apply(v); + } + + public static JAXBElement parseJAXBElement(String v, Function parse, Function> factory) { + if (v == null || v.length() == 0) { + return null; + } + + return factory.apply(parse.apply(v)); + } + + public static String toOptionalBulkString(String value) { + if (value == null) { + return null; + } + + if (value.isEmpty()) { + return StringTable.DeleteValue; + } + + return value; + } + + public static String getValueOrEmptyString(String v) { + if (v == null || v.isEmpty()) { + return ""; + } + + return v; + } + + public static Long parseDevicePreference(String v) { + if (v == null || v.isEmpty() || v.equals(ALL)) { + return 0L; + } + + if (v.equals(MOBILE)) { + return 30001L; + } + + throw new UnsupportedOperationException(UNKNOWN_DEVICE_PREFERENCE); + } + + public static String toDevicePreferenceBulkString(Long pref) { + if (pref == null || pref.equals(0L)) { + return ALL; + } else if (pref.equals(30001L)) { + return MOBILE; + } + + throw new UnsupportedOperationException(UNKNOWN_DEVICE_PREFERENCE); + } + + public static T parse(String v, Function parser) { + return parser.apply(v); + } + + public static String toMatchTypeBulkString(MatchType type) { + if (type == null) { + return null; + } + + return type.value(); + } + + public static String toAdRotationBulkString(AdRotation c) { + if (c == null || c.getType() == null) { + return null; + } + + return StringExtensions.toBulkString(c.getType().value()); + } + + public static String toAdGroupBidBulkString(Bid bid) { + if (bid == null || bid.getAmount() == null) { + return null; + } + + if (bid.getAmount() == 0.0) { + return StringTable.DeleteValue; + } + + return bid.getAmount().toString(); + } + + public static CriterionBid parseFixedAdGroupBid(String v) { + Bid bid = StringExtensions.parseAdGroupBid(v); + + if (bid == null) { + return null; + } + + FixedBid fixedBid = new FixedBid(); + fixedBid.setBid(bid); + return fixedBid; + } + + + public static String toAdStatusBulkString(AdStatus status) { + if (status == null) { + return null; + } + + return status.value(); + } + + public static String toGeoCodeStatusBulkString( + BusinessGeoCodeStatus geoCodeStatus) { + if (geoCodeStatus == null) { + return null; + } + + return geoCodeStatus.value(); + } + + public static boolean isNullOrEmpty(String string) { + return string == null || string.isEmpty(); + } + + public static Integer parseLatLngInMicroDegrees(String v) { + Double decimalDegrees = StringExtensions.parseOptional(v, new Function() { + @Override + public Double apply(String value) { + return Double.parseDouble(value); + } + }); + if (decimalDegrees == null) { + return null; + } + + return (int) Math.round(decimalDegrees * 1000000); + } + + public static String toBooleanBulkString(Boolean isCallOnly) { + if (isCallOnly == null) { + return null; + } + + if (isCallOnly) { + return "True"; + } else { + return "False"; + } + } + + public static String toAdExtensionStatusBulkString(AdExtensionStatus status) { + if (status == null) { + return null; + } + + return status.value(); + } + + public static String toStatusBulkString(Status status) { + if (status == null) { + return null; + } + + return status.value(); + } + + public static Minute parseMinute(String s) { + int minuteNumber = Integer.parseInt(s); + + switch (minuteNumber) { + case 0: + return Minute.ZERO; + case 15: + return Minute.FIFTEEN; + case 30: + return Minute.THIRTY; + case 45: + return Minute.FORTY_FIVE; + default: + throw new IllegalArgumentException("Unknown minute"); + } + } + + public static String toMinuteBulkString(Minute minute) { + switch (minute) { + case ZERO: + return "0"; + case FIFTEEN: + return "15"; + case THIRTY: + return "30"; + case FORTY_FIVE: + return "45"; + default: + throw new IllegalArgumentException("Unknown minute"); + } + } + + public static LocationTargetType parseLocationTargetType(String s) { + if (s.equals("Metro Area")) { + return LocationTargetType.METRO_AREA; + } else if (s.equals("Postal Code")) { + return LocationTargetType.POSTAL_CODE; + } else { + return LocationTargetType.fromValue(s); + } + } + + public static String toLocationTargetTypeBulkString(LocationTargetType locationTargetType) { + if (locationTargetType == null) return null; + + switch (locationTargetType) { + case METRO_AREA: + return "Metro Area"; + case POSTAL_CODE: + return "Postal Code"; + default: + return locationTargetType.value(); + } + } + + public static String join(String separator, List strings) { + if (strings == null) { + return null; + } + + String result = ""; + + for (Integer i = 0; i < strings.size() - 1; i++) { + result += strings.get(i) + separator; + } + + result += strings.get(strings.size() - 1); + + return result; + } + + public static String getFileExtension(String fileName) { + int indexOfDot = fileName.lastIndexOf('.'); + + if (indexOfDot != -1) { + return fileName.substring(indexOfDot); + } + + return fileName; + } + + public static String getFileNameWithoutExtension(File file) { + String fileName = file.getName(); + + int indexOfDot = fileName.lastIndexOf('.'); + + if (indexOfDot != -1) { + return fileName.substring(0, indexOfDot); + } + + return fileName; + } + + public static File changeFileExtension(File file, String newExtension) { + String fullFileName = file.toString(); + + int indexOfDot = fullFileName.lastIndexOf('.'); + + if (indexOfDot != -1) { + return new File(fullFileName.substring(0, indexOfDot) + newExtension); + } + + return new File(fullFileName + newExtension); + } + + public static String writeUrls(String separator, ArrayOfstring strings) { + if (strings == null) { + return null; + } + + if (strings.getStrings().size() == 0) { + return StringTable.DeleteValue; + } + + StringBuilder result = new StringBuilder(""); + + int length = strings.getStrings().size(); + for (Integer i = 0; i < length - 1; i++) { + result.append(strings.getStrings().get(i) + separator); + } + + result.append(strings.getStrings().get(length - 1)); + + return result.toString(); + } + + public static List parseUrls(String s) { + if (StringExtensions.isNullOrEmpty(s)) + return null; + + List urlArray = new ArrayList(); + + String[] urls = s.split(urlSplitter); + + for(String tmp : urls) { + if (!StringExtensions.isNullOrEmpty(tmp) && ! ";".equals(tmp)) + urlArray.add(tmp); + } + + return urlArray; + } + + public static String toCustomParaBulkString(CustomParameters parameters) { + if (parameters == null) { + return null; + } + + ArrayOfCustomParameter customParaArray = parameters.getParameters(); + if (customParaArray == null || customParaArray.getCustomParameters().size() == 0) { + return StringTable.DeleteValue; + } + + String result = ""; + + int length = customParaArray.getCustomParameters().size(); + for (int i = 0; i < length - 1; i++) { + CustomParameter cp = customParaArray.getCustomParameters().get(i); + String tmp = String.format("{_%s}=%s", cp.getKey(), escapeParameterText(cp.getValue())); + + result += tmp + "; "; + } + + CustomParameter cp = customParaArray.getCustomParameters().get(length - 1); + result += String.format("{_%s}=%s", cp.getKey(), escapeParameterText(cp.getValue())); + + return result; + + } + + private static String escapeParameterText(String text) { + StringBuffer buffer = new StringBuffer(text.length() * 2); + + for (char c : text.toCharArray()) { + if (c == ';' || c == '\\') { + buffer.append('\\'); + } + buffer.append(c); + } + + return buffer.toString(); + } + + private static String unEscapeParameterText(String text) { + StringBuffer buffer = new StringBuffer(text.length()); + + int length = text.length(); + + for (int i = 0; i < length; i++) { + if (text.charAt(i) == '\\') { + i++; + } + + if (i < length) { + buffer.append(text.charAt(i)); + } + } + + return buffer.toString(); + } + + public static CustomParameters parseCustomParameters(String s) throws Exception { + if (StringExtensions.isNullOrEmpty(s)) + return null; + + String[] parameters = s.split(customParameterSplitter); + + ArrayOfCustomParameter customParametersArray = new ArrayOfCustomParameter(); + + for (String p : parameters) { + if (!StringExtensions.isNullOrEmpty(p)) { + p = p.trim(); + Matcher match = customKvPattern.matcher(p); + if (match.find()) { + CustomParameter param = new CustomParameter(); + param.setKey(match.group(1)); + param.setValue(unEscapeParameterText(match.group(2))); + customParametersArray.getCustomParameters().add(param); + } else { + throw new IllegalArgumentException(String.format("Bad format for CustomParameters: %s", s)); + } + } + } + + CustomParameters result = new CustomParameters(); + result.setParameters(customParametersArray); + + return result; + } + + public static List parseImageMediaIds(String v) { + if (StringExtensions.isNullOrEmpty(v)) + return null; + + List idArray = new ArrayList(); + + String[] ids = v.split(";"); + + for(String tmp : ids) { + if (!StringExtensions.isNullOrEmpty(tmp) && ! ";".equals(tmp)) + idArray.add(Long.parseLong(tmp)); + } + + return idArray; + } + + public static String writeMediaIds(String separator, ArrayOflong ids) { + if (ids == null) { + return null; + } + + if (ids.getLongs().size() == 0) { + return StringTable.DeleteValue; + } + + StringBuilder result = new StringBuilder(""); + + int length = ids.getLongs().size(); + for (Integer i = 0; i < length - 1; i++) { + result.append(ids.getLongs().get(i) + separator); + } + + result.append(ids.getLongs().get(length - 1)); + + return result.toString(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/StringTable.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/StringTable.java new file mode 100644 index 0000000000..723bebd556 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/StringTable.java @@ -0,0 +1,320 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import java.lang.reflect.Field; +import java.lang.reflect.Modifier; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; + +/** + * Contains a large amount of String variable which serves as the canonical + * source for Strings (particularly headers) + * + */ + +public class StringTable { + private static Map variableNameToHeader; + + // CSV header strings + public static final String ClientId = "Client Id"; + + public static final String Type = "Type"; + + public static final String Status = "Status"; + + public static final String Campaign = "Campaign"; + + public static final String Id = "Id"; + + public static final String BusinessId = "Business Id"; + + public static final String ParentId = "Parent Id"; + + public static final String TimeZone = "Time Zone"; + + public static final String Budget = "Budget"; + + public static final String BudgetType = "Budget Type"; + public static final String KeywordVariantMatchEnabled = "KeywordVariantMatchEnabled"; + + public static final String AdGroup = "Ad Group"; + public static final String Keyword = "Keyword"; + + public static final String TextAd = "Text Ad"; + public static final String ProductAd = "Product Ad"; + + public static final String Title = "Title"; + public static final String EditorialStatus = "Editorial Status"; + public static final String EditorialAppealStatus = "Editorial Appeal Status"; + public static final String Error = "Error"; + public static final String ErrorNumber = "Error Number"; + public static final String FieldPath = "Field Path"; + public static final String EditorialLocation = "Editorial Location"; + public static final String EditorialTerm = "Editorial Term"; + public static final String EditorialReasonCode = "Editorial Reason Code"; + + public static final String MigrationErrors = "Migration Errors"; + + public static final String DisplayUrl = "Display Url"; + public static final String DestinationUrl = "Destination Url"; + public static final String BusinessName = "Business Name"; + public static final String PhoneNumber = "Phone Number"; + public static final String PromotionalText = "Promotion"; + public static final String MatchType = "Match Type"; + public static final String Param1 = "Param1"; + public static final String Param2 = "Param2"; + public static final String Param3 = "Param3"; + public static final String DevicePreference = "Device Preference"; + + public static final String CampaignNegativeKeyword = "Campaign Negative Keyword"; + public static final String CampaignNegativeSite = "Campaign Negative Site"; + public static final String AdGroupNegativeKeyword = "Ad Group Negative Keyword"; + public static final String KeywordNegativeKeyword = "Keyword Negative Keyword"; + + public static final String AdGroupNegativeSite = "Ad Group Negative Site"; + public static final String Text = "Text"; + public static final String Website = "Website"; + + public static final String Target = "Target"; + + public static final String PhysicalIntent = "Physical Intent"; + + public static final String Bid = "Bid"; + + public static final String BidAdjustment = "Bid Adjustment"; + public static final String SubType = "Sub Type"; + + public static final String OsNames = "OS Names"; + + public static final String StartDate = "Start Date"; + public static final String EndDate = "End Date"; + public static final String NetworkDistribution = "Network Distribution"; + public static final String SearchNetwork = "Search Network"; + public static final String ContentNetwork = "Content Network"; + public static final String PricingModel = "Pricing Model"; + public static final String Language = "Language"; + public static final String SearchBid = "Search Bid"; + public static final String ContentBid = "Content Bid"; + public static final String AdRotation = "Ad Rotation"; + + public static final String Account = "Account"; + public static final String SyncTime = "Sync Time"; + public static final String Name = "Name"; + + public static final String LastModifiedTime = "Modified Time"; + + // entity types + public static final String SemanticVersion = "Format Version"; + public static final String LocationTarget = "Location Target"; + public static final String RadiusTarget = "Radius Target"; + public static final String BusinessTarget = "Business Location Target"; + public static final String RadiusTargetId = "Radius Target Id"; + public static final String NegativeLocationTarget = "Negative Location Target"; + public static final String AgeTarget = "Age Target"; + public static final String GenderTarget = "Gender Target"; + public static final String DayTarget = "Day Target"; + public static final String HourTarget = "Hour Target"; + public static final String DeviceOsTarget = "DeviceOS Target"; + public static final String Radius = "Radius"; + public static final String Unit = "Unit"; + public static final String TargetAll = "Target All"; + + public static final String SiteLinksAdExtension = "Sitelink Ad Extension"; + public static final String LocationAdExtension = "Location Ad Extension"; + + public static final String CallAdExtension = "Call Ad Extension"; + public static final String ImageAdExtension = "Image Ad Extension"; + public static final String SocialNetworkAdExtension = "Social Network Ad Extension"; + + public static final String Version = "Version"; + + // Social network ad extension + // NOTE: The "Social Network" Bulk Upload/Download column maps to the SocialNetworkType attribute of SocialNetworkAdExtension in the MT + public static final String SocialNetworkType = "Social Network"; + public static final String CampaignSocialNetworkAdExtension = "Campaign Social Network Ad Extension"; + public static final String AdGroupSocialNetworkAdExtension = "AdGroup Social Network Ad Extension"; + + //Image ad extension + public static final String AltText = "Alternative Text"; + public static final String MediaIds = "Media Ids"; + public static final String CampaignImageAdExtension = "Campaign Image Ad Extension"; + public static final String AdGroupImageAdExtension = "Ad Group Image Ad Extension"; + + // Site link ad extensions + public static final String SiteLinkExtensionOrder = "Sitelink Extension Order"; + public static final String SiteLinkDisplayText = "Sitelink Extension Link Text"; + public static final String SiteLinkDestinationUrl = "Sitelink Extension Destination Url"; + public static final String SiteLinkDescription1 = "Sitelink Extension Description1"; + public static final String SiteLinkDescription2 = "Sitelink Extension Description2"; + + public static final String CampaignSiteLinksAdExtension = "Campaign Sitelink Ad Extension"; + public static final String AdGroupSiteLinksAdExtension = "AdGroup Sitelink Ad Extension"; + + // location ad extensions + public static final String AddressLine1 = "Address Line 1"; + public static final String AddressLine2 = "Address Line 2"; + public static final String PostalCode = "Postal Code"; + public static final String City = "City"; + public static final String StateOrProvince = "State Or Province Code"; + public static final String ProvinceName = "Province Name"; + + public static final String GeoCodeStatus = "Geo Code Status"; + public static final String IconMediaId = "Map Icon"; + public static final String ImageMediaId = "Business Icon"; + public static final String CampaignLocationAdExtension = "Campaign Location Ad Extension"; + + // Call ad extensions + public static final String CountryCode = "Country Code"; + public static final String IsCallOnly = "Call Only"; + public static final String CampaignCallAdExtension = "Campaign Call Ad Extension"; + public static final String IsCallTrackingEnabled = "Call Tracking Enabled"; + public static final String RequireTollFreeTrackingNumber = "Toll Free"; + + // Editorial rejection reasons + public static final String PublisherCountries = "Publisher Countries"; + + // Product Target + public static final String ProductTargetType = "Ad Group Product Target"; + + public static final String ProductConditionColumnPrefix = "Product Condition "; + public static final String ProductCondition1 = "Product Condition 1"; + public static final String ProductCondition2 = "Product Condition 2"; + public static final String ProductCondition3 = "Product Condition 3"; + public static final String ProductValueColumnPrefix = "Product Value "; + public static final String ProductValue1 = "Product Value 1"; + public static final String ProductValue2 = "Product Value 2"; + public static final String ProductValue3 = "Product Value 3"; + + // BTE types + public static final String KeywordFirstPageBidType = "Keyword First Page Bid"; + public static final String KeywordMainLineBidType = "Keyword Main Line Bid"; + public static final String KeywordBestPositionBidType = "Keyword Best Position Bid"; + + // Product ad extension + + public static final String ProductCondition4 = "Product Condition 4"; + public static final String ProductCondition5 = "Product Condition 5"; + public static final String ProductCondition6 = "Product Condition 6"; + public static final String ProductCondition7 = "Product Condition 7"; + public static final String ProductCondition8 = "Product Condition 8"; + public static final String ProductValue4 = "Product Value 4"; + public static final String ProductValue5 = "Product Value 5"; + public static final String ProductValue6 = "Product Value 6"; + public static final String ProductValue7 = "Product Value 7"; + public static final String ProductValue8 = "Product Value 8"; + public static final String BingMerchantCenterId = "Store Id"; + public static final String BingMerchantCenterName = "Store Name"; + + // App Ad Extension + public static final String AppAdExtension = "App Ad Extension"; + public static final String AppPlatform = "App Platform"; + public static final String AppStoreId = "App Id"; + public static final String CampaignAppAdExtension = "Campaign App Ad Extension"; + public static final String AdGroupAppAdExtension = "Ad Group App Ad Extension"; + public static final String IsTrackingEnabled = "Tracking Enabled"; + + // misc stuff + public static final String EntityActiveStatus = "Active"; + public static final String EntityDeletedStatus = "Deleted"; + public static final char IntraFieldSeparator = ';'; + public static final String Active = "Active"; + public static final String Latitude = "Latitude"; + public static final String Longitude = "Longitude"; + + // BI + public static final String Spend = "Spend"; + public static final String Impressions = "Impressions"; + public static final String Clicks = "Clicks"; + public static final String CTR = "CTR"; + public static final String AvgCPC = "Avg CPC"; + public static final String AvgCPM = "Avg CPM"; + public static final String AvgPosition = "Avg position"; + public static final String Conversions = "Conversions"; + public static final String CPA = "CPA"; + + public static final String QualityScore = "Quality Score"; + public static final String KeywordRelevance = "Keyword Relevance"; + public static final String LandingPageRelevance = "Landing Page Relevance"; + public static final String LandingPageUserExperience = "Landing Page User Experience"; + + // DayTime target + public static final String DayTimeTarget = "DayTime Target"; + public static final String FromHour = "From Hour"; + public static final String ToHour = "To Hour"; + public static final String FromMinute = "From Minute"; + public static final String ToMinute = "To Minute"; + + // Shared Entities + public static final String NegativeKeywordList = "Negative Keyword List"; + public static final String CampaignNegativeKeywordList = "Campaign Negative Keyword List Association"; + public static final String ListNegativeKeyword = "Shared Negative Keyword"; + + + + // Subtypes + public static final String MetroAreaSubType = "Metro Area"; + public static final String CountrySubType = "Country"; + public static final String StateSubType = "State"; + public static final String CitySubType = "City"; + public static final String PostalCodeSubType = "Postal Code"; + + public static final String DeleteValue = "delete_value"; + + //Names for attributes + public static final String OrWithExisting = "orWithExisting"; + public static final String ReadOnly = "readOnly"; + public static final String CustomParseFunction = "customParseFunction"; + + public static final String Search = "Search"; + public static final String Content = "Content"; + + public static final String On = "On"; + public static final String Off = "Off"; + + public static final Object All = "All"; + + public static final String Deleted = "Deleted"; + + public static final String SiteLink = "siteLink"; + + public static final String SITE_LINKS_AD_EXTENSION = "SiteLinksAdExtension"; + public static final String SITE_LINKS_AD_EXTENSION_SITE_LINKS = "SiteLinksAdExtension.SiteLinks"; + + // Bing Shopping Campaigns + public static final String IsExcluded = "Is Excluded"; + public static final String ParentAdGroupCriterionId = "Parent Criterion Id"; + public static final String CampaignType = "Campaign Type"; + public static final String CampaignPriority = "Priority"; + + //Upgrade URL + public static final String FinalUrl = "Final Url"; + public static final String FinalMobileUrl = "Mobile Final Url"; + public static final String TrackingTemplate = "Tracking Template"; + public static final String CustomParameter = "Custom Parameter"; + + static { + Map m = new HashMap(); + + Field[] fields = StringTable.class.getDeclaredFields(); + for (Field f : fields) { + if (Modifier.isStatic(f.getModifiers()) && !f.getName().equals("variableNameToHeader")) { + Object value; + try { + value = f.get(StringTable.class); + if (String.class.isInstance(value)) { + m.put(f.getName(), (String) value); + } + } catch (IllegalArgumentException e) { + } catch (IllegalAccessException e) { + } + + } + } + + variableNameToHeader = Collections.unmodifiableMap(m); + } + + public static String transformVariableNameToHeader(String variableName) { + return variableNameToHeader.get(variableName); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/TryResult.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/TryResult.java new file mode 100644 index 0000000000..40e3fd95ce --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/TryResult.java @@ -0,0 +1,28 @@ +package com.microsoft.bingads.v10.internal.bulk; + +public class TryResult { + + private boolean successful; + private T result; + + public TryResult(boolean successful, T result) { + this.successful = successful; + this.result = result; + } + + public boolean isSuccessful() { + return successful; + } + + public void setSuccessful(boolean successful) { + this.successful = successful; + } + + public T getResult() { + return result; + } + + public void setResult(T result) { + this.result = result; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/UploadStatusProvider.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/UploadStatusProvider.java new file mode 100644 index 0000000000..98f67860d6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/UploadStatusProvider.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse; +import com.microsoft.bingads.v10.bulk.IBulkService; +import com.microsoft.bingads.v10.bulk.UploadStatus; +import com.microsoft.bingads.internal.ResultFuture; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; + +public class UploadStatusProvider implements BulkOperationStatusProvider { + + private final String requestId; + + public UploadStatusProvider(String requestId) { + this.requestId = requestId; + } + + @Override + public Future> getCurrentStatus(ServiceClient serviceClient, AsyncCallback> callback) { + GetBulkUploadStatusRequest request = new GetBulkUploadStatusRequest(); + request.setRequestId(this.requestId); + + final ResultFuture> resultFuture = new ResultFuture>(callback); + + serviceClient.getService().getBulkUploadStatusAsync(request, new AsyncHandler() { + + @Override + public void handleResponse(Response result) { + + try { + GetBulkUploadStatusResponse statusResponse = result.get(); + + BulkOperationStatus status = new BulkOperationStatus( + UploadStatus.fromValue(statusResponse.getRequestStatus()), + statusResponse.getPercentComplete(), + statusResponse.getResultFileUrl(), + null, + statusResponse.getErrors() != null ? statusResponse.getErrors().getOperationErrors() : null + ); + + resultFuture.setResult(status); + } catch (InterruptedException e) { + resultFuture.setException(e); + } catch (ExecutionException e) { + resultFuture.setException(e); + } + } + }); + + return resultFuture; + } + + @Override + public boolean isFinalStatus(BulkOperationStatus currentStatus) { + return currentStatus.getStatus() == UploadStatus.COMPLETED || + currentStatus.getStatus() == UploadStatus.COMPLETED_WITH_ERRORS || + currentStatus.getStatus() == UploadStatus.FAILED || + currentStatus.getStatus() == UploadStatus.EXPIRED || + currentStatus.getStatus() == UploadStatus.ABORTED; + } + + @Override + public boolean isSuccessStatus(UploadStatus status) { + return status == UploadStatus.COMPLETED || status == UploadStatus.COMPLETED_WITH_ERRORS; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdExtensionIdentifier.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdExtensionIdentifier.java new file mode 100644 index 0000000000..fbf4ccb35b --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdExtensionIdentifier.java @@ -0,0 +1,156 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +public abstract class BulkAdExtensionIdentifier extends BulkEntityIdentifier { + + private Long accountId; + + private Long adExtensionId; + + private AdExtensionStatus status; + + private Integer version; + + private static List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Id, + new Function() { + @Override + public Long apply(BulkAdExtensionIdentifier c) { + return c.getAdExtensionId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionIdentifier c) { + c.setAdExtensionId(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(BulkAdExtensionIdentifier c) { + return c.getAccountId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionIdentifier c) { + c.setAccountId(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(BulkAdExtensionIdentifier c) { + return c.getStatus() != null ? c.getStatus().value() : null; + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionIdentifier c) { + c.setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public AdExtensionStatus apply(String value) { + return AdExtensionStatus.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.Version, + new Function() { + @Override + public Integer apply(BulkAdExtensionIdentifier c) { + return c.getVersion(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdExtensionIdentifier c) { + c.setVersion(StringExtensions.parseOptionalInteger(v)); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + public Long getAccountId() { + return accountId; + } + + public void setAccountId(Long accountId) { + this.accountId = accountId; + } + + public Long getAdExtensionId() { + return adExtensionId; + } + + public void setAdExtensionId(Long adExtensionId) { + this.adExtensionId = adExtensionId; + } + + public AdExtensionStatus getStatus() { + return status; + } + + public void setStatus(AdExtensionStatus status) { + this.status = status; + } + + public Integer getVersion() { + return version; + } + + public void setVersion(Integer version) { + this.version = version; + } + + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public boolean isDeleteRow() { + return AdExtensionStatus.DELETED.equals(status); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdGroupNegativeSitesIdentifier.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdGroupNegativeSitesIdentifier.java new file mode 100644 index 0000000000..412c6e8cf1 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkAdGroupNegativeSitesIdentifier.java @@ -0,0 +1,118 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSites; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import static com.microsoft.bingads.internal.utilities.Comparer.compareNullable; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Reserved for internal use. + */ +public class BulkAdGroupNegativeSitesIdentifier extends BulkNegativeSiteIdentifier { + + /** + * Reserved for internal use. + */ + public long getAdGroupId() { + return this.getEntityId(); + } + + public void setAdGroupId(long value) { + this.setEntityId(value); + } + + /** + * Reserved for internal use. + */ + public String getAdGroupName() { + return this.getEntityName(); + } + + public void setAdGroupName(String value) { + this.setEntityName(value); + } + + private String campaignName;// { get; set; } + + public String getCampaignName() { + return campaignName; + } + + public void setCampaignName(String campaignName) { + this.campaignName = campaignName; + } + + private static List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Campaign, + new Function() { + @Override + public String apply(BulkAdGroupNegativeSitesIdentifier c) { + return c.getCampaignName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkAdGroupNegativeSitesIdentifier c) { + c.setCampaignName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void readFromRowValues(RowValues values) { + super.readFromRowValues(values); + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + super.writeToRowValues(values, excludeReadonlyData); + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public MultiRecordBulkEntity createEntityWithThisIdentifier() { + return new BulkAdGroupNegativeSites(this); + } + + @Override + protected String getParentColumnName() { + return StringTable.AdGroup; + } + + @Override + public boolean equals(Object other) { + if (!(other instanceof BulkAdGroupNegativeSitesIdentifier)) { + return false; + } + + BulkAdGroupNegativeSitesIdentifier otherIdentifier = (BulkAdGroupNegativeSitesIdentifier) other; + + boolean isNameNotEmpty = getAdGroupName() != null && + getAdGroupName().length() != 0 && + getCampaignName() != null && + getCampaignName().length() != 0; + + return compareNullable(getAdGroupId(), otherIdentifier.getAdGroupId()) || + ( + isNameNotEmpty && + compareNullable(getAdGroupName(), otherIdentifier.getAdGroupName()) && + compareNullable(getCampaignName(), otherIdentifier.getCampaignName()) + ); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkCampaignNegativeSitesIdentifier.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkCampaignNegativeSitesIdentifier.java new file mode 100644 index 0000000000..b2ad199fb6 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkCampaignNegativeSitesIdentifier.java @@ -0,0 +1,61 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSites; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import static com.microsoft.bingads.internal.utilities.Comparer.compareNullable; + +/** + * Reserved for internal use. + */ +public class BulkCampaignNegativeSitesIdentifier extends BulkNegativeSiteIdentifier { + + /** + * Reserved for internal use. + */ + public long getCampaignId() { + return this.getEntityId(); + } + + public void setCampaignId(long value) { + this.setEntityId(value); + } + + /** + * Reserved for internal use. + */ + public String getCampaignName() { + return this.getEntityName(); + } + + public void setCampaignName(String value) { + this.setEntityName(value); + } + + @Override + public MultiRecordBulkEntity createEntityWithThisIdentifier() { + return new BulkCampaignNegativeSites(this); + } + + @Override + protected String getParentColumnName() { + return StringTable.Campaign; + } + + @Override + public boolean equals(Object other) { + if (!(other instanceof BulkCampaignNegativeSitesIdentifier)) { + return false; + } + + BulkCampaignNegativeSitesIdentifier otherIdentifier = (BulkCampaignNegativeSitesIdentifier) other; + + boolean isNameNotEmpty = getCampaignName() != null && + getCampaignName().length() != 0; + + return compareNullable(getCampaignId(), otherIdentifier.getCampaignId()) || + ( + isNameNotEmpty && + compareNullable(getCampaignName(), otherIdentifier.getCampaignName()) + ); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkEntityIdentifier.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkEntityIdentifier.java new file mode 100644 index 0000000000..43d0847cce --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkEntityIdentifier.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkError; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.TryResult; +import java.io.IOException; + +public abstract class BulkEntityIdentifier extends BulkObject { + + @Override + public abstract boolean equals(Object other); + + public abstract boolean isDeleteRow(); + + public abstract MultiRecordBulkEntity createEntityWithThisIdentifier(); + + @Override + public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException { + rowWriter.writeObjectRow(this); + } + + @Override + public void readRelatedDataFromStream(BulkStreamReader reader) { + // If this is a delete all row, just skip any error rows after this delete row + if (isDeleteRow()) { + boolean hasMoreErrors = true; + + while (hasMoreErrors) { + TryResult errorResult = reader.tryRead(BulkError.class); + hasMoreErrors = (errorResult.isSuccessful()); + } + } + } + + @Override + public boolean canEncloseInMultilineEntity() { + return true; + } + + @Override + public MultiRecordBulkEntity encloseInMultilineEntity() { + return createEntityWithThisIdentifier(); + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkNegativeSiteIdentifier.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkNegativeSiteIdentifier.java new file mode 100644 index 0000000000..b11768d307 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkNegativeSiteIdentifier.java @@ -0,0 +1,136 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.DynamicColumnNameMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +/** + * Reserved for internal use. + */ +public abstract class BulkNegativeSiteIdentifier extends BulkEntityIdentifier { + + private Status status;// { get; set; } + + private long entityId;// { get; set; } + + private String entityName;// { get; set; } + + public Status getStatus() { + return status; + } + + public void setStatus(Status status) { + this.status = status; + } + + public long getEntityId() { + return entityId; + } + + public void setEntityId(long entityId) { + this.entityId = entityId; + } + + public String getEntityName() { + return entityName; + } + + public void setEntityName(String entityName) { + this.entityName = entityName; + } + + protected abstract String getParentColumnName(); + + private static List> MAPPINGS; + + static { + List> m = new ArrayList>(); + m.add(new SimpleBulkMapping(StringTable.Status, + new Function() { + @Override + public String apply(BulkNegativeSiteIdentifier c) { + return StringExtensions.toStatusBulkString(c.getStatus()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeSiteIdentifier c) { + c.setStatus(StringExtensions.parseOptional(v, new Function() { + @Override + public Status apply(String value) { + return Status.fromValue(value); + } + })); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.ParentId, + new Function() { + @Override + public String apply(BulkNegativeSiteIdentifier c) { + return c.getEntityId() == 0 ? null : Long.toString(c.getEntityId()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeSiteIdentifier c) { + c.setEntityId(StringExtensions.parse(v, new Function() { + @Override + public Long apply(String value) { + return value == null || value.isEmpty() ? 0L : Long.parseLong(value); + } + })); + } + } + )); + + m.add(new DynamicColumnNameMapping( + new Function() { + @Override + public String apply(BulkNegativeSiteIdentifier c) { + return c.getParentColumnName(); + } + }, + new Function() { + @Override + public String apply(BulkNegativeSiteIdentifier c) { + return c.getEntityName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkNegativeSiteIdentifier c) { + c.setEntityName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public boolean isDeleteRow() { + return status == Status.DELETED; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkProductAdExtensionIdentifier.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkProductAdExtensionIdentifier.java new file mode 100644 index 0000000000..de5d461d47 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/BulkProductAdExtensionIdentifier.java @@ -0,0 +1,81 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import static com.microsoft.bingads.internal.utilities.Comparer.compareNullable; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; + +public class BulkProductAdExtensionIdentifier extends BulkAdExtensionIdentifier { + + private String name;// { get; set; } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(Object other) { + if (!BulkProductAdExtensionIdentifier.class.isInstance(other)) { + return false; + } else { + BulkProductAdExtensionIdentifier otherIdentifier = BulkProductAdExtensionIdentifier.class.cast(other); + + return compareNullable(getAccountId(), otherIdentifier.getAccountId()) && + compareNullable(getAdExtensionId(), otherIdentifier.getAdExtensionId()); + } + } + + private static List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.Name, + new Function() { + @Override + public String apply(BulkProductAdExtensionIdentifier c) { + return c.getName(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, BulkProductAdExtensionIdentifier c) { + c.setName(v); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + @Override + public void readFromRowValues(RowValues values) { + super.readFromRowValues(values); + + MappingHelpers.convertToEntity(values, MAPPINGS, this); + } + + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + super.writeToRowValues(values, excludeReadonlyData); + + MappingHelpers.convertToValues(this, values, MAPPINGS); + } + + @Override + public MultiRecordBulkEntity createEntityWithThisIdentifier() { + //return new BulkProductAdExtension(this); + return null; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/MultiRecordBulkEntity.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/MultiRecordBulkEntity.java new file mode 100644 index 0000000000..b0c966bd5e --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/MultiRecordBulkEntity.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import java.util.Calendar; +import java.util.List; + +/** + * Bulk entity that has its data in multiple records within the bulk file. For + * example, {@link BulkSiteLinkAdExtension} is a multi record bulk entity which + * can contain one or more {@link BulkSiteLink} child entities, which are + * themselves derived from {@link SingleRecordBulkEntity}. For more information, + * see Bulk File Schema at + * {@link http://go.microsoft.com/fwlink/?LinkID=620269}. + * + */ +public abstract class MultiRecordBulkEntity extends BulkEntity { + + /** + * The child entities that this multi record entity contains. + */ + public abstract List getChildEntities(); + + /** + * @return True, if the object is fully constructed (contains all of its + * children), determined by the presence of delete all row, false otherwise + */ + public abstract boolean allChildrenPresent(); + + /** + * Indicates whether or not the Errors property of any of the ChildEntities + * is null or empty. + * + * @return true if one or more ChildEntities contains the details of one or + * more {@link BulkError} objects. + */ + @Override + public boolean hasErrors() { + for (BulkEntity child : getChildEntities()) { + if (child.hasErrors()) { + return true; + } + } + + return false; + } + + @Override + public Calendar getLastModifiedTime() { + return getChildEntities().size() > 0 ? getChildEntities().get(0).getLastModifiedTime() : null; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SingleRecordBulkEntity.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SingleRecordBulkEntity.java new file mode 100644 index 0000000000..d624a902ed --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SingleRecordBulkEntity.java @@ -0,0 +1,224 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.internal.UncheckedParseException; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.BulkError; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.internal.bulk.StringTable; +import com.microsoft.bingads.v10.internal.bulk.BulkMapping; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.BulkStreamReader; +import com.microsoft.bingads.v10.internal.bulk.MappingHelpers; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.v10.internal.bulk.SimpleBulkMapping; +import com.microsoft.bingads.v10.internal.bulk.TryResult; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.io.IOException; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.GregorianCalendar; +import java.util.List; +import java.util.TimeZone; + +/** + * Bulk entity that has its data in a single file row (campaigns, AdGroups, keywords, individual site links, individual target bids etc.). + */ +public abstract class SingleRecordBulkEntity extends BulkEntity { + + private String clientId; + + private Calendar lastModifiedTime; + + private List errors; + + /** + * Mappings shared by all single line entities (ClientId) + */ + private static final List> MAPPINGS; + + static { + List> m = new ArrayList>(); + + m.add(new SimpleBulkMapping(StringTable.ClientId, + new Function() { + @Override + public String apply(SingleRecordBulkEntity c) { + return c.getClientId(); + } + }, + new BiConsumer() { + @Override + public void accept(String v, SingleRecordBulkEntity c) { + c.setClientId(v); + } + } + )); + + m.add(new SimpleBulkMapping(StringTable.LastModifiedTime, + new Function() { + @Override + public String apply(SingleRecordBulkEntity t) { + if (t.getLastModifiedTime() == null) { + return null; + } + + SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + return format.format(t.getLastModifiedTime().getTime()); + } + }, + new BiConsumer() { + @Override + public void accept(String v, SingleRecordBulkEntity c) { + c.lastModifiedTime = StringExtensions.parseOptional(v, new Function() { + @Override + public Calendar apply(String t) { + Calendar c = new GregorianCalendar(); + try { + SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + + c.setTime(format.parse(t)); + } catch (ParseException ex) { + throw new UncheckedParseException(ex); + } + + return c; + } + }); + } + } + )); + + MAPPINGS = Collections.unmodifiableList(m); + } + + /** + * Reads common mappings and calls abstract method to read entity-specific mappings. This is done through abstract method to avoid having to do base.ReadFromRowValues in each child. + * + * @param values CSV row values + */ + @Override + public void readFromRowValues(RowValues values) { + MappingHelpers.convertToEntity(values, MAPPINGS, this); + + this.processMappingsFromRowValues(values); + } + + /** + * Process specific entity mappings from CSV values. Must be implemented by each entity. + * + * @param values Set of values and mappings corresponding to one row/single line entity + */ + public abstract void processMappingsFromRowValues(RowValues values); + + /** + * Writes common mappings and calls abstract method to read entity-specific mappings. This is done through abstract method to avoid having to do base.WriteToRowValues in each child. + * + * @param values CSV row values + * @param excludeReadonlyData indicates whether readonly data should be written (such as errors, performance data etc.) + */ + @Override + public void writeToRowValues(RowValues values, boolean excludeReadonlyData) { + MappingHelpers.convertToValues(this, values, MAPPINGS); + + this.processMappingsToRowValues(values, excludeReadonlyData); + } + + /** + * Process specific entity mappings to CSV values. Must be implemented by each entity + * + * @param values Row values + * @param excludeReadonlyData indicates whether readonly data should be written (such as errors, performance data etc.) + */ + public abstract void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData); + + @Override + public void readRelatedDataFromStream(BulkStreamReader reader) { + this.readAdditionalData(reader); + this.readErrors(reader); + } + + public void readAdditionalData(BulkStreamReader reader) { + } + + /** + * Reads errors immediately after the current row + * + * @param reader Reader object, allowing to read consecutive bulk rows + * + * No checks are made for the error type. It's assumed that an entity row can only be followed by errors of the same type + */ + private void readErrors(BulkStreamReader reader) { + List errors = new ArrayList(); + + TryResult errorResult = reader.tryRead(BulkError.class); + + while (errorResult.isSuccessful()) { + BulkError error = errorResult.getResult(); + + error.setEntity(this); + + errors.add(error); + errorResult = reader.tryRead(BulkError.class); + } + + this.errors = errors; + } + + @Override + public boolean hasErrors() { + return this.errors != null && this.errors.size() > 0; + } + + /** + * Writes entity data to bulk file + * + * @param rowWriter Writer object, allowing to write consecutive bulk rows + * @param excludeReadonlyData indicates whether readonly data should be written (such as errors, performance data etc.) + * @throws IOException + */ + @Override + public void writeToStream(BulkObjectWriter rowWriter, boolean excludeReadonlyData) throws IOException { + rowWriter.writeObjectRow(this, excludeReadonlyData); + + if (!excludeReadonlyData) { + writeErrors(rowWriter); + + writeAdditionalData(rowWriter); + } + } + + public void writeAdditionalData(BulkObjectWriter writer) throws IOException { + } + + private void writeErrors(BulkObjectWriter writer) throws IOException { + if (hasErrors()) { + for (BulkError error : getErrors()) { + writer.writeObjectRow(error); + } + } + } + + @Override + public Calendar getLastModifiedTime() { + return lastModifiedTime; + } + + public String getClientId() { + return clientId; + } + + public void setClientId(String clientId) { + this.clientId = clientId; + } + + public List getErrors() { + return errors; + } +} diff --git a/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SiteLinkAdExtensionIdentifier.java b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SiteLinkAdExtensionIdentifier.java new file mode 100644 index 0000000000..6fbc0fc4d7 --- /dev/null +++ b/src/main/java/com/microsoft/bingads/v10/internal/bulk/entities/SiteLinkAdExtensionIdentifier.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.v10.internal.bulk.entities; + +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLinkAdExtension; +import static com.microsoft.bingads.internal.utilities.Comparer.compareNullable; + +public class SiteLinkAdExtensionIdentifier extends BulkAdExtensionIdentifier { + + @Override + public boolean equals(Object other) { + if (!(other instanceof SiteLinkAdExtensionIdentifier)) { + return false; + } + + SiteLinkAdExtensionIdentifier otherSiteLinkIdentity = (SiteLinkAdExtensionIdentifier)other; + + return compareNullable(this.getAccountId(), otherSiteLinkIdentity.getAccountId()) && + compareNullable(this.getAdExtensionId(), otherSiteLinkIdentity.getAdExtensionId()); + } + + @Override + public MultiRecordBulkEntity createEntityWithThisIdentifier() { + return new BulkSiteLinkAdExtension(this); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ArrayOfProductConditionComparer.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ArrayOfProductConditionComparer.java new file mode 100644 index 0000000000..98ba7f72fc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ArrayOfProductConditionComparer.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfProductCondition; +import com.microsoft.bingads.v10.campaignmanagement.ProductCondition; + +public class ArrayOfProductConditionComparer implements EqualityComparerWithDescription { + + @Override + public Boolean equals(ArrayOfProductCondition x, ArrayOfProductCondition y) { + if (x.getProductConditions().size() != y.getProductConditions().size()) { + return false; + } + + for (Integer i = 0; i < x.getProductConditions().size(); i++) { + if ((y.getProductConditions().get(i).getAttribute() == null ? x.getProductConditions().get(i).getAttribute() != null : !y.getProductConditions().get(i).getAttribute().equals(x.getProductConditions().get(i).getAttribute())) || + (y.getProductConditions().get(i).getOperand() == null ? x.getProductConditions().get(i).getOperand() != null : !y.getProductConditions().get(i).getOperand().equals(x.getProductConditions().get(i).getOperand()))) { + return false; + } + } + + return true; + } + + @Override + public String getDescription(ArrayOfProductCondition obj) { + String result = ""; + + for (ProductCondition pc : obj.getProductConditions()) { + result += String.format("{attribute: %s, operand: %s}, ", pc.getAttribute(), pc.getOperand()); + } + + return result; + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/BidComparer.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/BidComparer.java new file mode 100644 index 0000000000..d427ee7d25 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/BidComparer.java @@ -0,0 +1,20 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import com.microsoft.bingads.v10.campaignmanagement.Bid; + +public class BidComparer implements EqualityComparerWithDescription { + + @Override + public Boolean equals(Bid x, Bid y) { + if (x.getAmount() == null && y.getAmount() != null) { + return false; + } + + return x.getAmount().equals(y.getAmount()); + } + + @Override + public String getDescription(Bid obj) { + return String.format("Amount: %d", obj.getAmount()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/BulkEntityTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/BulkEntityTest.java new file mode 100644 index 0000000000..8bdecdf08a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/BulkEntityTest.java @@ -0,0 +1,96 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.HashMap; +import java.util.Map; +import static org.hamcrest.CoreMatchers.is; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertThat; +import static org.junit.Assert.fail; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; + +@RunWith(Parameterized.class) +public abstract class BulkEntityTest { + + @Parameter + public String datum; + + protected abstract void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc); + + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc, Supplier creator) { + Map rowValues = new HashMap(); + rowValues.put(header, input); + + this.testReadProperty(rowValues, expectedResult, actualValueFunc, creator, null); + } + + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc, Supplier creator, EqualityComparerWithDescription comparer) { + Map rowValues = new HashMap(); + rowValues.put(header, input); + + this.testReadProperty(rowValues, expectedResult, actualValueFunc, creator, comparer); + } + + protected abstract void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc); + + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc, Supplier creator) { + testReadProperty(rowValues, expectedResult, actualValueFunc, creator, null); + } + + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc, Supplier creator, EqualityComparerWithDescription comparer) { + TEntity entity = creator.get(); + entity.readFromRowValues(new RowValues(rowValues)); + TProperty actualValue = actualValueFunc.apply(entity); + + if (comparer == null) { + assertThat(actualValue, is(expectedResult)); + } else { + if (expectedResult == null) { + assertNull(actualValue); + + return; + } else { + assertNotNull(actualValue); + } + + if (!comparer.equals(expectedResult, actualValue)) { + fail(String.format("Expected: %s, actual: %s", comparer.getDescription(expectedResult), comparer.getDescription(actualValue))); + } + } + } + + protected abstract void testWriteProperty(String header, String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc); + + protected void testWriteProperty(String header, String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc, Supplier creator) { + RowValues rowValues = this.getRowValues(propertyValue, setFunc, creator); + + assertEquals(expectedRowValue, rowValues.get(header)); + } + + private RowValues getRowValues(TProperty propertyValue, + BiConsumer setFunc, Supplier creator) { + TEntity entity = creator.get(); + + onEntityCreation(entity); + + setFunc.accept(entity, propertyValue); + + RowValues rowValues = new RowValues(); + + entity.writeToRowValues(rowValues, false); + + return rowValues; + } + + protected abstract void onEntityCreation(TEntity entity); +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/CompareArrayContents.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/CompareArrayContents.java new file mode 100644 index 0000000000..051cacc809 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/CompareArrayContents.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import org.hamcrest.Description; +import org.hamcrest.Factory; +import org.hamcrest.Matcher; +import org.hamcrest.TypeSafeMatcher; + +public class CompareArrayContents extends TypeSafeMatcher { + + List objs; + + private static Comparator UseEquals = new Comparator() { + + @Override + public int compare(Object o1, Object o2) { + return o1.equals(o2) ? 0 : -1; + } + }; + + public CompareArrayContents(Object[] objs) { + this.objs = Arrays.asList(objs); + Collections.sort(this.objs, UseEquals); + } + + @Override + public void describeTo(Description desc) { + desc.appendText("Two arrays contains different values. Should have contained: " + this.objs); + } + + @Override + protected boolean matchesSafely(Object[] inputs) { + if (inputs.length != this.objs.size()) { + return false; + } + + Arrays.sort(inputs, UseEquals); + + for (int i = 0; i < inputs.length; i++) { + if (UseEquals.compare(inputs[i], this.objs.get(i)) == 0) { + return false; + } + } + + return true; + } + + @Factory + public static Matcher equalInValue(Object[] objs) { + return new CompareArrayContents(objs); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/DateComparer.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/DateComparer.java new file mode 100644 index 0000000000..9fba077444 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/DateComparer.java @@ -0,0 +1,18 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import com.microsoft.bingads.v10.campaignmanagement.Date; + +public class DateComparer implements EqualityComparerWithDescription{ + + @Override + public Boolean equals(Date x, Date y) { + return x.getDay() == y.getDay() && + x.getMonth() == y.getMonth() && + x.getYear() == y.getYear(); + } + + @Override + public String getDescription(Date obj) { + return String.format("Year: %s, Month: %s, Day: %s", obj.getYear(), obj.getMonth(), obj.getDay()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/DeleteAllRowPosition.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/DeleteAllRowPosition.java new file mode 100644 index 0000000000..f5db337d67 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/DeleteAllRowPosition.java @@ -0,0 +1,8 @@ +package com.microsoft.bingads.v10.api.test.entities; + +public enum DeleteAllRowPosition { + + IN_THE_BEGINNING, + IN_THE_MIDDLE, + IN_THE_END; +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/EqualityComparerWithDescription.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/EqualityComparerWithDescription.java new file mode 100644 index 0000000000..a6571630db --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/EqualityComparerWithDescription.java @@ -0,0 +1,7 @@ +package com.microsoft.bingads.v10.api.test.entities; + +public interface EqualityComparerWithDescription { + Boolean equals(T x, T y); + + String getDescription(T obj); +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/FixedBidComparer.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/FixedBidComparer.java new file mode 100644 index 0000000000..a721b4d087 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/FixedBidComparer.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import com.microsoft.bingads.v10.campaignmanagement.FixedBid; + +public class FixedBidComparer implements EqualityComparerWithDescription { + + @Override + public Boolean equals(FixedBid x, FixedBid y) { + return x.getBid().getAmount().equals(y.getBid().getAmount()); + } + + @Override + public String getDescription(FixedBid obj) { + return String.format("Amount: %s", obj.getBid().getAmount()); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ObjectComparer.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ObjectComparer.java new file mode 100644 index 0000000000..54e83c2caa --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ObjectComparer.java @@ -0,0 +1,15 @@ +package com.microsoft.bingads.v10.api.test.entities; + +// TODO Consider how to seamlessly support Collection of object. +public class ObjectComparer implements EqualityComparerWithDescription { + + @Override + public Boolean equals(T x, T y) { + return Util.toJson(x).equals(Util.toJson(y)); + } + + @Override + public String getDescription(T object) { + return Util.toJson(object); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/PerformanceDataTestHelper.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/PerformanceDataTestHelper.java new file mode 100644 index 0000000000..72f23dc578 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/PerformanceDataTestHelper.java @@ -0,0 +1,43 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package com.microsoft.bingads.v10.api.test.entities; + +import static com.microsoft.bingads.v10.api.test.entities.RowValuesAssert.assertContains; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import java.util.HashMap; +import java.util.Map; + +public class PerformanceDataTestHelper { + + public static void testPerformanceDataReadWrite(T entity) { + Map perfData = createTestPerformanceData(); + + entity.readFromRowValues(new RowValues(perfData)); + + RowValues writtenValues = new RowValues(); + + entity.writeToRowValues(writtenValues, false); + + assertContains(perfData, writtenValues); + } + + private static Map createTestPerformanceData() { + Map perfData = new HashMap(); + + perfData.put("Clicks", "123"); + perfData.put("Spend", "45.67"); + perfData.put("Impressions", "456"); + perfData.put("CTR", "11.22"); + perfData.put("Avg CPC", "33.44"); + perfData.put("Avg CPM", "55.66"); + perfData.put("Avg position", "77.88"); + perfData.put("Conversions", "100"); + perfData.put("CPA", "3.4"); + + return perfData; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/QualityScoreDataTestHelper.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/QualityScoreDataTestHelper.java new file mode 100644 index 0000000000..d7627bf4ef --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/QualityScoreDataTestHelper.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import static com.microsoft.bingads.v10.api.test.entities.RowValuesAssert.assertContains; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import java.util.HashMap; +import java.util.Map; + +public class QualityScoreDataTestHelper { + + public static void testQualityScoreDataReadWrite(T entity) { + Map perfData = createTestQualityScoreData(); + + entity.readFromRowValues(new RowValues(perfData)); + + RowValues writtenValues = new RowValues(); + + entity.writeToRowValues(writtenValues, false); + + assertContains(perfData, writtenValues); + } + + private static Map createTestQualityScoreData() { + Map perfData = new HashMap(); + + perfData.put("Quality Score", "123"); + perfData.put("Keyword Relevance", "456"); + perfData.put("Landing Page Relevance", "789"); + perfData.put("Landing Page User Experience", "111"); + + return perfData; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/RowValuesAssert.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/RowValuesAssert.java new file mode 100644 index 0000000000..431781f9f1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/RowValuesAssert.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import com.microsoft.bingads.v10.internal.bulk.RowValues; +import java.util.Map; +import static org.junit.Assert.assertEquals; + +public class RowValuesAssert { + + public static void assertContains(Map expected, RowValues actual) { + for (String expectedKey : expected.keySet()) { + assertEquals(expected.get(expectedKey), actual.get(expectedKey)); + } + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/Util.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/Util.java new file mode 100644 index 0000000000..a7905214e5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/Util.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectWriter; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import org.junit.Assert; + +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; + +public class Util { + + public static synchronized ArrayList WriteAndReadBack(ArrayList entities) { + ArrayList results = new ArrayList(); + try { + String filePath = File.createTempFile("WriteAndReadBack", ".tmp").getAbsolutePath(); + BulkFileWriter writer = new BulkFileWriter(new File(filePath), DownloadFileType.CSV); + for (BulkEntity entity: entities) { + writer.writeEntity(entity); + } + writer.close(); + BulkFileReader reader = new BulkFileReader(new File(filePath), ResultFileType.FULL_DOWNLOAD, DownloadFileType.CSV); + for (BulkEntity entity: reader.getEntities()) { + results.add(entity); + } + reader.close(); + new File(filePath).delete(); + } catch (IOException ex) { + Assert.fail("Exceptions while writing or reading file"); + } + return results; + } + + public static String toJson(Object obj) { + ObjectWriter writer = new ObjectMapper().writer().withDefaultPrettyPrinter(); + String result = null; + try { + result = writer.writeValueAsString(obj); + } catch (JsonProcessingException e) { + Assert.fail("Cannot serialize the object to JSON"); + } + return result; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTest.java new file mode 100644 index 0000000000..61bee4b5f4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.account; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAccount; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Map; + +public abstract class BulkAccountTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkAccount entity) { + + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAccount get() { + return new BulkAccount(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAccount get() { + return new BulkAccount(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAccount get() { + return new BulkAccount(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTests.java new file mode 100644 index 0000000000..c7d40984bf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/BulkAccountTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.account; + +import com.microsoft.bingads.v10.api.test.entities.account.read.BulkAccountReadTests; +import junit.framework.TestCase; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkAccountReadTests.class}) + +public class BulkAccountTests extends TestCase { +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesCustomerIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesCustomerIdTest.java new file mode 100644 index 0000000000..c7fac74ba7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesCustomerIdTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.account.read; + +import com.microsoft.bingads.v10.api.test.entities.account.BulkAccountTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAccount; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAccountReadFromRowValuesCustomerIdTest extends BulkAccountTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkAccount c) { + return c.getCustomerId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..4e395c588f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.account.read; + +import com.microsoft.bingads.v10.api.test.entities.account.BulkAccountTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAccount; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAccountReadFromRowValuesIdTest extends BulkAccountTest { + + @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(BulkAccount c) { + return c.getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesSyncTimeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesSyncTimeTest.java new file mode 100644 index 0000000000..0bf05b07fb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadFromRowValuesSyncTimeTest.java @@ -0,0 +1,61 @@ +package com.microsoft.bingads.v10.api.test.entities.account.read; + +import com.microsoft.bingads.v10.api.test.entities.account.BulkAccountTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAccount; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAccountReadFromRowValuesSyncTimeTest extends BulkAccountTest { + + @Parameter(value = 1) + public Calendar expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() throws ParseException { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + + String timeString = "02/01/2014 12:34:30"; + + GregorianCalendar expetedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss"); + format.setTimeZone(TimeZone.getTimeZone("UTC")); + expetedSyncTime.setTime(format.parse(timeString)); + + return Arrays.asList(new Object[][]{ + {timeString, expetedSyncTime}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Sync Time", this.datum, this.expectedResult, new Function() { + @Override + public Calendar apply(BulkAccount c) { + return c.getSyncTime(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadTests.java new file mode 100644 index 0000000000..42be2e2c59 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/read/BulkAccountReadTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.account.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkAccountReadFromRowValuesCustomerIdTest.class, + BulkAccountReadFromRowValuesIdTest.class, + BulkAccountReadFromRowValuesSyncTimeTest.class}) +public class BulkAccountReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesCustomerIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesCustomerIdTest.java new file mode 100644 index 0000000000..8b5f2526cc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesCustomerIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.account.write; + +import com.microsoft.bingads.v10.api.test.entities.account.BulkAccountTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAccount; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAccountWriteToRowValuesCustomerIdTest extends BulkAccountTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkAccount c, Long v) { + c.setCustomerId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..c2cfe35bf3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.account.write; + +import com.microsoft.bingads.v10.api.test.entities.account.BulkAccountTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAccount; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAccountWriteToRowValuesIdTest extends BulkAccountTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkAccount c, Long v) { + c.setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesSyncTimeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesSyncTimeTest.java new file mode 100644 index 0000000000..8ca2701795 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/account/write/BulkAccountWriteToRowValuesSyncTimeTest.java @@ -0,0 +1,54 @@ +package com.microsoft.bingads.v10.api.test.entities.account.write; + +import com.microsoft.bingads.v10.api.test.entities.account.BulkAccountTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAccount; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAccountWriteToRowValuesSyncTimeTest extends BulkAccountTest { + + @Parameter(value = 1) + public Calendar propertyValue; + + @Parameters + public static Collection data() throws ParseException { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + + String timeString = "02/01/2014 12:34:30"; + + GregorianCalendar expetedSyncTime = new GregorianCalendar(); + SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy 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 testWrite() { + this.testWriteProperty("Sync Time", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAccount c, Calendar v) { + c.setSyncTime(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..b6863672a7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupAppAdExtension; +import org.junit.Test; + +public class BulkAdGroupAppAdExtensionReadWriteTest { + + @Test + public void bulkAdGroupAppAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkAdGroupAppAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionTest.java new file mode 100644 index 0000000000..2ab1071010 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAdGroupAppAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkAdGroupAppAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkAdGroupAppAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAdGroupAppAdExtension get() { + return new BulkAdGroupAppAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupAppAdExtension get() { + return new BulkAdGroupAppAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupAppAdExtension get() { + return new BulkAdGroupAppAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTest.java new file mode 100644 index 0000000000..ee9a2c0832 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkAppAdExtensionTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkAppAdExtension entity) { + entity.setAppAdExtension(new AppAdExtension()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAppAdExtension get() { + return new BulkAppAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAppAdExtension get() { + return new BulkAppAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAppAdExtension get() { + return new BulkAppAdExtension(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTests.java new file mode 100644 index 0000000000..44f59795c9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkAppAdExtensionTests.java @@ -0,0 +1,16 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read.BulkAppAdExtensionReadTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write.BulkAppAdExtensionWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAppAdExtensionReadTests.class, + BulkAppAdExtensionWriteTests.class +}) +public class BulkAppAdExtensionTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..d0d501eab9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAppAdExtension; +import org.junit.Test; + +public class BulkCampaignAppAdExtensionReadWriteTest { + + @Test + public void bulkCampaignImageAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkCampaignAppAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionTest.java new file mode 100644 index 0000000000..af373a7c03 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/BulkCampaignAppAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignAppAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkCampaignAppAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignAppAdExtension get() { + return new BulkCampaignAppAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignAppAdExtension get() { + return new BulkCampaignAppAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignAppAdExtension get() { + return new BulkCampaignAppAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesAdGroupNameTest.java new file mode 100644 index 0000000000..1fca2cf2d0 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesAdGroupNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAdGroupAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAdGroupAppAdExtensionReadFromRowValuesAdGroupNameTest extends BulkAdGroupAppAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Ad Group Name String", "Ad Group Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Group", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupAppAdExtension c) { + return c.getAdGroupName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..e6ec36cbc0 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAdGroupAppAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAdGroupAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAdGroupAppAdExtensionReadFromRowValuesCampaignNameTest extends BulkAdGroupAppAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupAppAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..a8e196f583 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAccountIdTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAppAdExtensionReadFromRowValuesAccountIdTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkAppAdExtension c) { + return c.getAccountId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppPlatformTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppPlatformTest.java new file mode 100644 index 0000000000..6d06d646e9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppPlatformTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionReadFromRowValuesAppPlatformTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"App platform string", "App platform string"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("App Platform", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getAppPlatform(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppStoreIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppStoreIdTest.java new file mode 100644 index 0000000000..b652d2282a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesAppStoreIdTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionReadFromRowValuesAppStoreIdTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"App store ID string", "App store ID string"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("App Id", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getAppStoreId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..a4358f16fd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDestinationUrlTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionReadFromRowValuesDestinationUrlTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Destination Url", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getDestinationUrl(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDevicePreferenceTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDevicePreferenceTest.java new file mode 100644 index 0000000000..da855699dd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDevicePreferenceTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionReadFromRowValuesDevicePreferenceTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"All", 0L}, + {"Mobile", 30001L}, + {"", 0L}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Device Preference", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getDevicePreference(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDisplayTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDisplayTextTest.java new file mode 100644 index 0000000000..bcaba9b8ab --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesDisplayTextTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionReadFromRowValuesDisplayTextTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Display Text string", "Display Text string"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Text", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getDisplayText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..5ebe59110a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesIdTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAppAdExtensionReadFromRowValuesIdTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkAppAdExtension c) { + return c.getAppAdExtension().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..b1b64dfe43 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesStatusTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionReadFromRowValuesStatusTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public AdExtensionStatus apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesVersionTest.java new file mode 100644 index 0000000000..ac7fca4818 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadFromRowValuesVersionTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAppAdExtensionReadFromRowValuesVersionTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Version", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkAppAdExtension c) { + return c.getAppAdExtension().getVersion(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadTests.java new file mode 100644 index 0000000000..a0070f4e33 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkAppAdExtensionReadTests.java @@ -0,0 +1,26 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses( + { + BulkAppAdExtensionReadFromRowValuesAccountIdTest.class, + BulkAppAdExtensionReadFromRowValuesDestinationUrlTest.class, + BulkAppAdExtensionReadFromRowValuesIdTest.class, + BulkAppAdExtensionReadFromRowValuesStatusTest.class, + BulkAppAdExtensionReadFromRowValuesVersionTest.class, + BulkAppAdExtensionReadFromRowValuesAppPlatformTest.class, + BulkAppAdExtensionReadFromRowValuesAppStoreIdTest.class, + BulkAppAdExtensionReadFromRowValuesDisplayTextTest.class, + BulkAppAdExtensionReadFromRowValuesDevicePreferenceTest.class, + BulkAdGroupAppAdExtensionReadFromRowValuesAdGroupNameTest.class, + BulkAdGroupAppAdExtensionReadFromRowValuesCampaignNameTest.class, + BulkCampaignAppAdExtensionReadFromRowValuesCampaignNameTest.class + } +) +public class BulkAppAdExtensionReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkCampaignAppAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkCampaignAppAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..567400e5c6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/read/BulkCampaignAppAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkCampaignAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignAppAdExtensionReadFromRowValuesCampaignNameTest extends BulkCampaignAppAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignAppAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..f845d71942 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAccountIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAppAdExtensionWriteFromRowValuesAccountIdTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, Long v) { + c.setAccountId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppPlatformTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppPlatformTest.java new file mode 100644 index 0000000000..3ec79d06c1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppPlatformTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionWriteFromRowValuesAppPlatformTest extends BulkAppAdExtensionTest { + + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"App Platform string", "App Platform string"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("App Platform", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, String v) { + c.getAppAdExtension().setAppPlatform(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppStoreIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppStoreIdTest.java new file mode 100644 index 0000000000..628d6e8927 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesAppStoreIdTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionWriteFromRowValuesAppStoreIdTest extends BulkAppAdExtensionTest { + + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"App Store Id string", "App Store Id string"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("App Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, String v) { + c.getAppAdExtension().setAppStoreId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..d4069f5cbb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDestinationUrlTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionWriteFromRowValuesDestinationUrlTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Destination Url", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, String v) { + c.getAppAdExtension().setDestinationUrl(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDevicePreferenceTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDevicePreferenceTest.java new file mode 100644 index 0000000000..05af6497da --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDevicePreferenceTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionWriteFromRowValuesDevicePreferenceTest extends BulkAppAdExtensionTest { + + @Parameterized.Parameter(value = 1) + public Long expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"All", 0L}, + {"Mobile", 30001L}, + {"All", null}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Device Preference", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, Long v) { + c.getAppAdExtension().setDevicePreference(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDisplayTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDisplayTextTest.java new file mode 100644 index 0000000000..4a5e61abf7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesDisplayTextTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionWriteFromRowValuesDisplayTextTest extends BulkAppAdExtensionTest { + + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Display Text string", "Display Text string"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Text", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, String v) { + c.getAppAdExtension().setDisplayText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesIdTest.java new file mode 100644 index 0000000000..1309bd6de9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAppAdExtensionWriteFromRowValuesIdTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, Long v) { + c.getAppAdExtension().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesStatusTest.java new file mode 100644 index 0000000000..a8af247e39 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteFromRowValuesStatusTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAppAdExtensionWriteFromRowValuesStatusTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, AdExtensionStatus v) { + c.getAppAdExtension().setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteTests.java new file mode 100644 index 0000000000..c073fe7f10 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteTests.java @@ -0,0 +1,22 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses( + { + BulkAppAdExtensionWriteFromRowValuesAccountIdTest.class, + BulkAppAdExtensionWriteFromRowValuesDestinationUrlTest.class, + BulkAppAdExtensionWriteFromRowValuesIdTest.class, + BulkAppAdExtensionWriteFromRowValuesStatusTest.class, + BulkAppAdExtensionWriteFromRowValuesAppPlatformTest.class, + BulkAppAdExtensionWriteFromRowValuesAppStoreIdTest.class, + BulkAppAdExtensionWriteFromRowValuesDisplayTextTest.class, + BulkAppAdExtensionWriteFromRowValuesDevicePreferenceTest.class + } +) +public class BulkAppAdExtensionWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteToRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteToRowValuesVersionTest.java new file mode 100644 index 0000000000..20671e6fd5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/app/write/BulkAppAdExtensionWriteToRowValuesVersionTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.app.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAppAdExtensionWriteToRowValuesVersionTest extends BulkAppAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Version", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAppAdExtension c, Integer v) { + c.getAppAdExtension().setVersion(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTest.java new file mode 100644 index 0000000000..2e0447f1d4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.CallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCallAdExtensionTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCallAdExtension entity) { + entity.setCallAdExtension(new CallAdExtension()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCallAdExtension get() { + return new BulkCallAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCallAdExtension get() { + return new BulkCallAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCallAdExtension get() { + return new BulkCallAdExtension(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTests.java new file mode 100644 index 0000000000..c5b5b96e57 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCallAdExtensionTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read.BulkCallAdExtensionReadTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write.BulkCallAdExtensionWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkCallAdExtensionReadTests.class, BulkCallAdExtensionWriteTests.class}) +public class BulkCallAdExtensionTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..acc4f69002 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignCallAdExtension; +import org.junit.Test; + +public class BulkCampaignCallAdExtensionReadWriteTest { + + @Test + public void bulkCampaignCallAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkCampaignCallAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionTest.java new file mode 100644 index 0000000000..c0bebdaf20 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/BulkCampaignCallAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignCallAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkCampaignCallAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignCallAdExtension get() { + return new BulkCampaignCallAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignCallAdExtension get() { + return new BulkCampaignCallAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignCallAdExtension get() { + return new BulkCampaignCallAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..0e2abd0f74 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesAccountIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionReadFromRowValuesAccountIdTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCallAdExtension c) { + return c.getAccountId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..fb72153174 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionReadFromRowValuesIdTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkCallAdExtension c) { + return c.getCallAdExtension().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallOnlyTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallOnlyTest.java new file mode 100644 index 0000000000..966f6c22fb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallOnlyTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionReadFromRowValuesIsCallOnlyTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Boolean expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"True", true}, + {"False", false}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Call Only", this.datum, this.expectedResult, new Function() { + @Override + public Boolean apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getIsCallOnly(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallTrackingEnabledTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallTrackingEnabledTest.java new file mode 100644 index 0000000000..9b73108267 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesIsCallTrackingEnabledTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionReadFromRowValuesIsCallTrackingEnabledTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Boolean expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"True", true}, + {"False", false}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Toll Free", this.datum, this.expectedResult, new Function() { + @Override + public Boolean apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getRequireTollFreeTrackingNumber(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesPhoneNumberTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesPhoneNumberTest.java new file mode 100644 index 0000000000..25a32c5c77 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesPhoneNumberTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCallAdExtensionReadFromRowValuesPhoneNumberTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Phone Number", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getPhoneNumber(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesRequireTollFreeTrackingNumberTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesRequireTollFreeTrackingNumberTest.java new file mode 100644 index 0000000000..0d74ff808a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesRequireTollFreeTrackingNumberTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionReadFromRowValuesRequireTollFreeTrackingNumberTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Boolean expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"True", true}, + {"False", false}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Call Only", this.datum, this.expectedResult, new Function() { + @Override + public Boolean apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getIsCallOnly(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..514132dc79 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesStatusTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCallAdExtensionReadFromRowValuesStatusTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public AdExtensionStatus apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesVersionTest.java new file mode 100644 index 0000000000..89ac38056d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadFromRowValuesVersionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionReadFromRowValuesVersionTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Version", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCallAdExtension c) { + return c.getCallAdExtension().getVersion(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadTests.java new file mode 100644 index 0000000000..a762121ee7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCallAdExtensionReadTests.java @@ -0,0 +1,23 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses( + { + BulkCallAdExtensionReadFromRowValuesAccountIdTest.class, + BulkCallAdExtensionReadFromRowValuesIdTest.class, + BulkCallAdExtensionReadFromRowValuesIsCallOnlyTest.class, + BulkCallAdExtensionReadFromRowValuesIsCallTrackingEnabledTest.class, + BulkCallAdExtensionReadFromRowValuesPhoneNumberTest.class, + BulkCallAdExtensionReadFromRowValuesRequireTollFreeTrackingNumberTest.class, + BulkCallAdExtensionReadFromRowValuesStatusTest.class, + BulkCallAdExtensionReadFromRowValuesVersionTest.class, + BulkCampaignCallAdExtensionReadFromRowValuesCampaignNameTest.class, + } +) +public class BulkCallAdExtensionReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCampaignCallAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCampaignCallAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..6c02952170 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/read/BulkCampaignCallAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.app.BulkCampaignAppAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAppAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignCallAdExtensionReadFromRowValuesCampaignNameTest extends BulkCampaignAppAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignAppAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..00761c9f65 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesAccountIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionWriteFromRowValuesAccountIdTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, Long v) { + c.setAccountId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIdTest.java new file mode 100644 index 0000000000..1aff8de097 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionWriteFromRowValuesIdTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, Long v) { + c.getCallAdExtension().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallOnlyTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallOnlyTest.java new file mode 100644 index 0000000000..cffd182320 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallOnlyTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionWriteFromRowValuesIsCallOnlyTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Boolean expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"True", true}, + {"False", false}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Call Only", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, Boolean v) { + c.getCallAdExtension().setIsCallOnly(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallTrackingEnabledTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallTrackingEnabledTest.java new file mode 100644 index 0000000000..8dae7f2152 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesIsCallTrackingEnabledTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionWriteFromRowValuesIsCallTrackingEnabledTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Boolean expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"True", true}, + {"False", false}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Toll Free", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, Boolean v) { + c.getCallAdExtension().setRequireTollFreeTrackingNumber(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesPhoneNumberTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesPhoneNumberTest.java new file mode 100644 index 0000000000..1e5efdaf16 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesPhoneNumberTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCallAdExtensionWriteFromRowValuesPhoneNumberTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Phone Number", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, String v) { + c.getCallAdExtension().setPhoneNumber(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesRequireTollFreeTrackingNumberTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesRequireTollFreeTrackingNumberTest.java new file mode 100644 index 0000000000..8dc1b07d90 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesRequireTollFreeTrackingNumberTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionWriteFromRowValuesRequireTollFreeTrackingNumberTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Boolean expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"True", true}, + {"False", false}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Call Only", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, Boolean v) { + c.getCallAdExtension().setIsCallOnly(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesStatusTest.java new file mode 100644 index 0000000000..d3893fb584 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesStatusTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCallAdExtensionWriteFromRowValuesStatusTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, AdExtensionStatus v) { + c.getCallAdExtension().setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesVersionTest.java new file mode 100644 index 0000000000..de32d55a1c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteFromRowValuesVersionTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCallAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCallAdExtensionWriteFromRowValuesVersionTest extends BulkCallAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Version", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCallAdExtension c, Integer v) { + c.getCallAdExtension().setVersion(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteTests.java new file mode 100644 index 0000000000..909b587870 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/call/write/BulkCallAdExtensionWriteTests.java @@ -0,0 +1,18 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.call.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCallAdExtensionWriteFromRowValuesAccountIdTest.class, + BulkCallAdExtensionWriteFromRowValuesIdTest.class, + BulkCallAdExtensionWriteFromRowValuesIsCallOnlyTest.class, + BulkCallAdExtensionWriteFromRowValuesIsCallTrackingEnabledTest.class, + BulkCallAdExtensionWriteFromRowValuesPhoneNumberTest.class, + BulkCallAdExtensionWriteFromRowValuesRequireTollFreeTrackingNumberTest.class, + BulkCallAdExtensionWriteFromRowValuesStatusTest.class}) +public class BulkCallAdExtensionWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..678174a998 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupImageAdExtension; +import org.junit.Test; + +public class BulkAdGroupImageAdExtensionReadWriteTest { + + @Test + public void bulkAdGroupImageAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkAdGroupImageAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionTest.java new file mode 100644 index 0000000000..09072ad029 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkAdGroupImageAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkAdGroupImageAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkAdGroupImageAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAdGroupImageAdExtension get() { + return new BulkAdGroupImageAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupImageAdExtension get() { + return new BulkAdGroupImageAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupImageAdExtension get() { + return new BulkAdGroupImageAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..9e9f12bdc1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignImageAdExtension; +import org.junit.Test; + +public class BulkCampaignImageAdExtensionReadWriteTest { + + @Test + public void bulkCampaignImageAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkCampaignImageAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionTest.java new file mode 100644 index 0000000000..1c5f852616 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkCampaignImageAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignImageAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkCampaignImageAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignImageAdExtension get() { + return new BulkCampaignImageAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignImageAdExtension get() { + return new BulkCampaignImageAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignImageAdExtension get() { + return new BulkCampaignImageAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTest.java new file mode 100644 index 0000000000..9e2c701d1c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.ImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkImageAdExtensionTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkImageAdExtension entity) { + entity.setImageAdExtension(new ImageAdExtension()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkImageAdExtension get() { + return new BulkImageAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkImageAdExtension get() { + return new BulkImageAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkImageAdExtension get() { + return new BulkImageAdExtension(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTests.java new file mode 100644 index 0000000000..6c12c333b9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/BulkImageAdExtensionTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read.BulkImageAdExtensionReadTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write.BulkImageAdExtensionWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkImageAdExtensionReadTests.class, BulkImageAdExtensionWriteTests.class}) +public class BulkImageAdExtensionTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesAdGroupNameTest.java new file mode 100644 index 0000000000..312b0781fc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesAdGroupNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkAdGroupImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAdGroupImageAdExtensionReadFromRowValuesAdGroupNameTest extends BulkAdGroupImageAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Ad Group Name String", "Ad Group Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Group", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupImageAdExtension c) { + return c.getAdGroupName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..f2806a2a27 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkAdGroupImageAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkAdGroupImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAdGroupImageAdExtensionReadFromRowValuesCampaignNameTest extends BulkAdGroupImageAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupImageAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkCampaignImageAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkCampaignImageAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..f8f8da52b3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkCampaignImageAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkCampaignImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignImageAdExtensionReadFromRowValuesCampaignNameTest extends BulkCampaignImageAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignImageAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..2a563413be --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAccountIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionReadFromRowValuesAccountIdTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkImageAdExtension c) { + return c.getAccountId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAlternateTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAlternateTextTest.java new file mode 100644 index 0000000000..4abf357bac --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesAlternateTextTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkImageAdExtensionReadFromRowValuesAlternateTextTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Alternative Text", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkImageAdExtension c) { + return c.getImageAdExtension().getAlternativeText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..e4e8f4f549 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesDestinationUrlTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkImageAdExtensionReadFromRowValuesDestinationUrlTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, ""} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Destination Url", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkImageAdExtension c) { + return c.getImageAdExtension().getDestinationUrl(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..ddb016d8b4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionReadFromRowValuesIdTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkImageAdExtension c) { + return c.getImageAdExtension().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesMediaIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesMediaIdTest.java new file mode 100644 index 0000000000..b99edb5e4c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesMediaIdTest.java @@ -0,0 +1,62 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOflong; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionReadFromRowValuesMediaIdTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public ArrayOflong expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + ArrayOflong array = new ArrayOflong(); + + array.getLongs().addAll(Arrays.asList(new Long[] { 123L, 456L })); + return Arrays.asList(new Object[][] { + {"", null}, + {"123;456", array}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Media Ids", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOflong apply(BulkImageAdExtension c) { + return c.getImageAdExtension().getImageMediaIds(); + } + + }, new Supplier() { + @Override + public BulkImageAdExtension get() { + return new BulkImageAdExtension(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..294607c13b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesStatusTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkImageAdExtensionReadFromRowValuesStatusTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public AdExtensionStatus apply(BulkImageAdExtension c) { + return c.getImageAdExtension().getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesVersionTest.java new file mode 100644 index 0000000000..1e6c6eaba6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadFromRowValuesVersionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionReadFromRowValuesVersionTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Version", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkImageAdExtension c) { + return c.getImageAdExtension().getVersion(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadTests.java new file mode 100644 index 0000000000..8c8371f752 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/read/BulkImageAdExtensionReadTests.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses( + { + BulkImageAdExtensionReadFromRowValuesAccountIdTest.class, + BulkImageAdExtensionReadFromRowValuesAlternateTextTest.class, + BulkImageAdExtensionReadFromRowValuesDestinationUrlTest.class, + BulkImageAdExtensionReadFromRowValuesIdTest.class, + BulkImageAdExtensionReadFromRowValuesMediaIdTest.class, + BulkImageAdExtensionReadFromRowValuesStatusTest.class, + BulkImageAdExtensionReadFromRowValuesVersionTest.class, + BulkAdGroupImageAdExtensionReadFromRowValuesAdGroupNameTest.class, + BulkAdGroupImageAdExtensionReadFromRowValuesCampaignNameTest.class, + BulkCampaignImageAdExtensionReadFromRowValuesCampaignNameTest.class, + } +) +public class BulkImageAdExtensionReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..619adcb276 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAccountIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionWriteFromRowValuesAccountIdTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkImageAdExtension c, Long v) { + c.setAccountId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAlternativeTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAlternativeTextTest.java new file mode 100644 index 0000000000..2ce2c645f7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesAlternativeTextTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkImageAdExtensionWriteFromRowValuesAlternativeTextTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Alternative Text", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkImageAdExtension c, String v) { + c.getImageAdExtension().setAlternativeText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..b320b730a4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesDestinationUrlTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkImageAdExtensionWriteFromRowValuesDestinationUrlTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Destination Url", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkImageAdExtension c, String v) { + c.getImageAdExtension().setDestinationUrl(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesIdTest.java new file mode 100644 index 0000000000..27188d3f18 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionWriteFromRowValuesIdTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkImageAdExtension c, Long v) { + c.getImageAdExtension().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesMediaIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesMediaIdTest.java new file mode 100644 index 0000000000..04c75d27a7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesMediaIdTest.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOflong; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionWriteFromRowValuesMediaIdTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public ArrayOflong expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + ArrayOflong array = new ArrayOflong(); + array.getLongs().addAll(Arrays.asList(new Long[] { 123L, 456L })); + + return Arrays.asList(new Object[][] { + {null, null}, + {"delete_value", new ArrayOflong()}, + {"123;456", array}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Media Ids", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkImageAdExtension c, ArrayOflong v) { + c.getImageAdExtension().setImageMediaIds(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesStatusTest.java new file mode 100644 index 0000000000..56fb10fc03 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteFromRowValuesStatusTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkImageAdExtensionWriteFromRowValuesStatusTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkImageAdExtension c, AdExtensionStatus v) { + c.getImageAdExtension().setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteTests.java new file mode 100644 index 0000000000..4c454ebefe --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteTests.java @@ -0,0 +1,16 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkImageAdExtensionWriteFromRowValuesAccountIdTest.class, + BulkImageAdExtensionWriteFromRowValuesAlternativeTextTest.class, + BulkImageAdExtensionWriteFromRowValuesDestinationUrlTest.class, + BulkImageAdExtensionWriteFromRowValuesIdTest.class, + BulkImageAdExtensionWriteFromRowValuesMediaIdTest.class, + BulkImageAdExtensionWriteFromRowValuesStatusTest.class}) +public class BulkImageAdExtensionWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteToRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteToRowValuesVersionTest.java new file mode 100644 index 0000000000..c60482f2d0 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/image/write/BulkImageAdExtensionWriteToRowValuesVersionTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.image.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkImageAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkImageAdExtensionWriteToRowValuesVersionTest extends BulkImageAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Version", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkImageAdExtension c, Integer v) { + c.getImageAdExtension().setVersion(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..7086b7097a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationAdExtension; +import org.junit.Test; + +public class BulkCampaignLocationAdExtensionReadWriteTest { + + @Test + public void bulkCampaignLocationAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkCampaignLocationAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionTest.java new file mode 100644 index 0000000000..d216ee559c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkCampaignLocationAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignLocationAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkCampaignLocationAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignLocationAdExtension get() { + return new BulkCampaignLocationAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignLocationAdExtension get() { + return new BulkCampaignLocationAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignLocationAdExtension get() { + return new BulkCampaignLocationAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTest.java new file mode 100644 index 0000000000..2d28f5dd00 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTest.java @@ -0,0 +1,54 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.Address; +import com.microsoft.bingads.v10.campaignmanagement.LocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkLocationAdExtensionTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkLocationAdExtension entity) { + LocationAdExtension extension = new LocationAdExtension(); + extension.setAddress(new Address()); + entity.setLocationAdExtension(extension); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkLocationAdExtension get() { + return new BulkLocationAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkLocationAdExtension get() { + return new BulkLocationAdExtension(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkLocationAdExtension get() { + return new BulkLocationAdExtension(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTests.java new file mode 100644 index 0000000000..ca90526ab3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/BulkLocationAdExtensionTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read.BulkLocationAdExtensionReadTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write.BulkLocationAdExtensionWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkLocationAdExtensionReadTests.class, BulkLocationAdExtensionWriteTests.class}) +public class BulkLocationAdExtensionTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkCampaignLocationAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkCampaignLocationAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..e98c6795a4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkCampaignLocationAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkCampaignLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignLocationAdExtensionReadFromRowValuesCampaignNameTest extends BulkCampaignLocationAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignLocationAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..c1503f3e33 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAccountIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionReadFromRowValuesAccountIdTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkLocationAdExtension c) { + return c.getAccountId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine1Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine1Test.java new file mode 100644 index 0000000000..6c109e4580 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine1Test.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesAddressLine1Test extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Address Line 1", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getAddress().getStreetAddress(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine2Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine2Test.java new file mode 100644 index 0000000000..bd80796047 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesAddressLine2Test.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesAddressLine2Test extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Address Line 2", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getAddress().getStreetAddress2(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesBusinessNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesBusinessNameTest.java new file mode 100644 index 0000000000..76be54465b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesBusinessNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesBusinessNameTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Business Name", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getCompanyName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCityTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCityTest.java new file mode 100644 index 0000000000..40b74c4006 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCityTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesCityTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testRead() { + this.testReadProperty("City", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getAddress().getCityName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCountryCodeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCountryCodeTest.java new file mode 100644 index 0000000000..f9da5daaae --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesCountryCodeTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesCountryCodeTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Country Code", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getAddress().getCountryCode(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesGeoCodeStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesGeoCodeStatusTest.java new file mode 100644 index 0000000000..4d92a5a470 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesGeoCodeStatusTest.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.BusinessGeoCodeStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionReadFromRowValuesGeoCodeStatusTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public BusinessGeoCodeStatus expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Pending", BusinessGeoCodeStatus.PENDING}, + {"Complete", BusinessGeoCodeStatus.COMPLETE}, + {"Invalid", BusinessGeoCodeStatus.INVALID}, + {"Failed", BusinessGeoCodeStatus.FAILED}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Geo Code Status", this.datum, this.expectedResult, new Function() { + @Override + public BusinessGeoCodeStatus apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getGeoCodeStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIconMediaIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIconMediaIdTest.java new file mode 100644 index 0000000000..8c16a7b622 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIconMediaIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionReadFromRowValuesIconMediaIdTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Map Icon", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getIconMediaId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..e1ba6be816 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionReadFromRowValuesIdTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPhoneNumberTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPhoneNumberTest.java new file mode 100644 index 0000000000..6d94770a1c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPhoneNumberTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesPhoneNumberTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, ""} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Phone Number", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getPhoneNumber(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPostalCodeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPostalCodeTest.java new file mode 100644 index 0000000000..feef3db541 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesPostalCodeTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesPostalCodeTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Postal Code", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getAddress().getPostalCode(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceCodeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceCodeTest.java new file mode 100644 index 0000000000..40ea0b692a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceCodeTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesProvinceCodeTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testRead() { + this.testReadProperty("State Or Province Code", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getAddress().getProvinceCode(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceNameTest.java new file mode 100644 index 0000000000..79924080cf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesProvinceNameTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesProvinceNameTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Province Name", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getAddress().getProvinceName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..19632cf1a8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesStatusTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionReadFromRowValuesStatusTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public AdExtensionStatus apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesVersionTest.java new file mode 100644 index 0000000000..b9dd17e331 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadFromRowValuesVersionTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionReadFromRowValuesVersionTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Version", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkLocationAdExtension c) { + return c.getLocationAdExtension().getVersion(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadTests.java new file mode 100644 index 0000000000..40f943b545 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/read/BulkLocationAdExtensionReadTests.java @@ -0,0 +1,30 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses( + { + BulkLocationAdExtensionReadFromRowValuesAccountIdTest.class, + BulkLocationAdExtensionReadFromRowValuesAddressLine1Test.class, + BulkLocationAdExtensionReadFromRowValuesAddressLine2Test.class, + BulkLocationAdExtensionReadFromRowValuesBusinessNameTest.class, + BulkLocationAdExtensionReadFromRowValuesCityTest.class, + BulkLocationAdExtensionReadFromRowValuesCountryCodeTest.class, + BulkLocationAdExtensionReadFromRowValuesGeoCodeStatusTest.class, + BulkLocationAdExtensionReadFromRowValuesIconMediaIdTest.class, + BulkLocationAdExtensionReadFromRowValuesIdTest.class, + BulkLocationAdExtensionReadFromRowValuesPhoneNumberTest.class, + BulkLocationAdExtensionReadFromRowValuesPostalCodeTest.class, + BulkLocationAdExtensionReadFromRowValuesProvinceCodeTest.class, + BulkLocationAdExtensionReadFromRowValuesProvinceNameTest.class, + BulkLocationAdExtensionReadFromRowValuesStatusTest.class, + BulkLocationAdExtensionReadFromRowValuesVersionTest.class, + BulkCampaignLocationAdExtensionReadFromRowValuesCampaignNameTest.class + } +) +public class BulkLocationAdExtensionReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..df2b311bf6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAccountIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionWriteFromRowValuesAccountIdTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, Long v) { + c.setAccountId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine1Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine1Test.java new file mode 100644 index 0000000000..993819c726 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine1Test.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesAddressLine1Test extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Address Line 1", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().getAddress().setStreetAddress(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine2Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine2Test.java new file mode 100644 index 0000000000..aeba7c6c6c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesAddressLine2Test.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesAddressLine2Test extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Address Line 2", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().getAddress().setStreetAddress2(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesBusinessNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesBusinessNameTest.java new file mode 100644 index 0000000000..937d0d904d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesBusinessNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesBusinessNameTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Business Name", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().setCompanyName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCityTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCityTest.java new file mode 100644 index 0000000000..7468c217e9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCityTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesCityTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("City", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().getAddress().setCityName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCountryCodeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCountryCodeTest.java new file mode 100644 index 0000000000..d74e116f16 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesCountryCodeTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesCountryCodeTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Country Code", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().getAddress().setCountryCode(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesGeoCodeStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesGeoCodeStatusTest.java new file mode 100644 index 0000000000..f08722a78a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesGeoCodeStatusTest.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.BusinessGeoCodeStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionWriteFromRowValuesGeoCodeStatusTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public BusinessGeoCodeStatus expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Pending", BusinessGeoCodeStatus.PENDING}, + {"Complete", BusinessGeoCodeStatus.COMPLETE}, + {"Invalid", BusinessGeoCodeStatus.INVALID}, + {"Failed", BusinessGeoCodeStatus.FAILED}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Geo Code Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, BusinessGeoCodeStatus v) { + c.getLocationAdExtension().setGeoCodeStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIconMediaIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIconMediaIdTest.java new file mode 100644 index 0000000000..9e9798f948 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIconMediaIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionWriteFromRowValuesIconMediaIdTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Map Icon", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, Long v) { + c.getLocationAdExtension().setIconMediaId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIdTest.java new file mode 100644 index 0000000000..19d401fcd9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionWriteFromRowValuesIdTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, Long v) { + c.getLocationAdExtension().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPhoneNumberTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPhoneNumberTest.java new file mode 100644 index 0000000000..e489b7aa12 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPhoneNumberTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesPhoneNumberTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Phone Number", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().setPhoneNumber(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPostalCodeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPostalCodeTest.java new file mode 100644 index 0000000000..5afd84e06e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesPostalCodeTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesPostalCodeTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Postal Code", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().getAddress().setPostalCode(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceCodeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceCodeTest.java new file mode 100644 index 0000000000..595a6e0b9b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceCodeTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesProvinceCodeTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("State Or Province Code", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().getAddress().setProvinceCode(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceNameTest.java new file mode 100644 index 0000000000..c9adb59fd2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesProvinceNameTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesProvinceNameTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Province Name", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, String v) { + c.getLocationAdExtension().getAddress().setProvinceName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesStatusTest.java new file mode 100644 index 0000000000..336f952899 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteFromRowValuesStatusTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkLocationAdExtensionWriteFromRowValuesStatusTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public AdExtensionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdExtensionStatus.ACTIVE}, + {"Deleted", AdExtensionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, AdExtensionStatus v) { + c.getLocationAdExtension().setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteTests.java new file mode 100644 index 0000000000..435002c461 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteTests.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkLocationAdExtensionWriteFromRowValuesAccountIdTest.class, + BulkLocationAdExtensionWriteFromRowValuesAddressLine1Test.class, + BulkLocationAdExtensionWriteFromRowValuesAddressLine2Test.class, + BulkLocationAdExtensionWriteFromRowValuesBusinessNameTest.class, + BulkLocationAdExtensionWriteFromRowValuesCityTest.class, + BulkLocationAdExtensionWriteFromRowValuesCountryCodeTest.class, + BulkLocationAdExtensionWriteFromRowValuesGeoCodeStatusTest.class, + BulkLocationAdExtensionWriteFromRowValuesIconMediaIdTest.class, + BulkLocationAdExtensionWriteFromRowValuesIdTest.class, + BulkLocationAdExtensionWriteFromRowValuesPhoneNumberTest.class, + BulkLocationAdExtensionWriteFromRowValuesPostalCodeTest.class, + BulkLocationAdExtensionWriteFromRowValuesProvinceCodeTest.class, + BulkLocationAdExtensionWriteFromRowValuesProvinceNameTest.class, + BulkLocationAdExtensionWriteFromRowValuesStatusTest.class}) +public class BulkLocationAdExtensionWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteToRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteToRowValuesVersionTest.java new file mode 100644 index 0000000000..8c37b2a44e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/location/write/BulkLocationAdExtensionWriteToRowValuesVersionTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.location.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkLocationAdExtensionWriteToRowValuesVersionTest extends BulkLocationAdExtensionTest { + + @Parameter(value = 1) + public Integer expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Version", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkLocationAdExtension c, Integer v) { + c.getLocationAdExtension().setVersion(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkAdGroupSiteLinkAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkAdGroupSiteLinkAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..de3bd833ef --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkAdGroupSiteLinkAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupSiteLinkAdExtension; +import org.junit.Test; + +public class BulkAdGroupSiteLinkAdExtensionReadWriteTest { + + @Test + public void bulkAdGroupSiteLinkAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkAdGroupSiteLinkAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkCampaignSiteLinkAdExtensionReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkCampaignSiteLinkAdExtensionReadWriteTest.java new file mode 100644 index 0000000000..08bc9ed801 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkCampaignSiteLinkAdExtensionReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignSiteLinkAdExtension; +import org.junit.Test; + +public class BulkCampaignSiteLinkAdExtensionReadWriteTest { + + @Test + public void bulkCampaignSiteLinkAdExtension_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkCampaignSiteLinkAdExtension()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTest.java new file mode 100644 index 0000000000..8b0ba78aa3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link; + +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLinkAdExtension; +import com.microsoft.bingads.v10.internal.bulk.entities.SiteLinkAdExtensionIdentifier; +import java.util.List; +import org.easymock.EasyMockSupport; +import static org.hamcrest.CoreMatchers.hasItems; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThat; + +public abstract class BulkSiteLinkAdExtensionTest extends EasyMockSupport { + + protected static void assertSiteLinkAdExtension(long expectedAccountId, long expectedAdExtensionId, BulkSiteLink[] bulkSiteLinks, BulkSiteLinkAdExtension actualBulkSiteLinkAdExtension) { + assertEquals(123, expectedAccountId); + assertEquals(456, expectedAdExtensionId); + + List actualSiteLinks = actualBulkSiteLinkAdExtension.getSiteLinks(); + + assertThat(actualSiteLinks, hasItems(bulkSiteLinks)); + } + + protected BulkSiteLink[] createSiteLinksWithSameIdentifier(int count) { + return this.createSiteLinksWithSameIdentifier(count, null); + } + + protected BulkSiteLink[] createSiteLinksWithSameIdentifier(int count, SiteLinkAdExtensionIdentifier identifier) { + if (identifier == null) { + identifier = new SiteLinkAdExtensionIdentifier(); + identifier.setAccountId(123L); + identifier.setAdExtensionId(456L); + } + + BulkSiteLink[] siteLinks = new BulkSiteLink[count]; + + for (int i = 0; i < count; i++) { + siteLinks[i] = new BulkSiteLink(); + siteLinks[i].setAccountId(identifier.getAccountId()); + siteLinks[i].setAdExtensionId(identifier.getAdExtensionId()); + siteLinks[i].setOrder(i); + } + + return siteLinks; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTests.java new file mode 100644 index 0000000000..8f8603235b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/BulkSiteLinkAdExtensionTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.read.BulkSiteLinkAdExtensionReadTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.write.BulkSiteLinkAdExtensionWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkSiteLinkAdExtensionReadTests.class, BulkSiteLinkAdExtensionWriteTests.class}) +public class BulkSiteLinkAdExtensionTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkAdGroupSiteLinkAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkAdGroupSiteLinkAdExtensionTest.java new file mode 100644 index 0000000000..9da3f8fe87 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkAdGroupSiteLinkAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupSiteLinkAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkAdGroupSiteLinkAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkAdGroupSiteLinkAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAdGroupSiteLinkAdExtension get() { + return new BulkAdGroupSiteLinkAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupSiteLinkAdExtension get() { + return new BulkAdGroupSiteLinkAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupSiteLinkAdExtension get() { + return new BulkAdGroupSiteLinkAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkCampaignSiteLinkAdExtensionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkCampaignSiteLinkAdExtensionTest.java new file mode 100644 index 0000000000..043d87ce56 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkCampaignSiteLinkAdExtensionTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignSiteLinkAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignSiteLinkAdExtensionTest extends BulkEntityTest { + @Override + protected void onEntityCreation(BulkCampaignSiteLinkAdExtension entity) { + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc + ) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignSiteLinkAdExtension get() { + return new BulkCampaignSiteLinkAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignSiteLinkAdExtension get() { + return new BulkCampaignSiteLinkAdExtension(); + } + }); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignSiteLinkAdExtension get() { + return new BulkCampaignSiteLinkAdExtension(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTest.java new file mode 100644 index 0000000000..bbe2f6612c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTest.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.SiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkSiteLinkTest extends BulkEntityTest { + + private static final String CONDITION_PREFIX = "Test Condition "; + private static final String VALUE_PREFIX = "Test Value "; + + @Override + protected void onEntityCreation(BulkSiteLink entity) { + entity.setSiteLink(new SiteLink()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkSiteLink get() { + return new BulkSiteLink(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkSiteLink get() { + return new BulkSiteLink(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkSiteLink get() { + return new BulkSiteLink(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTests.java new file mode 100644 index 0000000000..fbb63c9b9c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/BulkSiteLinkTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read.BulkSiteLinkReadTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write.BulkSiteLinkWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkSiteLinkReadTests.class, BulkSiteLinkWriteTests.class}) +public class BulkSiteLinkTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesAdGroupNameTest.java new file mode 100644 index 0000000000..17a790226a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesAdGroupNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkAdGroupSiteLinkAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupSiteLinkAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAdGroupSiteLinkAdExtensionReadFromRowValuesAdGroupNameTest extends BulkAdGroupSiteLinkAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Ad Group Name String", "Ad Group Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Group", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupSiteLinkAdExtension c) { + return c.getAdGroupName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..b0a075be51 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkAdGroupSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkAdGroupSiteLinkAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupSiteLinkAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkAdGroupSiteLinkAdExtensionReadFromRowValuesCampaignNameTest extends BulkAdGroupSiteLinkAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupSiteLinkAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkCampaignSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkCampaignSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..7ea2374f95 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkCampaignSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkCampaignSiteLinkAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignSiteLinkAdExtension; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignSiteLinkAdExtensionReadFromRowValuesCampaignNameTest extends BulkCampaignSiteLinkAdExtensionTest { + @Parameterized.Parameter(value = 1) + public String expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Campaign Name String", "Campaign Name String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignSiteLinkAdExtension c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription1Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription1Test.java new file mode 100644 index 0000000000..ba894f8861 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription1Test.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkReadFromRowValuesDescription1Test extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Sitelink Extension Description1", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getDescription1(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription2Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription2Test.java new file mode 100644 index 0000000000..019250c6cd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDescription2Test.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkReadFromRowValuesDescription2Test extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Sitelink Extension Description2", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getDescription2(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..5e4797c86a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDestinationUrlTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkReadFromRowValuesDestinationUrlTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, ""} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Sitelink Extension Destination Url", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getDestinationUrl(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDisplayTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDisplayTextTest.java new file mode 100644 index 0000000000..5d19588532 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesDisplayTextTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkReadFromRowValuesDisplayTextTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Sitelink Extension Link Text", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getDisplayText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalMobileUrlsTest.java new file mode 100644 index 0000000000..654dc25565 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalMobileUrlsTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +public class BulkSiteLinkReadFromRowValuesFinalMobileUrlsTest extends BulkSiteLinkTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Mobile Final Url", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfstring apply(BulkSiteLink c) { + return c.getSiteLink().getFinalMobileUrls(); + } + }, new Supplier() { + @Override + public BulkSiteLink get() { + return new BulkSiteLink(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalUrlsTest.java new file mode 100644 index 0000000000..bb588bc6ce --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesFinalUrlsTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.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.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +public class BulkSiteLinkReadFromRowValuesFinalUrlsTest extends BulkSiteLinkTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Final Url", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfstring apply(BulkSiteLink c) { + return c.getSiteLink().getFinalUrls(); + } + }, new Supplier() { + @Override + public BulkSiteLink get() { + return new BulkSiteLink(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesOrderTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesOrderTest.java new file mode 100644 index 0000000000..80e23f54af --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesOrderTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkReadFromRowValuesOrderTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647},}); + } + + @Test + public void testRead() { + this.testReadProperty("Sitelink Extension Order", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkSiteLink c) { + return c.getOrder(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..187ce7a3cc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesTrackingTemplateTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.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.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; + +public class BulkSiteLinkReadFromRowValuesTrackingTemplateTest extends BulkSiteLinkTest{ + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", ""}, + {"template", "template"}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Tracking Template", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkSiteLink c) { + return c.getSiteLink().getTrackingUrlTemplate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesUrlCustomParametersTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesUrlCustomParametersTest.java new file mode 100644 index 0000000000..f954c313c7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadFromRowValuesUrlCustomParametersTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.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.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + + +public class BulkSiteLinkReadFromRowValuesUrlCustomParametersTest extends BulkSiteLinkTest{ + + @Parameter(value = 1) + public CustomParameters expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + }); + } + @Test + public void testRead() { + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkSiteLink c) { + return c.getSiteLink().getUrlCustomParameters(); + } + }); + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkSiteLink c) { + return c.getSiteLink().getUrlCustomParameters(); + } + }, new Supplier() { + @Override + public BulkSiteLink get() { + return new BulkSiteLink(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadTests.java new file mode 100644 index 0000000000..e6e0ea2fb2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/read/BulkSiteLinkReadTests.java @@ -0,0 +1,22 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses( + { + BulkSiteLinkReadFromRowValuesOrderTest.class, + BulkSiteLinkReadFromRowValuesDisplayTextTest.class, + BulkSiteLinkReadFromRowValuesDescription1Test.class, + BulkSiteLinkReadFromRowValuesDescription2Test.class, + BulkSiteLinkReadFromRowValuesDestinationUrlTest.class, + BulkAdGroupSiteLinkAdExtensionReadFromRowValuesAdGroupNameTest.class, + BulkAdGroupSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.class, + BulkCampaignSiteLinkAdExtensionReadFromRowValuesCampaignNameTest.class + } +) +public class BulkSiteLinkReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription1Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription1Test.java new file mode 100644 index 0000000000..34b5d0b909 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription1Test.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkWriteFromRowValuesDescription1Test extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Sitelink Extension Description1", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, String v) { + c.getSiteLink().setDescription1(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription2Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription2Test.java new file mode 100644 index 0000000000..e104ce49e8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDescription2Test.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkWriteFromRowValuesDescription2Test extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Sitelink Extension Description2", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, String v) { + c.getSiteLink().setDescription2(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..c3e3173399 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDestinationUrlTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkWriteFromRowValuesDestinationUrlTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"delete_value", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Sitelink Extension Destination Url", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, String v) { + c.getSiteLink().setDestinationUrl(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDisplayTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDisplayTextTest.java new file mode 100644 index 0000000000..f06a247e7f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesDisplayTextTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkWriteFromRowValuesDisplayTextTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Sitelink Extension Link Text", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, String v) { + c.getSiteLink().setDisplayText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesOrderTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesOrderTest.java new file mode 100644 index 0000000000..ffebc22a74 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteFromRowValuesOrderTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkSiteLinkWriteFromRowValuesOrderTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Sitelink Extension Order", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, Integer v) { + c.setOrder(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteTests.java new file mode 100644 index 0000000000..fd7a9269d3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteTests.java @@ -0,0 +1,15 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkSiteLinkWriteFromRowValuesOrderTest.class, + BulkSiteLinkWriteFromRowValuesDisplayTextTest.class, + BulkSiteLinkWriteFromRowValuesDescription1Test.class, + BulkSiteLinkWriteFromRowValuesDescription2Test.class, + BulkSiteLinkWriteFromRowValuesDestinationUrlTest.class}) +public class BulkSiteLinkWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalMobileUrlsTest.java new file mode 100644 index 0000000000..08620b8665 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalMobileUrlsTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkSiteLinkWriteToRowValuesFinalMobileUrlsTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Mobile Final Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, ArrayOfstring v) { + c.getSiteLink().setFinalMobileUrls(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalUrlsTest.java new file mode 100644 index 0000000000..9febbd757a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesFinalUrlsTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkSiteLinkWriteToRowValuesFinalUrlsTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Final Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, ArrayOfstring v) { + c.getSiteLink().setFinalUrls(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..bf39dfa425 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesTrackingTemplateTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkSiteLinkWriteToRowValuesTrackingTemplateTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", ""}, + {"template", "template"}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Tracking Template", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, String v) { + c.getSiteLink().setTrackingUrlTemplate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesUrlCustomParameters.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesUrlCustomParameters.java new file mode 100644 index 0000000000..9e639c8129 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesUrlCustomParameters.java @@ -0,0 +1,84 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkSiteLinkWriteToRowValuesUrlCustomParameters extends BulkSiteLinkTest { + + @Parameter(value = 1) + public CustomParameters propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, CustomParameters v) { + c.getSiteLink().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue = new CustomParameters(); + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, CustomParameters v) { + c.getSiteLink().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue.setParameters(new ArrayOfCustomParameter()); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, CustomParameters v) { + c.getSiteLink().setUrlCustomParameters(v);; + } + }); + + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, CustomParameters v) { + c.getSiteLink().setUrlCustomParameters(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesVersionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesVersionTest.java new file mode 100644 index 0000000000..6c3f8473af --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/bulk_site_link/write/BulkSiteLinkWriteToRowValuesVersionTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTest; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTests; +import com.microsoft.bingads.v10.bulk.entities.BulkLocationAdExtension; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkSiteLinkWriteToRowValuesVersionTest extends BulkSiteLinkTest { + + @Parameter(value = 1) + public Integer expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Version", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkSiteLink c, Integer v) { + c.setVersion(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadFromBulkReaderTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadFromBulkReaderTest.java new file mode 100644 index 0000000000..979a2a5640 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadFromBulkReaderTest.java @@ -0,0 +1,73 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.BulkSiteLinkAdExtensionTest; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLinkAdExtension; +import com.microsoft.bingads.v10.bulk.entities.MultirecordEntityTestHelper; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectReader; +import com.microsoft.bingads.v10.internal.bulk.TestFactory; +import com.microsoft.bingads.v10.internal.bulk.entities.SiteLinkAdExtensionIdentifier; +import java.util.ArrayList; +import java.util.List; +import static org.hamcrest.CoreMatchers.hasItems; +import static org.hamcrest.CoreMatchers.instanceOf; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThat; +import org.junit.Test; + +public class BulkSiteLinkAdExtensionReadFromBulkReaderTest extends BulkSiteLinkAdExtensionTest { + + @Test + public void readFromBulkFileReader_NoDeleteAllRowNotFullDownload_IndividualSiteLinksAreReturned() { + BulkSiteLink[] siteLinks = createSiteLinksWithSameIdentifier(3); + + BulkObjectReader objectReader = MultirecordEntityTestHelper.createFakeObjectReader(siteLinks); + + BulkFileReader fileReader = TestFactory.createBulkFileReader(objectReader, ResultFileType.PARTIAL_DOWNLOAD); + + replayAll(); + + BulkSiteLink[] expectedEntities = new BulkSiteLink[]{siteLinks[0], siteLinks[1], siteLinks[2]}; + + Iterable actualEntities = fileReader.getEntities(); + + List actualSiteLinks = new ArrayList(); + + for (BulkEntity entity : actualEntities) { + actualSiteLinks.add((BulkSiteLink) entity); + } + + assertThat(actualSiteLinks, hasItems(expectedEntities)); + } + + @Test + public void readFromBulkFileReader_NoDeleteAllRowFullDownload_ReturnsFullSiteLinkAdExtension() { + SiteLinkAdExtensionIdentifier identifier = new SiteLinkAdExtensionIdentifier(); + identifier.setAccountId(123L); + identifier.setAdExtensionId(456L); + + BulkSiteLink[] siteLinks = createSiteLinksWithSameIdentifier(3, identifier); + + BulkSiteLink siteLink1 = siteLinks[0]; + BulkSiteLink siteLink2 = siteLinks[1]; + BulkSiteLink siteLink3 = siteLinks[2]; + + BulkObjectReader objectReader = MultirecordEntityTestHelper.createFakeObjectReader(siteLink1, siteLink2, siteLink3); + + BulkFileReader fileReader = TestFactory.createBulkFileReader(objectReader, ResultFileType.FULL_DOWNLOAD); + + List actualEntities = new ArrayList(); + + for (BulkEntity entity : fileReader.getEntities()) { + actualEntities.add(entity); + } + + assertEquals(1, actualEntities.size()); + assertThat(actualEntities.get(0), instanceOf(BulkSiteLinkAdExtension.class)); + + assertSiteLinkAdExtension(123L, 456L, new BulkSiteLink[]{siteLink1, siteLink2, siteLink3}, BulkSiteLinkAdExtension.class.cast(actualEntities.get(0))); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadTests.java new file mode 100644 index 0000000000..a841bce40c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/BulkSiteLinkAdExtensionReadTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkSiteLinkAdExtensionReadFromBulkReaderTest.class, + HasDeleteAllRowTest.class}) +public class BulkSiteLinkAdExtensionReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/HasDeleteAllRowTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/HasDeleteAllRowTest.java new file mode 100644 index 0000000000..89e0d5b19f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/read/HasDeleteAllRowTest.java @@ -0,0 +1,75 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.read; + +import com.microsoft.bingads.v10.api.test.entities.DeleteAllRowPosition; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.BulkSiteLinkAdExtensionTest; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLinkAdExtension; +import com.microsoft.bingads.v10.bulk.entities.MultirecordEntityTestHelper; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectReader; +import com.microsoft.bingads.v10.internal.bulk.TestFactory; +import com.microsoft.bingads.v10.internal.bulk.entities.SiteLinkAdExtensionIdentifier; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.List; +import static org.hamcrest.CoreMatchers.instanceOf; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThat; +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; + +@RunWith(Parameterized.class) +public class HasDeleteAllRowTest extends BulkSiteLinkAdExtensionTest { + + @Parameter(value = 0) + public DeleteAllRowPosition deleteAllRowPosition; + + @Parameter(value = 1) + public ResultFileType type; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {DeleteAllRowPosition.IN_THE_BEGINNING, ResultFileType.PARTIAL_DOWNLOAD}, + {DeleteAllRowPosition.IN_THE_BEGINNING, ResultFileType.FULL_DOWNLOAD}, + {DeleteAllRowPosition.IN_THE_MIDDLE, ResultFileType.PARTIAL_DOWNLOAD}, + {DeleteAllRowPosition.IN_THE_MIDDLE, ResultFileType.FULL_DOWNLOAD}, + {DeleteAllRowPosition.IN_THE_END, ResultFileType.PARTIAL_DOWNLOAD}, + {DeleteAllRowPosition.IN_THE_END, ResultFileType.FULL_DOWNLOAD},}); + } + + @Test + public void returnsFullSiteLinkAdExtension() { + SiteLinkAdExtensionIdentifier identifier = new SiteLinkAdExtensionIdentifier(); + identifier.setAccountId(123L); + identifier.setAdExtensionId(456L); + + SiteLinkAdExtensionIdentifier deleteAllRow = new SiteLinkAdExtensionIdentifier(); + deleteAllRow.setAccountId(123L); + deleteAllRow.setAdExtensionId(456L); + deleteAllRow.setStatus(AdExtensionStatus.DELETED); + + BulkSiteLink[] siteLinks = createSiteLinksWithSameIdentifier(3, identifier); + + BulkObjectReader objectReader = MultirecordEntityTestHelper.setupObjectReaderToReturnEntitiesAndDeleteAllRow(siteLinks, deleteAllRow, deleteAllRowPosition); + + BulkFileReader fileReader = TestFactory.createBulkFileReader(objectReader, type); + + List actualEntities = new ArrayList(); + + for (BulkEntity entity : fileReader.getEntities()) { + actualEntities.add(entity); + } + + assertEquals(1, actualEntities.size()); + assertThat(actualEntities.get(0), instanceOf(BulkSiteLinkAdExtension.class)); + assertSiteLinkAdExtension(123, 456, siteLinks, BulkSiteLinkAdExtension.class.cast(actualEntities.get(0))); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteTests.java new file mode 100644 index 0000000000..ca6d272e10 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteTests.java @@ -0,0 +1,11 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkSiteLinkAdExtensionWriteToStreamTest.class}) +public class BulkSiteLinkAdExtensionWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteToStreamTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteToStreamTest.java new file mode 100644 index 0000000000..f7ee028575 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteToStreamTest.java @@ -0,0 +1,97 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.BulkSiteLinkAdExtensionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLinkAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.SiteLink; +import com.microsoft.bingads.v10.campaignmanagement.SiteLinksAdExtension; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.entities.SiteLinkAdExtensionIdentifier; +import java.io.IOException; +import java.util.Comparator; +import java.util.List; +import static org.easymock.EasyMock.and; +import static org.easymock.EasyMock.anyObject; +import static org.easymock.EasyMock.cmp; +import static org.easymock.EasyMock.eq; +import org.easymock.EasyMockRunner; +import org.easymock.LogicalOperator; +import org.easymock.Mock; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class BulkSiteLinkAdExtensionWriteToStreamTest extends + BulkSiteLinkAdExtensionTest { + + private static final Comparator IDENTIFIER_COMPARATOR = new Comparator() { + + @Override + public int compare(SiteLinkAdExtensionIdentifier o1, + SiteLinkAdExtensionIdentifier o2) { + boolean areEqual = o1.getAccountId() == o2.getAccountId(); + areEqual &= o1.getAdExtensionId().equals(o2.getAdExtensionId()); + areEqual &= o1.getStatus().equals(o2.getStatus()); + + if (areEqual) { + return 0; + } else { + return -1; + } + } + }; + private static final Comparator BULK_SITE_LINK_COMPARATOR = new Comparator() { + + @Override + public int compare(BulkSiteLink o1, BulkSiteLink o2) { + boolean areEqual = o1.getAccountId().equals(o2.getAccountId()); + areEqual &= o1.getSiteLink().equals(o2.getSiteLink()); + + if (areEqual) { + return 0; + } else { + return -1; + } + } + }; + + @Mock + BulkObjectWriter rowWriter; + + @Test + public void test() throws IOException { + SiteLinksAdExtension apiAdExtension = new SiteLinksAdExtension(); + apiAdExtension.setId(10L); + + ArrayOfSiteLink arrayOfSiteLinks = new ArrayOfSiteLink(); + List siteLinks = arrayOfSiteLinks.getSiteLinks(); + siteLinks.add(new SiteLink()); + siteLinks.add(new SiteLink()); + apiAdExtension.setSiteLinks(arrayOfSiteLinks); + + BulkSiteLinkAdExtension adExtension = new BulkSiteLinkAdExtension(); + adExtension.setAccountId(123L); + adExtension.setSiteLinksAdExtension(apiAdExtension); + + SiteLinkAdExtensionIdentifier identifier = new SiteLinkAdExtensionIdentifier(); + identifier.setAccountId(123L); + identifier.setAdExtensionId(10L); + identifier.setStatus(AdExtensionStatus.DELETED); + BulkSiteLink siteLink1 = new BulkSiteLink(); + siteLink1.setAccountId(123L); + siteLink1.setSiteLink(apiAdExtension.getSiteLinks().getSiteLinks().get(0)); + BulkSiteLink siteLink2 = new BulkSiteLink(); + siteLink2.setAccountId(123L); + siteLink2.setSiteLink(apiAdExtension.getSiteLinks().getSiteLinks().get(1)); + + rowWriter.writeObjectRow(and(anyObject(SiteLinkAdExtensionIdentifier.class), cmp(identifier, IDENTIFIER_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + rowWriter.writeObjectRow(and(anyObject(BulkSiteLink.class), cmp(siteLink1, BULK_SITE_LINK_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + rowWriter.writeObjectRow(and(anyObject(BulkSiteLink.class), cmp(siteLink2, BULK_SITE_LINK_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + + replayAll(); + adExtension.writeToStream(rowWriter, false); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteWithDeletedStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteWithDeletedStatusTest.java new file mode 100644 index 0000000000..c5629d4262 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/site_link/write/BulkSiteLinkAdExtensionWriteWithDeletedStatusTest.java @@ -0,0 +1,30 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.write; + +import com.microsoft.bingads.v10.api.test.entities.Util; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLinkAdExtension; +import com.microsoft.bingads.v10.campaignmanagement.AdExtensionStatus; +import com.microsoft.bingads.v10.campaignmanagement.SiteLinksAdExtension; + +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; + +public class BulkSiteLinkAdExtensionWriteWithDeletedStatusTest { + + @Test + public void testWriteWithDeletedStatus() { + BulkSiteLinkAdExtension adExtension = new BulkSiteLinkAdExtension(); + adExtension.setSiteLinksAdExtension(new SiteLinksAdExtension()); + adExtension.getSiteLinksAdExtension().setType("SiteLinksAdExtension"); + adExtension.getSiteLinksAdExtension().setId(10L); + adExtension.getSiteLinksAdExtension().setStatus(AdExtensionStatus.DELETED); + ArrayList adExtensions = new ArrayList(); + adExtensions.add(adExtension); + ArrayList readBack = Util.WriteAndReadBack(adExtensions); + Assert.assertEquals(1, readBack.size()); + BulkSiteLinkAdExtension a = (BulkSiteLinkAdExtension) readBack.get(0); + Assert.assertEquals(Util.toJson(adExtension), Util.toJson(a)); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionReadTests.java new file mode 100644 index 0000000000..51d63c60b3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionReadTests.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read.*; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + ReadIdTest.class, + ReadParentIdTest.class, + ReadStatusTest.class, + ReadCampaignNameTest.class, + ReadAdGroupNameTest.class, + ReadParentCriterionIdTest.class, + ReadPartitionTypeTest.class, + ReadProductConditionTest.class, + ReadProductValueTest.class, + ReadCriterionBidTest.class +}) +public class BulkAdGroupProductPartitionReadTests { +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTest.java new file mode 100644 index 0000000000..6972a34f0e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTest.java @@ -0,0 +1,78 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkAdGroupProductPartitionTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkAdGroupProductPartition entity) { + + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, + TProperty propertyValue, + BiConsumer setFunc + ) { + testWriteProperty( + header, + expectedRowValue, + propertyValue, + setFunc, + new Supplier() { + @Override + public BulkAdGroupProductPartition get() { + return new BulkAdGroupProductPartition(); + } + } + ); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + testReadProperty( + header, + input, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkAdGroupProductPartition get() { + return new BulkAdGroupProductPartition(); + } + } + ); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + testReadProperty( + rowValues, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkAdGroupProductPartition get() { + return new BulkAdGroupProductPartition(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTests.java new file mode 100644 index 0000000000..9c5953214a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + BulkAdGroupProductPartitionReadTests.class, + BulkAdGroupProductPartitionWriteTests.class +}) +public class BulkAdGroupProductPartitionTests { +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionWriteTests.java new file mode 100644 index 0000000000..58bf612b06 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/BulkAdGroupProductPartitionWriteTests.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write.*; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + WriteIdTest.class, + WriteParentIdTest.class, + WriteStatusTest.class, + WriteCampaignNameTest.class, + WriteAdGroupNameTest.class, + WriteParentCriterionIdTest.class, + WritePartitionTypeTest.class, + WriteProductConditionTest.class, + WriteProductValueTest.class, + WriteCriterionBidTest.class +}) +public class BulkAdGroupProductPartitionWriteTests { +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadAdGroupNameTest.java new file mode 100644 index 0000000000..e82a4432df --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadAdGroupNameTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadAdGroupNameTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Ad Group", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return c.getAdGroupName(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Ad Group", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return c.getAdGroupName(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCampaignNameTest.java new file mode 100644 index 0000000000..733c1a61f7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCampaignNameTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadCampaignNameTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Campaign", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return c.getCampaignName(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Campaign", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return c.getCampaignName(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCriterionBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCriterionBidTest.java new file mode 100644 index 0000000000..68dbab8139 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadCriterionBidTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.BidComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.FixedBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadCriterionBidTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public Bid expectedResult; + + @Parameters + public static Collection data() { + Bid withValue = new Bid(); + withValue.setAmount(12.34); + + Bid zeroValue = new Bid(); + zeroValue.setAmount(0.0); + + return Arrays.asList( + new Object[][]{ + {"12.34", withValue}, + {"delete_value", zeroValue}, + {"", null}, + {null, null} + } + ); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Bid", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public Bid apply(BulkAdGroupProductPartition c) { + return ((FixedBid) ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getCriterionBid()).getBid(); + } + }, + new Supplier() { + @Override + public BulkAdGroupProductPartition get() { + return new BulkAdGroupProductPartition(); + } + }, + new BidComparer() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadDestinationUrlTest.java new file mode 100644 index 0000000000..37e2615782 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadDestinationUrlTest.java @@ -0,0 +1,54 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadDestinationUrlTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"http://www.go-there.mic", "http://www.go-there.mic"}, + {"", ""}, + {null, ""} + } + ); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Destination Url", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getDestinationUrl(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalMobileUrlsTest.java new file mode 100644 index 0000000000..7f5fa65a88 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalMobileUrlsTest.java @@ -0,0 +1,63 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; + +public class ReadFinalMobileUrlsTest extends BulkAdGroupProductPartitionTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Mobile Final Url", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public ArrayOfstring apply(BulkAdGroupProductPartition c) { + return ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getFinalMobileUrls(); + } + }, new Supplier() { + @Override + public BulkAdGroupProductPartition get() { + return new BulkAdGroupProductPartition(); + } + }, new ObjectComparer() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalUrlsTest.java new file mode 100644 index 0000000000..2ebaff0716 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadFinalUrlsTest.java @@ -0,0 +1,64 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; + + +public class ReadFinalUrlsTest extends BulkAdGroupProductPartitionTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Final Url", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public ArrayOfstring apply(BulkAdGroupProductPartition c) { + return ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getFinalUrls(); + } + }, new Supplier() { + @Override + public BulkAdGroupProductPartition get() { + return new BulkAdGroupProductPartition(); + } + }, new ObjectComparer() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadIdTest.java new file mode 100644 index 0000000000..a0b5d7f9ec --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadIdTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadIdTest extends BulkAdGroupProductPartitionTest { + + @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 testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Id", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getId(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Id", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getId(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentCriterionIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentCriterionIdTest.java new file mode 100644 index 0000000000..08f8db61a3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentCriterionIdTest.java @@ -0,0 +1,74 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadParentCriterionIdTest extends BulkAdGroupProductPartitionTest { + + @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 testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Parent Criterion Id", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getParentCriterionId(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Parent Criterion Id", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getParentCriterionId(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentIdTest.java new file mode 100644 index 0000000000..8bcbebfc85 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadParentIdTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadParentIdTest extends BulkAdGroupProductPartitionTest { + + @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 testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Parent Id", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getAdGroupId(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Parent Id", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public Long apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getAdGroupId(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadPartitionTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadPartitionTypeTest.java new file mode 100644 index 0000000000..8499fa226f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadPartitionTypeTest.java @@ -0,0 +1,74 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartitionType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadPartitionTypeTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public ProductPartitionType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"Unit", ProductPartitionType.UNIT}, + {"Subdivision", ProductPartitionType.SUBDIVISION}, + {"", null}, + {null, null} + } + ); + } + + @Test + public void testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Sub Type", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public ProductPartitionType apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getPartitionType(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Sub Type", datum); + + testReadProperty( + values, expectedResult, + new Function() { + @Override + public ProductPartitionType apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getPartitionType(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductConditionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductConditionTest.java new file mode 100644 index 0000000000..c6f930673d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductConditionTest.java @@ -0,0 +1,74 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadProductConditionTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Product Condition 1", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition().getOperand(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Product Condition 1", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition().getOperand(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductValueTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductValueTest.java new file mode 100644 index 0000000000..7ee5334d32 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadProductValueTest.java @@ -0,0 +1,74 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadProductValueTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Product Value 1", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition().getAttribute(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Product Value 1", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return ((ProductPartition) c.getAdGroupCriterion().getCriterion()).getCondition().getAttribute(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadStatusTest.java new file mode 100644 index 0000000000..a92463b307 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadStatusTest.java @@ -0,0 +1,74 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupCriterionStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +@RunWith(Parameterized.class) +public class ReadStatusTest extends BulkAdGroupProductPartitionTest { + + @Parameter(value = 1) + public AdGroupCriterionStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"Active", AdGroupCriterionStatus.ACTIVE}, + {"Paused", AdGroupCriterionStatus.PAUSED}, + {"Deleted", AdGroupCriterionStatus.DELETED}, + {"", null}, + {null, null} + } + ); + } + + @Test + public void testReadExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "Yes"); + values.put("Status", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public AdGroupCriterionStatus apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getStatus(); + } + } + ); + } + + @Test + public void testReadNotExcluded() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Status", datum); + + testReadProperty( + values, expectedResult, + new Function() { + @Override + public AdGroupCriterionStatus apply(BulkAdGroupProductPartition c) { + return c.getAdGroupCriterion().getStatus(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadTrackingTemplateTest.java new file mode 100644 index 0000000000..e066374eec --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadTrackingTemplateTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; + + +public class ReadTrackingTemplateTest extends BulkAdGroupProductPartitionTest{ + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", ""}, + {"template", "template"}, + }); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Tracking Template", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public String apply(BulkAdGroupProductPartition c) { + return ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getTrackingUrlTemplate(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadUrlCustomParametersTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadUrlCustomParametersTest.java new file mode 100644 index 0000000000..a2ff74a345 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/read/ReadUrlCustomParametersTest.java @@ -0,0 +1,90 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.read; + + + +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; + +public class ReadUrlCustomParametersTest extends BulkAdGroupProductPartitionTest{ + + @Parameter(value = 1) + public CustomParameters expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + }); + } + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Is Excluded", "No"); + values.put("Custom Parameter", datum); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public CustomParameters apply(BulkAdGroupProductPartition c) { + return ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getUrlCustomParameters(); + } + } + ); + + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + values.put("Custom Parameter", datum); + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + testReadProperty( + values, + expectedResult, + new Function() { + @Override + public CustomParameters apply(BulkAdGroupProductPartition c) { + return ((BiddableAdGroupCriterion) c.getAdGroupCriterion()).getUrlCustomParameters(); + } + }, new Supplier() { + @Override + public BulkAdGroupProductPartition get() { + return new BulkAdGroupProductPartition(); + } + }, new ObjectComparer()); + + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteAdGroupNameTest.java new file mode 100644 index 0000000000..e4fe88d8a6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteAdGroupNameTest.java @@ -0,0 +1,78 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.NegativeAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteAdGroupNameTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Ad Group", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.setAdGroupName(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Ad Group", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.setAdGroupName(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCampaignNameTest.java new file mode 100644 index 0000000000..4e7f8b3ea5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCampaignNameTest.java @@ -0,0 +1,78 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.NegativeAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteCampaignNameTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Campaign", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.setCampaignName(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Campaign", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.setCampaignName(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCriterionBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCriterionBidTest.java new file mode 100644 index 0000000000..f93cf841bd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteCriterionBidTest.java @@ -0,0 +1,62 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteCriterionBidTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public Bid propertyValue; + + @Parameterized.Parameters + public static Collection data() { + Bid withValue = new Bid(); + withValue.setAmount(12.34); + + Bid zeroValue = new Bid(); + zeroValue.setAmount(0.0); + + return Arrays.asList( + new Object[][]{ + {"12.34", withValue}, + {"delete_value", zeroValue}, + {null, null} + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Bid", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Bid v) { + ProductPartition criterion = new ProductPartition(); + + BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + FixedBid bid = new FixedBid(); + + bid.setBid(v); + + adGroupCriterion.setCriterionBid(bid); + } + } + ); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteDestinationUrlTest.java new file mode 100644 index 0000000000..81a9e5aede --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteDestinationUrlTest.java @@ -0,0 +1,60 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteDestinationUrlTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + Bid withValue = new Bid(); + withValue.setAmount(12.34); + + Bid zeroValue = new Bid(); + zeroValue.setAmount(0.0); + + return Arrays.asList( + new Object[][]{ + {"http://testDestUrl.com", "http://testDestUrl.com"}, + {"delete_value", ""}, + {null, null} + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Destination Url", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductPartition criterion = new ProductPartition(); + + BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + adGroupCriterion.setDestinationUrl(v); + } + } + ); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalMobileUrlsTest.java new file mode 100644 index 0000000000..9fcdb3129b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalMobileUrlsTest.java @@ -0,0 +1,59 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteFinalMobileUrlsTest extends BulkAdGroupProductPartitionTest { + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + testWriteProperty( + "Final Url", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, ArrayOfstring v) { + ProductPartition criterion = new ProductPartition(); + + BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + adGroupCriterion.setFinalUrls(v); + } + } + ); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalUrlsTest.java new file mode 100644 index 0000000000..7cf78b5012 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteFinalUrlsTest.java @@ -0,0 +1,59 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteFinalUrlsTest extends BulkAdGroupProductPartitionTest { + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + testWriteProperty( + "Mobile Final Url", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, ArrayOfstring v) { + ProductPartition criterion = new ProductPartition(); + + BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + adGroupCriterion.setFinalMobileUrls(v); + } + } + ); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIdTest.java new file mode 100644 index 0000000000..b109577e43 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIdTest.java @@ -0,0 +1,77 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.NegativeAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteIdTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public Long propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Long v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.getAdGroupCriterion().setId(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Long v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.getAdGroupCriterion().setId(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIsExcludedTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIsExcludedTest.java new file mode 100644 index 0000000000..d4dff0996c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteIsExcludedTest.java @@ -0,0 +1,62 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.NegativeAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteIsExcludedTest extends BulkAdGroupProductPartitionTest { + + @Parameterized.Parameter(value = 1) + public Boolean propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"True", true}, + {"False", false}, + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Is Excluded", + datum, + propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Boolean v) { + if (v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + } else { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + } + } + } + ); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentCriterionIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentCriterionIdTest.java new file mode 100644 index 0000000000..c45908f7ee --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentCriterionIdTest.java @@ -0,0 +1,77 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.NegativeAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteParentCriterionIdTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public Long propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Parent Criterion Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Long v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + criterion.setParentCriterionId(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Parent Criterion Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Long v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + criterion.setParentCriterionId(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentIdTest.java new file mode 100644 index 0000000000..85c99e9687 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteParentIdTest.java @@ -0,0 +1,77 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.NegativeAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteParentIdTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public Long propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Parent Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Long v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.getAdGroupCriterion().setAdGroupId(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Parent Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, Long v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.getAdGroupCriterion().setAdGroupId(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WritePartitionTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WritePartitionTypeTest.java new file mode 100644 index 0000000000..548f2980a2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WritePartitionTypeTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WritePartitionTypeTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public ProductPartitionType propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Subdivision", ProductPartitionType.SUBDIVISION}, + {"Unit", ProductPartitionType.UNIT}, + {null, null} + }); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Sub Type", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, ProductPartitionType v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + criterion.setPartitionType(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Sub Type", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, ProductPartitionType v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + criterion.setPartitionType(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductConditionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductConditionTest.java new file mode 100644 index 0000000000..bc4a19897e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductConditionTest.java @@ -0,0 +1,84 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteProductConditionTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Product Condition 1", + datum, + propertyValue, + new BiConsumer() { + + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductCondition condition = new ProductCondition(); + + ProductPartition criterion = new ProductPartition(); + + criterion.setCondition(condition); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + condition.setOperand(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Product Condition 1", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductCondition condition = new ProductCondition(); + + ProductPartition criterion = new ProductPartition(); + + criterion.setCondition(condition); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + condition.setOperand(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductValueTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductValueTest.java new file mode 100644 index 0000000000..8ae0659272 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteProductValueTest.java @@ -0,0 +1,84 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteProductValueTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Product Value 1", + datum, + propertyValue, + new BiConsumer() { + + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductCondition condition = new ProductCondition(); + + ProductPartition criterion = new ProductPartition(); + + criterion.setCondition(condition); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + condition.setAttribute(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Product Value 1", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductCondition condition = new ProductCondition(); + + ProductPartition criterion = new ProductPartition(); + + criterion.setCondition(condition); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + condition.setAttribute(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteStatusTest.java new file mode 100644 index 0000000000..182b441328 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteStatusTest.java @@ -0,0 +1,73 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.*; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteStatusTest extends BulkAdGroupProductPartitionTest { + @Parameterized.Parameter(value = 1) + public AdGroupCriterionStatus propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdGroupCriterionStatus.ACTIVE}, + {"Paused", AdGroupCriterionStatus.PAUSED}, + {"Deleted", AdGroupCriterionStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testWriteExcluded() { + testWriteProperty( + "Status", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, AdGroupCriterionStatus v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new NegativeAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.getAdGroupCriterion().setStatus(v); + } + } + ); + } + + @Test + public void testWriteNotExcluded() { + testWriteProperty( + "Status", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, AdGroupCriterionStatus v) { + ProductPartition criterion = new ProductPartition(); + + AdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + c.getAdGroupCriterion().setStatus(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteTrackingTemplateTest.java new file mode 100644 index 0000000000..eac5f1e259 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteTrackingTemplateTest.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteTrackingTemplateTest extends BulkAdGroupProductPartitionTest { + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", ""}, + {"template", "template"}, + }); + } + + @Test + public void testWrite() { + testWriteProperty( + "Tracking Template", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductPartition criterion = new ProductPartition(); + + BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + adGroupCriterion.setTrackingUrlTemplate(v); + } + } + ); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteUrlCustomParameters.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteUrlCustomParameters.java new file mode 100644 index 0000000000..cb13f9216a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_group_product_partition/write/WriteUrlCustomParameters.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.write; + +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupProductPartition; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.v10.campaignmanagement.BiddableAdGroupCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductPartition; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import java.util.Arrays; +import java.util.Collection; + +public class WriteUrlCustomParameters extends BulkAdGroupProductPartitionTest { + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", ""}, + {"template", "template"}, + }); + } + + @Test + public void testWrite() { + testWriteProperty( + "Tracking Template", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkAdGroupProductPartition c, String v) { + ProductPartition criterion = new ProductPartition(); + + BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); + + adGroupCriterion.setCriterion(criterion); + + c.setAdGroupCriterion(adGroupCriterion); + + adGroupCriterion.setTrackingUrlTemplate(v); + } + } + ); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupReadWriteTest.java new file mode 100644 index 0000000000..3a1e86f50b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupReadWriteTest.java @@ -0,0 +1,19 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.api.test.entities.QualityScoreDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import org.junit.Test; + +public class BulkAdGroupReadWriteTest { + + @Test + public void bulkAdGroup_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkAdGroup()); + } + + @Test + public void bulkAdGroup_ReadQSData_WriteToFile() { + QualityScoreDataTestHelper.testQualityScoreDataReadWrite(new BulkAdGroup()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTest.java new file mode 100644 index 0000000000..113a71377e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTest.java @@ -0,0 +1,69 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.api.test.entities.EqualityComparerWithDescription; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkAdGroupTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkAdGroup entity) { + entity.setAdGroup(new AdGroup()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAdGroup get() { + return new BulkAdGroup(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroup get() { + return new BulkAdGroup(); + } + }); + } + + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc, EqualityComparerWithDescription comparer) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroup get() { + return new BulkAdGroup(); + } + }, comparer); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroup get() { + return new BulkAdGroup(); + } + }); + } + + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc, EqualityComparerWithDescription comparer) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroup get() { + return new BulkAdGroup(); + } + }, comparer); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTests.java new file mode 100644 index 0000000000..991e8f9337 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/BulkAdGroupTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.read.BulkAdGroupReadTests; +import com.microsoft.bingads.v10.api.test.entities.adgroup.write.BulkAdGroupWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkAdGroupReadTests.class, BulkAdGroupWriteTests.class}) +public class BulkAdGroupTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdDistributionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdDistributionTest.java new file mode 100644 index 0000000000..31d45bf576 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdDistributionTest.java @@ -0,0 +1,54 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdDistribution; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesAdDistributionTest extends BulkAdGroupTest { + + @Parameter(value = 1) + public String content; + + @Parameter(value = 2) + public List expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"On", "Off", Arrays.asList(new AdDistribution[]{AdDistribution.SEARCH})}, + {"Off", "On", Arrays.asList(new AdDistribution[]{AdDistribution.CONTENT})}, + {"On", "On", Arrays.asList(new AdDistribution[]{AdDistribution.SEARCH, AdDistribution.CONTENT})}, + {"Off", "Off", Arrays.asList(new AdDistribution[]{})}, + {"On", "", Arrays.asList(new AdDistribution[]{AdDistribution.SEARCH})}, + {"On", null, Arrays.asList(new AdDistribution[]{AdDistribution.SEARCH})}, + {"", "", Arrays.asList(new AdDistribution[]{})}, + {null, null, Arrays.asList(new AdDistribution[]{})} + }); + } + + @Test + public void testRead() { + Map values = new HashMap(); + values.put("Search Network", this.datum); + values.put("Content Network", this.content); + this.>testReadProperty(values, this.expectedResult, new Function>() { + @Override + public Collection apply(BulkAdGroup c) { + return c.getAdGroup().getAdDistribution(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationNullTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationNullTest.java new file mode 100644 index 0000000000..9b665716b2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationNullTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdRotation; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesAdRotationNullTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"RotatingLikeARotisserieChicken"}, + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Rotation", this.datum, null, new Function() { + @Override + public AdRotation apply(BulkAdGroup c) { + return c.getAdGroup().getAdRotation(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationTest.java new file mode 100644 index 0000000000..18fce08387 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesAdRotationTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdRotationType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesAdRotationTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public AdRotationType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"OptimizeForClicks", AdRotationType.OPTIMIZE_FOR_CLICKS}, + {"RotateAdsEvenly", AdRotationType.ROTATE_ADS_EVENLY},}); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Rotation", this.datum, this.expectedResult, new Function() { + @Override + public AdRotationType apply(BulkAdGroup c) { + return c.getAdGroup().getAdRotation().getType(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesBroadMatchBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesBroadMatchBidTest.java new file mode 100644 index 0000000000..1865b172d7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesBroadMatchBidTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.BidComparer; +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesBroadMatchBidTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Bid expectedResult; + + @Parameters + public static Collection data() { + Bid withValue = new Bid(); + withValue.setAmount(12.34); + + Bid zeroValue = new Bid(); + zeroValue.setAmount(0.0); + + return Arrays.asList(new Object[][]{ + {"12.34", withValue}, + {"delete_value", zeroValue}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Search Bid", this.datum, this.expectedResult, new Function() { + @Override + public Bid apply(BulkAdGroup c) { + return c.getAdGroup().getSearchBid(); + } + }, new BidComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..c1d8d23d4e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesCampaignIdTest extends BulkAdGroupTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkAdGroup c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..1e85d859ba --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupReadFromRowValuesCampaignNameTest extends BulkAdGroupTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test AdGroup 1", "Test AdGroup 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesContentMatchBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesContentMatchBidTest.java new file mode 100644 index 0000000000..fe1310ba5a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesContentMatchBidTest.java @@ -0,0 +1,51 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.BidComparer; +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesContentMatchBidTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Bid expectedResult; + + @Parameters + public static Collection data() { + Bid withValue = new Bid(); + withValue.setAmount(12.34); + + Bid zeroValue = new Bid(); + zeroValue.setAmount(0.0); + + return Arrays.asList(new Object[][]{ + {"12.34", withValue}, + {"delete_value", zeroValue}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Content Bid", this.datum, this.expectedResult, new Function() { + @Override + public Bid apply(BulkAdGroup c) { + return c.getAdGroup().getContentMatchBid(); + } + }, new BidComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesEndDateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesEndDateTest.java new file mode 100644 index 0000000000..dcd89865e1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesEndDateTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.DateComparer; +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Date; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesEndDateTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Date expectedResult; + + @Parameters + public static Collection data() { + Date date = new Date(); + date.setDay(12); + date.setMonth(11); + date.setYear(2013); + + return Arrays.asList(new Object[][]{ + {"11/12/2013", date}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("End Date", this.datum, this.expectedResult, new Function() { + @Override + public Date apply(BulkAdGroup c) { + return c.getAdGroup().getEndDate(); + } + }, new DateComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..3228047e80 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesIdTest extends BulkAdGroupTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkAdGroup c) { + return c.getAdGroup().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIsExpiredTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIsExpiredTest.java new file mode 100644 index 0000000000..acdea4e936 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIsExpiredTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesIsExpiredTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Boolean expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", false}, + {"Deleted", false}, + {"Paused", false}, + {"Expired", true}, + {"", false}, + {null, false} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public Boolean apply(BulkAdGroup c) { + return c.getIsExpired(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesLanguageTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesLanguageTest.java new file mode 100644 index 0000000000..f832861216 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesLanguageTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupReadFromRowValuesLanguageTest extends BulkAdGroupTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test AdGroup 1", "Test AdGroup 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Language", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getAdGroup().getLanguage(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNameTest.java new file mode 100644 index 0000000000..a404f99beb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupReadFromRowValuesNameTest extends BulkAdGroupTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test AdGroup 1", "Test AdGroup 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Group", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getAdGroup().getName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNativeBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNativeBidAdjustmentTest.java new file mode 100644 index 0000000000..8ffb0f3745 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNativeBidAdjustmentTest.java @@ -0,0 +1,43 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesNativeBidAdjustmentTest extends BulkAdGroupTest { + + @Parameterized.Parameter + public String datum; + + @Parameterized.Parameter(value = 1) + public Integer expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"1", 1}, + {"2147483647", Integer.MAX_VALUE}, + {"0", 0}, + {"-1", -1}, + {"-2147483648", Integer.MIN_VALUE}, + {null, null} + }); + } + + @Test + public void testRead() { + testReadProperty("Bid Adjustment", datum, expectedResult, new Function() { + @Override + public Integer apply(BulkAdGroup c) { + return c.getAdGroup().getNativeBidAdjustment(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkNullTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkNullTest.java new file mode 100644 index 0000000000..33eefe8fbb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkNullTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdRotation; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesNetworkNullTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"RotatingLikeARotisserieChicken"}, + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Rotation", this.datum, null, new Function() { + @Override + public AdRotation apply(BulkAdGroup c) { + return c.getAdGroup().getAdRotation(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkTest.java new file mode 100644 index 0000000000..f342437663 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesNetworkTest.java @@ -0,0 +1,43 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Network; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesNetworkTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Network expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"OwnedAndOperatedAndSyndicatedSearch", Network.OWNED_AND_OPERATED_AND_SYNDICATED_SEARCH}, + {"OwnedAndOperatedOnly", Network.OWNED_AND_OPERATED_ONLY}, + {"SyndicatedSearchOnly", Network.SYNDICATED_SEARCH_ONLY} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Network Distribution", this.datum, this.expectedResult, new Function() { + @Override + public Network apply(BulkAdGroup c) { + return c.getAdGroup().getNetwork(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelNullTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelNullTest.java new file mode 100644 index 0000000000..c4f194c0a5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelNullTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdRotation; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesPricingModelNullTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"RotatingLikeARotisserieChicken"}, + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Rotation", this.datum, null, new Function() { + @Override + public AdRotation apply(BulkAdGroup c) { + return c.getAdGroup().getAdRotation(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelTest.java new file mode 100644 index 0000000000..da3bda2ebf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesPricingModelTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.PricingModel; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesPricingModelTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public PricingModel expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"CPC", PricingModel.CPC}, + {"CPM", PricingModel.CPM}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Pricing Model", this.datum, this.expectedResult, new Function() { + @Override + public PricingModel apply(BulkAdGroup c) { + return c.getAdGroup().getPricingModel(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStartDateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStartDateTest.java new file mode 100644 index 0000000000..318da49b4a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStartDateTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.DateComparer; +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Date; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesStartDateTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public Date expectedResult; + + @Parameters + public static Collection data() { + Date date = new Date(); + date.setDay(12); + date.setMonth(11); + date.setYear(2013); + + return Arrays.asList(new Object[][]{ + {"11/12/2013", date}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Start Date", this.datum, this.expectedResult, new Function() { + @Override + public Date apply(BulkAdGroup c) { + return c.getAdGroup().getStartDate(); + } + }, new DateComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..9214b2ac5a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesStatusTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupReadFromRowValuesStatusTest extends BulkAdGroupTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public AdGroupStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdGroupStatus.ACTIVE}, + {"Deleted", AdGroupStatus.DELETED}, + //{"Draft", AdGroupStatus.DRAFT}, + {"Paused", AdGroupStatus.PAUSED}, + {"Expired", AdGroupStatus.EXPIRED}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public AdGroupStatus apply(BulkAdGroup c) { + return c.getAdGroup().getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..3098091383 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesTrackingTemplateTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.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.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; + +public class BulkAdGroupReadFromRowValuesTrackingTemplateTest extends BulkAdGroupTest{ + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", ""}, + {"template", "template"}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Tracking Template", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroup c) { + return c.getAdGroup().getTrackingUrlTemplate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesUrlCustomParametersTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesUrlCustomParametersTest.java new file mode 100644 index 0000000000..97804342a6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesUrlCustomParametersTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.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.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.bulk.entities.BulkSiteLink; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + + +public class BulkAdGroupReadFromRowValuesUrlCustomParametersTest extends BulkAdGroupTest{ + + @Parameter(value = 1) + public CustomParameters expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + }); + } + @Test + public void testRead() { + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkAdGroup c) { + return c.getAdGroup().getUrlCustomParameters(); + } + }); + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkAdGroup c) { + return c.getAdGroup().getUrlCustomParameters(); + } + }, new Supplier() { + @Override + public BulkAdGroup get() { + return new BulkAdGroup(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadTests.java new file mode 100644 index 0000000000..b2f5089c6b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/read/BulkAdGroupReadTests.java @@ -0,0 +1,30 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAdGroupReadFromRowValuesAdDistributionTest.class, + BulkAdGroupReadFromRowValuesAdRotationNullTest.class, + BulkAdGroupReadFromRowValuesAdRotationTest.class, + BulkAdGroupReadFromRowValuesBroadMatchBidTest.class, + BulkAdGroupReadFromRowValuesCampaignIdTest.class, + BulkAdGroupReadFromRowValuesCampaignNameTest.class, + BulkAdGroupReadFromRowValuesContentMatchBidTest.class, + BulkAdGroupReadFromRowValuesEndDateTest.class, + BulkAdGroupReadFromRowValuesIdTest.class, + BulkAdGroupReadFromRowValuesLanguageTest.class, + BulkAdGroupReadFromRowValuesNameTest.class, + BulkAdGroupReadFromRowValuesNetworkNullTest.class, + BulkAdGroupReadFromRowValuesNetworkTest.class, + BulkAdGroupReadFromRowValuesPricingModelNullTest.class, + BulkAdGroupReadFromRowValuesPricingModelTest.class, + BulkAdGroupReadFromRowValuesStartDateTest.class, + BulkAdGroupReadFromRowValuesStatusTest.class, + BulkAdGroupReadFromRowValuesNativeBidAdjustmentTest.class, +}) +public class BulkAdGroupReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteTests.java new file mode 100644 index 0000000000..c42599b856 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteTests.java @@ -0,0 +1,19 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAdGroupWriteToRowValuesAdDistributionTests.class, + BulkAdGroupWriteToRowValuesAdRotationTests.class, + BulkAdGroupWriteToRowValuesBroadMatchBidTests.class, + BulkAdGroupWriteToRowValuesNetworkTests.class, + BulkAdGroupWriteToRowValuesPricingModelTests.class, + BulkAdGroupWriteToRowValuesStartDateTests.class, + BulkAdGroupWriteToRowValuesNativeBidAdjustmentTest.class, +}) +public class BulkAdGroupWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdDistributionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdDistributionTests.java new file mode 100644 index 0000000000..ccbf42d679 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdDistributionTests.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdDistribution; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesAdDistributionTests extends BulkAdGroupTest { + + @Parameter(value = 1) + public List propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"On", Arrays.asList(new AdDistribution[]{AdDistribution.SEARCH})}, + {"On", Arrays.asList(new AdDistribution[]{AdDistribution.SEARCH, AdDistribution.CONTENT})}, + {"Off", Arrays.asList(new AdDistribution[]{AdDistribution.CONTENT})}, + {"Off", Arrays.asList(new AdDistribution[]{})} + }); + } + + @Test + public void testWrite() { + this.>testWriteProperty("Search Network", this.datum, this.propertyValue, new BiConsumer>() { + @Override + public void accept(BulkAdGroup c, List v) { + c.getAdGroup().setAdDistribution(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdRotationTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdRotationTests.java new file mode 100644 index 0000000000..93b61e1a2a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesAdRotationTests.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.AdRotation; +import com.microsoft.bingads.v10.campaignmanagement.AdRotationType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesAdRotationTests extends BulkAdGroupTest { + + @Parameter(value = 1) + public AdRotationType propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"OptimizeForClicks", AdRotationType.OPTIMIZE_FOR_CLICKS}, + {"RotateAdsEvenly", AdRotationType.ROTATE_ADS_EVENLY}, + {null, null} + }); + } + + @Test + public void testWrite() { + AdRotation rotation = new AdRotation(); + rotation.setType(this.propertyValue); + this.testWriteProperty("Ad Rotation", this.datum, rotation, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, AdRotation v) { + c.getAdGroup().setAdRotation(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesBroadMatchBidTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesBroadMatchBidTests.java new file mode 100644 index 0000000000..955d3184cf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesBroadMatchBidTests.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesBroadMatchBidTests extends BulkAdGroupTest { + + @Parameter(value = 1) + public Bid propertyValue; + + @Parameters + public static Collection data() { + Bid withValue = new Bid(); + withValue.setAmount(12.34); + + Bid zeroValue = new Bid(); + zeroValue.setAmount(0.0); + + return Arrays.asList(new Object[][]{ + {"12.34", withValue}, + {"delete_value", zeroValue}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Search Bid", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, Bid v) { + c.getAdGroup().setSearchBid(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNativeBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNativeBidAdjustmentTest.java new file mode 100644 index 0000000000..321f1967cf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNativeBidAdjustmentTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesNativeBidAdjustmentTest extends BulkAdGroupTest { + + @Parameterized.Parameter(value = 1) + public Integer propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"1", 1}, + {"2147483647", Integer.MAX_VALUE}, + {"0", 0}, + {"-1", -1}, + {"-2147483648", Integer.MIN_VALUE}, + {null, null} + }); + } + + @Test + public void testWrite() { + testWriteProperty("Bid Adjustment", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, Integer v) { + c.getAdGroup().setNativeBidAdjustment(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNetworkTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNetworkTests.java new file mode 100644 index 0000000000..db6c3563fe --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNetworkTests.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Network; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesNetworkTests extends BulkAdGroupTest { + + @Parameter(value = 1) + public Network propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"OwnedAndOperatedAndSyndicatedSearch", Network.OWNED_AND_OPERATED_AND_SYNDICATED_SEARCH}, + {"OwnedAndOperatedOnly", Network.OWNED_AND_OPERATED_ONLY}, + {"SyndicatedSearchOnly", Network.SYNDICATED_SEARCH_ONLY}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Network Distribution", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, Network v) { + c.getAdGroup().setNetwork(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesPricingModelTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesPricingModelTests.java new file mode 100644 index 0000000000..f3e0eaa262 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesPricingModelTests.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.PricingModel; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesPricingModelTests extends BulkAdGroupTest { + + @Parameter(value = 1) + public PricingModel propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Cpc", PricingModel.CPC}, + {"Cpm", PricingModel.CPM}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Pricing Model", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, PricingModel v) { + c.getAdGroup().setPricingModel(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesStartDateTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesStartDateTests.java new file mode 100644 index 0000000000..375c24f649 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesStartDateTests.java @@ -0,0 +1,43 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.Date; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesStartDateTests extends BulkAdGroupTest { + + @Parameter(value = 1) + public Date propertyValue; + + @Parameters + public static Collection data() { + Date date = new Date(); + date.setDay(17); + date.setMonth(6); + date.setYear(1987); + return Arrays.asList(new Object[][]{ + {"6/17/1987", date}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Start Date", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, Date v) { + c.getAdGroup().setStartDate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..683c1a03b8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesTrackingTemplateTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesTrackingTemplateTest extends BulkAdGroupTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", ""}, + {"template", "template"}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Tracking Template", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, String v) { + c.getAdGroup().setTrackingUrlTemplate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesUrlCustomParameters.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesUrlCustomParameters.java new file mode 100644 index 0000000000..7489f50876 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesUrlCustomParameters.java @@ -0,0 +1,82 @@ +package com.microsoft.bingads.v10.api.test.entities.adgroup.write; + + +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroup; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupWriteToRowValuesUrlCustomParameters extends BulkAdGroupTest { + + @Parameter(value = 1) + public CustomParameters propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, CustomParameters v) { + c.getAdGroup().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue = new CustomParameters(); + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, CustomParameters v) { + c.getAdGroup().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue.setParameters(new ArrayOfCustomParameter()); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, CustomParameters v) { + c.getAdGroup().setUrlCustomParameters(v);; + } + }); + + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroup c, CustomParameters v) { + c.getAdGroup().setUrlCustomParameters(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdReadWriteTest.java new file mode 100644 index 0000000000..d364ca3613 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkProductAd; +import org.junit.Test; + +public class BulkProductAdReadWriteTest { + + @Test + public void bulkProductAd_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkProductAd()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTest.java new file mode 100644 index 0000000000..40cabdfa3b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkProductAd; +import com.microsoft.bingads.v10.campaignmanagement.ProductAd; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkProductAdTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkProductAd entity) { + entity.setProductAd(new ProductAd()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkProductAd get() { + return new BulkProductAd(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkProductAd get() { + return new BulkProductAd(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkProductAd get() { + return new BulkProductAd(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTests.java new file mode 100644 index 0000000000..bb873a00cc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/BulkProductAdTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product; + +import com.microsoft.bingads.v10.api.test.entities.ads.product.read.BulkProductAdReadTests; +import com.microsoft.bingads.v10.api.test.entities.ads.product.write.BulkProductAdWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkProductAdReadTests.class, BulkProductAdWriteTests.class}) +public class BulkProductAdTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadFromRowValuesPromotionalTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadFromRowValuesPromotionalTextTest.java new file mode 100644 index 0000000000..680c2dc0fe --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadFromRowValuesPromotionalTextTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product.read; + +import com.microsoft.bingads.v10.api.test.entities.ads.product.BulkProductAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkProductAd; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkProductAdReadFromRowValuesPromotionalTextTest extends BulkProductAdTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test Text 1", "Test Text 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Promotion", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkProductAd c) { + return c.getProductAd().getPromotionalText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadTests.java new file mode 100644 index 0000000000..ea584a60e1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/read/BulkProductAdReadTests.java @@ -0,0 +1,11 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkProductAdReadFromRowValuesPromotionalTextTest.class}) +public class BulkProductAdReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteTests.java new file mode 100644 index 0000000000..93118decc1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteTests.java @@ -0,0 +1,11 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkProductAdWriteToRowValuesPromotionalTextTest.class}) +public class BulkProductAdWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesEditorialStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesEditorialStatusTest.java new file mode 100644 index 0000000000..81e89ee6a9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesEditorialStatusTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.product.BulkProductAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkProductAd; +import com.microsoft.bingads.v10.campaignmanagement.AdEditorialStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkProductAdWriteToRowValuesEditorialStatusTest extends BulkProductAdTest { + + @Parameter(value = 1) + public AdEditorialStatus propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdEditorialStatus.ACTIVE}, + {"ActiveLimited", AdEditorialStatus.ACTIVE_LIMITED}, + {"Disapproved", AdEditorialStatus.DISAPPROVED}, + {"Inactive", AdEditorialStatus.INACTIVE}, + {null, null}}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Editorial Status", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkProductAd c, AdEditorialStatus v) { + c.getProductAd().setEditorialStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesPromotionalTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesPromotionalTextTest.java new file mode 100644 index 0000000000..c8fbe14d38 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/product/write/BulkProductAdWriteToRowValuesPromotionalTextTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.product.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.product.BulkProductAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkProductAd; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkProductAdWriteToRowValuesPromotionalTextTest extends BulkProductAdTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test keyword text", "Test keyword text"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Promotion", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkProductAd c, String v) { + c.getProductAd().setPromotionalText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdReadWriteTest.java new file mode 100644 index 0000000000..0261138a35 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdReadWriteTest.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import org.junit.Test; + +public class BulkTextAdReadWriteTest { + + @Test + public void bulkTextAd_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkTextAd()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTest.java new file mode 100644 index 0000000000..119d081b88 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.TextAd; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkTextAdTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkTextAd entity) { + entity.setTextAd(new TextAd()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkTextAd get() { + return new BulkTextAd(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkTextAd get() { + return new BulkTextAd(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkTextAd get() { + return new BulkTextAd(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTests.java new file mode 100644 index 0000000000..71fe251a4a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/BulkTextAdTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.read.BulkTextAdReadTests; +import com.microsoft.bingads.v10.api.test.entities.ads.text.write.BulkTextAdWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkTextAdReadTests.class, BulkTextAdWriteTests.class}) +public class BulkTextAdTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..48793d9014 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDestinationUrlTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.read; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdReadFromRowValuesDestinationUrlTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"http://www.go-there.mic", "http://www.go-there.mic"}, + {"", ""}, + {null, ""} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Destination Url", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getTextAd().getDestinationUrl(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDisplayUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDisplayUrlTest.java new file mode 100644 index 0000000000..e9bbcdb7c7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesDisplayUrlTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.read; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdReadFromRowValuesDisplayUrlTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"http://display.go-there.mic", "http://display.go-there.mic"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Display Url", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getTextAd().getDisplayUrl(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalMobileUrlsTest.java new file mode 100644 index 0000000000..06110f33c0 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalMobileUrlsTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; + +public class BulkTextAdReadFromRowValuesFinalMobileUrlsTest extends BulkTextAdTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Mobile Final Url", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfstring apply(BulkTextAd c) { + return c.getTextAd().getFinalMobileUrls(); + } + }, new Supplier() { + @Override + public BulkTextAd get() { + return new BulkTextAd(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalUrlsTest.java new file mode 100644 index 0000000000..60b32ec276 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesFinalUrlsTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +public class BulkTextAdReadFromRowValuesFinalUrlsTest extends BulkTextAdTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Final Url", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfstring apply(BulkTextAd c) { + return c.getTextAd().getFinalUrls(); + } + }, new Supplier() { + @Override + public BulkTextAd get() { + return new BulkTextAd(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTextTest.java new file mode 100644 index 0000000000..e7848a11ff --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTextTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.read; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdReadFromRowValuesTextTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Text 1", "Test Text 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Text", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getTextAd().getText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTitleTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTitleTest.java new file mode 100644 index 0000000000..bd082c6ff6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTitleTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.read; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdReadFromRowValuesTitleTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Title 1", "Test Title 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Title", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getTextAd().getTitle(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..f76fffc1fc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesTrackingTemplateTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.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.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; + +public class BulkTextAdReadFromRowValuesTrackingTemplateTest extends BulkTextAdTest{ + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", ""}, + {"template", "template"}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Tracking Template", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkTextAd c) { + return c.getTextAd().getTrackingUrlTemplate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesUrlCustomParametersTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesUrlCustomParametersTest.java new file mode 100644 index 0000000000..087867b68f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadFromRowValuesUrlCustomParametersTest.java @@ -0,0 +1,72 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.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.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + + +public class BulkTextAdReadFromRowValuesUrlCustomParametersTest extends BulkTextAdTest{ + + @Parameter(value = 1) + public CustomParameters expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + }); + } + @Test + public void testRead() { + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkTextAd c) { + return c.getTextAd().getUrlCustomParameters(); + } + }); + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkTextAd c) { + return c.getTextAd().getUrlCustomParameters(); + } + }, new Supplier() { + @Override + public BulkTextAd get() { + return new BulkTextAd(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadTests.java new file mode 100644 index 0000000000..94580e4b12 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/read/BulkTextAdReadTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkTextAdReadFromRowValuesDestinationUrlTest.class, + BulkTextAdReadFromRowValuesDisplayUrlTest.class, + BulkTextAdReadFromRowValuesTextTest.class, + BulkTextAdReadFromRowValuesTitleTest.class}) +public class BulkTextAdReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteTests.java new file mode 100644 index 0000000000..65e650a7d5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkTextAdWriteToRowValuesDestinationUrlTest.class, + BulkTextAdWriteToRowValuesDisplayUrlTest.class, + BulkTextAdWriteToRowValuesTextTest.class, + BulkTextAdWriteToRowValuesTitleTest.class}) +public class BulkTextAdWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..12ebd202cf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDestinationUrlTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesDestinationUrlTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"http://test.url", "http://test.url"}, + {"delete_value", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Destination Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, String v) { + c.getTextAd().setDestinationUrl(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDisplayUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDisplayUrlTest.java new file mode 100644 index 0000000000..a010146942 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesDisplayUrlTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesDisplayUrlTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"http://test.url", "http://test.url"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Display Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, String v) { + c.getTextAd().setDisplayUrl(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesEditorialStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesEditorialStatusTest.java new file mode 100644 index 0000000000..6871f8b33a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesEditorialStatusTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.AdEditorialStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesEditorialStatusTest extends BulkTextAdTest { + + @Parameter(value = 1) + public AdEditorialStatus propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", AdEditorialStatus.ACTIVE}, + {"ActiveLimited", AdEditorialStatus.ACTIVE_LIMITED}, + {"Disapproved", AdEditorialStatus.DISAPPROVED}, + {"Inactive", AdEditorialStatus.INACTIVE}, + {null, null}}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Editorial Status", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, AdEditorialStatus v) { + c.getTextAd().setEditorialStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalMobileUrlsTest.java new file mode 100644 index 0000000000..1fcad5dfd6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalMobileUrlsTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesFinalMobileUrlsTest extends BulkTextAdTest { + + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Mobile Final Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, ArrayOfstring v) { + c.getTextAd().setFinalMobileUrls(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalUrlsTest.java new file mode 100644 index 0000000000..2485151eb3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesFinalUrlsTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesFinalUrlsTest extends BulkTextAdTest { + + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Final Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, ArrayOfstring v) { + c.getTextAd().setFinalUrls(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTextTest.java new file mode 100644 index 0000000000..a25b767b56 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTextTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesTextTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test keyword text", "Test keyword text"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Text", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, String v) { + c.getTextAd().setText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTitleTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTitleTest.java new file mode 100644 index 0000000000..0441f30be6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTitleTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesTitleTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test ad title", "Test ad title"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Title", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, String v) { + c.getTextAd().setTitle(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..54679291b8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesTrackingTemplateTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; + +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesTrackingTemplateTest extends BulkTextAdTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", ""}, + {"template", "template"}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Tracking Template", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, String v) { + c.getTextAd().setTrackingUrlTemplate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesUrlCustomParameters.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesUrlCustomParameters.java new file mode 100644 index 0000000000..63e06c00da --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/ads/text/write/BulkTextAdWriteToRowValuesUrlCustomParameters.java @@ -0,0 +1,79 @@ +package com.microsoft.bingads.v10.api.test.entities.ads.text.write; + +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTest; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkTextAdWriteToRowValuesUrlCustomParameters extends BulkTextAdTest { + + @Parameter(value = 1) + public CustomParameters propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, CustomParameters v) { + c.getTextAd().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue = new CustomParameters(); + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, CustomParameters v) { + c.getTextAd().setUrlCustomParameters(v);; + } + }); + + + this.datum = "delete_value"; + propertyValue.setParameters(new ArrayOfCustomParameter()); + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, CustomParameters v) { + c.getTextAd().setUrlCustomParameters(v);; + } + }); + + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkTextAd c, CustomParameters v) { + c.getTextAd().setUrlCustomParameters(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTest.java new file mode 100644 index 0000000000..656ee9e6bc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeywordBidSuggestion; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Map; + +public abstract class BulkKeywordBidSuggestionTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkKeywordBidSuggestion entity) { + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkKeywordBidSuggestion get() { + return new BulkKeywordBidSuggestion(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkKeywordBidSuggestion get() { + return new BulkKeywordBidSuggestion(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkKeywordBidSuggestion get() { + return new BulkKeywordBidSuggestion(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTests.java new file mode 100644 index 0000000000..533b03b5a6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/BulkKeywordBidSuggestionTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data; + +import com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data.read.BulkKeywordBidSuggestionReadTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkKeywordBidSuggestionReadTests.class}) +public class BulkKeywordBidSuggestionTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesBidTest.java new file mode 100644 index 0000000000..57f03787a7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesBidTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data.read; + +import com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data.BulkKeywordBidSuggestionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeywordBidSuggestion; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordBidSuggestionReadFromRowValuesBidTest extends BulkKeywordBidSuggestionTest { + + @Parameter(value = 1) + public Double expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"12.34", 12.34}, + {"", null},}); + } + + @Test + public void testRead() { + this.testReadProperty("Bid", this.datum, this.expectedResult, new Function() { + @Override + public Double apply(BulkKeywordBidSuggestion c) { + return c.getBid(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesTextTest.java new file mode 100644 index 0000000000..cc28547c50 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadFromRowValuesTextTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data.read; + +import com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data.BulkKeywordBidSuggestionTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeywordBidSuggestion; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordBidSuggestionReadFromRowValuesTextTest extends BulkKeywordBidSuggestionTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Keyword 1", "Test Keyword 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Keyword", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeywordBidSuggestion c) { + return c.getKeywordText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadTests.java new file mode 100644 index 0000000000..a501cc01cd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/bid_suggestion_data/read/BulkKeywordBidSuggestionReadTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkKeywordBidSuggestionReadFromRowValuesBidTest.class, + BulkKeywordBidSuggestionReadFromRowValuesTextTest.class}) +public class BulkKeywordBidSuggestionReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadTests.java new file mode 100644 index 0000000000..4abbf5825c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadTests.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign; + +import com.microsoft.bingads.v10.api.test.entities.campaign.read.*; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignReadFromRowValuesAccountIdTest.class, + BulkCampaignReadFromRowValuesBudgetTypeTest.class, + BulkCampaignReadFromRowValuesDailyBudgetTest.class, + BulkCampaignReadFromRowValuesIdTest.class, + BulkCampaignReadFromRowValuesKeywordRelevanceNotSetTest.class, + BulkCampaignReadFromRowValuesKeywordRelevanceTest.class, + BulkCampaignReadFromRowValuesLandingPageRelevanceNotSetTest.class, + BulkCampaignReadFromRowValuesLandingPageRelevanceTest.class, + BulkCampaignReadFromRowValuesLandingPageUserExperienceNotSetTest.class, + BulkCampaignReadFromRowValuesLandingPageUserExperienceTest.class, + BulkCampaignReadFromRowValuesMonthlyBudgetTest.class, + BulkCampaignReadFromRowValuesNameTest.class, + BulkCampaignReadFromRowValuesPerformanceDataSpendNotSetTest.class, + BulkCampaignReadFromRowValuesPerformanceDataSpendTest.class, + BulkCampaignReadFromRowValuesQualityScoreNotSetTest.class, + BulkCampaignReadFromRowValuesQualityScoreTest.class, + BulkCampaignReadFromRowValuesStatusTest.class, + BulkCampaignReadFromRowValuesTimeZoneTest.class, + BulkCampaignReadFromRowValuesNativeBidAdjustmentTest.class, + BulkCampaignReadFromRowValuesCampaignTypeTest.class, + BulkCampaignReadFromRowValuesSettingsTest.class +}) +public class BulkCampaignReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadWriteTest.java new file mode 100644 index 0000000000..eb8567b747 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignReadWriteTest.java @@ -0,0 +1,19 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.api.test.entities.QualityScoreDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import org.junit.Test; + +public class BulkCampaignReadWriteTest { + + @Test + public void bulkCampaign_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkCampaign()); + } + + @Test + public void bulkCampaign_ReadQSData_WriteToFile() { + QualityScoreDataTestHelper.testQualityScoreDataReadWrite(new BulkCampaign()); + } +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTest.java new file mode 100644 index 0000000000..5dc16ba8a1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTest.java @@ -0,0 +1,122 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.api.test.entities.EqualityComparerWithDescription; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.Campaign; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaign entity) { + entity.setCampaign(new Campaign()); + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, + TProperty propertyValue, + BiConsumer setFunc + ) { + testWriteProperty( + header, + expectedRowValue, + propertyValue, + setFunc, + new Supplier() { + @Override + public BulkCampaign get() { + return new BulkCampaign(); + } + } + ); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + testReadProperty( + header, + input, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkCampaign get() { + return new BulkCampaign(); + } + } + ); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + testReadProperty( + rowValues, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkCampaign get() { + return new BulkCampaign(); + } + } + ); + } + + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc, + EqualityComparerWithDescription comparer + ) { + testReadProperty( + header, + input, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkCampaign get() { + return new BulkCampaign(); + } + }, + comparer + ); + } + + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc, + EqualityComparerWithDescription comparer + ) { + testReadProperty( + rowValues, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkCampaign get() { + return new BulkCampaign(); + } + }, + comparer + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTests.java new file mode 100644 index 0000000000..2e9b62a8f2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignTests.java @@ -0,0 +1,16 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignReadTests; +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignReadTests.class, + BulkCampaignWriteTests.class +}) +public class BulkCampaignTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignWriteTests.java new file mode 100644 index 0000000000..2129cb0acc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/BulkCampaignWriteTests.java @@ -0,0 +1,29 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign; + +import com.microsoft.bingads.v10.api.test.entities.campaign.write.*; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignWriteToRowValuesAccountIdTest.class, + BulkCampaignWriteToRowValuesBudgetTypeTest.class, + BulkCampaignWriteToRowValuesDailyBudgetTest.class, + BulkCampaignWriteToRowValuesIdTest.class, + BulkCampaignWriteToRowValuesMonthlyBudgetTest.class, + BulkCampaignWriteToRowValuesNameTest.class, + BulkCampaignWriteToRowValuesStatusTest.class, + BulkCampaignWriteToRowValuesTimeZoneTest.class, + BulkCampaignWriteToRowValuesNativeBidAdjustmentTest.class, + BulkCampaignWriteToRowValuesCampaignTypeTest.class, + BulkCampaignWriteToRowValuesStoreIdShoppingSettingTest.class, + BulkCampaignWriteToRowValuesStoreIdOtherSettingTest.class, + BulkCampaignWriteToRowValuesPriorityShoppingSettingTest.class, + BulkCampaignWriteToRowValuesPriorityOtherSettingTest.class, + BulkCampaignWriteToRowValuesCountryCodeShoppingSettingTest.class, + BulkCampaignWriteToRowValuesCountryCodeOtherSettingTest.class +}) +public class BulkCampaignWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAccountIdTest.java new file mode 100644 index 0000000000..1fd0b58ef2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesAccountIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesAccountIdTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkCampaign c) { + return c.getAccountId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesBudgetTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesBudgetTypeTest.java new file mode 100644 index 0000000000..2ec6642ea1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesBudgetTypeTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.BudgetLimitType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignReadFromRowValuesBudgetTypeTest extends BulkCampaignTest { + + @Parameter(value = 1) + public BudgetLimitType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"MonthlyBudgetSpendUntilDepleted", BudgetLimitType.MONTHLY_BUDGET_SPEND_UNTIL_DEPLETED}, + {"DailyBudgetAccelerated", BudgetLimitType.DAILY_BUDGET_ACCELERATED}, + {"DailyBudgetStandard", BudgetLimitType.DAILY_BUDGET_STANDARD}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Budget Type", this.datum, this.expectedResult, new Function() { + @Override + public BudgetLimitType apply(BulkCampaign c) { + return c.getCampaign().getBudgetType(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesCampaignTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesCampaignTypeTest.java new file mode 100644 index 0000000000..b3aba773ee --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesCampaignTypeTest.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.CampaignType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesCampaignTypeTest extends BulkCampaignTest { + + @Parameterized.Parameter + public String datum; + + @Parameterized.Parameter(value = 1) + public Collection expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {null, null}, + {"", null}, + {"SearchAndContent", Collections.singletonList(CampaignType.SEARCH_AND_CONTENT)}, + {"Shopping", Collections.singletonList(CampaignType.SHOPPING)}, + } + ); + } + + @Test + public void testRead() { + testReadProperty( + "Campaign Type", + datum, + expectedResult, + new Function>() { + @Override + public Collection apply(BulkCampaign c) { + return c.getCampaign().getCampaignType(); + } + }, + new ObjectComparer>() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesDailyBudgetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesDailyBudgetTest.java new file mode 100644 index 0000000000..44ca872eac --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesDailyBudgetTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesDailyBudgetTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameter(value = 2) + public String dailyBudgetTypeRowValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"12.34", 12.34, "DailyBudgetAccelerated"}, + {"12.34", 12.34, "DailyBudgetStandard"}, + {"", null, "DailyBudgetAccelerated"}, + {"", null, "DailyBudgetStandard"}, + {null, null, "DailyBudgetAccelerated"}, + {null, null, "DailyBudgetStandard"} + }); + } + + @Test + public void testRead() { + Map rowValues = new HashMap(); + rowValues.put("Budget Type", this.dailyBudgetTypeRowValue); + rowValues.put("Budget", this.datum); + this.testReadProperty(rowValues, this.expectedResult, new Function() { + @Override + public Double apply(BulkCampaign c) { + return c.getCampaign().getDailyBudget(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..0f94e45f7a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesIdTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkCampaign c) { + return c.getCampaign().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceNotSetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceNotSetTest.java new file mode 100644 index 0000000000..13bdbb3242 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceNotSetTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.bulk.entities.QualityScoreData; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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.Parameters; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesKeywordRelevanceNotSetTest extends BulkCampaignTest { + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Keyword Relevance", this.datum, null, new Function() { + @Override + public QualityScoreData apply(BulkCampaign c) { + return c.getQualityScoreData(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceTest.java new file mode 100644 index 0000000000..e7cfd648df --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesKeywordRelevanceTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesKeywordRelevanceTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Keyword Relevance", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaign c) { + return c.getQualityScoreData().getKeywordRelevance(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceNotSetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceNotSetTest.java new file mode 100644 index 0000000000..33dad2b8c1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceNotSetTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.bulk.entities.QualityScoreData; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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.Parameters; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesLandingPageRelevanceNotSetTest extends BulkCampaignTest { + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Landing Page Relevance", this.datum, null, new Function() { + @Override + public QualityScoreData apply(BulkCampaign c) { + return c.getQualityScoreData(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceTest.java new file mode 100644 index 0000000000..19647916f8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageRelevanceTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesLandingPageRelevanceTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Landing Page Relevance", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaign c) { + return c.getQualityScoreData().getLandingPageRelevance(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceNotSetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceNotSetTest.java new file mode 100644 index 0000000000..d533d131dc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceNotSetTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.bulk.entities.QualityScoreData; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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.Parameters; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesLandingPageUserExperienceNotSetTest extends BulkCampaignTest { + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Landing Page User Experience", this.datum, null, new Function() { + @Override + public QualityScoreData apply(BulkCampaign c) { + return c.getQualityScoreData(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceTest.java new file mode 100644 index 0000000000..a3a1bc36ad --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesLandingPageUserExperienceTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesLandingPageUserExperienceTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Landing Page User Experience", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaign c) { + return c.getQualityScoreData().getLandingPageUserExperience(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesMonthlyBudgetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesMonthlyBudgetTest.java new file mode 100644 index 0000000000..32b4a04392 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesMonthlyBudgetTest.java @@ -0,0 +1,43 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesMonthlyBudgetTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"12.34", 12.34}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + Map rowValues = new HashMap(); + rowValues.put("Budget Type", "MonthlyBudgetSpendUntilDepleted"); + rowValues.put("Budget", this.datum); + this.testReadProperty(rowValues, this.expectedResult, new Function() { + @Override + public Double apply(BulkCampaign c) { + return c.getCampaign().getMonthlyBudget(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNameTest.java new file mode 100644 index 0000000000..77142d3ae6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignReadFromRowValuesNameTest extends BulkCampaignTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaign c) { + return c.getCampaign().getName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNativeBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNativeBidAdjustmentTest.java new file mode 100644 index 0000000000..96c73567dd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesNativeBidAdjustmentTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesNativeBidAdjustmentTest extends BulkCampaignTest { + + @Parameterized.Parameter + public String datum; + + @Parameterized.Parameter(value = 1) + public Integer expectedResult; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"1", 1}, + {"2147483647", Integer.MAX_VALUE}, + {"0", 0}, + {"-1", -1}, + {"-2147483648", Integer.MIN_VALUE}, + {null, null} + } + ); + } + + @Test + public void testRead() { + testReadProperty( + "Bid Adjustment", + datum, + expectedResult, + new Function() { + @Override + public Integer apply(BulkCampaign c) { + return c.getCampaign().getNativeBidAdjustment(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendNotSetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendNotSetTest.java new file mode 100644 index 0000000000..5769f75459 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendNotSetTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.bulk.entities.PerformanceData; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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.Parameters; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesPerformanceDataSpendNotSetTest extends BulkCampaignTest { + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Spend", this.datum, null, new Function() { + @Override + public PerformanceData apply(BulkCampaign c) { + return c.getPerformanceData(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendTest.java new file mode 100644 index 0000000000..cfbf693850 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesPerformanceDataSpendTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesPerformanceDataSpendTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"12.34", 12.34},}); + } + + @Test + public void testRead() { + this.testReadProperty("Spend", this.datum, this.expectedResult, new Function() { + @Override + public Double apply(BulkCampaign c) { + return c.getPerformanceData().getSpend(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreNotSetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreNotSetTest.java new file mode 100644 index 0000000000..f1d8bd69b0 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreNotSetTest.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.bulk.entities.QualityScoreData; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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.Parameters; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesQualityScoreNotSetTest extends BulkCampaignTest { + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {""}, + {null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Quality Score", this.datum, null, new Function() { + @Override + public QualityScoreData apply(BulkCampaign c) { + return c.getQualityScoreData(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreTest.java new file mode 100644 index 0000000000..9c9a56eb32 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesQualityScoreTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesQualityScoreTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Integer expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123}, + {"2147483647", 2147483647} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Quality Score", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaign c) { + return c.getQualityScoreData().getQualityScore(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesSettingsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesSettingsTest.java new file mode 100644 index 0000000000..35ae8a0aea --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesSettingsTest.java @@ -0,0 +1,80 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.Setting; +import com.microsoft.bingads.v10.campaignmanagement.ShoppingSetting; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.*; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesSettingsTest extends BulkCampaignTest { + + @Parameterized.Parameter(value = 1) + public String storeId; + + @Parameterized.Parameter(value = 2) + public String campaignPriority; + + @Parameterized.Parameter(value = 3) + public String countryCode; + + @Parameterized.Parameter(value = 4) + public List expectedResult; + + @Parameterized.Parameters + public static Collection data() { + ShoppingSetting setting1 = new ShoppingSetting(); + setting1.setStoreId(123L); + setting1.setPriority(1); + setting1.setSalesCountryCode("US"); + setting1.setType("ShoppingSetting"); + + ShoppingSetting setting2 = new ShoppingSetting(); + setting2.setStoreId(2147483647L); + setting2.setPriority(2); + setting2.setSalesCountryCode("CHINA"); + setting2.setType("ShoppingSetting"); + + return Arrays.asList( + new Object[][]{ + {"Shopping", "123", "1", "US", Collections.singletonList(setting1)}, + {"Shopping", "2147483647", "2", "CHINA", Collections.singletonList(setting2)}, + {"SearchAndContent", "", "", "", null}, + {"", "", "", "", null}, + {"SearchAndContent", "1234", "123", "CANADA", null}, + } + ); + } + + @Test + public void testRead() { + Map values = new HashMap(); + + values.put("Campaign Type", datum); + values.put("Store Id", storeId); + values.put("Priority", campaignPriority); + values.put("Country Code", countryCode); + + testReadProperty( + values, + this.expectedResult, + new Function>() { + @Override + public List apply(BulkCampaign c) { + if (c.getCampaign().getSettings() == null) { + return null; + } + return c.getCampaign().getSettings().getSettings(); + } + }, + new ObjectComparer>() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..62c66de42e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesStatusTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.CampaignStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignReadFromRowValuesStatusTest extends BulkCampaignTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public CampaignStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", CampaignStatus.ACTIVE}, + {"Paused", CampaignStatus.PAUSED}, + {"BudgetPaused", CampaignStatus.BUDGET_PAUSED}, + {"BudgetAndManualPaused", CampaignStatus.BUDGET_AND_MANUAL_PAUSED}, + {"Suspended", CampaignStatus.SUSPENDED}, + {"Deleted", CampaignStatus.DELETED}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public CampaignStatus apply(BulkCampaign c) { + return c.getCampaign().getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTimeZoneTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTimeZoneTest.java new file mode 100644 index 0000000000..1531da0db1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTimeZoneTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignReadFromRowValuesTimeZoneTest extends BulkCampaignTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Time zone string", "Time zone string"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Time Zone", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaign c) { + return c.getCampaign().getTimeZone(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..820d977f19 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesTrackingTemplateTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.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.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; + +public class BulkCampaignReadFromRowValuesTrackingTemplateTest extends BulkCampaignTest{ + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", ""}, + {"template", "template"}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Tracking Template", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaign c) { + return c.getCampaign().getTrackingUrlTemplate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesUrlCustomParametersTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesUrlCustomParametersTest.java new file mode 100644 index 0000000000..8f9e77dff7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/read/BulkCampaignReadFromRowValuesUrlCustomParametersTest.java @@ -0,0 +1,71 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.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.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + + +public class BulkCampaignReadFromRowValuesUrlCustomParametersTest extends BulkCampaignTest{ + + @Parameter(value = 1) + public CustomParameters expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + }); + } + @Test + public void testRead() { + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkCampaign c) { + return c.getCampaign().getUrlCustomParameters(); + } + }); + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkCampaign c) { + return c.getCampaign().getUrlCustomParameters(); + } + }, new Supplier() { + @Override + public BulkCampaign get() { + return new BulkCampaign(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAccountIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAccountIdTest.java new file mode 100644 index 0000000000..666cf6c75c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesAccountIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesAccountIdTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkCampaign c, Long v) { + c.setAccountId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesBudgetTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesBudgetTypeTest.java new file mode 100644 index 0000000000..b5f51b62b3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesBudgetTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.BudgetLimitType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesBudgetTypeTest extends BulkCampaignTest { + + @Parameter(value = 1) + public BudgetLimitType propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"MonthlyBudgetSpendUntilDepleted", BudgetLimitType.MONTHLY_BUDGET_SPEND_UNTIL_DEPLETED}, + {"DailyBudgetAccelerated", BudgetLimitType.DAILY_BUDGET_ACCELERATED}, + {"DailyBudgetStandard", BudgetLimitType.DAILY_BUDGET_STANDARD}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Budget Type", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, BudgetLimitType v) { + c.getCampaign().setBudgetType(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCampaignTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCampaignTypeTest.java new file mode 100644 index 0000000000..f449ce484b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCampaignTypeTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.CampaignType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesCampaignTypeTest extends BulkCampaignTest { + + @Parameterized.Parameter(value = 1) + public Collection propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {null, null}, + {"SearchAndContent", Collections.singletonList(CampaignType.SEARCH_AND_CONTENT)}, + {"Shopping", Collections.singletonList(CampaignType.SHOPPING)}, + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Campaign Type", + datum, + propertyValue, + new BiConsumer>() { + @Override + public void accept(BulkCampaign c, Collection v) { + c.getCampaign().setCampaignType(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeOtherSettingTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeOtherSettingTest.java new file mode 100644 index 0000000000..5d7c32f4a7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeOtherSettingTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v10.campaignmanagement.ShoppingSetting; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignWriteToRowValuesCountryCodeOtherSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, ""}, + {null, "US"}, + {null, null}, + {null, "CHINA"} + }); + } + + @Test + public void testWrite() { + testWriteProperty("Country Code", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, String v) { + c.getCampaign().setSettings(new ArrayOfSetting()); + ShoppingSetting setting = new ShoppingSetting(); + setting.setSalesCountryCode(v); + c.getCampaign().getSettings().getSettings().add(setting); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeShoppingSettingTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeShoppingSettingTest.java new file mode 100644 index 0000000000..b20b694869 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesCountryCodeShoppingSettingTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v10.campaignmanagement.CampaignType; +import com.microsoft.bingads.v10.campaignmanagement.ShoppingSetting; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +public class BulkCampaignWriteToRowValuesCountryCodeShoppingSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"", ""}, + {"US", "US"}, + {null, null}, + {"CHINA", "CHINA"} + }); + } + + @Test + public void testWrite() { + testWriteProperty("Country Code", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, String v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.SHOPPING)); + c.getCampaign().setSettings(new ArrayOfSetting()); + ShoppingSetting setting = new ShoppingSetting(); + setting.setSalesCountryCode(v); + c.getCampaign().getSettings().getSettings().add(setting); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDailyBudgetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDailyBudgetTest.java new file mode 100644 index 0000000000..d8c3be15e9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesDailyBudgetTest.java @@ -0,0 +1,52 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.BudgetLimitType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesDailyBudgetTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Double propertyValue; + + @Parameter(value = 2) + public BudgetLimitType budgetType; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"12.34", 12.34, BudgetLimitType.DAILY_BUDGET_ACCELERATED}, + {"12.34", 12.34, BudgetLimitType.DAILY_BUDGET_STANDARD}, + {null, null, BudgetLimitType.DAILY_BUDGET_ACCELERATED}, + {null, null, BudgetLimitType.DAILY_BUDGET_STANDARD} + }); + } + + @Test + public void testWrite() { + BiConsumer setValues = new BiConsumer() { + + @Override + public void accept(BulkCampaign c, Double v) { + c.getCampaign().setDailyBudget(v); + c.getCampaign().setBudgetType(budgetType); + } + }; + + this.testWriteProperty("Budget", this.datum, this.propertyValue, setValues); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..f26cd23f1d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesIdTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesIdTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkCampaign c, Long v) { + c.getCampaign().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesMonthlyBudgetTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesMonthlyBudgetTest.java new file mode 100644 index 0000000000..6c1b746cfa --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesMonthlyBudgetTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.BudgetLimitType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesMonthlyBudgetTest extends BulkCampaignTest { + + @Parameter(value = 1) + public Double propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"12.34", 12.34}, + {null, null} + }); + } + + @Test + public void testWrite() { + BiConsumer setValues = new BiConsumer() { + @Override + public void accept(BulkCampaign c, Double v) { + c.getCampaign().setMonthlyBudget(v); + c.getCampaign().setBudgetType(BudgetLimitType.MONTHLY_BUDGET_SPEND_UNTIL_DEPLETED); + } + }; + + this.testWriteProperty("Budget", this.datum, this.propertyValue, setValues); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNameTest.java new file mode 100644 index 0000000000..754263eef7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNameTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesNameTest extends BulkCampaignTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, String v) { + c.getCampaign().setName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNativeBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNativeBidAdjustmentTest.java new file mode 100644 index 0000000000..8bae641956 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesNativeBidAdjustmentTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesNativeBidAdjustmentTest extends BulkCampaignTest { + + @Parameterized.Parameter(value = 1) + public Integer propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"1", 1}, + {"2147483647", Integer.MAX_VALUE}, + {"0", 0}, + {"-1", -1}, + {"-2147483648", Integer.MIN_VALUE}, + {null, null} + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Bid Adjustment", + this.datum, + this.propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaign c, Integer v) { + c.getCampaign().setNativeBidAdjustment(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityOtherSettingTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityOtherSettingTest.java new file mode 100644 index 0000000000..14030e8b59 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityOtherSettingTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v10.campaignmanagement.ShoppingSetting; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignWriteToRowValuesPriorityOtherSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Integer propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {null, 1}, + {null, 123}, + {null, Integer.MAX_VALUE} + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Priority", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaign c, Integer v) { + c.getCampaign().setSettings(new ArrayOfSetting()); + + ShoppingSetting setting = new ShoppingSetting(); + + setting.setPriority(v); + + c.getCampaign().getSettings().getSettings().add(setting); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityShoppingSettingTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityShoppingSettingTest.java new file mode 100644 index 0000000000..d9f63c2ff9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesPriorityShoppingSettingTest.java @@ -0,0 +1,54 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v10.campaignmanagement.CampaignType; +import com.microsoft.bingads.v10.campaignmanagement.ShoppingSetting; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +public class BulkCampaignWriteToRowValuesPriorityShoppingSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Integer propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"1", 1}, + {"123", 123}, + {"2147483647", Integer.MAX_VALUE} + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Priority", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaign c, Integer v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.SHOPPING)); + + c.getCampaign().setSettings(new ArrayOfSetting()); + + ShoppingSetting setting = new ShoppingSetting(); + + setting.setPriority(v); + + c.getCampaign().getSettings().getSettings().add(setting); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..fcdaad3848 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStatusTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.CampaignStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesStatusTest extends BulkCampaignTest { + + @Parameter(value = 1) + public CampaignStatus propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Active", CampaignStatus.ACTIVE}, + {"Paused", CampaignStatus.PAUSED}, + {"BudgetPaused", CampaignStatus.BUDGET_PAUSED}, + {"BudgetAndManualPaused", CampaignStatus.BUDGET_AND_MANUAL_PAUSED}, + {"Suspended", CampaignStatus.SUSPENDED}, + {"Deleted", CampaignStatus.DELETED}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, CampaignStatus v) { + c.getCampaign().setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdOtherSettingTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdOtherSettingTest.java new file mode 100644 index 0000000000..8996d6a40a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdOtherSettingTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v10.campaignmanagement.ShoppingSetting; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +public class BulkCampaignWriteToRowValuesStoreIdOtherSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Long propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, 123L}, + {null, 9223372036854775807L} + }); + } + + @Test + public void testWrite() { + testWriteProperty( + "Store Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaign c, Long v) { + c.getCampaign().setSettings(new ArrayOfSetting()); + + ShoppingSetting setting = new ShoppingSetting(); + + setting.setStoreId(v); + + c.getCampaign().getSettings().getSettings().add(setting); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdShoppingSettingTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdShoppingSettingTest.java new file mode 100644 index 0000000000..f7736dce63 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesStoreIdShoppingSettingTest.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfSetting; +import com.microsoft.bingads.v10.campaignmanagement.CampaignType; +import com.microsoft.bingads.v10.campaignmanagement.ShoppingSetting; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; +import java.util.Collections; + +public class BulkCampaignWriteToRowValuesStoreIdShoppingSettingTest extends BulkCampaignTest { + @Parameterized.Parameter(value = 1) + public Long propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L} + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Store Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaign c, Long v) { + c.getCampaign().setCampaignType(Collections.singletonList(CampaignType.SHOPPING)); + + c.getCampaign().setSettings(new ArrayOfSetting()); + + ShoppingSetting setting = new ShoppingSetting(); + + setting.setStoreId(v); + + c.getCampaign().getSettings().getSettings().add(setting); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTimeZoneTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTimeZoneTest.java new file mode 100644 index 0000000000..4dee9fcf88 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTimeZoneTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesTimeZoneTest extends BulkCampaignTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Time Zone String", "Time Zone String"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Time Zone", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, String v) { + c.getCampaign().setTimeZone(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..8ac2dec1d6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesTrackingTemplateTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesTrackingTemplateTest extends BulkCampaignTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", ""}, + {"template", "template"}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Tracking Template", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, String v) { + c.getCampaign().setTrackingUrlTemplate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesUrlCustomParameters.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesUrlCustomParameters.java new file mode 100644 index 0000000000..58fb7f14ad --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign/write/BulkCampaignWriteToRowValuesUrlCustomParameters.java @@ -0,0 +1,84 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign.write; + + +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignWriteToRowValuesUrlCustomParameters extends BulkCampaignTest { + + @Parameter(value = 1) + public CustomParameters propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, CustomParameters v) { + c.getCampaign().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue = new CustomParameters(); + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, CustomParameters v) { + c.getCampaign().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue.setParameters(new ArrayOfCustomParameter()); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, CustomParameters v) { + c.getCampaign().setUrlCustomParameters(v);; + } + }); + + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaign c, CustomParameters v) { + c.getCampaign().setUrlCustomParameters(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeReadTests.java new file mode 100644 index 0000000000..12853cf3fd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeReadTests.java @@ -0,0 +1,18 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read.ReadConditionsTest; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read.ReadIdTest; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read.ReadParentIdTest; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read.ReadStatusTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + ReadIdTest.class, + ReadParentIdTest.class, + ReadStatusTest.class, + ReadConditionsTest.class +}) +public class BulkCampaignProductScopeReadTests { +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTest.java new file mode 100644 index 0000000000..5dcd54b65d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTest.java @@ -0,0 +1,125 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfProductCondition; +import com.microsoft.bingads.v10.campaignmanagement.CampaignCriterion; +import com.microsoft.bingads.v10.campaignmanagement.ProductCondition; +import com.microsoft.bingads.v10.campaignmanagement.ProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.List; +import java.util.Map; + +public abstract class BulkCampaignProductScopeTest extends BulkEntityTest { + + private static final String CONDITION_PREFIX = "Test Condition "; + private static final String VALUE_PREFIX = "Test Value "; + + @Override + protected void onEntityCreation(BulkCampaignProductScope entity) { + ProductScope criterion = new ProductScope(); + criterion.setType("ProductScope"); + + CampaignCriterion campaignCriterion = new CampaignCriterion(); + campaignCriterion.setCriterion(criterion); + campaignCriterion.setType("CampaignCriterion"); + + entity.setCampaignCriterion(campaignCriterion); + } + + @Override + protected void testWriteProperty( + String header, + String expectedRowValue, + TProperty propertyValue, + BiConsumer setFunc + ) { + testWriteProperty( + header, + expectedRowValue, + propertyValue, + setFunc, + new Supplier() { + @Override + public BulkCampaignProductScope get() { + return new BulkCampaignProductScope(); + } + } + ); + } + + @Override + protected void testReadProperty( + String header, + String input, + TProperty expectedResult, + Function actualValueFunc + ) { + testReadProperty( + header, + input, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkCampaignProductScope get() { + return new BulkCampaignProductScope(); + } + } + ); + } + + @Override + protected void testReadProperty( + Map rowValues, + TProperty expectedResult, + Function actualValueFunc + ) { + testReadProperty( + rowValues, + expectedResult, + actualValueFunc, + new Supplier() { + @Override + public BulkCampaignProductScope get() { + return new BulkCampaignProductScope(); + } + } + ); + } + + private static ArrayOfProductCondition generateProductConditionArray(int length) { + ArrayOfProductCondition arrayProductConditions = new ArrayOfProductCondition(); + List productConditions = arrayProductConditions.getProductConditions(); + + for (int i = 1; i <= length; i++) { + ProductCondition productCondition = new ProductCondition(); + productCondition.setAttribute(VALUE_PREFIX + i); + productCondition.setOperand(CONDITION_PREFIX + i); + productConditions.add(productCondition); + } + + return arrayProductConditions; + } + + private static String[] generateInputArray(int length, String prefix) { + String[] inputs = new String[length]; + + for (int i = 1; i <= inputs.length; i++) { + inputs[i - 1] = prefix + i; + } + + return inputs; + } + + protected static Object[] generateTestData(int lengthProductCondition, int lengthConditions, int lengthValues) { + ArrayOfProductCondition productConditions = generateProductConditionArray(lengthProductCondition); + String[] conditions = generateInputArray(lengthConditions, CONDITION_PREFIX); + String[] values = generateInputArray(lengthValues, VALUE_PREFIX); + + return new Object[]{null, productConditions, conditions, values}; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTests.java new file mode 100644 index 0000000000..067521a823 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + BulkCampaignProductScopeReadTests.class, + BulkCampaignProductScopeWriteTests.class +}) +public class BulkCampaignProductScopeTests { +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeWriteTests.java new file mode 100644 index 0000000000..1483fff25d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/BulkCampaignProductScopeWriteTests.java @@ -0,0 +1,18 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write.WriteConditionsTest; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write.WriteIdTest; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write.WriteParentIdTest; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write.WriteStatusTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses({ + WriteIdTest.class, + WriteParentIdTest.class, + WriteStatusTest.class, + WriteConditionsTest.class +}) +public class BulkCampaignProductScopeWriteTests { +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadCampaignNameTest.java new file mode 100644 index 0000000000..ad3b9da988 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadCampaignNameTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class ReadCampaignNameTest extends BulkCampaignProductScopeTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testRead() { + testReadProperty( + "Campaign", + datum, + expectedResult, + new Function() { + @Override + public String apply(BulkCampaignProductScope c) { + return c.getCampaignName(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadConditionsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadConditionsTest.java new file mode 100644 index 0000000000..b2d7507f13 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadConditionsTest.java @@ -0,0 +1,70 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read; + +import com.microsoft.bingads.v10.api.test.entities.ArrayOfProductConditionComparer; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfProductCondition; +import com.microsoft.bingads.v10.campaignmanagement.ProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import org.junit.Test; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; + +public class ReadConditionsTest extends BulkCampaignProductScopeTest { + @Parameterized.Parameter(value = 1) + public ArrayOfProductCondition expectedResult; + + @Parameterized.Parameter(value = 2) + public String[] conditions; + + @Parameterized.Parameter(value = 3) + public String[] values; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + generateTestData(0, 0, 0), + generateTestData(0, 1, 0), + generateTestData(0, 0, 1), + generateTestData(1, 1, 1), + generateTestData(8, 8, 8) + ); + } + + @Test + public void testRead() { + Map rowValues = new HashMap(); + + for (int i = 1; i <= conditions.length; i++) { + rowValues.put("Product Condition " + i, conditions[i - 1]); + } + + for (int i = 1; i <= values.length; i++) { + rowValues.put("Product Value " + i, values[i - 1]); + } + + testReadProperty( + rowValues, + expectedResult, + new Function() { + @Override + public ArrayOfProductCondition apply(BulkCampaignProductScope c) { + return ((ProductScope) c.getCampaignCriterion().getCriterion()).getConditions(); + } + }, + new Supplier() { + @Override + public BulkCampaignProductScope get() { + return new BulkCampaignProductScope(); + } + }, + new ArrayOfProductConditionComparer() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadIdTest.java new file mode 100644 index 0000000000..15b5762f6d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadIdTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class ReadIdTest extends BulkCampaignProductScopeTest { + + @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() { + testReadProperty( + "Id", + datum, + expectedResult, + new Function() { + @Override + public Long apply(BulkCampaignProductScope c) { + return c.getCampaignCriterion().getId(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadParentIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadParentIdTest.java new file mode 100644 index 0000000000..64aab631e3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadParentIdTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class ReadParentIdTest extends BulkCampaignProductScopeTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + } + ); + } + + @Test + public void testRead() { + testReadProperty( + "Parent Id", + datum, + expectedResult, + new Function() { + @Override + public Long apply(BulkCampaignProductScope c) { + return c.getCampaignCriterion().getCampaignId(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadStatusTest.java new file mode 100644 index 0000000000..4f1311dca4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/read/ReadStatusTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.read; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class ReadStatusTest extends BulkCampaignProductScopeTest { + + @Parameter(value = 1) + public Status expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"", null}, + {null, null}, + {"Active", Status.ACTIVE}, + {"Deleted", Status.DELETED} + } + ); + } + + @Test + public void testRead() { + testReadProperty( + "Status", + datum, + expectedResult, + new Function() { + @Override + public Status apply(BulkCampaignProductScope c) { + return c.getStatus(); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteCampaignNameTest.java new file mode 100644 index 0000000000..2c281a9d75 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteCampaignNameTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; + +import java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class WriteCampaignNameTest extends BulkCampaignProductScopeTest { + + @Parameterized.Parameter(value = 1) + public String propertyValue; + + @Parameterized.Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", "123"}, + {"XXX YYY", "XXX YYY"}, + {"", ""}, + {null, null} + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Campaign", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaignProductScope c, String v) { + c.setCampaignName(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteConditionsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteConditionsTest.java new file mode 100644 index 0000000000..34a15a1cf9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteConditionsTest.java @@ -0,0 +1,68 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfProductCondition; +import com.microsoft.bingads.v10.campaignmanagement.ProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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 java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; + +@RunWith(Parameterized.class) +public class WriteConditionsTest extends BulkCampaignProductScopeTest { + + @Parameter(value = 1) + public ArrayOfProductCondition expectedResult; + + @Parameter(value = 2) + public String[] conditions; + + @Parameter(value = 3) + public String[] values; + + @Parameters + public static Collection data() { + return Arrays.asList( + generateTestData(0, 0, 0), + generateTestData(1, 1, 1), + generateTestData(8, 8, 8) + ); + } + + @Test + public void testRead() { + Map rowValues = new HashMap(); + + for (int i = 1; i <= conditions.length; i++) { + rowValues.put("Product Condition " + i, conditions[i - 1]); + } + + for (int i = 1; i <= values.length; i++) { + rowValues.put("Product Value " + i, values[i - 1]); + } + + for (Entry entry : rowValues.entrySet()) { + testWriteProperty( + entry.getKey(), + entry.getValue(), + expectedResult, + new BiConsumer() { + @Override + public void accept(BulkCampaignProductScope c, ArrayOfProductCondition v) { + ((ProductScope) c.getCampaignCriterion().getCriterion()).setConditions(v); + } + } + ); + } + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteIdTest.java new file mode 100644 index 0000000000..3ae3440aff --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteIdTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class WriteIdTest extends BulkCampaignProductScopeTest { + + @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() { + testWriteProperty( + "Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaignProductScope c, Long v) { + c.getCampaignCriterion().setId(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteParentIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteParentIdTest.java new file mode 100644 index 0000000000..382d06fed7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteParentIdTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class WriteParentIdTest extends BulkCampaignProductScopeTest { + + @Parameter(value = 1) + public Long propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList( + new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + } + ); + } + + @Test + public void testWrite() { + testWriteProperty( + "Parent Id", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaignProductScope c, Long v) { + c.getCampaignCriterion().setCampaignId(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteStatusTest.java new file mode 100644 index 0000000000..13df216b4b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/campaign_product_scope/write/WriteStatusTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.write; + +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignProductScope; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class WriteStatusTest extends BulkCampaignProductScopeTest { + + @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() { + testWriteProperty( + "Status", + datum, + propertyValue, + new BiConsumer() { + @Override + public void accept(BulkCampaignProductScope c, Status v) { + c.setStatus(v); + } + } + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordReadWriteTest.java new file mode 100644 index 0000000000..d5f343d04d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordReadWriteTest.java @@ -0,0 +1,19 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword; + +import com.microsoft.bingads.v10.api.test.entities.PerformanceDataTestHelper; +import com.microsoft.bingads.v10.api.test.entities.QualityScoreDataTestHelper; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import org.junit.Test; + +public class BulkKeywordReadWriteTest { + + @Test + public void bulkKeyword_ReadPerfData_WriteToFile() { + PerformanceDataTestHelper.testPerformanceDataReadWrite(new BulkKeyword()); + } + + @Test + public void bulkKeyword_ReadQSData_WriteToFile() { + QualityScoreDataTestHelper.testQualityScoreDataReadWrite(new BulkKeyword()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTest.java new file mode 100644 index 0000000000..36b406d723 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTest.java @@ -0,0 +1,60 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.api.test.entities.EqualityComparerWithDescription; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.Keyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkKeywordTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkKeyword entity) { + entity.setKeyword(new Keyword()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }); + } + + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc, EqualityComparerWithDescription comparer) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, comparer); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTests.java new file mode 100644 index 0000000000..075cb340ee --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/BulkKeywordTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword; + +import com.microsoft.bingads.v10.api.test.entities.keyword.read.BulkKeywordReadTests; +import com.microsoft.bingads.v10.api.test.entities.keyword.write.BulkKeywordWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkKeywordReadTests.class, BulkKeywordWriteTests.class}) +public class BulkKeywordTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupIdTest.java new file mode 100644 index 0000000000..a831579c87 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupIdTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkKeywordReadFromRowValuesAdGroupIdTest extends BulkKeywordTest { + + @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(BulkKeyword c) { + return c.getAdGroupId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupNameTest.java new file mode 100644 index 0000000000..e588e1a902 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesAdGroupNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkKeywordReadFromRowValuesAdGroupNameTest extends BulkKeywordTest { + + @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("Ad Group", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getAdGroupName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidIsNullTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidIsNullTest.java new file mode 100644 index 0000000000..fd0fbb6ec6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidIsNullTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesBidIsNullTest extends BulkKeywordTest { + + @Parameter(value = 1) + public Bid expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {null, null},}); + } + + @Test + public void testRead() { + this.testReadProperty("Bid", this.datum, this.expectedResult, new Function() { + @Override + public Bid apply(BulkKeyword c) { + return c.getKeyword().getBid(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidTest.java new file mode 100644 index 0000000000..93d9d2c57c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesBidTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.BidComparer; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesBidTest extends BulkKeywordTest { + + @Parameter(value = 1) + public Bid expectedResult; + + @Parameters + public static Collection data() { + Bid bid = new Bid(); + bid.setAmount(12.34); + return Arrays.asList(new Object[][]{ + {"12.34", bid}, + {"", null},}); + } + + @Test + public void testRead() { + this.testReadProperty("Bid", this.datum, this.expectedResult, new Function() { + @Override + public Bid apply(BulkKeyword c) { + return c.getKeyword().getBid(); + } + }, new BidComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..eee73be813 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkKeywordReadFromRowValuesCampaignNameTest extends BulkKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test AdGroup 1", "Test AdGroup 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..38cd8a6a19 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesDestinationUrlTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesDestinationUrlTest extends BulkKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"http://www.go-there.mic", "http://www.go-there.mic"}, + {"", ""}, + {null, ""} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Destination Url", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getKeyword().getDestinationUrl(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesEditorialStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesEditorialStatusTest.java new file mode 100644 index 0000000000..2081457862 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesEditorialStatusTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.KeywordEditorialStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesEditorialStatusTest extends BulkKeywordTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public KeywordEditorialStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", KeywordEditorialStatus.ACTIVE}, + {"ActiveLimited", KeywordEditorialStatus.ACTIVE_LIMITED}, + {"Disapproved", KeywordEditorialStatus.DISAPPROVED}, + {"Inactive", KeywordEditorialStatus.INACTIVE}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Editorial Status", this.datum, this.expectedResult, new Function() { + @Override + public KeywordEditorialStatus apply(BulkKeyword c) { + return c.getKeyword().getEditorialStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalMobileUrlsTest.java new file mode 100644 index 0000000000..28b0ed3cda --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalMobileUrlsTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; + +public class BulkKeywordReadFromRowValuesFinalMobileUrlsTest extends BulkKeywordTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Mobile Final Url", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfstring apply(BulkKeyword c) { + return c.getKeyword().getFinalMobileUrls(); + } + }, new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalUrlsTest.java new file mode 100644 index 0000000000..7a5037d3e8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesFinalUrlsTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; + +public class BulkKeywordReadFromRowValuesFinalUrlsTest extends BulkKeywordTest{ + + @Parameter(value = 1) + public ArrayOfstring expectedResult; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][] { + {"", null}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Final Url", this.datum, this.expectedResult, new Function() { + @Override + public ArrayOfstring apply(BulkKeyword c) { + return c.getKeyword().getFinalUrls(); + } + }, new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..e23ebae4e7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesIdTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesIdTest extends BulkKeywordTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + 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(BulkKeyword c) { + return c.getKeyword().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesMatchTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesMatchTypeTest.java new file mode 100644 index 0000000000..5302d0ea35 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesMatchTypeTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesMatchTypeTest extends BulkKeywordTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public MatchType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Broad", MatchType.BROAD}, + {"Content", MatchType.CONTENT}, + {"Exact", MatchType.EXACT}, + {"Phrase", MatchType.PHRASE}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Match Type", this.datum, this.expectedResult, new Function() { + @Override + public MatchType apply(BulkKeyword c) { + return c.getKeyword().getMatchType(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam1Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam1Test.java new file mode 100644 index 0000000000..6d5b7b8c68 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam1Test.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesParam1Test extends BulkKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Param 1", "Test Param 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Param1", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getKeyword().getParam1(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam2Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam2Test.java new file mode 100644 index 0000000000..ea6404736d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam2Test.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesParam2Test extends BulkKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Param 2", "Test Param 2"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Param2", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getKeyword().getParam2(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam3Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam3Test.java new file mode 100644 index 0000000000..c30479c8f9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesParam3Test.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesParam3Test extends BulkKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Param 3", "Test Param 3"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Param3", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getKeyword().getParam3(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..fab52a6524 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesStatusTest.java @@ -0,0 +1,46 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.KeywordStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesStatusTest extends BulkKeywordTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public KeywordStatus expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", KeywordStatus.ACTIVE}, + {"Deleted", KeywordStatus.DELETED}, + {"Inactive", KeywordStatus.INACTIVE}, + {"Paused", KeywordStatus.PAUSED}, + {"", null}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Status", this.datum, this.expectedResult, new Function() { + @Override + public KeywordStatus apply(BulkKeyword c) { + return c.getKeyword().getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTextTest.java new file mode 100644 index 0000000000..2c1861fbb8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTextTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordReadFromRowValuesTextTest extends BulkKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Keyword 1", "Test Keyword 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Keyword", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getKeyword().getText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..cc4cbc95ec --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesTrackingTemplateTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import java.util.Arrays; +import java.util.Collection; +import java.util.List; + +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; + +public class BulkKeywordReadFromRowValuesTrackingTemplateTest extends BulkKeywordTest{ + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", ""}, + {"template", "template"}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Tracking Template", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkKeyword c) { + return c.getKeyword().getTrackingUrlTemplate(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesUrlCustomParametersTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesUrlCustomParametersTest.java new file mode 100644 index 0000000000..2934cccfd4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadFromRowValuesUrlCustomParametersTest.java @@ -0,0 +1,171 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.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.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; + +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; + +public class BulkKeywordReadFromRowValuesUrlCustomParametersTest extends BulkKeywordTest{ + + @Parameter(value = 1) + public CustomParameters expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][] { + {"", null}, + }); + } + @Test + public void testRead() { + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkKeyword c) { + return c.getKeyword().getUrlCustomParameters(); + } + }); + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkKeyword c) { + return c.getKeyword().getUrlCustomParameters(); + } + },new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, new ObjectComparer()); + + this.datum = "{_}=NY123"; + CustomParameter paraTest3 = new CustomParameter(); + paraTest3.setKey(""); + paraTest3.setValue("NY123"); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest3); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkKeyword c) { + return c.getKeyword().getUrlCustomParameters(); + } + },new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, new ObjectComparer()); + + this.datum = "{_promocode}="; + CustomParameter paraTest4 = new CustomParameter(); + paraTest4.setKey("promocode"); + paraTest4.setValue(""); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest4); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkKeyword c) { + return c.getKeyword().getUrlCustomParameters(); + } + },new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, new ObjectComparer()); + + this.datum = "{_}="; + CustomParameter paraTest5 = new CustomParameter(); + paraTest5.setKey(""); + paraTest5.setValue(""); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest5); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkKeyword c) { + return c.getKeyword().getUrlCustomParameters(); + } + },new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, new ObjectComparer()); + + this.datum = "{_aa}=; {_bb}=; {_cc}="; + CustomParameter paraTest6 = new CustomParameter(); + paraTest6.setKey("aa"); + paraTest6.setValue(""); + CustomParameter paraTest7 = new CustomParameter(); + paraTest7.setKey("bb"); + paraTest7.setValue(""); + CustomParameter paraTest8 = new CustomParameter(); + paraTest8.setKey("cc"); + paraTest8.setValue(""); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest6); + array.getCustomParameters().add(paraTest7); + array.getCustomParameters().add(paraTest8); + + expectedResult = new CustomParameters(); + expectedResult.setParameters(array); + + this.testReadProperty("Custom Parameter", this.datum, this.expectedResult, new Function() { + @Override + public CustomParameters apply(BulkKeyword c) { + return c.getKeyword().getUrlCustomParameters(); + } + },new Supplier() { + @Override + public BulkKeyword get() { + return new BulkKeyword(); + } + }, new ObjectComparer()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadTests.java new file mode 100644 index 0000000000..3f6e2870e6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/read/BulkKeywordReadTests.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkKeywordReadFromRowValuesAdGroupIdTest.class, + BulkKeywordReadFromRowValuesAdGroupNameTest.class, + BulkKeywordReadFromRowValuesBidIsNullTest.class, + BulkKeywordReadFromRowValuesBidTest.class, + BulkKeywordReadFromRowValuesCampaignNameTest.class, + BulkKeywordReadFromRowValuesDestinationUrlTest.class, + BulkKeywordReadFromRowValuesEditorialStatusTest.class, + BulkKeywordReadFromRowValuesIdTest.class, + BulkKeywordReadFromRowValuesMatchTypeTest.class, + BulkKeywordReadFromRowValuesParam1Test.class, + BulkKeywordReadFromRowValuesParam2Test.class, + BulkKeywordReadFromRowValuesParam3Test.class, + BulkKeywordReadFromRowValuesStatusTest.class, + BulkKeywordReadFromRowValuesTextTest.class}) +public class BulkKeywordReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteTests.java new file mode 100644 index 0000000000..67a83e5817 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteTests.java @@ -0,0 +1,20 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkKeywordWriteToRowValuesAdGroupIdTest.class, + BulkKeywordWriteToRowValuesBidTest.class, + BulkKeywordWriteToRowValuesDestinationUrlTest.class, + BulkKeywordWriteToRowValuesIdTest.class, + BulkKeywordWriteToRowValuesMatchTypeTest.class, + BulkKeywordWriteToRowValuesParam1Test.class, + BulkKeywordWriteToRowValuesParam2Test.class, + BulkKeywordWriteToRowValuesParam3Test.class, + BulkKeywordWriteToRowValuesStatusTest.class, + BulkKeywordWriteToRowValuesTextTest.class}) +public class BulkKeywordWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesAdGroupIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesAdGroupIdTest.java new file mode 100644 index 0000000000..8795d510ef --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesAdGroupIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesAdGroupIdTest extends BulkKeywordTest { + + @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(BulkKeyword c, Long v) { + c.setAdGroupId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesBidTest.java new file mode 100644 index 0000000000..679cf6e6db --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesBidTest.java @@ -0,0 +1,43 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.Bid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesBidTest extends BulkKeywordTest { + + @Parameter(value = 1) + public Bid propertyValue; + + @Parameters + public static Collection data() { + Bid withValue = new Bid(); + withValue.setAmount(12.34); + + Bid zeroValue = new Bid(); + return Arrays.asList(new Object[][]{ + {"12.34", withValue}, + {"delete_value", zeroValue}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Bid", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, Bid v) { + c.getKeyword().setBid(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesDestinationUrlTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesDestinationUrlTest.java new file mode 100644 index 0000000000..616757a9b7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesDestinationUrlTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesDestinationUrlTest extends BulkKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"http://testDestUrl.com", "http://testDestUrl.com"}, + {"delete_value", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Destination Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, String v) { + c.getKeyword().setDestinationUrl(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesEditorialStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesEditorialStatusTest.java new file mode 100644 index 0000000000..344a8b783f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesEditorialStatusTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.KeywordEditorialStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesEditorialStatusTest extends BulkKeywordTest { + + @Parameter(value = 1) + public KeywordEditorialStatus propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", KeywordEditorialStatus.ACTIVE}, + {"ActiveLimited", KeywordEditorialStatus.ACTIVE_LIMITED}, + {"Disapproved", KeywordEditorialStatus.DISAPPROVED}, + {"Inactive", KeywordEditorialStatus.INACTIVE}, + {null, null}}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Editorial Status", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, KeywordEditorialStatus v) { + c.getKeyword().setEditorialStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalMobileUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalMobileUrlsTest.java new file mode 100644 index 0000000000..9022e576a8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalMobileUrlsTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesFinalMobileUrlsTest extends BulkKeywordTest { + + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Mobile Final Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, ArrayOfstring v) { + c.getKeyword().setFinalMobileUrls(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalUrlsTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalUrlsTest.java new file mode 100644 index 0000000000..ac5a36f668 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesFinalUrlsTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.bulk.entities.BulkTextAd; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesFinalUrlsTest extends BulkKeywordTest { + + @Parameter(value = 1) + public ArrayOfstring propertyValue; + + @Parameters + public static Collection data() { + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(Arrays.asList(new String[] { "http://www.test 1.com", "https://www.test2.com" })); + + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", new ArrayOfstring()}, + {"http://www.test 1.com; https://www.test2.com", array}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Final Url", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, ArrayOfstring v) { + c.getKeyword().setFinalUrls(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..883ba2207c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesIdTest extends BulkKeywordTest { + + @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(BulkKeyword c, Long v) { + c.getKeyword().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesMatchTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesMatchTypeTest.java new file mode 100644 index 0000000000..4bd61d3d8c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesMatchTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesMatchTypeTest extends BulkKeywordTest { + + @Parameter(value = 1) + public MatchType propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Broad", MatchType.BROAD}, + {"Content", MatchType.CONTENT}, + {"Exact", MatchType.EXACT}, + {"Phrase", MatchType.PHRASE}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Match Type", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, MatchType v) { + c.getKeyword().setMatchType(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam1Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam1Test.java new file mode 100644 index 0000000000..38d922d205 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam1Test.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesParam1Test extends BulkKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Param 1", "Test Param 1"}, + {"delete_value", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Param1", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, String v) { + c.getKeyword().setParam1(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam2Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam2Test.java new file mode 100644 index 0000000000..2f1f49fc1c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam2Test.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesParam2Test extends BulkKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Param 2", "Test Param 2"}, + {"delete_value", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Param2", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, String v) { + c.getKeyword().setParam2(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam3Test.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam3Test.java new file mode 100644 index 0000000000..f8e05c7ca1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesParam3Test.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesParam3Test extends BulkKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Param 3", "Test Param 3"}, + {"delete_value", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Param3", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, String v) { + c.getKeyword().setParam3(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..82b168910c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesStatusTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.KeywordStatus; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesStatusTest extends BulkKeywordTest { + + @Parameter(value = 1) + public KeywordStatus propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Active", KeywordStatus.ACTIVE}, + {"Paused", KeywordStatus.PAUSED}, + {"Inactive", KeywordStatus.INACTIVE}, + {"Deleted", KeywordStatus.DELETED}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Status", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, KeywordStatus v) { + c.getKeyword().setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTextTest.java new file mode 100644 index 0000000000..6e987775c4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTextTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesTextTest extends BulkKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test keyword text", "Test keyword text"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Keyword", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, String v) { + c.getKeyword().setText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTrackingTemplateTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTrackingTemplateTest.java new file mode 100644 index 0000000000..eba7b9bff4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesTrackingTemplateTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesTrackingTemplateTest extends BulkKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + {"delete_value", ""}, + {"template", "template"}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Tracking Template", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, String v) { + c.getKeyword().setTrackingUrlTemplate(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesUrlCustomParameters.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesUrlCustomParameters.java new file mode 100644 index 0000000000..618f5e5247 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/keyword/write/BulkKeywordWriteToRowValuesUrlCustomParameters.java @@ -0,0 +1,168 @@ +package com.microsoft.bingads.v10.api.test.entities.keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.ObjectComparer; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkKeyword; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfCustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameter; +import com.microsoft.bingads.v10.campaignmanagement.CustomParameters; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +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; + +@RunWith(Parameterized.class) +public class BulkKeywordWriteToRowValuesUrlCustomParameters extends BulkKeywordTest { + + @Parameter(value = 1) + public CustomParameters propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {null, null}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue = new CustomParameters(); + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + + this.datum = "delete_value"; + propertyValue.setParameters(new ArrayOfCustomParameter()); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + + + this.datum = "{_key1}=value\\;1; {_key2}=value\\\\2"; + CustomParameter paraTest1 = new CustomParameter(); + paraTest1.setKey("key1"); + paraTest1.setValue("value;1"); + CustomParameter paraTest2 = new CustomParameter(); + paraTest2.setKey("key2"); + paraTest2.setValue("value\\2"); + ArrayOfCustomParameter array = new ArrayOfCustomParameter(); + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest1); + array.getCustomParameters().add(paraTest2); + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + + this.datum = "{_}=NY123"; + CustomParameter paraTest3 = new CustomParameter(); + paraTest3.setKey(""); + paraTest3.setValue("NY123"); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest3); + + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + + this.datum = "{_promocode}="; + CustomParameter paraTest4 = new CustomParameter(); + paraTest4.setKey("promocode"); + paraTest4.setValue(""); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest4); + + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + + this.datum = "{_}="; + CustomParameter paraTest5 = new CustomParameter(); + paraTest5.setKey(""); + paraTest5.setValue(""); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest5); + + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + + this.datum = "{_aa}=; {_bb}=; {_cc}="; + CustomParameter paraTest6 = new CustomParameter(); + paraTest6.setKey("aa"); + paraTest6.setValue(""); + CustomParameter paraTest7 = new CustomParameter(); + paraTest7.setKey("bb"); + paraTest7.setValue(""); + CustomParameter paraTest8 = new CustomParameter(); + paraTest8.setKey("cc"); + paraTest8.setValue(""); + + array = new ArrayOfCustomParameter(); + array.getCustomParameters().add(paraTest6); + array.getCustomParameters().add(paraTest7); + array.getCustomParameters().add(paraTest8); + + propertyValue = new CustomParameters(); + propertyValue.setParameters(array); + + this.testWriteProperty("Custom Parameter", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkKeyword c, CustomParameters v) { + c.getKeyword().setUrlCustomParameters(v);; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTest.java new file mode 100644 index 0000000000..d0fdde4a5e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.v10.campaignmanagement.NegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkAdGroupNegativeKeywordTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkAdGroupNegativeKeyword entity) { + entity.setNegativeKeyword(new NegativeKeyword()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAdGroupNegativeKeyword get() { + return new BulkAdGroupNegativeKeyword(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupNegativeKeyword get() { + return new BulkAdGroupNegativeKeyword(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupNegativeKeyword get() { + return new BulkAdGroupNegativeKeyword(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTests.java new file mode 100644 index 0000000000..cee376db81 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/BulkAdGroupNegativeKeywordTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read.BulkAdGroupNegativeKeywordReadTest; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write.BulkAdGroupNegativeKeywordWriteTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkAdGroupNegativeKeywordReadTest.class, BulkAdGroupNegativeKeywordWriteTest.class}) +public class BulkAdGroupNegativeKeywordTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupIdTest.java new file mode 100644 index 0000000000..7edd3a9b84 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupIdTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupIdTest extends BulkAdGroupNegativeKeywordTest { + + @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(BulkAdGroupNegativeKeyword c) { + return c.getAdGroupId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupNameTest.java new file mode 100644 index 0000000000..395d1782fb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupNameTest extends BulkAdGroupNegativeKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test AdGroup 1", "Test AdGroup 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Group", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupNegativeKeyword c) { + return c.getAdGroupName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..f303e1ae70 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordReadFromRowValuesIdTest extends BulkAdGroupNegativeKeywordTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkAdGroupNegativeKeyword c) { + return c.getNegativeKeyword().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesMatchTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesMatchTypeTest.java new file mode 100644 index 0000000000..9067d5af35 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesMatchTypeTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordReadFromRowValuesMatchTypeTest extends BulkAdGroupNegativeKeywordTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public MatchType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Broad", MatchType.BROAD}, + {"Content", MatchType.CONTENT}, + {"Exact", MatchType.EXACT}, + {"Phrase", MatchType.PHRASE}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Match Type", this.datum, this.expectedResult, new Function() { + @Override + public MatchType apply(BulkAdGroupNegativeKeyword c) { + return c.getNegativeKeyword().getMatchType(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..15d0d21f47 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesStatusTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordReadFromRowValuesStatusTest extends BulkAdGroupNegativeKeywordTest { + + @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(BulkAdGroupNegativeKeyword c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesTextTest.java new file mode 100644 index 0000000000..73d4873d46 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadFromRowValuesTextTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordReadFromRowValuesTextTest extends BulkAdGroupNegativeKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Keyword 1", "Test Keyword 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Keyword", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupNegativeKeyword c) { + return c.getNegativeKeyword().getText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadTest.java new file mode 100644 index 0000000000..58cf9551bd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/read/BulkAdGroupNegativeKeywordReadTest.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupIdTest.class, + BulkAdGroupNegativeKeywordReadFromRowValuesAdGroupNameTest.class, + BulkAdGroupNegativeKeywordReadFromRowValuesIdTest.class, + BulkAdGroupNegativeKeywordReadFromRowValuesMatchTypeTest.class, + BulkAdGroupNegativeKeywordReadFromRowValuesStatusTest.class, + BulkAdGroupNegativeKeywordReadFromRowValuesTextTest.class}) +public class BulkAdGroupNegativeKeywordReadTest { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteTest.java new file mode 100644 index 0000000000..a32bb0f25c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteTest.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAdGroupNegativeKeywordWriteToRowValuesCampaignIdTest.class, + BulkAdGroupNegativeKeywordWriteToRowValuesCampaignNameTest.class, + BulkAdGroupNegativeKeywordWriteToRowValuesIdTest.class, + BulkAdGroupNegativeKeywordWriteToRowValuesMatchTypeTest.class, + BulkAdGroupNegativeKeywordWriteToRowValuesStatusTest.class, + BulkAdGroupNegativeKeywordWriteToRowValuesTextTest.class}) +public class BulkAdGroupNegativeKeywordWriteTest { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..abcb32b4fe --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordWriteToRowValuesCampaignIdTest extends BulkAdGroupNegativeKeywordTest { + + @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(BulkAdGroupNegativeKeyword c, Long v) { + c.setAdGroupId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..0a74041619 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordWriteToRowValuesCampaignNameTest extends BulkAdGroupNegativeKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Ad Group", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroupNegativeKeyword c, String v) { + c.setAdGroupName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..801d880c64 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordWriteToRowValuesIdTest extends BulkAdGroupNegativeKeywordTest { + + @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(BulkAdGroupNegativeKeyword c, Long v) { + c.getNegativeKeyword().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesMatchTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesMatchTypeTest.java new file mode 100644 index 0000000000..1e755dfa89 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesMatchTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordWriteToRowValuesMatchTypeTest extends BulkAdGroupNegativeKeywordTest { + + @Parameter(value = 1) + public MatchType propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Broad", MatchType.BROAD}, + {"Content", MatchType.CONTENT}, + {"Exact", MatchType.EXACT}, + {"Phrase", MatchType.PHRASE}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Match Type", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroupNegativeKeyword c, MatchType v) { + c.getNegativeKeyword().setMatchType(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..590deed0fc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesStatusTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordWriteToRowValuesStatusTest extends BulkAdGroupNegativeKeywordTest { + + @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(BulkAdGroupNegativeKeyword c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesTextTest.java new file mode 100644 index 0000000000..490db37851 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/adgroup_negative_keyword/write/BulkAdGroupNegativeKeywordWriteToRowValuesTextTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeKeywordWriteToRowValuesTextTest extends BulkAdGroupNegativeKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test NegativeKeyword text", "Test NegativeKeyword text"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Keyword", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkAdGroupNegativeKeyword c, String v) { + c.getNegativeKeyword().setText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTest.java new file mode 100644 index 0000000000..a9a7f4e5e2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.v10.campaignmanagement.NegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignNegativeKeywordTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignNegativeKeyword entity) { + entity.setNegativeKeyword(new NegativeKeyword()); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignNegativeKeyword get() { + return new BulkCampaignNegativeKeyword(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeKeyword get() { + return new BulkCampaignNegativeKeyword(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeKeyword get() { + return new BulkCampaignNegativeKeyword(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTests.java new file mode 100644 index 0000000000..8411cf4efc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/BulkCampaignNegativeKeywordTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read.BulkCampaignNegativeKeywordReadTests; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write.BulkCampaignNegativeKeywordWriteTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkCampaignNegativeKeywordReadTests.class, BulkCampaignNegativeKeywordWriteTest.class}) +public class BulkCampaignNegativeKeywordTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..1afd612a23 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeKeywordReadFromRowValuesCampaignIdTest extends BulkCampaignNegativeKeywordTest { + + @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(BulkCampaignNegativeKeyword c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..ef2db44fc7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeKeywordReadFromRowValuesCampaignNameTest extends BulkCampaignNegativeKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test AdGroup 1", "Test AdGroup 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignNegativeKeyword c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..b1cbe358af --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesIdTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordReadFromRowValuesIdTest extends BulkCampaignNegativeKeywordTest { + + @Parameter(value = 1) + public Long expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignNegativeKeyword c) { + return c.getNegativeKeyword().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesMatchTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesMatchTypeTest.java new file mode 100644 index 0000000000..b45954e57b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesMatchTypeTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordReadFromRowValuesMatchTypeTest extends BulkCampaignNegativeKeywordTest { + + @Parameter + public String datum; + + @Parameter(value = 1) + public MatchType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Broad", MatchType.BROAD}, + {"Content", MatchType.CONTENT}, + {"Exact", MatchType.EXACT}, + {"Phrase", MatchType.PHRASE}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Match Type", this.datum, this.expectedResult, new Function() { + @Override + public MatchType apply(BulkCampaignNegativeKeyword c) { + return c.getNegativeKeyword().getMatchType(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..b816284e85 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesStatusTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordReadFromRowValuesStatusTest extends BulkCampaignNegativeKeywordTest { + + @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(BulkCampaignNegativeKeyword c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesTextTest.java new file mode 100644 index 0000000000..8faeb1e4bf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadFromRowValuesTextTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordReadFromRowValuesTextTest extends BulkCampaignNegativeKeywordTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Keyword 1", "Test Keyword 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Keyword", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignNegativeKeyword c) { + return c.getNegativeKeyword().getText(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadTests.java new file mode 100644 index 0000000000..56a9717341 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/read/BulkCampaignNegativeKeywordReadTests.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignNegativeKeywordReadFromRowValuesCampaignIdTest.class, + BulkCampaignNegativeKeywordReadFromRowValuesCampaignNameTest.class, + BulkCampaignNegativeKeywordReadFromRowValuesIdTest.class, + BulkCampaignNegativeKeywordReadFromRowValuesMatchTypeTest.class, + BulkCampaignNegativeKeywordReadFromRowValuesStatusTest.class, + BulkCampaignNegativeKeywordReadFromRowValuesTextTest.class}) +public class BulkCampaignNegativeKeywordReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteTest.java new file mode 100644 index 0000000000..6df7d408ce --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteTest.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignNegativeKeywordWriteToRowValuesCampaignIdTest.class, + BulkCampaignNegativeKeywordWriteToRowValuesCampaignNameTest.class, + BulkCampaignNegativeKeywordWriteToRowValuesIdTest.class, + BulkCampaignNegativeKeywordWriteToRowValuesMatchTypeTest.class, + BulkCampaignNegativeKeywordWriteToRowValuesStatusTest.class, + BulkCampaignNegativeKeywordWriteToRowValuesTextTest.class}) +public class BulkCampaignNegativeKeywordWriteTest { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..b92ea2fe9f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordWriteToRowValuesCampaignIdTest extends BulkCampaignNegativeKeywordTest { + + @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(BulkCampaignNegativeKeyword c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..9ebff27717 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordWriteToRowValuesCampaignNameTest extends BulkCampaignNegativeKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeKeyword c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..e75936b6a9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordWriteToRowValuesIdTest extends BulkCampaignNegativeKeywordTest { + + @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(BulkCampaignNegativeKeyword c, Long v) { + c.getNegativeKeyword().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesMatchTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesMatchTypeTest.java new file mode 100644 index 0000000000..48de9918b1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesMatchTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.v10.campaignmanagement.MatchType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordWriteToRowValuesMatchTypeTest extends BulkCampaignNegativeKeywordTest { + + @Parameter(value = 1) + public MatchType propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Broad", MatchType.BROAD}, + {"Content", MatchType.CONTENT}, + {"Exact", MatchType.EXACT}, + {"Phrase", MatchType.PHRASE}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Match Type", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeKeyword c, MatchType v) { + c.getNegativeKeyword().setMatchType(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..ee0bd8f6eb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesStatusTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordWriteToRowValuesStatusTest extends BulkCampaignNegativeKeywordTest { + + @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(BulkCampaignNegativeKeyword c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesTextTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesTextTest.java new file mode 100644 index 0000000000..199309e55c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword/write/BulkCampaignNegativeKeywordWriteToRowValuesTextTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeyword; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordWriteToRowValuesTextTest extends BulkCampaignNegativeKeywordTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test NegativeKeyword text", "Test NegativeKeyword text"}, + {"", ""}, + {null, null},}); + } + + @Test + public void testWrite() { + this.testWriteProperty("Keyword", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeKeyword c, String v) { + c.getNegativeKeyword().setText(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTest.java new file mode 100644 index 0000000000..eb6f69209e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeywordList; +import com.microsoft.bingads.v10.campaignmanagement.SharedEntityAssociation; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignNegativeKeywordListTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignNegativeKeywordList 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 BulkCampaignNegativeKeywordList get() { + return new BulkCampaignNegativeKeywordList(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeKeywordList get() { + return new BulkCampaignNegativeKeywordList(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeKeywordList get() { + return new BulkCampaignNegativeKeywordList(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTests.java new file mode 100644 index 0000000000..b77f6235ed --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/BulkCampaignNegativeKeywordListTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.read.BulkCampaignNegativeKeywordListReadTests; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.write.BulkCampaignNegativeKeywordListWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkCampaignNegativeKeywordListReadTests.class, BulkCampaignNegativeKeywordListWriteTests.class}) +public class BulkCampaignNegativeKeywordListTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesEntityIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesEntityIdTest.java new file mode 100644 index 0000000000..7b70d4997c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesEntityIdTest.java @@ -0,0 +1,33 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.BulkCampaignNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeKeywordListReadFromRowValuesEntityIdTest extends BulkCampaignNegativeKeywordListTest { + + @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(BulkCampaignNegativeKeywordList c) { + return c.getSharedEntityAssociation().getEntityId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesSharedEntityIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesSharedEntityIdTest.java new file mode 100644 index 0000000000..9016cc2f7b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesSharedEntityIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.BulkCampaignNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordListReadFromRowValuesSharedEntityIdTest extends BulkCampaignNegativeKeywordListTest { + + @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(BulkCampaignNegativeKeywordList c) { + return c.getSharedEntityAssociation().getSharedEntityId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..014a8ba13f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadFromRowValuesStatusTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.BulkCampaignNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeywordList; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordListReadFromRowValuesStatusTest extends BulkCampaignNegativeKeywordListTest { + + @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(BulkCampaignNegativeKeywordList c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadTests.java new file mode 100644 index 0000000000..4c7c93f047 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/read/BulkCampaignNegativeKeywordListReadTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignNegativeKeywordListReadFromRowValuesEntityIdTest.class, + BulkCampaignNegativeKeywordListReadFromRowValuesSharedEntityIdTest.class, + BulkCampaignNegativeKeywordListReadFromRowValuesStatusTest.class}) +public class BulkCampaignNegativeKeywordListReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteTests.java new file mode 100644 index 0000000000..8df2b7e62b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignNegativeKeywordListWriteToRowValuesEntityIdTest.class, + BulkCampaignNegativeKeywordListWriteToRowValuesSharedEntityIdTest.class, + BulkCampaignNegativeKeywordListWriteToRowValuesStatusTest.class}) +public class BulkCampaignNegativeKeywordListWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesEntityIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesEntityIdTest.java new file mode 100644 index 0000000000..e9409bfb1d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesEntityIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.BulkCampaignNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordListWriteToRowValuesEntityIdTest extends BulkCampaignNegativeKeywordListTest { + + @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(BulkCampaignNegativeKeywordList c, Long v) { + c.getSharedEntityAssociation().setEntityId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesSharedEntityIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesSharedEntityIdTest.java new file mode 100644 index 0000000000..f1867aad99 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesSharedEntityIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.BulkCampaignNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordListWriteToRowValuesSharedEntityIdTest extends BulkCampaignNegativeKeywordListTest { + + @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(BulkCampaignNegativeKeywordList c, Long v) { + c.getSharedEntityAssociation().setSharedEntityId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..0f671cb8aa --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/campaign_negative_keyword_list/write/BulkCampaignNegativeKeywordListWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.BulkCampaignNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeKeywordList; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeKeywordListWriteToRowValuesStatusTest extends BulkCampaignNegativeKeywordListTest { + + @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(BulkCampaignNegativeKeywordList c, + Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTest.java new file mode 100644 index 0000000000..b008b50434 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkNegativeKeywordList; +import com.microsoft.bingads.v10.campaignmanagement.NegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkNegativeKeywordListTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkNegativeKeywordList entity) { + entity.setNegativeKeywordList(new NegativeKeywordList());; + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkNegativeKeywordList get() { + return new BulkNegativeKeywordList(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkNegativeKeywordList get() { + return new BulkNegativeKeywordList(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkNegativeKeywordList get() { + return new BulkNegativeKeywordList(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTests.java new file mode 100644 index 0000000000..7635bace07 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/BulkNegativeKeywordListTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.read.BulkNegativeKeywordListReadTests; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.write.BulkNegativeKeywordListWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkNegativeKeywordListReadTests.class, BulkNegativeKeywordListWriteTests.class}) +public class BulkNegativeKeywordListTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..f1894cb166 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.BulkNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkNegativeKeywordListReadFromRowValuesIdTest extends BulkNegativeKeywordListTest { + + @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(BulkNegativeKeywordList c) { + return c.getNegativeKeywordList().getId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesNameTest.java new file mode 100644 index 0000000000..7053a16eaa --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.BulkNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkNegativeKeywordListReadFromRowValuesNameTest extends BulkNegativeKeywordListTest { + + @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(BulkNegativeKeywordList c) { + return c.getNegativeKeywordList().getName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..914e3af8ee --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadFromRowValuesStatusTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.BulkNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkNegativeKeywordList; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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 java.util.Arrays; +import java.util.Collection; + +@RunWith(Parameterized.class) +public class BulkNegativeKeywordListReadFromRowValuesStatusTest extends BulkNegativeKeywordListTest { + + @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(BulkNegativeKeywordList c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadTests.java new file mode 100644 index 0000000000..105fccc5b9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/read/BulkNegativeKeywordListReadTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkNegativeKeywordListReadFromRowValuesNameTest.class, + BulkNegativeKeywordListReadFromRowValuesIdTest.class, + BulkNegativeKeywordListReadFromRowValuesStatusTest.class}) +public class BulkNegativeKeywordListReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteTests.java new file mode 100644 index 0000000000..b5ada6e910 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkNegativeKeywordListWriteToRowValuesNameTest.class, + BulkNegativeKeywordListWriteToRowValuesIdTest.class, + BulkNegativeKeywordListWriteToRowValuesStatusTest.class}) +public class BulkNegativeKeywordListWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..da7ea4499f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.BulkNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkNegativeKeywordListWriteToRowValuesIdTest extends BulkNegativeKeywordListTest { + + @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(BulkNegativeKeywordList c, Long v) { + c.getNegativeKeywordList().setId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesNameTest.java new file mode 100644 index 0000000000..3ba5e81a23 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesNameTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.BulkNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkNegativeKeywordList; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkNegativeKeywordListWriteToRowValuesNameTest extends BulkNegativeKeywordListTest { + + @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(BulkNegativeKeywordList c, String v) { + c.getNegativeKeywordList().setName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..5376d7ae03 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_keywords/negative_keyword_list/write/BulkNegativeKeywordListWriteToRowValuesStatusTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.BulkNegativeKeywordListTest; +import com.microsoft.bingads.v10.bulk.entities.BulkNegativeKeywordList; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkNegativeKeywordListWriteToRowValuesStatusTest extends BulkNegativeKeywordListTest { + + @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(BulkNegativeKeywordList c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTest.java new file mode 100644 index 0000000000..37f4a21082 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Map; + +public abstract class BulkAdGroupNegativeSiteTest extends BulkEntityTest { + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkAdGroupNegativeSite get() { + return new BulkAdGroupNegativeSite(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupNegativeSite get() { + return new BulkAdGroupNegativeSite(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkAdGroupNegativeSite get() { + return new BulkAdGroupNegativeSite(); + } + }); + } + + @Override + protected void onEntityCreation(BulkAdGroupNegativeSite entity) { + + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTests.java new file mode 100644 index 0000000000..43088db0f6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/BulkAdGroupNegativeSiteTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.read.BulkAdGroupNegativeSiteReadTests; +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.write.BulkAdGroupNegativeSiteWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkAdGroupNegativeSiteReadTests.class, BulkAdGroupNegativeSiteWriteTests.class}) +public class BulkAdGroupNegativeSiteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupIdTest.java new file mode 100644 index 0000000000..1ae9b8b7c2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeSiteReadFromRowValuesAdGroupIdTest extends BulkAdGroupNegativeSiteTest { + + @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(BulkAdGroupNegativeSite c) { + return c.getAdGroupId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupNameTest.java new file mode 100644 index 0000000000..1a77380cbe --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesAdGroupNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeSiteReadFromRowValuesAdGroupNameTest extends BulkAdGroupNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Ad Group", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupNegativeSite c) { + return c.getAdGroupName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..b0addf7851 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesStatusTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeSiteReadFromRowValuesStatusTest extends BulkAdGroupNegativeSiteTest { + + @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(BulkAdGroupNegativeSite c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesWebsiteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesWebsiteTest.java new file mode 100644 index 0000000000..73bc91d764 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadFromRowValuesWebsiteTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeSiteReadFromRowValuesWebsiteTest extends BulkAdGroupNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Website", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkAdGroupNegativeSite c) { + return c.getWebsite(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadTests.java new file mode 100644 index 0000000000..1ec0a0ff0f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/read/BulkAdGroupNegativeSiteReadTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkAdGroupNegativeSiteReadFromRowValuesAdGroupIdTest.class, + BulkAdGroupNegativeSiteReadFromRowValuesAdGroupNameTest.class, + BulkAdGroupNegativeSiteReadFromRowValuesStatusTest.class, + BulkAdGroupNegativeSiteReadFromRowValuesWebsiteTest.class}) +public class BulkAdGroupNegativeSiteReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupIdTest.java new file mode 100644 index 0000000000..60b48b872b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupIdTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupIdTest extends BulkAdGroupNegativeSiteTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAdGroupNegativeSite c, Long v) { + c.setAdGroupId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupNameTest.java new file mode 100644 index 0000000000..a8268c7abf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupNameTest extends BulkAdGroupNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Ad Group", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAdGroupNegativeSite c, String v) { + c.setAdGroupName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesStatusTest.java new file mode 100644 index 0000000000..4a5037442d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesStatusTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeSiteWriteFromRowValuesStatusTest extends BulkAdGroupNegativeSiteTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAdGroupNegativeSite c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesWebsiteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesWebsiteTest.java new file mode 100644 index 0000000000..0e41ccf88e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteFromRowValuesWebsiteTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkAdGroupNegativeSiteWriteFromRowValuesWebsiteTest extends BulkAdGroupNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Website", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkAdGroupNegativeSite c, String v) { + c.setWebsite(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteTests.java new file mode 100644 index 0000000000..67eb766d9f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/site/write/BulkAdGroupNegativeSiteWriteTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupIdTest.class, + BulkAdGroupNegativeSiteWriteFromRowValuesAdGroupNameTest.class, + BulkAdGroupNegativeSiteWriteFromRowValuesStatusTest.class, + BulkAdGroupNegativeSiteWriteFromRowValuesWebsiteTest.class}) +public class BulkAdGroupNegativeSiteWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesReadWriteTest.java new file mode 100644 index 0000000000..4aacba0499 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesReadWriteTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites; + +import com.microsoft.bingads.v10.api.test.entities.Util; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSites; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; + +public class BulkAdGroupNegativeSitesReadWriteTest { + + @Test + public void readBulkAdGroupNegativeSitesWithDifferentAdGroupIds() { + ArrayList negativeSites = new ArrayList(); + + BulkAdGroupNegativeSite site = new BulkAdGroupNegativeSite(); + site.setAdGroupId(1001L); + site.setWebsite("http://microsoft.com"); + negativeSites.add(site); + + site = new BulkAdGroupNegativeSite(); + site.setAdGroupId(1002L); + site.setWebsite("http://google.com"); + negativeSites.add(site); + + ArrayList readBack = Util.WriteAndReadBack(negativeSites); + Assert.assertEquals(2, readBack.size()); + + BulkAdGroupNegativeSites a = (BulkAdGroupNegativeSites) readBack.get(0); + Assert.assertEquals(1001L, a.getAdGroupNegativeSites().getAdGroupId().longValue()); + Assert.assertEquals( + "http://microsoft.com", + a.getNegativeSites().get(0).getWebsite() + ); + + BulkAdGroupNegativeSites b = (BulkAdGroupNegativeSites) readBack.get(1); + Assert.assertEquals(1002L, b.getAdGroupNegativeSites().getAdGroupId().longValue()); + Assert.assertEquals( + "http://google.com", + b.getNegativeSites().get(0).getWebsite() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTest.java new file mode 100644 index 0000000000..d5f6d97c8e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites; + +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSites; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkAdGroupNegativeSitesIdentifier; +import java.util.List; +import org.easymock.EasyMockSupport; +import static org.hamcrest.CoreMatchers.hasItems; +import static org.junit.Assert.assertThat; + +public abstract class BulkAdGroupNegativeSitesTest extends EasyMockSupport { + + protected final int AdGroupId = 123; + + protected static void assertNegativeSites(BulkAdGroupNegativeSite[] bulkAdGroupNegativeSites, BulkAdGroupNegativeSites actualBulkAdGroupNegativeSites) { + List listBulkAdGroupNegativeSites = actualBulkAdGroupNegativeSites.getNegativeSites(); + + assertThat(listBulkAdGroupNegativeSites, hasItems(bulkAdGroupNegativeSites)); + } + + protected BulkAdGroupNegativeSite[] createBulkAdGroupNegativeSitesWithSameIdentifier(int count) { + return this.createBulkAdGroupNegativeSitesWithSameIdentifier(count, null); + } + + protected BulkAdGroupNegativeSite[] createBulkAdGroupNegativeSitesWithSameIdentifier(int count, BulkAdGroupNegativeSitesIdentifier identifier) { + if (identifier == null) { + identifier = new BulkAdGroupNegativeSitesIdentifier(); + identifier.setAdGroupId(123L); + identifier.setAdGroupName("Test Ad Group"); + identifier.setCampaignName("Test Campaign"); + } + + BulkAdGroupNegativeSite[] BulkAdGroupNegativeSites = new BulkAdGroupNegativeSite[count]; + + for (int i = 0; i < count; i++) { + BulkAdGroupNegativeSites[i] = new BulkAdGroupNegativeSite(); + BulkAdGroupNegativeSites[i].setAdGroupId(identifier.getAdGroupId()); + BulkAdGroupNegativeSites[i].setAdGroupName(identifier.getAdGroupName()); + BulkAdGroupNegativeSites[i].setCampaignName(identifier.getCampaignName()); + } + + return BulkAdGroupNegativeSites; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTests.java new file mode 100644 index 0000000000..904fa4799f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/BulkAdGroupNegativeSitesTests.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites.read.BulkAdGroupNegativeSitesReadTest; +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites.write.BulkAdGroupNegativeSitesWriteTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkAdGroupNegativeSitesReadTest.class, + BulkAdGroupNegativeSitesWriteTest.class, + BulkAdGroupNegativeSitesReadWriteTest.class +}) +public class BulkAdGroupNegativeSitesTests { + +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/read/BulkAdGroupNegativeSitesReadTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/read/BulkAdGroupNegativeSitesReadTest.java new file mode 100644 index 0000000000..d92a7a0c08 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/read/BulkAdGroupNegativeSitesReadTest.java @@ -0,0 +1,83 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites.BulkAdGroupNegativeSitesTest; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSites; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.MultirecordEntityTestHelper; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectReader; +import com.microsoft.bingads.v10.internal.bulk.TestFactory; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkAdGroupNegativeSitesIdentifier; +import java.util.ArrayList; +import java.util.List; +import org.easymock.EasyMockRunner; +import static org.hamcrest.CoreMatchers.instanceOf; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThat; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class BulkAdGroupNegativeSitesReadTest extends BulkAdGroupNegativeSitesTest { + + private static final int AdGroupId = 123; + + @Test + public void testRead() { + List objects = BulkAdGroupNegativeSitesReadTest.createObjectListWithIdentifier(); + + addNegativeSite(objects, "site 1"); + addNegativeSite(objects, "site 2"); + + BulkAdGroupNegativeSites bulkNegativeSites = BulkAdGroupNegativeSitesReadTest.readAdGroupNegativeSites(objects); + + List apiNegativeSites = bulkNegativeSites.getAdGroupNegativeSites().getNegativeSites().getStrings(); + + assertEquals(2, apiNegativeSites.size()); + + assertEquals("site 1", apiNegativeSites.get(0)); + assertEquals("site 2", apiNegativeSites.get(1)); + } + + private static List createObjectListWithIdentifier() { + List objects = new ArrayList(); + + BulkAdGroupNegativeSitesIdentifier deleteAllRow = new BulkAdGroupNegativeSitesIdentifier(); + deleteAllRow.setAdGroupId(123L); + deleteAllRow.setAdGroupName("Test Ad Group"); + deleteAllRow.setCampaignName("Test Campaign"); + deleteAllRow.setStatus(Status.DELETED); + objects.add(deleteAllRow); + + return objects; + } + + public void addNegativeSite(List objects, String website) { + BulkAdGroupNegativeSite site = new BulkAdGroupNegativeSite(); + site.setAdGroupId(123L); + site.setWebsite(website); + objects.add(site); + } + + public static BulkAdGroupNegativeSites readAdGroupNegativeSites(List objects) { + BulkObject[] objectArray = new BulkObject[]{objects.get(0), objects.get(1), objects.get(2)}; + + BulkObjectReader objectReader = MultirecordEntityTestHelper.createFakeObjectReader(objectArray); + + BulkFileReader fileReader = TestFactory.createBulkFileReader(objectReader, ResultFileType.PARTIAL_DOWNLOAD); + + List actualEntities = new ArrayList(); + + for (BulkEntity entity : fileReader.getEntities()) { + actualEntities.add(entity); + } + assertEquals(1, actualEntities.size()); + assertThat(actualEntities.get(0), instanceOf(BulkAdGroupNegativeSites.class)); + + return BulkAdGroupNegativeSites.class.cast(actualEntities.get(0)); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/write/BulkAdGroupNegativeSitesWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/write/BulkAdGroupNegativeSitesWriteTest.java new file mode 100644 index 0000000000..52564ff36a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/ad_group/sites/write/BulkAdGroupNegativeSitesWriteTest.java @@ -0,0 +1,110 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites.BulkAdGroupNegativeSitesTest; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupNegativeSites; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.v10.campaignmanagement.AdGroupNegativeSites; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkAdGroupNegativeSitesIdentifier; +import java.io.IOException; +import java.util.Comparator; +import java.util.List; +import static org.easymock.EasyMock.and; +import static org.easymock.EasyMock.anyObject; +import static org.easymock.EasyMock.cmp; +import static org.easymock.EasyMock.eq; +import org.easymock.EasyMockRunner; +import org.easymock.LogicalOperator; +import org.easymock.Mock; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class BulkAdGroupNegativeSitesWriteTest extends BulkAdGroupNegativeSitesTest { + + private static final Comparator IDENTIFIER_COMPARATOR = new Comparator() { + + @Override + public int compare(Object obj1, + Object obj2) { + + if (!BulkAdGroupNegativeSitesIdentifier.class.isInstance(obj1)) { + return -1; + } + + if (!BulkAdGroupNegativeSitesIdentifier.class.isInstance(obj2)) { + return 1; + } + + BulkAdGroupNegativeSitesIdentifier o1 = BulkAdGroupNegativeSitesIdentifier.class.cast(obj1); + + BulkAdGroupNegativeSitesIdentifier o2 = BulkAdGroupNegativeSitesIdentifier.class.cast(obj2); + + if (o1.getAdGroupId() == o2.getAdGroupId()) { + return 0; + } else { + return -1; + } + } + }; + private static final Comparator BULK_NEGATIVE_SITE_COMPARATOR = new Comparator() { + + @Override + public int compare(Object obj1, Object obj2) { + if (!BulkAdGroupNegativeSite.class.isInstance(obj1)) { + return -1; + } + + if (!BulkAdGroupNegativeSite.class.isInstance(obj2)) { + return 1; + } + + BulkAdGroupNegativeSite o1 = BulkAdGroupNegativeSite.class.cast(obj1); + + BulkAdGroupNegativeSite o2 = BulkAdGroupNegativeSite.class.cast(obj2); + if (o1.getAdGroupId() == o2.getAdGroupId()) { + return 0; + } else { + return -1; + } + } + }; + + @Mock + BulkObjectWriter rowWriter; + + @Test + public void testWriteToStream() throws IOException { + AdGroupNegativeSites apiAdGroupNegativeSites = new AdGroupNegativeSites(); + apiAdGroupNegativeSites.setAdGroupId(123L); + + ArrayOfstring arrayOfBulkAdGroupNegativeSites = new ArrayOfstring(); + List bulkAdGroupNegativeSites = arrayOfBulkAdGroupNegativeSites.getStrings(); + bulkAdGroupNegativeSites.add("Site 1"); + bulkAdGroupNegativeSites.add("Site 2"); + apiAdGroupNegativeSites.setNegativeSites(arrayOfBulkAdGroupNegativeSites); + + BulkAdGroupNegativeSites adGroupNegativeSites = new BulkAdGroupNegativeSites(); + adGroupNegativeSites.setAdGroupName("Test Ad Group"); + adGroupNegativeSites.setAdGroupNegativeSites(apiAdGroupNegativeSites); + + BulkAdGroupNegativeSitesIdentifier identifier = new BulkAdGroupNegativeSitesIdentifier(); + identifier.setAdGroupId(123L); + identifier.setStatus(Status.DELETED); + + BulkAdGroupNegativeSite bulkAdGroupNegativeSite1 = new BulkAdGroupNegativeSite(); + bulkAdGroupNegativeSite1.setAdGroupId(123L); + bulkAdGroupNegativeSite1.setWebsite(apiAdGroupNegativeSites.getNegativeSites().getStrings().get(0)); + BulkAdGroupNegativeSite bulkAdGroupNegativeSite2 = new BulkAdGroupNegativeSite(); + bulkAdGroupNegativeSite2.setAdGroupId(123L); + bulkAdGroupNegativeSite2.setWebsite(apiAdGroupNegativeSites.getNegativeSites().getStrings().get(1)); + + rowWriter.writeObjectRow(and(anyObject(BulkAdGroupNegativeSitesIdentifier.class), cmp(identifier, IDENTIFIER_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + rowWriter.writeObjectRow(and(anyObject(BulkAdGroupNegativeSite.class), cmp(bulkAdGroupNegativeSite1, BULK_NEGATIVE_SITE_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + rowWriter.writeObjectRow(and(anyObject(BulkAdGroupNegativeSite.class), cmp(bulkAdGroupNegativeSite2, BULK_NEGATIVE_SITE_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + replayAll(); + adGroupNegativeSites.writeToStream(rowWriter, false); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTest.java new file mode 100644 index 0000000000..74af4afb24 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Map; + +public abstract class BulkCampaignNegativeSiteTest extends BulkEntityTest { + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignNegativeSite get() { + return new BulkCampaignNegativeSite(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeSite get() { + return new BulkCampaignNegativeSite(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeSite get() { + return new BulkCampaignNegativeSite(); + } + }); + } + + @Override + protected void onEntityCreation(BulkCampaignNegativeSite entity) { + + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTests.java new file mode 100644 index 0000000000..aabf937cc0 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/BulkCampaignNegativeSiteTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.read.BulkCampaignNegativeSiteReadTests; +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.write.BulkCampaignNegativeSiteWriteTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkCampaignNegativeSiteReadTests.class, BulkCampaignNegativeSiteWriteTests.class}) +public class BulkCampaignNegativeSiteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..dde630f7f3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeSiteReadFromRowValuesCampaignIdTest extends BulkCampaignNegativeSiteTest { + + @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(BulkCampaignNegativeSite c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..49f4ca7b6e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeSiteReadFromRowValuesCampaignNameTest extends BulkCampaignNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignNegativeSite c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..0ff8943276 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesStatusTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeSiteReadFromRowValuesStatusTest extends BulkCampaignNegativeSiteTest { + + @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(BulkCampaignNegativeSite c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesWebsiteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesWebsiteTest.java new file mode 100644 index 0000000000..0aced7e0e7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadFromRowValuesWebsiteTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeSiteReadFromRowValuesWebsiteTest extends BulkCampaignNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Website", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignNegativeSite c) { + return c.getWebsite(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadTests.java new file mode 100644 index 0000000000..4e733e9bfc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/read/BulkCampaignNegativeSiteReadTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.read; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkCampaignNegativeSiteReadFromRowValuesCampaignIdTest.class, + BulkCampaignNegativeSiteReadFromRowValuesCampaignNameTest.class, + BulkCampaignNegativeSiteReadFromRowValuesStatusTest.class, + BulkCampaignNegativeSiteReadFromRowValuesWebsiteTest.class}) +public class BulkCampaignNegativeSiteReadTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..f0ab5ceff9 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignIdTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeSiteWriteFromRowValuesCampaignIdTest extends BulkCampaignNegativeSiteTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeSite c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..775639ecb8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesCampaignNameTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeSiteWriteFromRowValuesCampaignNameTest extends BulkCampaignNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeSite c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesStatusTest.java new file mode 100644 index 0000000000..9af3bb9875 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesStatusTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeSiteWriteFromRowValuesStatusTest extends BulkCampaignNegativeSiteTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeSite c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesWebsiteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesWebsiteTest.java new file mode 100644 index 0000000000..7cdfc79f78 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteFromRowValuesWebsiteTest.java @@ -0,0 +1,35 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import java.util.Arrays; +import java.util.Collection; +import org.junit.Test; +import org.junit.runners.Parameterized.Parameter; +import org.junit.runners.Parameterized.Parameters; + +public class BulkCampaignNegativeSiteWriteFromRowValuesWebsiteTest extends BulkCampaignNegativeSiteTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Test text", "Test text"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Website", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeSite c, String v) { + c.setWebsite(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteTests.java new file mode 100644 index 0000000000..1af650cafc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/site/write/BulkCampaignNegativeSiteWriteTests.java @@ -0,0 +1,14 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.write; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkCampaignNegativeSiteWriteFromRowValuesCampaignIdTest.class, + BulkCampaignNegativeSiteWriteFromRowValuesCampaignNameTest.class, + BulkCampaignNegativeSiteWriteFromRowValuesStatusTest.class, + BulkCampaignNegativeSiteWriteFromRowValuesWebsiteTest.class}) +public class BulkCampaignNegativeSiteWriteTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesReadWriteTest.java new file mode 100644 index 0000000000..1e7a95bcad --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesReadWriteTest.java @@ -0,0 +1,45 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites; + +import com.microsoft.bingads.v10.api.test.entities.Util; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSites; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; + +public class BulkCampaignNegativeSitesReadWriteTest { + + @Test + public void readBulkCampaignNegativeSitesWithDifferentCampaignIds() { + ArrayList negativeSites = new ArrayList(); + + BulkCampaignNegativeSite site = new BulkCampaignNegativeSite(); + site.setCampaignId(1001L); + site.setWebsite("http://microsoft.com"); + negativeSites.add(site); + + site = new BulkCampaignNegativeSite(); + site.setCampaignId(1002L); + site.setWebsite("http://google.com"); + negativeSites.add(site); + + ArrayList readBack = Util.WriteAndReadBack(negativeSites); + Assert.assertEquals(2, readBack.size()); + + BulkCampaignNegativeSites a = (BulkCampaignNegativeSites) readBack.get(0); + Assert.assertEquals(1001L, a.getCampaignNegativeSites().getCampaignId().longValue()); + Assert.assertEquals( + "http://microsoft.com", + a.getNegativeSites().get(0).getWebsite() + ); + + BulkCampaignNegativeSites b = (BulkCampaignNegativeSites) readBack.get(1); + Assert.assertEquals(1002L, b.getCampaignNegativeSites().getCampaignId().longValue()); + Assert.assertEquals( + "http://google.com", + b.getNegativeSites().get(0).getWebsite() + ); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTest.java new file mode 100644 index 0000000000..648471236a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites; + +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSites; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkCampaignNegativeSitesIdentifier; +import java.util.List; +import org.easymock.EasyMockSupport; +import static org.hamcrest.CoreMatchers.hasItems; +import static org.junit.Assert.assertThat; + +public abstract class BulkCampaignNegativeSitesTest extends EasyMockSupport { + + protected final int CampaignId = 123; + + protected static void assertNegativeSites(BulkCampaignNegativeSite[] bulkCampaignNegativeSites, BulkCampaignNegativeSites actualBulkCampaignNegativeSites) { + List listBulkCampaignNegativeSites = actualBulkCampaignNegativeSites.getNegativeSites(); + + assertThat(listBulkCampaignNegativeSites, hasItems(bulkCampaignNegativeSites)); + } + + protected BulkCampaignNegativeSite[] createBulkCampaignNegativeSitesWithSameIdentifier(int count) { + return this.createBulkCampaignNegativeSitesWithSameIdentifier(count, null); + } + + protected BulkCampaignNegativeSite[] createBulkCampaignNegativeSitesWithSameIdentifier(int count, BulkCampaignNegativeSitesIdentifier identifier) { + if (identifier == null) { + identifier = new BulkCampaignNegativeSitesIdentifier(); + identifier.setCampaignId(123L); + identifier.setCampaignName("Test Campaign"); + } + + BulkCampaignNegativeSite[] BulkCampaignNegativeSites = new BulkCampaignNegativeSite[count]; + + for (int i = 0; i < count; i++) { + BulkCampaignNegativeSites[i] = new BulkCampaignNegativeSite(); + BulkCampaignNegativeSites[i].setCampaignId(identifier.getCampaignId()); + BulkCampaignNegativeSites[i].setCampaignName(identifier.getCampaignName()); + } + + return BulkCampaignNegativeSites; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTests.java new file mode 100644 index 0000000000..ca429aefaa --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/BulkCampaignNegativeSitesTests.java @@ -0,0 +1,17 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites.read.BulkCampaignNegativeSitesReadTest; +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites.write.BulkCampaignNegativeSitesWriteTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignNegativeSitesReadTest.class, + BulkCampaignNegativeSitesWriteTest.class, + BulkCampaignNegativeSitesReadWriteTest.class +}) +public class BulkCampaignNegativeSitesTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/read/BulkCampaignNegativeSitesReadTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/read/BulkCampaignNegativeSitesReadTest.java new file mode 100644 index 0000000000..ca13adbb34 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/read/BulkCampaignNegativeSitesReadTest.java @@ -0,0 +1,84 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites.read; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites.BulkCampaignNegativeSitesTest; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSites; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.MultirecordEntityTestHelper; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectReader; +import com.microsoft.bingads.v10.internal.bulk.TestFactory; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkCampaignNegativeSitesIdentifier; +import java.util.ArrayList; +import java.util.List; +import org.easymock.EasyMockRunner; +import static org.hamcrest.CoreMatchers.instanceOf; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThat; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class BulkCampaignNegativeSitesReadTest extends BulkCampaignNegativeSitesTest { + + private static final int CampaignId = 123; + + @Test + public void testRead() { + List objects = BulkCampaignNegativeSitesReadTest.createObjectListWithIdentifier(); + + addNegativeSite(objects, "site 1"); + addNegativeSite(objects, "site 2"); + + BulkCampaignNegativeSites bulkNegativeSites = BulkCampaignNegativeSitesReadTest.readCampaignNegativeSites(objects); + + List apiNegativeSites = bulkNegativeSites.getCampaignNegativeSites().getNegativeSites().getStrings(); + + assertEquals(2, apiNegativeSites.size()); + + assertEquals("site 1", apiNegativeSites.get(0)); + assertEquals("site 2", apiNegativeSites.get(1)); + } + + private static List createObjectListWithIdentifier() { + List objects = new ArrayList(); + + BulkCampaignNegativeSitesIdentifier deleteAllRow = new BulkCampaignNegativeSitesIdentifier(); + deleteAllRow.setCampaignId(123L); + deleteAllRow.setCampaignName("Test Ad Group"); + deleteAllRow.setCampaignName("Test Campaign"); + deleteAllRow.setStatus(Status.DELETED); + objects.add(deleteAllRow); + + return objects; + } + + public void addNegativeSite(List objects, String website) { + BulkCampaignNegativeSite site = new BulkCampaignNegativeSite(); + site.setCampaignId(123L); + site.setWebsite(website); + objects.add(site); + } + + public static BulkCampaignNegativeSites readCampaignNegativeSites(List objects) { + BulkObject[] objectArray = new BulkObject[]{objects.get(0), objects.get(1), objects.get(2)}; + + BulkObjectReader objectReader = MultirecordEntityTestHelper.createFakeObjectReader(objectArray); + + BulkFileReader fileReader = TestFactory.createBulkFileReader(objectReader, ResultFileType.PARTIAL_DOWNLOAD); + + List actualEntities = new ArrayList(); + + for (BulkEntity entity : fileReader.getEntities()) { + actualEntities.add(entity); + } + + assertEquals(1, actualEntities.size()); + assertThat(actualEntities.get(0), instanceOf(BulkCampaignNegativeSites.class)); + + return BulkCampaignNegativeSites.class.cast(actualEntities.get(0)); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/write/BulkCampaignNegativeSitesWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/write/BulkCampaignNegativeSitesWriteTest.java new file mode 100644 index 0000000000..52d22c2b2a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/negative_site/campaign/sites/write/BulkCampaignNegativeSitesWriteTest.java @@ -0,0 +1,111 @@ +package com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites.write; + +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.sites.BulkCampaignNegativeSitesTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSite; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeSites; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.v10.campaignmanagement.CampaignNegativeSites; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectWriter; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkCampaignNegativeSitesIdentifier; +import java.io.IOException; +import java.util.Comparator; +import java.util.List; +import static org.easymock.EasyMock.and; +import static org.easymock.EasyMock.anyObject; +import static org.easymock.EasyMock.cmp; +import static org.easymock.EasyMock.eq; +import org.easymock.EasyMockRunner; +import org.easymock.LogicalOperator; +import org.easymock.Mock; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class BulkCampaignNegativeSitesWriteTest extends BulkCampaignNegativeSitesTest { + + private static final Comparator IDENTIFIER_COMPARATOR = new Comparator() { + + @Override + public int compare(Object obj1, + Object obj2) { + + if (!BulkCampaignNegativeSitesIdentifier.class.isInstance(obj1)) { + return -1; + } + + if (!BulkCampaignNegativeSitesIdentifier.class.isInstance(obj2)) { + return 1; + } + + BulkCampaignNegativeSitesIdentifier o1 = BulkCampaignNegativeSitesIdentifier.class.cast(obj1); + + BulkCampaignNegativeSitesIdentifier o2 = BulkCampaignNegativeSitesIdentifier.class.cast(obj2); + + if (o1.getCampaignId() == o2.getCampaignId()) { + return 0; + } else { + return -1; + } + } + }; + private static final Comparator BULK_NEGATIVE_SITE_COMPARATOR = new Comparator() { + + @Override + public int compare(Object obj1, Object obj2) { + if (!BulkCampaignNegativeSite.class.isInstance(obj1)) { + return -1; + } + + if (!BulkCampaignNegativeSite.class.isInstance(obj2)) { + return 1; + } + + BulkCampaignNegativeSite o1 = BulkCampaignNegativeSite.class.cast(obj1); + + BulkCampaignNegativeSite o2 = BulkCampaignNegativeSite.class.cast(obj2); + + if (o1.getCampaignId() == o2.getCampaignId()) { + return 0; + } else { + return -1; + } + } + }; + + @Mock + BulkObjectWriter rowWriter; + + @Test + public void testWriteToStream() throws IOException { + CampaignNegativeSites apiCampaignNegativeSites = new CampaignNegativeSites(); + apiCampaignNegativeSites.setCampaignId(123L); + + ArrayOfstring arrayOfBulkCampaignNegativeSites = new ArrayOfstring(); + List bulkCampaignNegativeSites = arrayOfBulkCampaignNegativeSites.getStrings(); + bulkCampaignNegativeSites.add("Site 1"); + bulkCampaignNegativeSites.add("Site 2"); + apiCampaignNegativeSites.setNegativeSites(arrayOfBulkCampaignNegativeSites); + + BulkCampaignNegativeSites CampaignNegativeSites = new BulkCampaignNegativeSites(); + CampaignNegativeSites.setCampaignName("Test Ad Group"); + CampaignNegativeSites.setCampaignNegativeSites(apiCampaignNegativeSites); + + BulkCampaignNegativeSitesIdentifier identifier = new BulkCampaignNegativeSitesIdentifier(); + identifier.setCampaignId(123L); + identifier.setStatus(Status.DELETED); + + BulkCampaignNegativeSite bulkCampaignNegativeSite1 = new BulkCampaignNegativeSite(); + bulkCampaignNegativeSite1.setCampaignId(123L); + bulkCampaignNegativeSite1.setWebsite(apiCampaignNegativeSites.getNegativeSites().getStrings().get(0)); + BulkCampaignNegativeSite bulkCampaignNegativeSite2 = new BulkCampaignNegativeSite(); + bulkCampaignNegativeSite2.setCampaignId(123L); + bulkCampaignNegativeSite2.setWebsite(apiCampaignNegativeSites.getNegativeSites().getStrings().get(1)); + + rowWriter.writeObjectRow(and(anyObject(BulkCampaignNegativeSitesIdentifier.class), cmp(identifier, IDENTIFIER_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + rowWriter.writeObjectRow(and(anyObject(BulkCampaignNegativeSite.class), cmp(bulkCampaignNegativeSite1, BULK_NEGATIVE_SITE_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + rowWriter.writeObjectRow(and(anyObject(BulkCampaignNegativeSite.class), cmp(bulkCampaignNegativeSite2, BULK_NEGATIVE_SITE_COMPARATOR, LogicalOperator.EQUAL)), eq(false)); + replayAll(); + CampaignNegativeSites.writeToStream(rowWriter, false); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/adgroup/BulkAdGroupTargetReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/adgroup/BulkAdGroupTargetReadWriteTest.java new file mode 100644 index 0000000000..ba2430fd9d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/adgroup/BulkAdGroupTargetReadWriteTest.java @@ -0,0 +1,55 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.adgroup; + +import com.microsoft.bingads.v10.api.test.entities.Util; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupAgeTargetBid; +import com.microsoft.bingads.v10.bulk.entities.BulkAdGroupTarget; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.campaignmanagement.AgeRange; +import com.microsoft.bingads.v10.campaignmanagement.AgeTargetBid; + +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; + +public class BulkAdGroupTargetReadWriteTest { + + @Test + public void readBulkAdGroupTargetWithDifferentAdGroupIds() { + ArrayList targetBids = new ArrayList(); + + BulkAdGroupAgeTargetBid bulkBid = new BulkAdGroupAgeTargetBid(); + AgeTargetBid bid = new AgeTargetBid(); + bulkBid.setAgeTargetBid(bid); + bulkBid.setAdGroupId(1001L); + bid.setAge(AgeRange.EIGHTEEN_TO_TWENTY_FIVE); + bid.setBidAdjustment(10); + targetBids.add(bulkBid); + + bulkBid = new BulkAdGroupAgeTargetBid(); + bid = new AgeTargetBid(); + bulkBid.setAgeTargetBid(bid); + bulkBid.setAdGroupId(1002L); + bid.setAge(AgeRange.FIFTY_TO_SIXTY_FIVE); + bid.setBidAdjustment(-10); + targetBids.add(bulkBid); + + ArrayList readBack = Util.WriteAndReadBack(targetBids); + Assert.assertEquals(2, readBack.size()); + + BulkAdGroupTarget a = (BulkAdGroupTarget) readBack.get(0); + Assert.assertEquals(1001L, a.getAdGroupId().longValue()); + Assert.assertEquals( + Util.toJson(((BulkAdGroupAgeTargetBid) targetBids.get(0)).getAgeTargetBid()), + Util.toJson(a.getAgeTarget().getBids().get(0).getAgeTargetBid()) + ); + + BulkAdGroupTarget b = (BulkAdGroupTarget) readBack.get(1); + Assert.assertEquals(1002L, b.getAdGroupId().longValue()); + Assert.assertEquals( + Util.toJson(((BulkAdGroupAgeTargetBid) targetBids.get(1)).getAgeTargetBid()), + Util.toJson(b.getAgeTarget().getBids().get(0).getAgeTargetBid()) + ); + } + +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/BulkCampaignTargetReadWriteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/BulkCampaignTargetReadWriteTest.java new file mode 100644 index 0000000000..10f7474ac6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/BulkCampaignTargetReadWriteTest.java @@ -0,0 +1,55 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign; + +import com.microsoft.bingads.v10.api.test.entities.Util; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignTarget; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.campaignmanagement.AgeRange; +import com.microsoft.bingads.v10.campaignmanagement.AgeTargetBid; + +import org.junit.Assert; +import org.junit.Test; + +import java.util.ArrayList; + +public class BulkCampaignTargetReadWriteTest { + + @Test + public void readBulkCampaignTargetWithDifferentCampaignIds() { + ArrayList targetBids = new ArrayList(); + + BulkCampaignAgeTargetBid bulkBid = new BulkCampaignAgeTargetBid(); + AgeTargetBid bid = new AgeTargetBid(); + bulkBid.setAgeTargetBid(bid); + bulkBid.setCampaignId(1001L); + bid.setAge(AgeRange.EIGHTEEN_TO_TWENTY_FIVE); + bid.setBidAdjustment(10); + targetBids.add(bulkBid); + + bulkBid = new BulkCampaignAgeTargetBid(); + bid = new AgeTargetBid(); + bulkBid.setAgeTargetBid(bid); + bulkBid.setCampaignId(1002L); + bid.setAge(AgeRange.FIFTY_TO_SIXTY_FIVE); + bid.setBidAdjustment(-10); + targetBids.add(bulkBid); + + ArrayList readBack = Util.WriteAndReadBack(targetBids); + Assert.assertEquals(2, readBack.size()); + + BulkCampaignTarget a = (BulkCampaignTarget) readBack.get(0); + Assert.assertEquals(1001L, a.getCampaignId().longValue()); + Assert.assertEquals( + Util.toJson(((BulkCampaignAgeTargetBid) targetBids.get(0)).getAgeTargetBid()), + Util.toJson(a.getAgeTarget().getBids().get(0).getAgeTargetBid()) + ); + + BulkCampaignTarget b = (BulkCampaignTarget) readBack.get(1); + Assert.assertEquals(1002L, b.getCampaignId().longValue()); + Assert.assertEquals( + Util.toJson(((BulkCampaignAgeTargetBid) targetBids.get(1)).getAgeTargetBid()), + Util.toJson(b.getAgeTarget().getBids().get(0).getAgeTargetBid()) + ); + } + +} \ No newline at end of file diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/BulkCampaignAgeTargetBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/BulkCampaignAgeTargetBidTest.java new file mode 100644 index 0000000000..ba65374296 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/BulkCampaignAgeTargetBidTest.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.AgeRange; +import com.microsoft.bingads.v10.campaignmanagement.AgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignAgeTargetBidTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignAgeTargetBid entity) { + AgeTargetBid bid = new AgeTargetBid(); + + bid.setAge(AgeRange.EIGHTEEN_TO_TWENTY_FIVE); + + entity.setAgeTargetBid(bid); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignAgeTargetBid get() { + return new BulkCampaignAgeTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignAgeTargetBid get() { + return new BulkCampaignAgeTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignAgeTargetBid get() { + return new BulkCampaignAgeTargetBid(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesAgeRangeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesAgeRangeTest.java new file mode 100644 index 0000000000..23800e0c33 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesAgeRangeTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.AgeRange; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetReadFromRowValuesAgeRangeTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public AgeRange expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"EighteenToTwentyFive", AgeRange.EIGHTEEN_TO_TWENTY_FIVE}, + {"TwentyFiveToThirtyFive", AgeRange.TWENTY_FIVE_TO_THIRTY_FIVE}, + {"ThirtyFiveToFifty", AgeRange.THIRTY_FIVE_TO_FIFTY}, + {"FiftyToSixtyFive", AgeRange.FIFTY_TO_SIXTY_FIVE}, + {"SixtyFiveAndAbove", AgeRange.SIXTY_FIVE_AND_ABOVE} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Target", this.datum, this.expectedResult, new Function() { + @Override + public AgeRange apply(BulkCampaignAgeTargetBid c) { + return c.getAgeTargetBid().getAge(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..6465a6d7c2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetReadFromRowValuesBidAdjustmentTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Bid Adjustment", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignAgeTargetBid c) { + return c.getAgeTargetBid().getBidAdjustment(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..f7e97361af --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetReadFromRowValuesCampaignIdTest extends BulkCampaignAgeTargetBidTest { + + @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("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignAgeTargetBid c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..e5697231a7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetReadFromRowValuesCampaignNameTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignAgeTargetBid c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..55965b077f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetReadFromRowValuesIdTest extends BulkCampaignAgeTargetBidTest { + + @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(BulkCampaignAgeTargetBid c) { + return c.getTargetId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..6891fee9ac --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/read/BulkCampaignAgeTargetReadFromRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetReadFromRowValuesStatusTest extends BulkCampaignAgeTargetBidTest { + + @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(BulkCampaignAgeTargetBid c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesAgeRangeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesAgeRangeTest.java new file mode 100644 index 0000000000..08f0eb8860 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesAgeRangeTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.AgeRange; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetWriteToRowValuesAgeRangeTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public AgeRange expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"EighteenToTwentyFive", com.microsoft.bingads.v10.campaignmanagement.AgeRange.EIGHTEEN_TO_TWENTY_FIVE}, + {"TwentyFiveToThirtyFive", com.microsoft.bingads.v10.campaignmanagement.AgeRange.TWENTY_FIVE_TO_THIRTY_FIVE}, + {"ThirtyFiveToFifty", com.microsoft.bingads.v10.campaignmanagement.AgeRange.THIRTY_FIVE_TO_FIFTY}, + {"FiftyToSixtyFive", com.microsoft.bingads.v10.campaignmanagement.AgeRange.FIFTY_TO_SIXTY_FIVE}, + {"SixtyFiveAndAbove", com.microsoft.bingads.v10.campaignmanagement.AgeRange.SIXTY_FIVE_AND_ABOVE} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Target", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignAgeTargetBid c, AgeRange v) { + c.getAgeTargetBid().setAge(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..00e5eef77a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetWriteToRowValuesBidAdjustmentTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Bid Adjustment", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignAgeTargetBid c, Integer value) { + c.getAgeTargetBid().setBidAdjustment(value); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..c54222f35c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetWriteToRowValuesCampaignIdTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignAgeTargetBid c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..64d805c6ac --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetWriteToRowValuesCampaignNameTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignAgeTargetBid c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..0548fabd1f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetWriteToRowValuesIdTest extends BulkCampaignAgeTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignAgeTargetBid c, Long v) { + c.setTargetId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..a12abf387a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/age/write/BulkCampaignAgeTargetWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.age.BulkCampaignAgeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignAgeTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignAgeTargetWriteToRowValuesStatusTest extends BulkCampaignAgeTargetBidTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignAgeTargetBid c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/BulkCampaignDayTimeTargetBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/BulkCampaignDayTimeTargetBidTest.java new file mode 100644 index 0000000000..729e2522d8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/BulkCampaignDayTimeTargetBidTest.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Day; +import com.microsoft.bingads.v10.campaignmanagement.DayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Minute; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignDayTimeTargetBidTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignDayTimeTargetBid entity) { + DayTimeTargetBid bid = new DayTimeTargetBid(); + bid.setDay(Day.SUNDAY); + bid.setFromMinute(Minute.ZERO); + bid.setToMinute(Minute.ZERO); + + entity.setDayTimeTargetBid(bid); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignDayTimeTargetBid get() { + return new BulkCampaignDayTimeTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignDayTimeTargetBid get() { + return new BulkCampaignDayTimeTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignDayTimeTargetBid get() { + return new BulkCampaignDayTimeTargetBid(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..33f00e804f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesBidAdjustmentTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Bid Adjustment", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getBidAdjustment(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..1d9f05fe73 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesCampaignIdTest extends BulkCampaignDayTimeTargetBidTest { + + @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("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignDayTimeTargetBid c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..4007290455 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesCampaignNameTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignDayTimeTargetBid c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesDayTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesDayTest.java new file mode 100644 index 0000000000..4d42ed0d3f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesDayTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Day; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesDayTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public Day expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Monday", Day.MONDAY}, + {"Tuesday", Day.TUESDAY}, + {"Wednesday", Day.WEDNESDAY}, + {"Thursday", Day.THURSDAY}, + {"Friday", Day.FRIDAY}, + {"Saturday", Day.SATURDAY}, + {"Sunday", Day.SUNDAY}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Target", this.datum, this.expectedResult, new Function() { + @Override + public Day apply(BulkCampaignDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getDay(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromHourTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromHourTest.java new file mode 100644 index 0000000000..3263271749 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromHourTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesFromHourTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"5", 5} + }); + } + + @Test + public void testRead() { + this.testReadProperty("From Hour", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getFromHour(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromMinuteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromMinuteTest.java new file mode 100644 index 0000000000..a76dadf202 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesFromMinuteTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Minute; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesFromMinuteTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public Minute expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"0", Minute.ZERO}, + {"15", Minute.FIFTEEN}, + {"30", Minute.THIRTY}, + {"45", Minute.FORTY_FIVE} + }); + } + + @Test + public void testRead() { + this.testReadProperty("From Minute", this.datum, this.expectedResult, new Function() { + @Override + public Minute apply(BulkCampaignDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getFromMinute(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..f0229cebf5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesIdTest extends BulkCampaignDayTimeTargetBidTest { + + @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(BulkCampaignDayTimeTargetBid c) { + return c.getTargetId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..06c9f56749 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesStatusTest extends BulkCampaignDayTimeTargetBidTest { + + @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(BulkCampaignDayTimeTargetBid c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToHourTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToHourTest.java new file mode 100644 index 0000000000..7c2937a37a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToHourTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesToHourTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"5", 5} + }); + } + + @Test + public void testRead() { + this.testReadProperty("To Hour", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getToHour(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToMinuteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToMinuteTest.java new file mode 100644 index 0000000000..561474f54d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/read/BulkCampaignDayTimeTargetReadFromRowValuesToMinuteTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Minute; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetReadFromRowValuesToMinuteTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public Minute expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"0", Minute.ZERO}, + {"15", Minute.FIFTEEN}, + {"30", Minute.THIRTY}, + {"45", Minute.FORTY_FIVE} + }); + } + + @Test + public void testRead() { + this.testReadProperty("To Minute", this.datum, this.expectedResult, new Function() { + @Override + public Minute apply(BulkCampaignDayTimeTargetBid c) { + return c.getDayTimeTargetBid().getToMinute(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..a48820265c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesBidAdjustmentTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public int propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Bid Adjustment", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, Integer v) { + c.getDayTimeTargetBid().setBidAdjustment(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..bde410ccfd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignIdTest extends BulkCampaignDayTimeTargetBidTest { + + @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("Parent Id", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..8c379e69cc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesCampaignNameTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public String propertyValue; + + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesDayTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesDayTest.java new file mode 100644 index 0000000000..1010f7ab2e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesDayTest.java @@ -0,0 +1,44 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Day; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesDayTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public Day propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Monday", Day.MONDAY}, + {"Tuesday", Day.TUESDAY}, + {"Wednesday", Day.WEDNESDAY}, + {"Thursday", Day.THURSDAY}, + {"Friday", Day.FRIDAY}, + {"Saturday", Day.SATURDAY}, + {"Sunday", Day.SUNDAY}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Target", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, Day v) { + c.getDayTimeTargetBid().setDay(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromHourTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromHourTest.java new file mode 100644 index 0000000000..951934663c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromHourTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesFromHourTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public int propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"5", 5} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("From Hour", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, Integer v) { + c.getDayTimeTargetBid().setFromHour(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromMinuteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromMinuteTest.java new file mode 100644 index 0000000000..6e333d3ce2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesFromMinuteTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Minute; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesFromMinuteTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public Minute propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"0", Minute.ZERO}, + {"15", Minute.FIFTEEN}, + {"30", Minute.THIRTY}, + {"45", Minute.FORTY_FIVE} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("From Minute", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, Minute v) { + c.getDayTimeTargetBid().setFromMinute(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..9675511808 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesIdTest extends BulkCampaignDayTimeTargetBidTest { + + @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(BulkCampaignDayTimeTargetBid c, Long v) { + c.setTargetId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..f3c76c4d5b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesStatusTest extends BulkCampaignDayTimeTargetBidTest { + + @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(BulkCampaignDayTimeTargetBid c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToHourTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToHourTest.java new file mode 100644 index 0000000000..9400b35bbc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToHourTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesToHourTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public int propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"5", 5} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("To Hour", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, Integer v) { + c.getDayTimeTargetBid().setToHour(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToMinuteTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToMinuteTest.java new file mode 100644 index 0000000000..2452f73ace --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/daytime/write/BulkCampaignDayTimeTargetBidWriteToRowValuesToMinuteTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.daytime.BulkCampaignDayTimeTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDayTimeTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.Minute; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDayTimeTargetBidWriteToRowValuesToMinuteTest extends BulkCampaignDayTimeTargetBidTest { + + @Parameter(value = 1) + public Minute propertyValue; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"0", Minute.ZERO}, + {"15", Minute.FIFTEEN}, + {"30", Minute.THIRTY}, + {"45", Minute.FORTY_FIVE} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("To Minute", this.datum, this.propertyValue, new BiConsumer() { + @Override + public void accept(BulkCampaignDayTimeTargetBid c, Minute v) { + c.getDayTimeTargetBid().setToMinute(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/BulkCampaignDeviceOsTargetBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/BulkCampaignDeviceOsTargetBidTest.java new file mode 100644 index 0000000000..7af2acaba4 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/BulkCampaignDeviceOsTargetBidTest.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.DeviceOSTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignDeviceOsTargetBidTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignDeviceOsTargetBid entity) { + DeviceOSTargetBid bid = new DeviceOSTargetBid(); + + entity.setDeviceOsTargetBid(bid); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignDeviceOsTargetBid get() { + return new BulkCampaignDeviceOsTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignDeviceOsTargetBid get() { + return new BulkCampaignDeviceOsTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignDeviceOsTargetBid get() { + return new BulkCampaignDeviceOsTargetBid(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..6edeb60163 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetReadFromRowValuesBidAdjustmentTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Bid Adjustment", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignDeviceOsTargetBid c) { + return c.getDeviceOsTargetBid().getBidAdjustment(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..487a170e43 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetReadFromRowValuesCampaignIdTest extends BulkCampaignDeviceOsTargetBidTest { + + @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("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignDeviceOsTargetBid c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..b090e6c23b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetReadFromRowValuesCampaignNameTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignDeviceOsTargetBid c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesDeviceNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesDeviceNameTest.java new file mode 100644 index 0000000000..ffaf4a830f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesDeviceNameTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetReadFromRowValuesDeviceNameTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Device 1", "Device 1"}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Target", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignDeviceOsTargetBid c) { + return c.getDeviceOsTargetBid().getDeviceName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..3a1dd93717 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetReadFromRowValuesIdTest extends BulkCampaignDeviceOsTargetBidTest { + + @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(BulkCampaignDeviceOsTargetBid c) { + return c.getTargetId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesOsNamesTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesOsNamesTest.java new file mode 100644 index 0000000000..dad0bf6700 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesOsNamesTest.java @@ -0,0 +1,42 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetReadFromRowValuesOsNamesTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public List expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Windows;Linux", Arrays.asList("Windows", "Linux")}, + {null, null} + }); + } + + @Test + public void testRead() { + this.>testReadProperty("OS Names", this.datum, this.expectedResult, new Function>() { + @Override + public List apply(BulkCampaignDeviceOsTargetBid c) { + if (c.getDeviceOsTargetBid().getOSNames() == null) { + return null; + } + + return c.getDeviceOsTargetBid().getOSNames().getStrings(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..232f273242 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/read/BulkCampaignDeviceOsTargetReadFromRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetReadFromRowValuesStatusTest extends BulkCampaignDeviceOsTargetBidTest { + + @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(BulkCampaignDeviceOsTargetBid c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..975a9c0250 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetWriteToRowValuesBidAdjustmentTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Bid Adjustment", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignDeviceOsTargetBid c, Integer value) { + c.getDeviceOsTargetBid().setBidAdjustment(value); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..37c53e6935 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetWriteToRowValuesCampaignIdTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignDeviceOsTargetBid c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..ec3c423aa7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetWriteToRowValuesCampaignNameTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignDeviceOsTargetBid c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesDeviceNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesDeviceNameTest.java new file mode 100644 index 0000000000..59c053c365 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesDeviceNameTest.java @@ -0,0 +1,37 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetWriteToRowValuesDeviceNameTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Device 1", "Device 1"}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Target", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignDeviceOsTargetBid c, String v) { + c.getDeviceOsTargetBid().setDeviceName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..885afb9797 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetWriteToRowValuesIdTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignDeviceOsTargetBid c, Long v) { + c.setTargetId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesOsNamesTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesOsNamesTest.java new file mode 100644 index 0000000000..a3c2110009 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesOsNamesTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetWriteToRowValuesOsNamesTest extends BulkCampaignDeviceOsTargetBidTest { + + @Parameter(value = 1) + public List expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Windows;Linux", Arrays.asList("Windows", "Linux")}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.>testWriteProperty("OS Names", this.datum, this.expectedResult, new BiConsumer>() { + @Override + public void accept(BulkCampaignDeviceOsTargetBid c, List v) { + if (v == null) { + return; + } + + ArrayOfstring array = new ArrayOfstring(); + array.getStrings().addAll(v); + + c.getDeviceOsTargetBid().setOSNames(array); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..dd3934fff1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/deviceos/write/BulkCampaignDeviceOsTargetWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.deviceos.BulkCampaignDeviceOsTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignDeviceOsTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignDeviceOsTargetWriteToRowValuesStatusTest extends BulkCampaignDeviceOsTargetBidTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignDeviceOsTargetBid c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/BulkCampaignGenderTargetBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/BulkCampaignGenderTargetBidTest.java new file mode 100644 index 0000000000..3e035f2a39 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/BulkCampaignGenderTargetBidTest.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.GenderTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.GenderType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignGenderTargetBidTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignGenderTargetBid entity) { + GenderTargetBid bid = new GenderTargetBid(); + + bid.setGender(GenderType.FEMALE); + + entity.setGenderTargetBid(bid); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignGenderTargetBid get() { + return new BulkCampaignGenderTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignGenderTargetBid get() { + return new BulkCampaignGenderTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignGenderTargetBid get() { + return new BulkCampaignGenderTargetBid(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..b779c3aeaf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetReadFromRowValuesBidAdjustmentTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Bid Adjustment", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignGenderTargetBid c) { + return c.getGenderTargetBid().getBidAdjustment(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..ff74290b5d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetReadFromRowValuesCampaignIdTest extends BulkCampaignGenderTargetBidTest { + + @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("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignGenderTargetBid c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..a4c373ed51 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetReadFromRowValuesCampaignNameTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignGenderTargetBid c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesGenderTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesGenderTypeTest.java new file mode 100644 index 0000000000..90e5bd6b29 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesGenderTypeTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.GenderType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetReadFromRowValuesGenderTypeTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public GenderType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Female", GenderType.FEMALE}, + {"Male", GenderType.MALE} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Target", this.datum, this.expectedResult, new Function() { + @Override + public GenderType apply(BulkCampaignGenderTargetBid c) { + return c.getGenderTargetBid().getGender(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..b2149b8367 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetReadFromRowValuesIdTest extends BulkCampaignGenderTargetBidTest { + + @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(BulkCampaignGenderTargetBid c) { + return c.getTargetId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..badff8e1cc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/read/BulkCampaignGenderTargetReadFromRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetReadFromRowValuesStatusTest extends BulkCampaignGenderTargetBidTest { + + @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(BulkCampaignGenderTargetBid c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..afddcc5b8b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetWriteToRowValuesBidAdjustmentTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Bid Adjustment", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignGenderTargetBid c, Integer value) { + c.getGenderTargetBid().setBidAdjustment(value); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..585257af38 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetWriteToRowValuesCampaignIdTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignGenderTargetBid c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..6d846526c3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetWriteToRowValuesCampaignNameTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignGenderTargetBid c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesGenderTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesGenderTypeTest.java new file mode 100644 index 0000000000..a7a755fc94 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesGenderTypeTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.GenderType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetWriteToRowValuesGenderTypeTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public GenderType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Female", GenderType.FEMALE}, + {"Male", GenderType.MALE} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Target", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignGenderTargetBid c, GenderType v) { + c.getGenderTargetBid().setGender(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..6df0b9bf08 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetWriteToRowValuesIdTest extends BulkCampaignGenderTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignGenderTargetBid c, Long v) { + c.setTargetId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..8151836af8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/gender/write/BulkCampaignGenderTargetWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.gender.BulkCampaignGenderTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignGenderTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignGenderTargetWriteToRowValuesStatusTest extends BulkCampaignGenderTargetBidTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignGenderTargetBid c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/BulkCampaignLocationTargetBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/BulkCampaignLocationTargetBidTest.java new file mode 100644 index 0000000000..b01f4976f3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/BulkCampaignLocationTargetBidTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.LocationTargetType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Map; + +public abstract class BulkCampaignLocationTargetBidTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignLocationTargetBid entity) { + entity.setLocationType(LocationTargetType.CITY); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignLocationTargetBid get() { + return new BulkCampaignLocationTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignLocationTargetBid get() { + return new BulkCampaignLocationTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignLocationTargetBid get() { + return new BulkCampaignLocationTargetBid(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..0793a1b97d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetReadFromRowValuesBidAdjustmentTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Bid Adjustment", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignLocationTargetBid c) { + return c.getBidAdjustment(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..cdd4192254 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetReadFromRowValuesCampaignIdTest extends BulkCampaignLocationTargetBidTest { + + @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("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignLocationTargetBid c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..77e49ec746 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetReadFromRowValuesCampaignNameTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignLocationTargetBid c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..f2fefd7045 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetReadFromRowValuesIdTest extends BulkCampaignLocationTargetBidTest { + + @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(BulkCampaignLocationTargetBid c) { + return c.getTargetId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesLocationTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesLocationTypeTest.java new file mode 100644 index 0000000000..bbeb7d1fb8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesLocationTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.LocationTargetType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetReadFromRowValuesLocationTypeTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public LocationTargetType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Postal Code", LocationTargetType.POSTAL_CODE}, + {"City", LocationTargetType.CITY}, + {"Metro Area", LocationTargetType.METRO_AREA}, + {"State", LocationTargetType.STATE}, + {"Country", LocationTargetType.COUNTRY} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Sub Type", this.datum, this.expectedResult, new Function() { + @Override + public LocationTargetType apply(BulkCampaignLocationTargetBid c) { + return c.getLocationType(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesPhysicalIntentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesPhysicalIntentTest.java new file mode 100644 index 0000000000..438ceb8f9f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesPhysicalIntentTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.IntentOption; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetReadFromRowValuesPhysicalIntentTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public IntentOption expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"PeopleIn", IntentOption.PEOPLE_IN}, + {"PeopleInOrSearchingForOrViewingPages", IntentOption.PEOPLE_IN_OR_SEARCHING_FOR_OR_VIEWING_PAGES}, + {"PeopleSearchingForOrViewingPages", IntentOption.PEOPLE_SEARCHING_FOR_OR_VIEWING_PAGES} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Physical Intent", this.datum, this.expectedResult, new Function() { + @Override + public IntentOption apply(BulkCampaignLocationTargetBid c) { + return c.getIntentOption(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..97f84dccfe --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/read/BulkCampaignLocationTargetReadFromRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetReadFromRowValuesStatusTest extends BulkCampaignLocationTargetBidTest { + + @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(BulkCampaignLocationTargetBid c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..7f58bf6d6f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetWriteToRowValuesBidAdjustmentTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Bid Adjustment", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignLocationTargetBid c, Integer value) { + c.setBidAdjustment(value); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..3b2f155691 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetWriteToRowValuesCampaignIdTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignLocationTargetBid c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..8b9e621810 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetWriteToRowValuesCampaignNameTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignLocationTargetBid c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..321ec0a9c0 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetWriteToRowValuesIdTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignLocationTargetBid c, Long v) { + c.setTargetId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesLocationTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesLocationTypeTest.java new file mode 100644 index 0000000000..bb52c9ecbc --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesLocationTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.LocationTargetType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetWriteToRowValuesLocationTypeTest extends BulkCampaignLocationTargetBidTest { + + @Parameter(value = 1) + public LocationTargetType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Postal Code", LocationTargetType.POSTAL_CODE}, + {"City", LocationTargetType.CITY}, + {"Metro Area", LocationTargetType.METRO_AREA}, + {"State", LocationTargetType.STATE}, + {"Country", LocationTargetType.COUNTRY} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Sub Type", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignLocationTargetBid c, LocationTargetType v) { + c.setLocationType(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..5dadce5815 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/location/write/BulkCampaignLocationTargetWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.location.BulkCampaignLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignLocationTargetWriteToRowValuesStatusTest extends BulkCampaignLocationTargetBidTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignLocationTargetBid c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/BulkCampaignNegativeLocationTargetBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/BulkCampaignNegativeLocationTargetBidTest.java new file mode 100644 index 0000000000..4396bd9768 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/BulkCampaignNegativeLocationTargetBidTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.LocationTargetType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Map; + +public abstract class BulkCampaignNegativeLocationTargetBidTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignNegativeLocationTargetBid entity) { + entity.setLocationType(LocationTargetType.CITY); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignNegativeLocationTargetBid get() { + return new BulkCampaignNegativeLocationTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeLocationTargetBid get() { + return new BulkCampaignNegativeLocationTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignNegativeLocationTargetBid get() { + return new BulkCampaignNegativeLocationTargetBid(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..95287aef6f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignIdTest extends BulkCampaignNegativeLocationTargetBidTest { + + @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("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignNegativeLocationTargetBid c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..c4f036d4e2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetReadFromRowValuesCampaignNameTest extends BulkCampaignNegativeLocationTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignNegativeLocationTargetBid c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..20401ad1f5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetReadFromRowValuesIdTest extends BulkCampaignNegativeLocationTargetBidTest { + + @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(BulkCampaignNegativeLocationTargetBid c) { + return c.getTargetId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesNegativeLocationTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesNegativeLocationTypeTest.java new file mode 100644 index 0000000000..8f87dc533e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesNegativeLocationTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.LocationTargetType; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetReadFromRowValuesNegativeLocationTypeTest extends BulkCampaignNegativeLocationTargetBidTest { + + @Parameter(value = 1) + public LocationTargetType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Postal Code", LocationTargetType.POSTAL_CODE}, + {"City", LocationTargetType.CITY}, + {"Metro Area", LocationTargetType.METRO_AREA}, + {"State", LocationTargetType.STATE}, + {"Country", LocationTargetType.COUNTRY} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Sub Type", this.datum, this.expectedResult, new Function() { + @Override + public LocationTargetType apply(BulkCampaignNegativeLocationTargetBid c) { + return c.getLocationType(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..08086a5e98 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/read/BulkCampaignNegativeLocationTargetReadFromRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetReadFromRowValuesStatusTest extends BulkCampaignNegativeLocationTargetBidTest { + + @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(BulkCampaignNegativeLocationTargetBid c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..53ba3f2ca6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignIdTest extends BulkCampaignNegativeLocationTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeLocationTargetBid c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..b1030bdada --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetWriteToRowValuesCampaignNameTest extends BulkCampaignNegativeLocationTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeLocationTargetBid c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..cbc0fdb51a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetWriteToRowValuesIdTest extends BulkCampaignNegativeLocationTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeLocationTargetBid c, Long v) { + c.setTargetId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesNegativeLocationTypeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesNegativeLocationTypeTest.java new file mode 100644 index 0000000000..bb42723f0d --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesNegativeLocationTypeTest.java @@ -0,0 +1,41 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.LocationTargetType; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetWriteToRowValuesNegativeLocationTypeTest extends BulkCampaignNegativeLocationTargetBidTest { + + @Parameter(value = 1) + public LocationTargetType expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Postal Code", LocationTargetType.POSTAL_CODE}, + {"City", LocationTargetType.CITY}, + {"Metro Area", LocationTargetType.METRO_AREA}, + {"State", LocationTargetType.STATE}, + {"Country", LocationTargetType.COUNTRY} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Sub Type", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeLocationTargetBid c, LocationTargetType v) { + c.setLocationType(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..c9653823a3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/negativelocation/write/BulkCampaignNegativeLocationTargetWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.negativelocation.BulkCampaignNegativeLocationTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignNegativeLocationTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignNegativeLocationTargetWriteToRowValuesStatusTest extends BulkCampaignNegativeLocationTargetBidTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignNegativeLocationTargetBid c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/BulkCampaignRadiusTargetBidTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/BulkCampaignRadiusTargetBidTest.java new file mode 100644 index 0000000000..be55855a13 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/BulkCampaignRadiusTargetBidTest.java @@ -0,0 +1,53 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.RadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; + +import java.util.Map; + +public abstract class BulkCampaignRadiusTargetBidTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(BulkCampaignRadiusTargetBid entity) { + RadiusTargetBid bid = new RadiusTargetBid(); + + entity.setRadiusTargetBid(bid); + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public BulkCampaignRadiusTargetBid get() { + return new BulkCampaignRadiusTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignRadiusTargetBid get() { + return new BulkCampaignRadiusTargetBid(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public BulkCampaignRadiusTargetBid get() { + return new BulkCampaignRadiusTargetBid(); + } + }); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..c2bd4d214b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesBidAdjustmentTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Bid Adjustment", this.datum, this.expectedResult, new Function() { + @Override + public Integer apply(BulkCampaignRadiusTargetBid c) { + return c.getRadiusTargetBid().getBidAdjustment(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..e34021af79 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesCampaignIdTest extends BulkCampaignRadiusTargetBidTest { + + @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("Parent Id", this.datum, this.expectedResult, new Function() { + @Override + public Long apply(BulkCampaignRadiusTargetBid c) { + return c.getCampaignId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..78c22101c1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesCampaignNameTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Campaign", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignRadiusTargetBid c) { + return c.getCampaignName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesIdTest.java new file mode 100644 index 0000000000..01a61be74b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesIdTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesIdTest extends BulkCampaignRadiusTargetBidTest { + + @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(BulkCampaignRadiusTargetBid c) { + return c.getTargetId(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLatitudeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLatitudeTest.java new file mode 100644 index 0000000000..b0a3048b02 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLatitudeTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesLatitudeTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"12.34", 12.34}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Latitude", this.datum, this.expectedResult, new Function() { + @Override + public Double apply(BulkCampaignRadiusTargetBid c) { + return c.getRadiusTargetBid().getLatitudeDegrees(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLongitureTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLongitureTest.java new file mode 100644 index 0000000000..4b20d92e37 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesLongitureTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesLongitureTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"12.34", 12.34}, + }); + } + + @Test + public void testRead() { + this.testReadProperty("Longitude", this.datum, this.expectedResult, new Function() { + @Override + public Double apply(BulkCampaignRadiusTargetBid c) { + return c.getRadiusTargetBid().getLongitudeDegrees(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesNameTest.java new file mode 100644 index 0000000000..048fabf054 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesNameTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Name", this.datum, this.expectedResult, new Function() { + @Override + public String apply(BulkCampaignRadiusTargetBid c) { + return c.getRadiusTargetBid().getName(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesPhysicalIntentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesPhysicalIntentTest.java new file mode 100644 index 0000000000..4fbfc00c11 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesPhysicalIntentTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.IntentOption; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesPhysicalIntentTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public IntentOption expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"PeopleIn", IntentOption.PEOPLE_IN}, + {"PeopleInOrSearchingForOrViewingPages", IntentOption.PEOPLE_IN_OR_SEARCHING_FOR_OR_VIEWING_PAGES}, + {"PeopleSearchingForOrViewingPages", IntentOption.PEOPLE_SEARCHING_FOR_OR_VIEWING_PAGES} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Physical Intent", this.datum, this.expectedResult, new Function() { + @Override + public IntentOption apply(BulkCampaignRadiusTargetBid c) { + return c.getIntentOption(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesStatusTest.java new file mode 100644 index 0000000000..3a8c7980b7 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesStatusTest.java @@ -0,0 +1,40 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesStatusTest extends BulkCampaignRadiusTargetBidTest { + + @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(BulkCampaignRadiusTargetBid c) { + return c.getStatus(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesUnitTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesUnitTest.java new file mode 100644 index 0000000000..791a402ec1 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/read/BulkCampaignRadiusTargetReadFromRowValuesUnitTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.read; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.DistanceUnit; +import com.microsoft.bingads.internal.functionalinterfaces.Function; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetReadFromRowValuesUnitTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public DistanceUnit expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Kilometers", DistanceUnit.KILOMETERS}, + {"Miles", DistanceUnit.MILES} + }); + } + + @Test + public void testRead() { + this.testReadProperty("Unit", this.datum, this.expectedResult, new Function() { + @Override + public DistanceUnit apply(BulkCampaignRadiusTargetBid c) { + return c.getRadiusTargetBid().getRadiusUnit(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesBidAdjustmentTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesBidAdjustmentTest.java new file mode 100644 index 0000000000..e42f31f609 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesBidAdjustmentTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesBidAdjustmentTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public int expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Bid Adjustment", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, Integer value) { + c.getRadiusTargetBid().setBidAdjustment(value); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignIdTest.java new file mode 100644 index 0000000000..5251b66866 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesCampaignIdTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"123", 123L}, + {"9223372036854775807", 9223372036854775807L}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Parent Id", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, Long v) { + c.setCampaignId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignNameTest.java new file mode 100644 index 0000000000..59ee4253fb --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesCampaignNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesCampaignNameTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Campaign", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, String v) { + c.setCampaignName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesIdTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesIdTest.java new file mode 100644 index 0000000000..26b050856b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesIdTest.java @@ -0,0 +1,38 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesIdTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public Long expectedResult; + + @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.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, Long v) { + c.setTargetId(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLatitudeTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLatitudeTest.java new file mode 100644 index 0000000000..833eca32a5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLatitudeTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesLatitudeTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"12.34", 12.34}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Latitude", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, Double v) { + c.getRadiusTargetBid().setLatitudeDegrees(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLongitureTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLongitureTest.java new file mode 100644 index 0000000000..bf08e66d09 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesLongitureTest.java @@ -0,0 +1,36 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesLongitureTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public Double expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"12.34", 12.34}, + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Longitude", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, Double v) { + c.getRadiusTargetBid().setLongitudeDegrees(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesNameTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesNameTest.java new file mode 100644 index 0000000000..d47781b2e6 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesNameTest.java @@ -0,0 +1,48 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesNameTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public String expectedResult; + + /* + * Test data generator. + * This method is called the the JUnit parameterized test runner and + * returns a Collection of Arrays. For each Array in the Collection, + * each array element corresponds to a parameter in the constructor. + */ + @Parameters + public static Collection data() { + // In this example, the parameter generator returns a List of + // arrays. Each array has two elements: { datum, expected }. + // These data are hard-coded into the class, but they could be + // generated or loaded in any way you like. + return Arrays.asList(new Object[][]{ + {"Test Campaign 1", "Test Campaign 1"}, + {"", ""}, + {null, null} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Name", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, String v) { + c.getRadiusTargetBid().setName(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesStatusTest.java new file mode 100644 index 0000000000..297d128041 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesStatusTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.v10.bulk.entities.Status; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesStatusTest extends BulkCampaignRadiusTargetBidTest { + + @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 testWrite() { + this.testWriteProperty("Status", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, Status v) { + c.setStatus(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesUnitTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesUnitTest.java new file mode 100644 index 0000000000..21538f9141 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/targets/campaign/bids/radius/write/BulkCampaignRadiusTargetWriteToRowValuesUnitTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.write; + +import com.microsoft.bingads.v10.api.test.entities.targets.campaign.bids.radius.BulkCampaignRadiusTargetBidTest; +import com.microsoft.bingads.v10.bulk.entities.BulkCampaignRadiusTargetBid; +import com.microsoft.bingads.v10.campaignmanagement.DistanceUnit; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; + +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; + +@RunWith(Parameterized.class) +public class BulkCampaignRadiusTargetWriteToRowValuesUnitTest extends BulkCampaignRadiusTargetBidTest { + + @Parameter(value = 1) + public DistanceUnit expectedResult; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"Kilometers", DistanceUnit.KILOMETERS}, + {"Miles", DistanceUnit.MILES} + }); + } + + @Test + public void testWrite() { + this.testWriteProperty("Unit", this.datum, this.expectedResult, new BiConsumer() { + @Override + public void accept(BulkCampaignRadiusTargetBid c, DistanceUnit v) { + c.getRadiusTargetBid().setRadiusUnit(v); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTest.java new file mode 100644 index 0000000000..621380a005 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTest.java @@ -0,0 +1,47 @@ +package com.microsoft.bingads.v10.api.test.entities.unknown; + +import com.microsoft.bingads.v10.api.test.entities.BulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.UnknownBulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Map; + +public abstract class UnknownBulkEntityTest extends BulkEntityTest { + + @Override + protected void onEntityCreation(UnknownBulkEntity entity) { + } + + @Override + protected void testWriteProperty(String header, + String expectedRowValue, TProperty propertyValue, + BiConsumer setFunc) { + this.testWriteProperty(header, expectedRowValue, propertyValue, setFunc, new Supplier() { + @Override + public UnknownBulkEntity get() { + return new UnknownBulkEntity(); + } + }); + } + + @Override + protected void testReadProperty(String header, String input, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(header, input, expectedResult, actualValueFunc, new Supplier() { + @Override + public UnknownBulkEntity get() { + return new UnknownBulkEntity(); + } + }); + } + + @Override + protected void testReadProperty(Map rowValues, TProperty expectedResult, Function actualValueFunc) { + this.testReadProperty(rowValues, expectedResult, actualValueFunc, new Supplier() { + @Override + public UnknownBulkEntity get() { + return new UnknownBulkEntity(); + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTests.java new file mode 100644 index 0000000000..efd9b30292 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/UnknownBulkEntityTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.api.test.entities.unknown; + +import com.microsoft.bingads.v10.api.test.entities.unknown.read.UnknownBulkEntityReadFromRowValuesTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({UnknownBulkEntityReadFromRowValuesTest.class}) +public class UnknownBulkEntityTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/read/UnknownBulkEntityReadFromRowValuesTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/read/UnknownBulkEntityReadFromRowValuesTest.java new file mode 100644 index 0000000000..32f3071942 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/entities/unknown/read/UnknownBulkEntityReadFromRowValuesTest.java @@ -0,0 +1,59 @@ +package com.microsoft.bingads.v10.api.test.entities.unknown.read; + +import com.microsoft.bingads.v10.api.test.entities.unknown.UnknownBulkEntityTest; +import com.microsoft.bingads.v10.bulk.entities.UnknownBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.StringExtensions; +import com.microsoft.bingads.internal.functionalinterfaces.Function; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +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; + +@RunWith(Parameterized.class) +public class UnknownBulkEntityReadFromRowValuesTest extends UnknownBulkEntityTest { + + @Parameter(value = 1) + public Map expectedResult; + + @Parameters + public static Collection data() { + Map idMap = new HashMap(); + idMap.put("Id", "123"); + return Arrays.asList(new Object[][]{ + {"123", idMap}, + {"", new HashMap()}, + {null, new HashMap()} + }); + } + + @Test + public void testRead() { + this.>testReadProperty("Id", this.datum, this.expectedResult, new Function>() { + @Override + public Map apply(UnknownBulkEntity c) { + Map values = c.getValues(); + + List toRemove = new ArrayList(); + + for (Map.Entry entry : values.entrySet()) { + if (StringExtensions.isNullOrEmpty(entry.getValue())) { + toRemove.add(entry.getKey()); + } + } + + for (String removeKey : toRemove) { + values.remove(removeKey); + } + + return values; + } + }); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/ApiServiceTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/ApiServiceTest.java new file mode 100644 index 0000000000..ed0cbf95ba --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/ApiServiceTest.java @@ -0,0 +1,124 @@ +package com.microsoft.bingads.v10.api.test.operations; + +import com.microsoft.bingads.ApiEnvironment; +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.OAuthDesktopMobileAuthCodeGrant; +import com.microsoft.bingads.OAuthDesktopMobileImplicitGrant; +import com.microsoft.bingads.OAuthWebAuthCodeGrant; +import com.microsoft.bingads.PasswordAuthentication; +import com.microsoft.bingads.ServiceClient; +import com.microsoft.bingads.internal.ServiceFactory; +import com.microsoft.bingads.internal.ServiceFactoryFactory; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.net.URL; +import java.util.concurrent.Future; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.BindingProvider; +import javax.xml.ws.Service; +import static org.easymock.EasyMock.expect; +import static org.easymock.EasyMock.replay; +import org.easymock.EasyMockSupport; +import org.junit.Test; + +public class ApiServiceTest extends EasyMockSupport { + + public class TestRequestWithAccountId { + + public long accountId; + + public String customerAccountId; + public String customerId; + public String developerToken; + } + + public class TestRequestWithoutAccountId { + + public String customerAccountId; + public String customerId; + public String developerToken; + } + + public interface ITestService extends BindingProvider { + + Future testMethodWithAccountId(TestRequestWithAccountId request, AsyncHandler callback); + + Future testMethodWithoutAccountId(TestRequestWithoutAccountId request, AsyncHandler callback); + } + + @Test(expected = IllegalStateException.class) + public void GetService_UserDataAuthenticationIsNull_ThrowsException() throws Exception { + ServiceClient apiService = createApiService(new AuthorizationData()); + + TestRequestWithAccountId request = new TestRequestWithAccountId(); + + apiService.getService(); + } + + @Test(expected = IllegalStateException.class) + public void GetService_OAuthDesktopMobileAuthCodeGrantDoesntHaveAccessTokens_ThrowsException() throws Exception { + AuthorizationData authorizationData = new AuthorizationData(); + authorizationData.setAuthentication(new OAuthDesktopMobileAuthCodeGrant("client123")); + ServiceClient apiService = createApiService(authorizationData); + + TestRequestWithAccountId request = new TestRequestWithAccountId(); + + apiService.getService(); + } + + @Test(expected = IllegalStateException.class) + public void GetService_OAuthWebAuthCodeGrantDoesntHaveAccessTokens_ThrowsException() throws Exception { + AuthorizationData authorizationData = new AuthorizationData(); + authorizationData.setAuthentication(new OAuthWebAuthCodeGrant("client123", "secret", new URL("http://myuri.com"))); + ServiceClient apiService = createApiService(authorizationData); + + TestRequestWithAccountId request = new TestRequestWithAccountId(); + + apiService.getService(); + } + + @Test(expected = IllegalStateException.class) + public void GetService_OAuthDesktopMobileImplicitGrantDoesntHaveAccessTokens_ThrowsException() throws Exception { + AuthorizationData authorizationData = new AuthorizationData(); + authorizationData.setAuthentication(new OAuthDesktopMobileImplicitGrant("client123")); + ServiceClient apiService = createApiService(authorizationData); + + TestRequestWithAccountId request = new TestRequestWithAccountId(); + + apiService.getService(); + } + + private ServiceClient createApiService(AuthorizationData authorizationData) { + ITestService proxy = createMock(ITestService.class); + + Service service = createMock(Service.class); + + final ServiceFactory serviceFactory = createMock(ServiceFactory.class); + + expect(serviceFactory.createService(ITestService.class)).andReturn(service); + + expect(serviceFactory.createProxyFromService(service, ApiEnvironment.PRODUCTION, ITestService.class)).andReturn(proxy); + + ServiceFactoryFactory.setCustomServiceFactorySupplier(new Supplier() { + @Override + public ServiceFactory get() { + return serviceFactory; + } + }); + + replay(proxy, service, serviceFactory); + + ServiceClient serviceClient = new ServiceClient(authorizationData, ITestService.class); + + return serviceClient; + } + + private static AuthorizationData createUserData() { + AuthorizationData authorizationData = new AuthorizationData(); + authorizationData.setAuthentication(new PasswordAuthentication("user", "pass")); + authorizationData.setAccountId(123L); + authorizationData.setCustomerId(456L); + authorizationData.setDeveloperToken("dev"); + + return authorizationData; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/BulkServiceTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/BulkServiceTest.java new file mode 100644 index 0000000000..50096f6748 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/BulkServiceTest.java @@ -0,0 +1,377 @@ +package com.microsoft.bingads.v10.api.test.operations; + +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.PasswordAuthentication; +import com.microsoft.bingads.v10.bulk.ArrayOfKeyValuePairOfstringstring; +import com.microsoft.bingads.v10.bulk.BulkDownloadEntity; +import com.microsoft.bingads.v10.bulk.BulkDownloadOperation; +import com.microsoft.bingads.v10.bulk.BulkEntityIterable; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkServiceManager; +import com.microsoft.bingads.v10.bulk.CampaignScope; +import com.microsoft.bingads.v10.bulk.DataScope; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsRequest; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsResponse; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsRequest; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsResponse; +import com.microsoft.bingads.v10.bulk.DownloadFileType; +import com.microsoft.bingads.v10.bulk.DownloadParameters; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse; +//import com.microsoft.bingads.v10.bulk.GetDetailedBulkDownloadStatusRequest; +//import com.microsoft.bingads.v10.bulk.GetDetailedBulkDownloadStatusResponse; +import com.microsoft.bingads.v10.bulk.PerformanceStatsDateRange; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import com.microsoft.bingads.v10.bulk.SubmitDownloadParameters; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import com.microsoft.bingads.v10.internal.bulk.BulkFileReaderFactory; +import com.microsoft.bingads.internal.utilities.ZipExtractor; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URISyntaxException; +import java.util.ArrayList; +import java.util.Collection; +import java.util.GregorianCalendar; +import java.util.List; +import java.util.concurrent.ExecutionException; +import static org.easymock.EasyMock.createMock; +import static org.easymock.EasyMock.expect; +import static org.easymock.EasyMock.replay; +import static org.easymock.EasyMock.verify; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; +import org.junit.Test; + +public class BulkServiceTest extends FakeApiTest { + + @Test + public void BulkService_SubmitDownload_AccountLevel_CallsApiAndReturnsCorrectOperation() throws InterruptedException, ExecutionException { + final DownloadCampaignsByAccountIdsResponse apiResponse = new DownloadCampaignsByAccountIdsResponse(); + apiResponse.setDownloadRequestId("req456"); + + FakeBulkService.setGetDownloadCampaignsByAccountIdsResponse(new Supplier() { + @Override + public DownloadCampaignsByAccountIdsResponse get() { + return apiResponse; + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + final AuthorizationData authorizationData = createUserData(); + + final SubmitDownloadParameters parameters = new SubmitDownloadParameters(); + + parameters.setDataScope(new ArrayList()); + parameters.getDataScope().add(DataScope.ENTITY_DATA); + parameters.getDataScope().add(DataScope.ENTITY_PERFORMANCE_DATA); + + parameters.setEntities(new ArrayList()); + Collection entities = parameters.getEntities(); + entities.add(BulkDownloadEntity.CAMPAIGNS); + entities.add(BulkDownloadEntity.KEYWORDS); + + parameters.setPerformanceStatsDateRange(new PerformanceStatsDateRange()); + parameters.setLastSyncTimeInUTC(new GregorianCalendar(2014, 1, 2)); + + FakeBulkService.setOnDownloadCampaignsByAccountIdsRequest(new Consumer() { + + @Override + public void accept(DownloadCampaignsByAccountIdsRequest request) { + assertEquals((Long)authorizationData.getAccountId(), request.getAccountIds().getLongs().get(0)); + assertEquals(parameters.getDataScope(), request.getDataScope()); + assertEquals(parameters.getEntities(), request.getEntities()); + assertEquals(parameters.getPerformanceStatsDateRange(), request.getPerformanceStatsDateRange()); + assertEquals(parameters.getLastSyncTimeInUTC(), request.getLastSyncTimeInUTC()); + } + }); + + BulkServiceManager bulkServiceManager = new BulkServiceManager(authorizationData); + + + BulkDownloadOperation operation = bulkServiceManager.submitDownloadAsync(parameters, null).get(); + + assertEquals("track123", operation.getTrackingId()); + assertEquals("req456", operation.getRequestId()); + } + + @Test + public void BulkService_SubmitDownload_CampaignLevel_CallsApiAndReturnsCorrectOperation() throws InterruptedException, ExecutionException { + final DownloadCampaignsByCampaignIdsResponse apiResponse = new DownloadCampaignsByCampaignIdsResponse(); + apiResponse.setDownloadRequestId("req456"); + + FakeBulkService.setGetDownloadCampaignsByCampaignIdsResponse(new Supplier() { + @Override + public DownloadCampaignsByCampaignIdsResponse get() { + return apiResponse; + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + final AuthorizationData authorizationData = createUserData(); + + final SubmitDownloadParameters parameters = new SubmitDownloadParameters(); + + List campaignIds = new ArrayList(); + campaignIds.add(1L); + campaignIds.add(10L); + campaignIds.add(20L); + parameters.setCampaignIds(campaignIds); + + parameters.setDataScope(new ArrayList()); + parameters.getDataScope().add(DataScope.ENTITY_DATA); + parameters.getDataScope().add(DataScope.ENTITY_PERFORMANCE_DATA); + + parameters.setEntities(new ArrayList()); + Collection entities = parameters.getEntities(); + entities.add(BulkDownloadEntity.CAMPAIGNS); + entities.add(BulkDownloadEntity.KEYWORDS); + + GregorianCalendar calendar = new GregorianCalendar(2014, 1, 2); + + parameters.setPerformanceStatsDateRange(new PerformanceStatsDateRange()); + parameters.setLastSyncTimeInUTC(calendar); + + FakeBulkService.setOnDownloadCampaignsByCampaignIdsRequest(new Consumer() { + + @Override + public void accept(DownloadCampaignsByCampaignIdsRequest request) { + for (Integer i = 0; i < request.getCampaigns().getCampaignScopes().size(); i++) { + Long expectedId = parameters.getCampaignIds().get(i); + + CampaignScope campaignScope = request.getCampaigns().getCampaignScopes().get(i); + + assertEquals((Long)123L, campaignScope.getParentAccountId()); + assertEquals(expectedId, campaignScope.getCampaignId()); + } + + assertEquals(parameters.getDataScope(), request.getDataScope()); + assertEquals(parameters.getEntities(), request.getEntities()); + assertEquals(parameters.getPerformanceStatsDateRange(), request.getPerformanceStatsDateRange()); + assertEquals(parameters.getLastSyncTimeInUTC(), request.getLastSyncTimeInUTC()); + } + }); + + BulkServiceManager bulkServiceManager = new BulkServiceManager(authorizationData); + + BulkDownloadOperation operation = bulkServiceManager.submitDownloadAsync(parameters, null).get(); + + assertEquals("track123", operation.getTrackingId()); + assertEquals("req456", operation.getRequestId()); + } + + @Test + public void BulkService_DownloadFile_CallsApiDownloadsAndExtractsFile() throws FileNotFoundException, UnsupportedEncodingException, IOException, URISyntaxException, InterruptedException, ExecutionException { + final DownloadCampaignsByAccountIdsResponse apiResponse = new DownloadCampaignsByAccountIdsResponse(); + apiResponse.setDownloadRequestId("req456"); + + FakeBulkService.setGetDownloadCampaignsByAccountIdsResponse(new Supplier() { + @Override + public DownloadCampaignsByAccountIdsResponse get() { + return apiResponse; + } + }); + + FakeBulkService.setOnGetBulkDownloadStatus(new Consumer() { + @Override + public void accept(GetBulkDownloadStatusRequest t) { + assertEquals("req456", t.getRequestId()); + } + }); + + FakeBulkService.setGetBulkDownloadStatusResponse(new Supplier() { + @Override + public GetBulkDownloadStatusResponse get() { + GetBulkDownloadStatusResponse statusResponse = new GetBulkDownloadStatusResponse(); + statusResponse.setPercentComplete(100); + statusResponse.setRequestStatus("Completed"); + statusResponse.setResultFileUrl("http://download.com/123"); + statusResponse.setForwardCompatibilityMap(new ArrayOfKeyValuePairOfstringstring()); + + return statusResponse; + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + final AuthorizationData authorizationData = createUserData(); + + final DownloadParameters parameters = new DownloadParameters(); + + parameters.setDataScope(new ArrayList()); + parameters.getDataScope().add(DataScope.ENTITY_DATA); + parameters.getDataScope().add(DataScope.ENTITY_PERFORMANCE_DATA); + + parameters.setEntities(new ArrayList()); + Collection entities = parameters.getEntities(); + entities.add(BulkDownloadEntity.CAMPAIGNS); + entities.add(BulkDownloadEntity.KEYWORDS); + + parameters.setPerformanceStatsDateRange(new PerformanceStatsDateRange()); + parameters.setLastSyncTimeInUTC(new GregorianCalendar(2014, 1, 2)); + + FakeBulkService.setOnDownloadCampaignsByAccountIdsRequest(new Consumer() { + @Override + public void accept(DownloadCampaignsByAccountIdsRequest request) { + assertEquals((Long)authorizationData.getAccountId(), request.getAccountIds().getLongs().get(0)); + assertEquals(parameters.getDataScope(), request.getDataScope()); + assertEquals(parameters.getEntities(), request.getEntities()); + assertEquals(parameters.getPerformanceStatsDateRange(), request.getPerformanceStatsDateRange()); + assertEquals(parameters.getLastSyncTimeInUTC(), request.getLastSyncTimeInUTC()); + } + }); + + FakeHttpFileService httpFileService = new FakeHttpFileService(); + + httpFileService.setOnDownloadFile(new BiConsumer() { + @Override + public void accept(String url, File file) { + assertEquals("http://download.com/123", url); + } + }); + + ZipExtractor zipExtractor = createMock(ZipExtractor.class); + + File expectedZipFile = new File(System.getProperty("java.io.tmpdir"), "BingAdsSDK\\req456.zip"); + + File expectedResultFile = new File(System.getProperty("java.io.tmpdir"), "BingAdsSDK\\req456"); + + expect(zipExtractor.extractFirstEntryToFile(expectedZipFile, expectedResultFile, true, false)).andReturn(new File("file path")); + + replay(zipExtractor); + + BulkServiceManager bulkServiceManager = new BulkServiceManager(authorizationData); + + bulkServiceManager.setHttpFileService(httpFileService); + bulkServiceManager.setZipExtractor(zipExtractor); + + File file = bulkServiceManager.downloadFileAsync(parameters, null).get(); + + verify(zipExtractor); + + assertEquals(new File("file path"), file); + assertTrue(httpFileService.getDownloadWasCalled()); + } + + @Test + public void BulkService_DownloadEntities_CallsApiDownloadsAndExtractsFile_Async() throws IOException, InterruptedException, ExecutionException { + final DownloadCampaignsByAccountIdsResponse apiResponse = new DownloadCampaignsByAccountIdsResponse(); + apiResponse.setDownloadRequestId("req456"); + + FakeBulkService.setGetDownloadCampaignsByAccountIdsResponse(new Supplier() { + @Override + public DownloadCampaignsByAccountIdsResponse get() { + return apiResponse; + } + }); + + FakeBulkService.setOnGetBulkDownloadStatus(new Consumer() { + @Override + public void accept(GetBulkDownloadStatusRequest t) { + assertEquals("req456", t.getRequestId()); + } + }); + + FakeBulkService.setGetBulkDownloadStatusResponse(new Supplier() { + @Override + public GetBulkDownloadStatusResponse get() { + GetBulkDownloadStatusResponse statusResponse = new GetBulkDownloadStatusResponse(); + statusResponse.setPercentComplete(100); + statusResponse.setRequestStatus("Completed"); + statusResponse.setResultFileUrl("http://download.com/123"); + statusResponse.setForwardCompatibilityMap(new ArrayOfKeyValuePairOfstringstring()); + + return statusResponse; + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + final AuthorizationData authorizationData = createUserData(); + + final DownloadParameters parameters = new DownloadParameters(); + + parameters.setDataScope(new ArrayList()); + parameters.getDataScope().add(DataScope.ENTITY_DATA); + parameters.getDataScope().add(DataScope.ENTITY_PERFORMANCE_DATA); + + parameters.setEntities(new ArrayList()); + Collection entities = parameters.getEntities(); + entities.add(BulkDownloadEntity.CAMPAIGNS); + entities.add(BulkDownloadEntity.KEYWORDS); + + parameters.setPerformanceStatsDateRange(new PerformanceStatsDateRange()); + parameters.setLastSyncTimeInUTC(new GregorianCalendar(2014, 1, 2)); + + parameters.setFileType(DownloadFileType.TSV); + + FakeBulkService.setOnDownloadCampaignsByAccountIdsRequest(new Consumer() { + @Override + public void accept(DownloadCampaignsByAccountIdsRequest request) { + assertEquals((Long)authorizationData.getAccountId(), request.getAccountIds().getLongs().get(0)); + assertEquals(parameters.getDataScope(), request.getDataScope()); + assertEquals(parameters.getEntities(), request.getEntities()); + assertEquals(parameters.getPerformanceStatsDateRange(), request.getPerformanceStatsDateRange()); + assertEquals(parameters.getLastSyncTimeInUTC(), request.getLastSyncTimeInUTC()); + } + }); + + FakeHttpFileService httpFileService = new FakeHttpFileService(); + + httpFileService.setOnDownloadFile(new BiConsumer() { + @Override + public void accept(String url, File file) { + assertEquals("http://download.com/123", url); + } + }); + + ZipExtractor zipExtractor = createMock(ZipExtractor.class); + + File expectedZipFile = new File(System.getProperty("java.io.tmpdir"), "BingAdsSDK\\req456.zip"); + + File expectedResultFile = new File(System.getProperty("java.io.tmpdir"), "BingAdsSDK\\req456"); + + expect(zipExtractor.extractFirstEntryToFile(expectedZipFile, expectedResultFile, true, false)).andReturn(new File("file path")); + + BulkFileReaderFactory factory = createMock(BulkFileReaderFactory.class); + + BulkFileReader expectedReader = createMock(BulkFileReader.class); + + BulkEntityIterable bulkEntities = createMock(BulkEntityIterable.class); + + expect(expectedReader.getEntities()).andReturn(bulkEntities); + + expect(factory.createBulkFileReader(new File("file path"), ResultFileType.PARTIAL_DOWNLOAD, DownloadFileType.TSV)).andReturn(expectedReader); + + replay(zipExtractor, expectedReader, factory); + + BulkServiceManager bulkServiceManager = new BulkServiceManager(authorizationData); + + bulkServiceManager.setHttpFileService(httpFileService); + bulkServiceManager.setZipExtractor(zipExtractor); + bulkServiceManager.setBulkFileReaderFactory(factory); + + Iterable resultEntities = bulkServiceManager.downloadEntitiesAsync(parameters, null).get(); + + verify(zipExtractor); + + assertEquals(bulkEntities, resultEntities); + assertTrue(httpFileService.getDownloadWasCalled()); + } + + private static AuthorizationData createUserData() { + AuthorizationData authorizationData = new AuthorizationData(); + authorizationData.setAuthentication(new PasswordAuthentication("user", "pass")); + authorizationData.setAccountId(123L); + authorizationData.setCustomerId(456L); + authorizationData.setDeveloperToken("dev"); + + return authorizationData; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/CompleteResponse.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/CompleteResponse.java new file mode 100644 index 0000000000..7945fc927e --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/CompleteResponse.java @@ -0,0 +1,56 @@ +package com.microsoft.bingads.v10.api.test.operations; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import javax.xml.ws.Response; +import org.apache.cxf.headers.Header; + +public class CompleteResponse implements Response { + + T result; + List
headers; + + public CompleteResponse(T result, List
headers) { + this.result = result; + this.headers = headers; + } + + @Override + public Map getContext() { + Map map = new HashMap() {{ + put(Header.HEADER_LIST, headers); + }}; + + return map; + } + + @Override + public boolean cancel(boolean mayInterruptIfRunning) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public boolean isCancelled() { + return false; + } + + @Override + public boolean isDone() { + return true; + } + + @Override + public T get() throws InterruptedException, ExecutionException { + return result; + } + + @Override + public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { + return result; + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeApiTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeApiTest.java new file mode 100644 index 0000000000..3295323b75 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeApiTest.java @@ -0,0 +1,67 @@ + +package com.microsoft.bingads.v10.api.test.operations; + +import com.microsoft.bingads.internal.ServiceFactory; +import com.microsoft.bingads.internal.ServiceFactoryFactory; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.ArrayList; +import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.xml.namespace.QName; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import org.apache.cxf.headers.Header; +import org.junit.Before; +import org.w3c.dom.DOMException; +import org.w3c.dom.Document; +import org.w3c.dom.Element; + +public class FakeApiTest { + @Before + public void setUp() { + ServiceFactoryFactory.setCustomServiceFactorySupplier(new Supplier() { + @Override + public ServiceFactory get() { + return new FakeServiceFactory(); + } + }); + + FakeBulkService.reset(); + } + + protected Supplier> createTrackingIdHeaderSupplier() { + return new Supplier>() { + @Override + public List
get() { + String ns = "https://bingads.microsoft.com/CampaignManagement/v9"; + + Header trackingIdHeader; + try { + DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); + DocumentBuilder builder = dbf.newDocumentBuilder(); + + Document doc = builder.newDocument(); + + Element customElement = doc.createElement("TrackingId"); + customElement.appendChild(doc.createTextNode("track123")); + + trackingIdHeader = new Header(new QName(ns, "TrackingId"), customElement); + } catch (ParserConfigurationException ex) { + Logger.getLogger(BulkServiceTest.class.getName()).log(Level.SEVERE, null, ex); + return null; + } catch (DOMException ex) { + Logger.getLogger(BulkServiceTest.class.getName()).log(Level.SEVERE, null, ex); + return null; + } + + List
headers = new ArrayList
(); + + headers.add(trackingIdHeader); + + return headers; + } + }; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeBulkService.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeBulkService.java new file mode 100644 index 0000000000..125a146878 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeBulkService.java @@ -0,0 +1,303 @@ +package com.microsoft.bingads.v10.api.test.operations; + + +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsRequest; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsResponse; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsRequest; +import com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsResponse; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse; +import com.microsoft.bingads.v10.bulk.GetBulkUploadUrlRequest; +import com.microsoft.bingads.v10.bulk.GetBulkUploadUrlResponse; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse; +import com.microsoft.bingads.v10.bulk.IBulkService; +import com.microsoft.bingads.api.test.operations.CompleteResponse; +import com.microsoft.bingads.bulk.GetDetailedBulkUploadStatusRequest; +import com.microsoft.bingads.bulk.GetDetailedBulkUploadStatusResponse; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.Future; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Binding; +import javax.xml.ws.BindingProvider; +import javax.xml.ws.EndpointReference; +import javax.xml.ws.Response; +import org.apache.cxf.headers.Header; + +public class FakeBulkService implements IBulkService, BindingProvider { + + private static Consumer onGetBulkDownloadStatus; + private static Supplier getBulkDownloadStatusResponse; + + private static Supplier getBulkUploadStatusResponse; + + private static Consumer onDownloadCampaignsByAccountIds; + private static Supplier getDownloadCampaignsByAccountIdsResponse; + + private static Consumer onDownloadCampaignsByCampaignIds; + private static Supplier getDownloadCampaignsByCampaignIdsResponse; + + private static Supplier> inboundHeadersSupplier; + + public static void reset() { + onGetBulkDownloadStatus = new Consumer() { + @Override + public void accept(GetBulkDownloadStatusRequest t) { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + + getBulkDownloadStatusResponse = new Supplier() { + @Override + public GetBulkDownloadStatusResponse get() { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + + getBulkUploadStatusResponse = new Supplier() { + @Override + public GetBulkUploadStatusResponse get() { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + + onDownloadCampaignsByAccountIds = new Consumer() { + @Override + public void accept(DownloadCampaignsByAccountIdsRequest t) { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + + getDownloadCampaignsByAccountIdsResponse = new Supplier() { + @Override + public DownloadCampaignsByAccountIdsResponse get() { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + + onDownloadCampaignsByCampaignIds = new Consumer() { + @Override + public void accept(DownloadCampaignsByCampaignIdsRequest t) { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + + getDownloadCampaignsByCampaignIdsResponse = new Supplier() { + @Override + public DownloadCampaignsByCampaignIdsResponse get() { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + + inboundHeadersSupplier = new Supplier>() { + @Override + public List
get() { + throw new IllegalStateException("This operation hasn't been mocked. Please use corresponding setXXX method to set it up."); + } + }; + } + + public static Supplier getGetBulkDownloadStatusResponse() { + return getBulkDownloadStatusResponse; + } + + public static void setGetBulkDownloadStatusResponse(Supplier value) { + getBulkDownloadStatusResponse = value; + } + + public static Supplier getGetBulkUploadStatusResponse() { + return getBulkUploadStatusResponse; + } + + public static void setGetBulkUploadStatusResponse(Supplier value) { + getBulkUploadStatusResponse = value; + } + + public static Supplier getGetDownloadCampaignsByAccountIdsResponse() { + return getDownloadCampaignsByAccountIdsResponse; + } + + public static void setGetDownloadCampaignsByAccountIdsResponse(Supplier value) { + getDownloadCampaignsByAccountIdsResponse = value; + } + + public static Consumer getOnDownloadCampaignsByAccountIdsRequest() { + return onDownloadCampaignsByAccountIds; + } + + public static void setOnDownloadCampaignsByAccountIdsRequest(Consumer value) { + onDownloadCampaignsByAccountIds = value; + } + + public static Supplier> getInboundHeadersSupplier() { + return inboundHeadersSupplier; + } + + public static void setInboundHeadersSupplier(Supplier> aInboundHeadersSupplier) { + inboundHeadersSupplier = aInboundHeadersSupplier; + } + + public static Supplier getGetDownloadCampaignsByCampaignIdsResponse() { + return getDownloadCampaignsByCampaignIdsResponse; + } + + public static void setGetDownloadCampaignsByCampaignIdsResponse(Supplier value) { + getDownloadCampaignsByCampaignIdsResponse = value; + } + + public static Consumer getOnDownloadCampaignsByCampaignIdsRequest() { + return onDownloadCampaignsByCampaignIds; + } + + public static void setOnDownloadCampaignsByCampaignIdsRequest(Consumer value) { + onDownloadCampaignsByCampaignIds = value; + } + + public static Consumer getOnGetBulkDownloadStatus() { + return onGetBulkDownloadStatus; + } + + public static void setOnGetBulkDownloadStatus(Consumer aOnGetBulkDownloadStatus) { + onGetBulkDownloadStatus = aOnGetBulkDownloadStatus; + } + + @Override + public Response downloadCampaignsByAccountIdsAsync(DownloadCampaignsByAccountIdsRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Future downloadCampaignsByAccountIdsAsync(DownloadCampaignsByAccountIdsRequest parameters, AsyncHandler asyncHandler) { + onDownloadCampaignsByAccountIds.accept(parameters); + + Response response = new CompleteResponse(getDownloadCampaignsByAccountIdsResponse.get(), getInboundHeadersSupplier().get()); + + if (asyncHandler != null) { + asyncHandler.handleResponse(response); + } + + return response; + } + + @Override + public DownloadCampaignsByAccountIdsResponse downloadCampaignsByAccountIds(DownloadCampaignsByAccountIdsRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Response downloadCampaignsByCampaignIdsAsync(DownloadCampaignsByCampaignIdsRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Future downloadCampaignsByCampaignIdsAsync(DownloadCampaignsByCampaignIdsRequest parameters, AsyncHandler asyncHandler) { + onDownloadCampaignsByCampaignIds.accept(parameters); + + Response response = new CompleteResponse(getDownloadCampaignsByCampaignIdsResponse.get(), getInboundHeadersSupplier().get()); + + if (asyncHandler != null) { + asyncHandler.handleResponse(response); + } + + return response; + } + + @Override + public DownloadCampaignsByCampaignIdsResponse downloadCampaignsByCampaignIds(DownloadCampaignsByCampaignIdsRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Response getBulkDownloadStatusAsync(GetBulkDownloadStatusRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Future getBulkDownloadStatusAsync(GetBulkDownloadStatusRequest parameters, AsyncHandler asyncHandler) { + onGetBulkDownloadStatus.accept(parameters); + + Response response = new CompleteResponse(getBulkDownloadStatusResponse.get(), getInboundHeadersSupplier().get()); + + if (asyncHandler != null) { + asyncHandler.handleResponse(response); + } + + return response; + } + + @Override + public GetBulkDownloadStatusResponse getBulkDownloadStatus(GetBulkDownloadStatusRequest parameters){ + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Response getBulkUploadUrlAsync(GetBulkUploadUrlRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Future getBulkUploadUrlAsync(GetBulkUploadUrlRequest parameters, AsyncHandler asyncHandler) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public GetBulkUploadUrlResponse getBulkUploadUrl(GetBulkUploadUrlRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Response getBulkUploadStatusAsync(GetBulkUploadStatusRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + @Override + public Future getBulkUploadStatusAsync(GetBulkUploadStatusRequest parameters, AsyncHandler asyncHandler) { + Response response = new CompleteResponse(getBulkUploadStatusResponse.get(), getInboundHeadersSupplier().get()); + + if (asyncHandler != null) { + asyncHandler.handleResponse(response); + } + + return response; + } + + + @Override + public GetBulkUploadStatusResponse getBulkUploadStatus(GetBulkUploadStatusRequest parameters) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Map getRequestContext() { + Map map = new HashMap() {{ + put(Header.HEADER_LIST, getInboundHeadersSupplier().get()); + }}; + + return map; + } + + @Override + public Map getResponseContext() { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Binding getBinding() { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public EndpointReference getEndpointReference() { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public T getEndpointReference(Class clazz) { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeHttpFileService.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeHttpFileService.java new file mode 100644 index 0000000000..09e28a8bc5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeHttpFileService.java @@ -0,0 +1,58 @@ +package com.microsoft.bingads.v10.api.test.operations; + +import com.microsoft.bingads.AsyncCallback; +import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.utilities.HttpFileService; +import com.microsoft.bingads.internal.utilities.UnsuccessfulFileUpload; +import java.io.File; +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; +import java.util.ArrayList; +import java.util.concurrent.Future; +import org.apache.cxf.headers.Header; +import org.apache.http.HttpRequest; + +public class FakeHttpFileService implements HttpFileService { + private BiConsumer onDownloadFile; + + private Boolean downloadWasCalled; + + public BiConsumer getOnDownloadFile() { + return onDownloadFile; + } + + public void setOnDownloadFile(BiConsumer value) { + onDownloadFile = value; + } + + public Boolean getDownloadWasCalled() { + return downloadWasCalled; + } + + @Override + public void downloadFile(String url, File tempZipFile, boolean overwrite) throws IOException, URISyntaxException { + onDownloadFile.accept(url, tempZipFile); + + downloadWasCalled = true; + } + + @Override + public void uploadFile(URI uri, File uploadFilePath, Consumer addHeaders) throws UnsuccessfulFileUpload { + throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. + } + + @Override + public Future downloadFileAsync(String url, File tempZipFile, AsyncCallback callback) { + onDownloadFile.accept(url, tempZipFile); + + Future result = new CompleteResponse(tempZipFile, new ArrayList
()); + + callback.onCompleted(result); + + downloadWasCalled = true; + + return result; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeServiceFactory.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeServiceFactory.java new file mode 100644 index 0000000000..44ce36618c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/FakeServiceFactory.java @@ -0,0 +1,24 @@ +package com.microsoft.bingads.v10.api.test.operations; + +import com.microsoft.bingads.ApiEnvironment; +import com.microsoft.bingads.v10.bulk.IBulkService; +import com.microsoft.bingads.internal.ServiceFactory; +import javax.xml.ws.Service; +import static org.easymock.EasyMock.createMock; + +public class FakeServiceFactory implements ServiceFactory { + + @Override + public Service createService(Class serviceInterface) { + return createMock(Service.class); + } + + @Override + public T createProxyFromService(Service service, ApiEnvironment env, Class serviceInterface) { + if (serviceInterface == IBulkService.class) { + return (T) new FakeBulkService(); + } + + throw new UnsupportedOperationException("Fake service wasn't implemented for " + serviceInterface.getName()); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/OperationsTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/OperationsTests.java new file mode 100644 index 0000000000..1d300592b5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/OperationsTests.java @@ -0,0 +1,13 @@ +package com.microsoft.bingads.v10.api.test.operations; + +import com.microsoft.bingads.v10.api.test.operations.bulk_download_operation.BulkDownloadOperationsTests; +import com.microsoft.bingads.v10.api.test.operations.bulk_upload_operation.BulkUploadOperationsTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkServiceTest.class, BulkDownloadOperationsTests.class, BulkUploadOperationsTests.class}) +public class OperationsTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/TestProgress.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/TestProgress.java new file mode 100644 index 0000000000..b4355c560c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/TestProgress.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.v10.api.test.operations; + +import com.microsoft.bingads.v10.bulk.BulkOperationProgressInfo; +import com.microsoft.bingads.v10.bulk.Progress; +import java.util.ArrayList; +import java.util.List; +import static org.junit.Assert.assertEquals; + +public class TestProgress implements Progress { + + private final List reportedProgressValues = new ArrayList(); + + @Override + public void report(BulkOperationProgressInfo value) { + reportedProgressValues.add(value.getPercentComplete()); + } + + public void AssertReportedProgress(List expectedProgress) { + assertEquals(expectedProgress, reportedProgressValues); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationTest.java new file mode 100644 index 0000000000..a92607759a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationTest.java @@ -0,0 +1,49 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_download_operation; + +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.PasswordAuthentication; +import com.microsoft.bingads.v10.api.test.operations.FakeApiTest; +import com.microsoft.bingads.v10.bulk.ArrayOfKeyValuePairOfstringstring; +import com.microsoft.bingads.v10.bulk.BulkDownloadOperation; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse; +import com.microsoft.bingads.v10.bulk.IBulkService; + +public class BulkDownloadOperationTest extends FakeApiTest { + + protected IBulkService service; + + private static AuthorizationData createUserData() { + AuthorizationData authorizationData = new AuthorizationData(); + authorizationData.setAuthentication(new PasswordAuthentication("user", "pass")); + authorizationData.setAccountId(123L); + authorizationData.setCustomerId(456L); + authorizationData.setDeveloperToken("dev"); + + return authorizationData; + } + + protected BulkDownloadOperation createBulkDownloadOperation(Integer statusCheckIntervalInMs) { + BulkDownloadOperation operation = new BulkDownloadOperation("request123", createUserData()); + + if (statusCheckIntervalInMs != null) { + operation.setStatusPollIntervalInMilliseconds(statusCheckIntervalInMs); + } + + return operation; + } + + protected GetBulkDownloadStatusResponse createStatusResponse(Integer percentComplete, String status, String resultFileUrl) { + GetBulkDownloadStatusResponse response = new GetBulkDownloadStatusResponse(); + response.setForwardCompatibilityMap(new ArrayOfKeyValuePairOfstringstring()); + response.setPercentComplete(percentComplete); + response.setRequestStatus(status); + response.setResultFileUrl(resultFileUrl); + + return response; + } + + public BulkDownloadOperationTest() { + super(); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationsTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationsTests.java new file mode 100644 index 0000000000..089bfd7b7f --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/BulkDownloadOperationsTests.java @@ -0,0 +1,11 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_download_operation; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({TrackTest.class, GetStatusTest.class}) +public class BulkDownloadOperationsTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/GetStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/GetStatusTest.java new file mode 100644 index 0000000000..a6fa153ff2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/GetStatusTest.java @@ -0,0 +1,78 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_download_operation; + +import com.microsoft.bingads.v10.api.test.operations.FakeBulkService; +import com.microsoft.bingads.v10.bulk.BulkDownloadOperation; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.DownloadStatus; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Arrays; +import java.util.Collection; +import java.util.concurrent.ExecutionException; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; +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; + +@RunWith(Parameterized.class) +public class GetStatusTest extends BulkDownloadOperationTest { + + @Parameter(value = 0) + public String trackingId; + + @Parameter(value = 1) + public String status; + + @Parameter(value = 2) + public DownloadStatus expectedStatus; + + @Parameter(value = 3) + public int percentComplete; + + @Parameter(value = 4) + public String resultFileUrl; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"track123", "InProgress", DownloadStatus.IN_PROGRESS, 5, null}, + {"track123", "Completed", DownloadStatus.COMPLETED, 100, "http://downloadurl.com"},}); + } + + @Test + public void test() throws InterruptedException, ExecutionException { + BulkDownloadOperation operation = createBulkDownloadOperation(null); + + FakeBulkService.setOnGetBulkDownloadStatus(new Consumer() { + @Override + public void accept(GetBulkDownloadStatusRequest t) { + assertEquals("request123", t.getRequestId()); + } + }); + + FakeBulkService.setGetBulkDownloadStatusResponse(new Supplier() { + @Override + public GetBulkDownloadStatusResponse get() { + return createStatusResponse(percentComplete, status, resultFileUrl); + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + BulkOperationStatus actualStatus = operation.getStatusAsync(null).get(); + + assertEquals(expectedStatus, actualStatus.getStatus()); + assertEquals(percentComplete, actualStatus.getPercentComplete()); + + if (resultFileUrl == null) { + assertNull(actualStatus.getResultFileUrl()); + } else { + assertEquals(resultFileUrl, actualStatus.getResultFileUrl()); + } + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/TrackTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/TrackTest.java new file mode 100644 index 0000000000..665dc53d42 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_download_operation/TrackTest.java @@ -0,0 +1,71 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_download_operation; + +import com.microsoft.bingads.v10.api.test.operations.FakeBulkService; +import com.microsoft.bingads.v10.api.test.operations.TestProgress; +import com.microsoft.bingads.v10.bulk.BulkDownloadOperation; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.DownloadStatus; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusRequest; +import com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse; +import com.microsoft.bingads.internal.functionalinterfaces.Consumer; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; +import org.junit.Test; + +public class TrackTest extends BulkDownloadOperationTest { + + @Test + public void pollsForStatusUntilCompletedAndReturnsCorrectStatusWhenCompleted() throws InterruptedException, ExecutionException { + BulkDownloadOperation operation = createBulkDownloadOperation(10); + + FakeBulkService.setOnGetBulkDownloadStatus(new Consumer() { + @Override + public void accept(GetBulkDownloadStatusRequest t) { + assertEquals("request123", t.getRequestId()); + } + }); + + FakeBulkService.setGetBulkDownloadStatusResponse(new Supplier() { + + Integer pollNumber = 1; + + @Override + public GetBulkDownloadStatusResponse get() { + switch (pollNumber++) { + case 1: + return createStatusResponse(1, "InProgress", null); + case 2: + return createStatusResponse(25, "InProgress", null); + case 3: + return createStatusResponse(100, "Completed", "http://downloadurl.com"); + default: + fail("Unexpected polling attempt"); + return null; + } + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + TestProgress progress = new TestProgress(); + + BulkOperationStatus actualStatus = null; + + actualStatus = operation.trackAsync(progress, null).get(); + + assertEquals(DownloadStatus.COMPLETED, actualStatus.getStatus()); + assertEquals(100, actualStatus.getPercentComplete()); + assertEquals("http://downloadurl.com", actualStatus.getResultFileUrl()); + + List expectedProgress = new ArrayList(); + expectedProgress.add(1); + expectedProgress.add(25); + expectedProgress.add(100); + + progress.AssertReportedProgress(expectedProgress); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationTest.java new file mode 100644 index 0000000000..3c2264e36c --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationTest.java @@ -0,0 +1,50 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_upload_operation; + + +import com.microsoft.bingads.AuthorizationData; +import com.microsoft.bingads.PasswordAuthentication; +import com.microsoft.bingads.v10.api.test.operations.FakeApiTest; +import com.microsoft.bingads.v10.bulk.ArrayOfKeyValuePairOfstringstring; +import com.microsoft.bingads.v10.bulk.BulkUploadOperation; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse; +import com.microsoft.bingads.v10.bulk.IBulkService; + +public class BulkUploadOperationTest extends FakeApiTest { + + protected IBulkService service; + + private static AuthorizationData createUserData() { + AuthorizationData authorizationData = new AuthorizationData(); + authorizationData.setAuthentication(new PasswordAuthentication("user", "pass")); + authorizationData.setAccountId(123L); + authorizationData.setCustomerId(456L); + authorizationData.setDeveloperToken("dev"); + + return authorizationData; + } + + protected BulkUploadOperation createBulkUploadOperation(Integer statusCheckIntervalInMs) { + BulkUploadOperation operation = new BulkUploadOperation("request123", createUserData(), service); + + if (statusCheckIntervalInMs != null) { + operation.setStatusPollIntervalInMilliseconds(statusCheckIntervalInMs); + } + + return operation; + } + + protected GetBulkUploadStatusResponse createStatusResponse(Integer percentComplete, String status, String resultFileUrl) { + GetBulkUploadStatusResponse response = new GetBulkUploadStatusResponse(); + response.setForwardCompatibilityMap(new ArrayOfKeyValuePairOfstringstring()); + response.setPercentComplete(percentComplete); + response.setRequestStatus(status); + response.setResultFileUrl(resultFileUrl); + + return response; + } + + public BulkUploadOperationTest() { + super(); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationsTests.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationsTests.java new file mode 100644 index 0000000000..0c6c1dfc6b --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/BulkUploadOperationsTests.java @@ -0,0 +1,11 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_upload_operation; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({TrackTest.class, GetStatusTest.class}) +public class BulkUploadOperationsTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/GetStatusTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/GetStatusTest.java new file mode 100644 index 0000000000..606f7eb480 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/GetStatusTest.java @@ -0,0 +1,71 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_upload_operation; + +import com.microsoft.bingads.v10.api.test.operations.FakeBulkService; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.BulkUploadOperation; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse; +import com.microsoft.bingads.v10.bulk.UploadStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.Arrays; +import java.util.Collection; +import java.util.concurrent.ExecutionException; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNull; +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; + +@RunWith(Parameterized.class) +public class GetStatusTest extends BulkUploadOperationTest { + + @Parameter(value = 0) + public String trackingId; + + @Parameter(value = 1) + public String status; + + @Parameter(value = 2) + public UploadStatus expectedStatus; + + @Parameter(value = 3) + public int percentComplete; + + @Parameter(value = 4) + public String resultFileUrl; + + @Parameters + public static Collection data() { + return Arrays.asList(new Object[][]{ + {"track123", "InProgress", UploadStatus.IN_PROGRESS, 5, null}, + //{"track123", "Completed", UploadStatus.COMPLETED, 100, "http://downloadurl.com"}, + //{"track123", "CompletedWithErrors", UploadStatus.COMPLETED_WITH_ERRORS, 100, "http://downloadurl.com"} + }); + } + + @Test + public void test() throws InterruptedException, ExecutionException { + BulkUploadOperation operation = createBulkUploadOperation(null); + + FakeBulkService.setGetBulkUploadStatusResponse(new Supplier() { + @Override + public GetBulkUploadStatusResponse get() { + return createStatusResponse(percentComplete, status, resultFileUrl); + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + BulkOperationStatus actualStatus = operation.getStatusAsync(null).get(); + + assertEquals(expectedStatus, actualStatus.getStatus()); + assertEquals(percentComplete, actualStatus.getPercentComplete()); + + if (resultFileUrl == null) { + assertNull(actualStatus.getResultFileUrl()); + } else { + assertEquals(resultFileUrl, actualStatus.getResultFileUrl()); + } + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/TrackTest.java b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/TrackTest.java new file mode 100644 index 0000000000..1832d363b2 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/api/test/operations/bulk_upload_operation/TrackTest.java @@ -0,0 +1,60 @@ +package com.microsoft.bingads.v10.api.test.operations.bulk_upload_operation; + +import com.microsoft.bingads.v10.api.test.operations.FakeBulkService; +import com.microsoft.bingads.v10.api.test.operations.TestProgress; +import com.microsoft.bingads.v10.bulk.BulkOperationStatus; +import com.microsoft.bingads.v10.bulk.BulkUploadOperation; +import com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse; +import com.microsoft.bingads.v10.bulk.UploadStatus; +import com.microsoft.bingads.internal.functionalinterfaces.Supplier; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; +import org.junit.Test; + +public class TrackTest extends BulkUploadOperationTest { + + @Test + public void pollsForStatusUntilCompletedAndReturnsCorrectStatusWhenCompleted() throws InterruptedException, ExecutionException { + BulkUploadOperation operation = createBulkUploadOperation(10); + + FakeBulkService.setGetBulkUploadStatusResponse(new Supplier() { + + Integer pollNumber = 1; + + @Override + public GetBulkUploadStatusResponse get() { + switch (pollNumber++) { + case 1: + return createStatusResponse(1, "InProgress", null); + case 2: + return createStatusResponse(25, "InProgress", null); + case 3: + return createStatusResponse(100, "Completed", "http://downloadurl.com"); + default: + fail("Unexpected polling attempt"); + return null; + } + } + }); + + FakeBulkService.setInboundHeadersSupplier(createTrackingIdHeaderSupplier()); + + TestProgress progress = new TestProgress(); + + BulkOperationStatus actualStatus = operation.trackAsync(progress, null).get(); + + assertEquals(UploadStatus.COMPLETED, actualStatus.getStatus()); + assertEquals(100, actualStatus.getPercentComplete()); + assertEquals("http://downloadurl.com", actualStatus.getResultFileUrl()); + + List expectedProgress = new ArrayList(); + expectedProgress.add(1); + expectedProgress.add(25); + expectedProgress.add(100); + + progress.AssertReportedProgress(expectedProgress); + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/bulk/entities/MultirecordEntityTestHelper.java b/src/test/java/com/microsoft/bingads/v10/bulk/entities/MultirecordEntityTestHelper.java new file mode 100644 index 0000000000..139a22ecf3 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/bulk/entities/MultirecordEntityTestHelper.java @@ -0,0 +1,71 @@ +package com.microsoft.bingads.v10.bulk.entities; + +import com.microsoft.bingads.v10.api.test.entities.DeleteAllRowPosition; +import com.microsoft.bingads.v10.internal.bulk.BulkObject; +import com.microsoft.bingads.v10.internal.bulk.BulkObjectReader; +import com.microsoft.bingads.v10.internal.bulk.entities.BulkAdExtensionIdentifier; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import static org.easymock.EasyMock.createMock; +import static org.easymock.EasyMock.expect; +import static org.easymock.EasyMock.replay; + +public class MultirecordEntityTestHelper { + + public static BulkObjectReader createFakeObjectReader(BulkObject... bulkEntities) { + BulkObjectReader reader = createMock(BulkObjectReader.class); + + UnknownBulkEntity formatVersion = new UnknownBulkEntity(); + + expect(reader.readNextBulkObject()).andReturn(formatVersion); + + for (BulkObject entity : bulkEntities) { + expect(reader.readNextBulkObject()).andReturn(entity); + } + + expect(reader.readNextBulkObject()).andReturn(null).times(bulkEntities.length + 1); + + replay(reader); + + return reader; + } + + public static BulkObjectReader setupObjectReaderToReturnEntitiesAndDeleteAllRow( + BulkObject[] entities, + BulkAdExtensionIdentifier deleteAllRow, + DeleteAllRowPosition deleteAllRowPosition) { + BulkObjectReader objectReader = createMock(BulkObjectReader.class); + + List entityList = new ArrayList(Arrays.asList(entities)); + + switch (deleteAllRowPosition) { + case IN_THE_BEGINNING: + entityList.add(0, deleteAllRow); + break; + case IN_THE_MIDDLE: + entityList.add(2, deleteAllRow); + break; + case IN_THE_END: + entityList.add(deleteAllRow); + break; + default: + throw new UnsupportedOperationException("Unknown delete all row position!!!"); + } + + BulkEntity formatVersion = new UnknownBulkEntity(); + + expect(objectReader.readNextBulkObject()).andReturn(formatVersion); + + for (BulkObject next : entityList) { + expect(objectReader.readNextBulkObject()).andReturn(next); + } + + // readErrors for each entity plus end of file + expect(objectReader.readNextBulkObject()).andReturn(null).times(entities.length + 1); + + replay(objectReader); + + return objectReader; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/AllTests.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/AllTests.java new file mode 100644 index 0000000000..e875fdfb50 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/AllTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.api.test.operations.OperationsTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({BulkTests.class, EntityTests.class, OAuthTests.class, OperationsTests.class}) +public class AllTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReaderTest.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReaderTest.java new file mode 100644 index 0000000000..0dca1ad7cd --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkStreamReaderTest.java @@ -0,0 +1,39 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.bulk.entities.BulkCampaign; +import static org.easymock.EasyMock.expect; +import static org.easymock.EasyMock.replay; +import org.easymock.EasyMockRunner; +import org.easymock.EasyMockSupport; +import org.easymock.Mock; +import static org.junit.Assert.assertEquals; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class BulkStreamReaderTest extends EasyMockSupport { + + @Mock + BulkObjectReader reader; + + @Test + public void test() { + + BulkCampaign expectedCampaign = new BulkCampaign(); + + expect(reader.hasNext()).andReturn(true).times(2); + expect(reader.hasNext()).andReturn(false); + + expect(reader.readNextBulkObject()).andReturn(expectedCampaign); //Format Version that gets skipped + expect(reader.readNextBulkObject()).andReturn(expectedCampaign); //Campaign + expect(reader.readNextBulkObject()).andReturn(null); + replay(reader); + + BulkStreamReader streamReader = new SimpleBulkStreamReader(reader); + + BulkObject bulkObject = streamReader.read(); + + assertEquals(expectedCampaign, bulkObject); + } + +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkTests.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkTests.java new file mode 100644 index 0000000000..30cc4cb9b8 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/BulkTests.java @@ -0,0 +1,12 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + + +@RunWith(Suite.class) +@SuiteClasses({BulkStreamReaderTest.class, ReadEntitiesFromFilesTest.class}) +public class BulkTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/EntityTests.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/EntityTests.java new file mode 100644 index 0000000000..fd23a2caad --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/EntityTests.java @@ -0,0 +1,57 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.api.test.entities.account.BulkAccountTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.call.BulkCallAdExtensionTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.image.BulkImageAdExtensionTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.location.BulkLocationAdExtensionTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.BulkSiteLinkAdExtensionTests; +import com.microsoft.bingads.v10.api.test.entities.ad_extension.site_link.bulk_site_link.BulkSiteLinkTests; +import com.microsoft.bingads.v10.api.test.entities.ad_group_product_partition.BulkAdGroupProductPartitionTests; +import com.microsoft.bingads.v10.api.test.entities.adgroup.BulkAdGroupTests; +import com.microsoft.bingads.v10.api.test.entities.ads.product.BulkProductAdTests; +import com.microsoft.bingads.v10.api.test.entities.ads.text.BulkTextAdTests; +import com.microsoft.bingads.v10.api.test.entities.bid_suggestion_data.BulkKeywordBidSuggestionTests; +import com.microsoft.bingads.v10.api.test.entities.campaign.BulkCampaignTests; +import com.microsoft.bingads.v10.api.test.entities.campaign_product_scope.BulkCampaignProductScopeTests; +import com.microsoft.bingads.v10.api.test.entities.keyword.BulkKeywordTests; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.adgroup_negative_keyword.BulkAdGroupNegativeKeywordTests; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword.BulkCampaignNegativeKeywordTests; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.campaign_negative_keyword_list.BulkCampaignNegativeKeywordListTests; +import com.microsoft.bingads.v10.api.test.entities.negative_keywords.negative_keyword_list.BulkNegativeKeywordListTests; +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.site.BulkAdGroupNegativeSiteTests; +import com.microsoft.bingads.v10.api.test.entities.negative_site.ad_group.sites.BulkAdGroupNegativeSitesTests; +import com.microsoft.bingads.v10.api.test.entities.negative_site.campaign.site.BulkCampaignNegativeSiteTests; +import com.microsoft.bingads.v10.api.test.entities.unknown.UnknownBulkEntityTests; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({ + BulkCampaignTests.class, + BulkAdGroupTests.class, + BulkAccountTests.class, + BulkKeywordTests.class, + BulkProductAdTests.class, + BulkTextAdTests.class, + UnknownBulkEntityTests.class, + BulkAdGroupNegativeKeywordTests.class, + BulkCampaignNegativeKeywordTests.class, + BulkCampaignNegativeKeywordListTests.class, + BulkNegativeKeywordListTests.class, + BulkKeywordBidSuggestionTests.class, + BulkSiteLinkAdExtensionTests.class, + BulkSiteLinkTests.class, + BulkCallAdExtensionTests.class, + BulkImageAdExtensionTests.class, + BulkLocationAdExtensionTests.class, + BulkAdGroupNegativeSiteTests.class, + BulkAdGroupNegativeSiteTests.class, + BulkAdGroupNegativeSitesTests.class, + BulkCampaignNegativeSiteTests.class, + BulkAdGroupProductPartitionTests.class, + BulkCampaignProductScopeTests.class +}) +public class EntityTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/OAuthTests.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/OAuthTests.java new file mode 100644 index 0000000000..8254c134a5 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/OAuthTests.java @@ -0,0 +1,19 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.internal.LiveComOAuthServiceTest; +import com.microsoft.bingads.internal.OAuthAuthCodeForDesktopMobileAppTest; +import com.microsoft.bingads.internal.OAuthAuthCodeForWebAppTest; +import com.microsoft.bingads.internal.OAuthImplicitGrantForDesktopMobileAppTest; +import org.junit.runner.RunWith; +import org.junit.runners.Suite; +import org.junit.runners.Suite.SuiteClasses; + +@RunWith(Suite.class) +@SuiteClasses({LiveComOAuthServiceTest.class, + OAuthAuthCodeForDesktopMobileAppTest.class, + OAuthAuthCodeForWebAppTest.class, + OAuthImplicitGrantForDesktopMobileAppTest.class +}) +public class OAuthTests { + +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadEntitiesFromFilesTest.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadEntitiesFromFilesTest.java new file mode 100644 index 0000000000..8df4308d7a --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadEntitiesFromFilesTest.java @@ -0,0 +1,110 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.googlecode.jcsv.reader.CSVReader; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.UnknownBulkEntity; +import java.io.FileNotFoundException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import static org.easymock.EasyMock.anyObject; +import static org.easymock.EasyMock.expect; +import static org.easymock.EasyMock.replay; +import org.easymock.EasyMockRunner; +import org.easymock.EasyMockSupport; +import org.easymock.Mock; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.fail; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class ReadEntitiesFromFilesTest extends EasyMockSupport { + + @Mock + RowValues values; + + @Mock + Iterator iterator; + + @Mock + BulkEntity expectedEntity; + + @Test + public void readsRowFromCsvReader_createsEntityUsingObjectFactory_callsReadFromRowValuesOnEntity() { + String[] emptyArray = new String[CsvHeaders.Headers.length]; + Arrays.fill(emptyArray, ""); + + String[] headers = emptyArray.clone(); + headers[0] = "Type"; + + String[] formatVersion = emptyArray.clone(); + formatVersion[0] = "Format Version"; + formatVersion[46] = "3"; + + String[] campaign = emptyArray.clone(); + campaign[0] = "Campaign"; + campaign[1] = "Active"; + campaign[2] = "1"; + + expect(iterator.hasNext()).andReturn(true).times(3); + expect(iterator.next()).andReturn(CsvHeaders.Headers); //Headers + expect(iterator.next()).andReturn(formatVersion); //Format Version + expect(iterator.next()).andReturn(campaign); //Campaign + expect(iterator.hasNext()).andReturn(false); + replay(iterator); + + BulkFileReader fileReader; + + try { + fileReader = TestFactory.createBulkFileReader( + createFakeCsvReader(iterator), + createFakeBulkObjectFactory(values, expectedEntity) + ); + + replay(values); + + expectedEntity.readFromRowValues(anyObject(RowValues.class)); + expectedEntity.readRelatedDataFromStream(anyObject(BulkStreamReader.class)); + expect(expectedEntity.canEncloseInMultilineEntity()).andReturn(false); + replay(expectedEntity); + + Iterable entityIterable = fileReader.getEntities(); + List entities = new ArrayList(); + + for (BulkEntity entity : entityIterable) { + entities.add(entity); + } + + assertEquals(1, entities.size()); + assertEquals(expectedEntity, entities.get(0)); + + } catch (FileNotFoundException e) { + fail("Threw a FileNotFoundException"); + } + } + + private BulkObjectFactory createFakeBulkObjectFactory(RowValues expectedRowValues, + BulkEntity expectedEntity) { + BulkObjectFactory factory = createMock(BulkObjectFactory.class); + + expect(factory.createBulkObject(anyObject(RowValues.class))).andReturn(new UnknownBulkEntity()); + expect(factory.createBulkObject(anyObject(RowValues.class))).andReturn(expectedEntity); + + replay(factory); + + return factory; + } + + private CSVReader createFakeCsvReader(Iterator iterator) { + CSVReader reader = createMock(CSVReader.class); + + expect(reader.iterator()).andReturn(iterator); + + replay(reader); + + return reader; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadWriteEntitiesWithErrors.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadWriteEntitiesWithErrors.java new file mode 100644 index 0000000000..24f53083cf --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/ReadWriteEntitiesWithErrors.java @@ -0,0 +1,137 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.googlecode.jcsv.reader.CSVReader; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.BulkFileWriter; +import com.microsoft.bingads.v10.bulk.entities.BulkEntity; +import com.microsoft.bingads.v10.bulk.entities.BulkError; +import com.microsoft.bingads.v10.bulk.entities.UnknownBulkEntity; +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Iterator; +import java.util.List; +import static org.easymock.EasyMock.anyObject; +import static org.easymock.EasyMock.expect; +import static org.easymock.EasyMock.replay; +import org.easymock.EasyMockRunner; +import org.easymock.EasyMockSupport; +import org.easymock.Mock; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; +import static org.junit.Assert.fail; +import org.junit.Test; +import org.junit.runner.RunWith; + +@RunWith(EasyMockRunner.class) +public class ReadWriteEntitiesWithErrors extends EasyMockSupport { + + @Mock + RowValues values; + + @Mock + Iterator iterator; + + @Test + public void readsRowFromCsvReader_createsEntityUsingObjectFactory_callsReadFromRowValuesOnEntity() throws IOException { + String[] emptyArray = new String[CsvHeaders.Headers.length]; + Arrays.fill(emptyArray, ""); + + String[] headers = emptyArray.clone(); + headers[0] = "Type"; + + String[] formatVersion = emptyArray.clone(); + formatVersion[0] = "Format Version"; + formatVersion[46] = "3"; + + String[] campaign = emptyArray.clone(); + campaign[0] = "Campaign"; + campaign[1] = "Active"; + campaign[2] = "1"; + + String[] error = emptyArray.clone(); + campaign[0] = "Campaign Error"; + campaign[1] = "Active"; + campaign[2] = "1"; + + expect(iterator.hasNext()).andReturn(true).times(4); + expect(iterator.next()).andReturn(CsvHeaders.Headers); //Headers + expect(iterator.next()).andReturn(formatVersion); //Format Version + expect(iterator.next()).andReturn(campaign); //Campaign + expect(iterator.next()).andReturn(error); //Error + expect(iterator.hasNext()).andReturn(false).times(2); + replay(iterator); + + SingleRecordBulkEntity expectedEntity = new TestSingleRecordEntity(); + + BulkFileReader fileReader; + + try { + fileReader = TestFactory.createBulkFileReader( + createFakeCsvReader(iterator), + createFakeBulkObjectFactory(values, expectedEntity) + ); + + replay(values); + + Iterable entityIterable = fileReader.getEntities(); + List entities = new ArrayList(); + + for (BulkEntity entity : entityIterable) { + entities.add(entity); + } + + assertEquals(1, entities.size()); + + TestSingleRecordEntity actualEntity = (TestSingleRecordEntity) entities.get(0); + + assertEquals(expectedEntity, actualEntity); + + assertTrue(actualEntity.hasErrors()); + assertEquals(1, actualEntity.getErrors().size()); + + BulkObjectWriter objectWriter = createMock(BulkObjectWriter.class); + + objectWriter.writeFileMetadata(); + + objectWriter.writeObjectRow(actualEntity, false); + + objectWriter.writeObjectRow(actualEntity.getErrors().get(0)); + + replay(objectWriter); + + BulkFileWriter fileWriter = new BulkFileWriter(objectWriter); + + fileWriter.writeEntity(actualEntity); + + verifyAll(); + } catch (FileNotFoundException e) { + fail("Threw a FileNotFoundException"); + } + } + + private BulkObjectFactory createFakeBulkObjectFactory(RowValues expectedRowValues, + BulkEntity expectedEntity) { + BulkObjectFactory factory = createMock(BulkObjectFactory.class); + + expect(factory.createBulkObject(anyObject(RowValues.class))).andReturn(new UnknownBulkEntity()); + expect(factory.createBulkObject(anyObject(RowValues.class))).andReturn(expectedEntity); + expect(factory.createBulkObject(anyObject(RowValues.class))).andReturn(new BulkError()); + + replay(factory); + + return factory; + } + + private CSVReader createFakeCsvReader(Iterator iterator) { + CSVReader reader = createMock(CSVReader.class); + + expect(reader.iterator()).andReturn(iterator); + + replay(reader); + + return reader; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/TestFactory.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/TestFactory.java new file mode 100644 index 0000000000..736b3e8b15 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/TestFactory.java @@ -0,0 +1,21 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.googlecode.jcsv.reader.CSVReader; +import com.microsoft.bingads.v10.bulk.BulkFileReader; +import com.microsoft.bingads.v10.bulk.ResultFileType; +import java.io.FileNotFoundException; + +public class TestFactory { + + public static BulkFileReader createBulkFileReader(BulkObjectReader objectReader, ResultFileType fileType) { + BulkFileReader fileReader = new BulkFileReader(new SimpleBulkStreamReader(objectReader), fileType); + + return fileReader; + } + + public static BulkFileReader createBulkFileReader(CSVReader csvReader, BulkObjectFactory factory) throws FileNotFoundException { + BulkFileReader fileReader = new BulkFileReader(new SimpleBulkStreamReader(new SimpleBulkObjectReader(csvReader, factory)), ResultFileType.PARTIAL_DOWNLOAD); + + return fileReader; + } +} diff --git a/src/test/java/com/microsoft/bingads/v10/internal/bulk/TestSingleRecordEntity.java b/src/test/java/com/microsoft/bingads/v10/internal/bulk/TestSingleRecordEntity.java new file mode 100644 index 0000000000..65942dc551 --- /dev/null +++ b/src/test/java/com/microsoft/bingads/v10/internal/bulk/TestSingleRecordEntity.java @@ -0,0 +1,16 @@ +package com.microsoft.bingads.v10.internal.bulk; + +import com.microsoft.bingads.v10.internal.bulk.entities.SingleRecordBulkEntity; + +public class TestSingleRecordEntity extends SingleRecordBulkEntity { + + @Override + public void processMappingsFromRowValues(RowValues values) { + + } + + @Override + public void processMappingsToRowValues(RowValues values, boolean excludeReadonlyData) { + + } +} From baa5ba0481fc89b15695e5356c7d0991fb450cfa Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Sun, 20 Sep 2015 14:11:15 +0800 Subject: [PATCH 2/9] Update proxies both v9 and v10 --- .../AdGroupPerformanceReportColumn.java | 8 +- .../reporting/AdPerformanceReportColumn.java | 17 +- .../CampaignPerformanceReportColumn.java | 8 +- ...DestinationUrlPerformanceReportColumn.java | 17 +- .../KeywordPerformanceReportColumn.java | 17 +- .../bingads/reporting/ObjectFactory.java | 262 +- ...oductDimensionPerformanceReportColumn.java | 11 +- .../bingads/reporting/ReportRequest.java | 2 +- .../SitePerformanceReportColumn.java | 17 +- .../bingads/v10/adinsight/AdApiError.java | 146 + .../v10/adinsight/AdApiFaultDetail.java | 64 + .../adinsight/AdApiFaultDetail_Exception.java | 54 + .../v10/adinsight/AdGroupBidLandscape.java | 176 + .../adinsight/AdGroupBidLandscapeInput.java | 92 + .../adinsight/AdGroupBidLandscapeType.java | 51 + .../v10/adinsight/AdInsightService.java | 78 + .../bingads/v10/adinsight/AdPosition.java | 93 + .../bingads/v10/adinsight/Adapter1.java | 23 + .../bingads/v10/adinsight/Adapter2.java | 20 + .../bingads/v10/adinsight/Adapter3.java | 20 + .../bingads/v10/adinsight/ApiFaultDetail.java | 92 + .../adinsight/ApiFaultDetail_Exception.java | 54 + .../v10/adinsight/ApplicationFault.java | 67 + .../v10/adinsight/ArrayOfAdApiError.java | 69 + .../adinsight/ArrayOfAdGroupBidLandscape.java | 69 + .../ArrayOfAdGroupBidLandscapeInput.java | 69 + .../v10/adinsight/ArrayOfBatchError.java | 69 + .../adinsight/ArrayOfBidLandscapePoint.java | 69 + .../v10/adinsight/ArrayOfBidOpportunity.java | 69 + .../ArrayOfBroadMatchSearchQueryKPI.java | 69 + .../adinsight/ArrayOfBudgetOpportunity.java | 69 + .../v10/adinsight/ArrayOfBudgetPoint.java | 69 + .../ArrayOfEstimatedBidAndTraffic.java | 69 + .../ArrayOfEstimatedPositionAndTraffic.java | 69 + .../ArrayOfHistoricalSearchCountPeriodic.java | 69 + .../ArrayOfKeywordAndConfidence.java | 69 + .../adinsight/ArrayOfKeywordAndMatchType.java | 69 + .../adinsight/ArrayOfKeywordBidLandscape.java | 69 + .../v10/adinsight/ArrayOfKeywordCategory.java | 69 + .../ArrayOfKeywordCategoryResult.java | 69 + .../adinsight/ArrayOfKeywordDemographic.java | 69 + .../ArrayOfKeywordDemographicResult.java | 69 + .../adinsight/ArrayOfKeywordEstimatedBid.java | 69 + .../ArrayOfKeywordEstimatedPosition.java | 69 + .../ArrayOfKeywordHistoricalPerformance.java | 69 + .../ArrayOfKeywordIdEstimatedBid.java | 69 + .../ArrayOfKeywordIdEstimatedPosition.java | 69 + .../v10/adinsight/ArrayOfKeywordKPI.java | 69 + .../v10/adinsight/ArrayOfKeywordLocation.java | 69 + .../ArrayOfKeywordLocationResult.java | 69 + .../adinsight/ArrayOfKeywordOpportunity.java | 69 + .../adinsight/ArrayOfKeywordSearchCount.java | 69 + .../adinsight/ArrayOfKeywordSuggestion.java | 69 + .../v10/adinsight/ArrayOfMatchType.java | 71 + .../v10/adinsight/ArrayOfOperationError.java | 69 + .../ArrayOfSearchCountsByAttributes.java | 69 + .../bingads/v10/adinsight/ArrayOflong.java | 69 + .../bingads/v10/adinsight/ArrayOfstring.java | 69 + .../bingads/v10/adinsight/BatchError.java | 174 + .../v10/adinsight/BidLandscapePoint.java | 232 + .../bingads/v10/adinsight/BidOpportunity.java | 288 + .../v10/adinsight/BidOpportunityType.java | 30 + .../BidOpportunityTypeConverter.java | 34 + .../BroadMatchKeywordOpportunity.java | 260 + .../adinsight/BroadMatchSearchQueryKPI.java | 174 + .../v10/adinsight/BudgetLimitType.java | 54 + .../v10/adinsight/BudgetOpportunity.java | 290 + .../bingads/v10/adinsight/BudgetPoint.java | 176 + .../v10/adinsight/BudgetPointType.java | 57 + .../microsoft/bingads/v10/adinsight/Char.java | 49 + .../bingads/v10/adinsight/Currency.java | 321 + .../v10/adinsight/DayMonthAndYear.java | 118 + .../bingads/v10/adinsight/Duration.java | 60 + .../bingads/v10/adinsight/ENTITIES.java | 70 + .../bingads/v10/adinsight/ENTITY.java | 59 + .../v10/adinsight/EstimatedBidAndTraffic.java | 345 ++ .../EstimatedPositionAndTraffic.java | 345 ++ .../GetBidLandscapeByAdGroupIdsRequest.java | 64 + .../GetBidLandscapeByAdGroupIdsResponse.java | 64 + .../GetBidLandscapeByKeywordIdsRequest.java | 92 + .../GetBidLandscapeByKeywordIdsResponse.java | 64 + .../adinsight/GetBidOpportunitiesRequest.java | 125 + .../GetBidOpportunitiesResponse.java | 64 + .../GetBudgetOpportunitiesRequest.java | 64 + .../GetBudgetOpportunitiesResponse.java | 64 + .../GetEstimatedBidByKeywordIdsRequest.java | 94 + .../GetEstimatedBidByKeywordIdsResponse.java | 64 + .../GetEstimatedBidByKeywordsRequest.java | 263 + .../GetEstimatedBidByKeywordsResponse.java | 92 + ...tEstimatedPositionByKeywordIdsRequest.java | 92 + ...EstimatedPositionByKeywordIdsResponse.java | 64 + ...GetEstimatedPositionByKeywordsRequest.java | 262 + ...etEstimatedPositionByKeywordsResponse.java | 64 + ...etHistoricalKeywordPerformanceRequest.java | 235 + ...tHistoricalKeywordPerformanceResponse.java | 64 + .../GetHistoricalSearchCountRequest.java | 232 + .../GetHistoricalSearchCountResponse.java | 64 + .../GetKeywordCategoriesRequest.java | 148 + .../GetKeywordCategoriesResponse.java | 64 + .../GetKeywordDemographicsRequest.java | 148 + .../GetKeywordDemographicsResponse.java | 64 + .../adinsight/GetKeywordLocationsRequest.java | 232 + .../GetKeywordLocationsResponse.java | 64 + .../GetKeywordOpportunitiesRequest.java | 125 + .../GetKeywordOpportunitiesResponse.java | 64 + .../microsoft/bingads/v10/adinsight/Guid.java | 58 + .../HistoricalSearchCountPeriodic.java | 90 + .../v10/adinsight/IAdInsightService.java | 726 +++ .../bingads/v10/adinsight/IDREFS.java | 72 + .../v10/adinsight/KeywordAndConfidence.java | 90 + .../v10/adinsight/KeywordAndMatchType.java | 90 + .../v10/adinsight/KeywordBidLandscape.java | 146 + .../v10/adinsight/KeywordCategory.java | 90 + .../v10/adinsight/KeywordCategoryResult.java | 90 + .../v10/adinsight/KeywordDemographic.java | 314 + .../adinsight/KeywordDemographicResult.java | 90 + .../v10/adinsight/KeywordEstimatedBid.java | 90 + .../adinsight/KeywordEstimatedPosition.java | 90 + .../KeywordHistoricalPerformance.java | 90 + .../v10/adinsight/KeywordIdEstimatedBid.java | 90 + .../adinsight/KeywordIdEstimatedPosition.java | 90 + .../bingads/v10/adinsight/KeywordKPI.java | 289 + .../v10/adinsight/KeywordLocation.java | 118 + .../v10/adinsight/KeywordLocationResult.java | 90 + .../v10/adinsight/KeywordOpportunity.java | 320 + .../v10/adinsight/KeywordOpportunityType.java | 29 + .../KeywordOpportunityTypeConverter.java | 34 + .../v10/adinsight/KeywordSearchCount.java | 90 + .../v10/adinsight/KeywordSuggestion.java | 90 + .../bingads/v10/adinsight/Language.java | 63 + .../bingads/v10/adinsight/MatchType.java | 60 + .../bingads/v10/adinsight/NCName.java | 60 + .../bingads/v10/adinsight/NMTOKEN.java | 63 + .../bingads/v10/adinsight/NMTOKENS.java | 70 + .../microsoft/bingads/v10/adinsight/Name.java | 63 + .../v10/adinsight/NegativeInteger.java | 60 + .../v10/adinsight/NonNegativeInteger.java | 61 + .../v10/adinsight/NonPositiveInteger.java | 61 + .../bingads/v10/adinsight/ObjectFactory.java | 2146 +++++++ .../bingads/v10/adinsight/OperationError.java | 146 + .../bingads/v10/adinsight/Opportunity.java | 68 + .../v10/adinsight/PositiveInteger.java | 60 + .../bingads/v10/adinsight/ProbeRequest.java | 34 + .../bingads/v10/adinsight/ProbeResponse.java | 64 + .../adinsight/SearchCountsByAttributes.java | 90 + .../SuggestKeywordsForUrlRequest.java | 176 + .../SuggestKeywordsForUrlResponse.java | 64 + ...stKeywordsFromExistingKeywordsRequest.java | 288 + ...tKeywordsFromExistingKeywordsResponse.java | 64 + .../v10/adinsight/TargetAdPosition.java | 54 + .../bingads/v10/adinsight/TimeInterval.java | 54 + .../bingads/v10/adinsight/UnsignedLong.java | 60 + .../bingads/v10/adinsight/package-info.java | 2 + .../bingads/v10/bulk/AdApiError.java | 146 + .../bingads/v10/bulk/AdApiFaultDetail.java | 64 + .../v10/bulk/AdApiFaultDetail_Exception.java | 54 + .../microsoft/bingads/v10/bulk/Adapter1.java | 23 + .../microsoft/bingads/v10/bulk/Adapter2.java | 20 + .../microsoft/bingads/v10/bulk/Adapter3.java | 20 + .../bingads/v10/bulk/ApiFaultDetail.java | 92 + .../v10/bulk/ApiFaultDetail_Exception.java | 54 + .../bingads/v10/bulk/ApplicationFault.java | 67 + .../bingads/v10/bulk/ArrayOfAdApiError.java | 69 + .../bingads/v10/bulk/ArrayOfBatchError.java | 69 + .../v10/bulk/ArrayOfCampaignScope.java | 69 + .../ArrayOfKeyValuePairOfstringstring.java | 69 + .../v10/bulk/ArrayOfOperationError.java | 69 + .../bingads/v10/bulk/ArrayOflong.java | 69 + .../bingads/v10/bulk/BatchError.java | 262 + .../bingads/v10/bulk/BulkDownloadEntity.java | 55 + .../v10/bulk/BulkDownloadEntityConverter.java | 34 + .../bingads/v10/bulk/BulkService.java | 78 + .../bingads/v10/bulk/CampaignScope.java | 90 + .../com/microsoft/bingads/v10/bulk/Char.java | 49 + .../bingads/v10/bulk/CompressionType.java | 51 + .../microsoft/bingads/v10/bulk/DataScope.java | 31 + .../bingads/v10/bulk/DataScopeConverter.java | 34 + .../com/microsoft/bingads/v10/bulk/Date.java | 94 + .../DownloadCampaignsByAccountIdsRequest.java | 272 + ...DownloadCampaignsByAccountIdsResponse.java | 64 + ...DownloadCampaignsByCampaignIdsRequest.java | 272 + ...ownloadCampaignsByCampaignIdsResponse.java | 64 + .../bingads/v10/bulk/DownloadFileType.java | 51 + .../microsoft/bingads/v10/bulk/Duration.java | 60 + .../microsoft/bingads/v10/bulk/ENTITIES.java | 70 + .../microsoft/bingads/v10/bulk/ENTITY.java | 59 + .../bingads/v10/bulk/EditorialError.java | 176 + .../bulk/GetBulkDownloadStatusRequest.java | 64 + .../bulk/GetBulkDownloadStatusResponse.java | 176 + .../v10/bulk/GetBulkUploadStatusRequest.java | 64 + .../v10/bulk/GetBulkUploadStatusResponse.java | 176 + .../v10/bulk/GetBulkUploadUrlRequest.java | 94 + .../v10/bulk/GetBulkUploadUrlResponse.java | 92 + .../com/microsoft/bingads/v10/bulk/Guid.java | 58 + .../bingads/v10/bulk/IBulkService.java | 234 + .../microsoft/bingads/v10/bulk/IDREFS.java | 72 + .../v10/bulk/KeyValuePairOfstringstring.java | 90 + .../microsoft/bingads/v10/bulk/Language.java | 63 + .../microsoft/bingads/v10/bulk/NCName.java | 60 + .../microsoft/bingads/v10/bulk/NMTOKEN.java | 63 + .../microsoft/bingads/v10/bulk/NMTOKENS.java | 70 + .../com/microsoft/bingads/v10/bulk/Name.java | 63 + .../bingads/v10/bulk/NegativeInteger.java | 60 + .../bingads/v10/bulk/NonNegativeInteger.java | 61 + .../bingads/v10/bulk/NonPositiveInteger.java | 61 + .../bingads/v10/bulk/ObjectFactory.java | 906 +++ .../bingads/v10/bulk/OperationError.java | 146 + .../v10/bulk/PerformanceStatsDateRange.java | 120 + .../bingads/v10/bulk/PositiveInteger.java | 60 + .../bingads/v10/bulk/ReportTimePeriod.java | 81 + .../bingads/v10/bulk/ResponseMode.java | 51 + .../bingads/v10/bulk/UnsignedLong.java | 60 + .../bingads/v10/bulk/package-info.java | 2 + .../AccountMigrationStatusesInfo.java | 82 + .../bingads/v10/campaignmanagement/Ad.java | 351 ++ .../v10/campaignmanagement/AdApiError.java | 146 + .../campaignmanagement/AdApiFaultDetail.java | 64 + .../AdApiFaultDetail_Exception.java | 54 + .../campaignmanagement/AdDistribution.java | 29 + .../AdDistributionConverter.java | 34 + .../campaignmanagement/AdEditorialStatus.java | 57 + .../v10/campaignmanagement/AdExtension.java | 184 + .../AdExtensionAssociation.java | 141 + .../AdExtensionAssociationCollection.java | 62 + .../AdExtensionEditorialReason.java | 146 + .../AdExtensionEditorialReasonCollection.java | 90 + .../AdExtensionEditorialStatus.java | 57 + .../AdExtensionIdToEntityIdAssociation.java | 74 + .../AdExtensionIdentity.java | 90 + .../campaignmanagement/AdExtensionStatus.java | 51 + .../AdExtensionsTypeFilter.java | 32 + .../AdExtensionsTypeFilterConverter.java | 34 + .../v10/campaignmanagement/AdGroup.java | 547 ++ .../campaignmanagement/AdGroupCriterion.java | 181 + .../AdGroupCriterionAction.java | 92 + .../AdGroupCriterionEditorialStatus.java | 57 + .../AdGroupCriterionStatus.java | 54 + .../AdGroupNegativeSites.java | 90 + .../v10/campaignmanagement/AdGroupStatus.java | 57 + .../v10/campaignmanagement/AdRotation.java | 126 + .../campaignmanagement/AdRotationType.java | 51 + .../v10/campaignmanagement/AdStatus.java | 57 + .../v10/campaignmanagement/AdType.java | 60 + .../v10/campaignmanagement/Adapter1.java | 23 + .../v10/campaignmanagement/Adapter2.java | 20 + .../v10/campaignmanagement/Adapter3.java | 20 + .../v10/campaignmanagement/Adapter4.java | 20 + .../v10/campaignmanagement/Adapter5.java | 20 + .../v10/campaignmanagement/Adapter6.java | 20 + .../v10/campaignmanagement/Adapter7.java | 20 + .../AddAdExtensionsRequest.java | 92 + .../AddAdExtensionsResponse.java | 64 + .../AddAdGroupCriterionsRequest.java | 125 + .../AddAdGroupCriterionsResponse.java | 92 + .../AddAdGroupsRequest.java | 92 + .../AddAdGroupsResponse.java | 92 + .../v10/campaignmanagement/AddAdsRequest.java | 92 + .../campaignmanagement/AddAdsResponse.java | 92 + .../AddCampaignCriterionsRequest.java | 97 + .../AddCampaignCriterionsResponse.java | 92 + .../AddCampaignsRequest.java | 92 + .../AddCampaignsResponse.java | 92 + .../AddKeywordsRequest.java | 92 + .../AddKeywordsResponse.java | 92 + .../AddListItemsToSharedListRequest.java | 92 + .../AddListItemsToSharedListResponse.java | 92 + .../campaignmanagement/AddMediaRequest.java | 92 + .../campaignmanagement/AddMediaResponse.java | 64 + .../AddNegativeKeywordsToEntitiesRequest.java | 64 + ...AddNegativeKeywordsToEntitiesResponse.java | 92 + .../AddSharedEntityRequest.java | 92 + .../AddSharedEntityResponse.java | 120 + .../AddSitePlacementsRequest.java | 92 + .../AddSitePlacementsResponse.java | 64 + .../AddTargetsToLibraryRequest.java | 64 + .../AddTargetsToLibraryResponse.java | 64 + .../v10/campaignmanagement/Address.java | 230 + .../v10/campaignmanagement/AgeRange.java | 60 + .../v10/campaignmanagement/AgeTarget.java | 62 + .../v10/campaignmanagement/AgeTargetBid.java | 84 + .../campaignmanagement/ApiFaultDetail.java | 92 + .../ApiFaultDetail_Exception.java | 54 + .../campaignmanagement/AppAdExtension.java | 316 + .../v10/campaignmanagement/AppUrl.java | 90 + .../AppealEditorialRejectionsRequest.java | 122 + .../AppealEditorialRejectionsResponse.java | 64 + .../v10/campaignmanagement/AppealStatus.java | 54 + .../campaignmanagement/ApplicationFault.java | 68 + .../ApplyProductPartitionActionsRequest.java | 64 + .../ApplyProductPartitionActionsResponse.java | 92 + .../ArrayOfAccountMigrationStatusesInfo.java | 69 + .../v10/campaignmanagement/ArrayOfAd.java | 69 + .../campaignmanagement/ArrayOfAdApiError.java | 69 + .../ArrayOfAdExtension.java | 69 + .../ArrayOfAdExtensionAssociation.java | 69 + ...rayOfAdExtensionAssociationCollection.java | 69 + .../ArrayOfAdExtensionEditorialReason.java | 69 + ...fAdExtensionEditorialReasonCollection.java | 69 + ...yOfAdExtensionIdToEntityIdAssociation.java | 69 + .../ArrayOfAdExtensionIdentity.java | 69 + .../campaignmanagement/ArrayOfAdGroup.java | 69 + .../ArrayOfAdGroupCriterion.java | 69 + .../ArrayOfAdGroupCriterionAction.java | 69 + .../ArrayOfAdGroupNegativeSites.java | 69 + .../ArrayOfAgeTargetBid.java | 69 + .../v10/campaignmanagement/ArrayOfAppUrl.java | 69 + .../ArrayOfArrayOfMediaAssociation.java | 69 + .../ArrayOfArrayOfPlacementDetail.java | 69 + .../campaignmanagement/ArrayOfBMCStore.java | 69 + .../campaignmanagement/ArrayOfBatchError.java | 69 + .../ArrayOfBatchErrorCollection.java | 69 + .../campaignmanagement/ArrayOfCampaign.java | 69 + .../ArrayOfCampaignCriterion.java | 69 + .../ArrayOfCampaignNegativeSites.java | 69 + .../ArrayOfCampaignSize.java | 69 + .../ArrayOfCityTargetBid.java | 69 + .../ArrayOfCountryTargetBid.java | 69 + .../ArrayOfCustomParameter.java | 69 + .../ArrayOfDayTimeTargetBid.java | 69 + .../ArrayOfDeviceOSTargetBid.java | 69 + .../campaignmanagement/ArrayOfDimension.java | 69 + .../ArrayOfEditorialError.java | 69 + .../ArrayOfEditorialReason.java | 69 + .../ArrayOfEditorialReasonCollection.java | 69 + .../ArrayOfEntityIdToParentIdAssociation.java | 69 + .../ArrayOfEntityNegativeKeyword.java | 69 + .../ArrayOfGenderTargetBid.java | 69 + .../ArrayOfIdCollection.java | 69 + .../ArrayOfKeyValuePairOfstringstring.java | 69 + .../campaignmanagement/ArrayOfKeyword.java | 69 + .../v10/campaignmanagement/ArrayOfMedia.java | 69 + .../ArrayOfMediaAssociation.java | 69 + .../ArrayOfMediaMetaData.java | 69 + .../ArrayOfMediaRepresentation.java | 69 + .../campaignmanagement/ArrayOfMediaType.java | 69 + .../ArrayOfMetroAreaTargetBid.java | 69 + .../ArrayOfMigrationStatusInfo.java | 69 + .../ArrayOfNegativeKeyword.java | 69 + .../ArrayOfNullableOflong.java | 69 + .../ArrayOfOperationError.java | 69 + .../ArrayOfPlacementDetail.java | 69 + .../ArrayOfPostalCodeTargetBid.java | 69 + .../ArrayOfProductCondition.java | 69 + .../ArrayOfRadiusTargetBid.java | 69 + .../campaignmanagement/ArrayOfSetting.java | 69 + .../ArrayOfSharedEntity.java | 69 + .../ArrayOfSharedEntityAssociation.java | 69 + .../ArrayOfSharedListItem.java | 69 + .../campaignmanagement/ArrayOfSiteLink.java | 69 + .../ArrayOfSitePlacement.java | 69 + .../ArrayOfStateTargetBid.java | 69 + .../v10/campaignmanagement/ArrayOfTarget.java | 69 + .../campaignmanagement/ArrayOfTargetInfo.java | 69 + .../v10/campaignmanagement/ArrayOflong.java | 69 + .../v10/campaignmanagement/ArrayOfstring.java | 69 + .../campaignmanagement/AssociationType.java | 54 + .../v10/campaignmanagement/BMCStore.java | 174 + .../v10/campaignmanagement/BatchError.java | 262 + .../BatchErrorCollection.java | 286 + .../bingads/v10/campaignmanagement/Bid.java | 62 + .../BiddableAdGroupCriterion.java | 262 + .../v10/campaignmanagement/BiddingModel.java | 51 + .../campaignmanagement/BudgetLimitType.java | 54 + .../BusinessGeoCodeStatus.java | 57 + .../campaignmanagement/CallAdExtension.java | 204 + .../v10/campaignmanagement/Campaign.java | 461 ++ .../campaignmanagement/CampaignCriterion.java | 198 + .../CampaignCriterionType.java | 28 + .../CampaignCriterionTypeConverter.java | 34 + .../CampaignManagementService.java | 78 + .../CampaignNegativeSites.java | 90 + .../v10/campaignmanagement/CampaignSize.java | 82 + .../campaignmanagement/CampaignStatus.java | 63 + .../v10/campaignmanagement/CampaignType.java | 29 + .../CampaignTypeConverter.java | 34 + .../bingads/v10/campaignmanagement/Char.java | 49 + .../v10/campaignmanagement/CityTarget.java | 62 + .../v10/campaignmanagement/CityTargetBid.java | 102 + .../v10/campaignmanagement/CountryTarget.java | 62 + .../campaignmanagement/CountryTargetBid.java | 102 + .../v10/campaignmanagement/Criterion.java | 67 + .../v10/campaignmanagement/CriterionBid.java | 66 + .../v10/campaignmanagement/CriterionType.java | 28 + .../CriterionTypeConverter.java | 34 + .../campaignmanagement/CustomParameter.java | 90 + .../campaignmanagement/CustomParameters.java | 62 + .../bingads/v10/campaignmanagement/Date.java | 94 + .../bingads/v10/campaignmanagement/Day.java | 66 + .../v10/campaignmanagement/DayTimeTarget.java | 62 + .../campaignmanagement/DayTimeTargetBid.java | 182 + ...DeleteAdExtensionsAssociationsRequest.java | 122 + ...eleteAdExtensionsAssociationsResponse.java | 34 + .../DeleteAdExtensionsRequest.java | 92 + .../DeleteAdExtensionsResponse.java | 34 + .../DeleteAdGroupCriterionsRequest.java | 153 + .../DeleteAdGroupCriterionsResponse.java | 64 + .../DeleteAdGroupsRequest.java | 92 + .../DeleteAdGroupsResponse.java | 64 + .../campaignmanagement/DeleteAdsRequest.java | 92 + .../campaignmanagement/DeleteAdsResponse.java | 64 + .../DeleteCampaignCriterionsRequest.java | 97 + .../DeleteCampaignCriterionsResponse.java | 64 + .../DeleteCampaignsRequest.java | 92 + .../DeleteCampaignsResponse.java | 64 + .../DeleteKeywordsRequest.java | 92 + .../DeleteKeywordsResponse.java | 64 + .../DeleteListItemsFromSharedListRequest.java | 92 + ...DeleteListItemsFromSharedListResponse.java | 64 + .../DeleteMediaRequest.java | 92 + .../DeleteMediaResponse.java | 64 + ...teNegativeKeywordsFromEntitiesRequest.java | 64 + ...eNegativeKeywordsFromEntitiesResponse.java | 64 + .../DeleteSharedEntitiesRequest.java | 64 + .../DeleteSharedEntitiesResponse.java | 64 + ...DeleteSharedEntityAssociationsRequest.java | 64 + ...eleteSharedEntityAssociationsResponse.java | 64 + .../DeleteSitePlacementsRequest.java | 92 + .../DeleteSitePlacementsResponse.java | 34 + .../DeleteTargetFromAdGroupRequest.java | 64 + .../DeleteTargetFromAdGroupResponse.java | 34 + .../DeleteTargetFromCampaignRequest.java | 64 + .../DeleteTargetFromCampaignResponse.java | 34 + .../DeleteTargetsFromLibraryRequest.java | 64 + .../DeleteTargetsFromLibraryResponse.java | 34 + .../campaignmanagement/DeviceOSTarget.java | 62 + .../campaignmanagement/DeviceOSTargetBid.java | 110 + .../v10/campaignmanagement/Dimension.java | 90 + .../v10/campaignmanagement/DistanceUnit.java | 51 + .../v10/campaignmanagement/Duration.java | 60 + .../v10/campaignmanagement/ENTITIES.java | 70 + .../v10/campaignmanagement/ENTITY.java | 59 + .../EditorialApiFaultDetail.java | 120 + .../EditorialApiFaultDetail_Exception.java | 54 + .../campaignmanagement/EditorialError.java | 176 + .../campaignmanagement/EditorialReason.java | 146 + .../EditorialReasonCollection.java | 148 + .../EntityIdToParentIdAssociation.java | 90 + .../EntityNegativeKeyword.java | 110 + .../v10/campaignmanagement/EntityType.java | 66 + .../v10/campaignmanagement/FixedBid.java | 64 + .../v10/campaignmanagement/GenderTarget.java | 62 + .../campaignmanagement/GenderTargetBid.java | 84 + .../v10/campaignmanagement/GenderType.java | 51 + .../v10/campaignmanagement/GeoPoint.java | 74 + .../GetAdExtensionIdsByAccountIdRequest.java | 126 + .../GetAdExtensionIdsByAccountIdResponse.java | 64 + .../GetAdExtensionsAssociationsRequest.java | 154 + .../GetAdExtensionsAssociationsResponse.java | 92 + .../GetAdExtensionsByIdsRequest.java | 125 + .../GetAdExtensionsByIdsResponse.java | 64 + ...etAdExtensionsEditorialReasonsRequest.java | 122 + ...tAdExtensionsEditorialReasonsResponse.java | 64 + .../GetAdGroupCriterionsByIdsRequest.java | 153 + .../GetAdGroupCriterionsByIdsResponse.java | 64 + .../GetAdGroupsByCampaignIdRequest.java | 64 + .../GetAdGroupsByCampaignIdResponse.java | 64 + .../GetAdGroupsByIdsRequest.java | 92 + .../GetAdGroupsByIdsResponse.java | 92 + .../GetAdsByAdGroupIdRequest.java | 64 + .../GetAdsByAdGroupIdResponse.java | 64 + .../GetAdsByEditorialStatusRequest.java | 94 + .../GetAdsByEditorialStatusResponse.java | 64 + .../GetAdsByIdsRequest.java | 92 + .../GetAdsByIdsResponse.java | 92 + .../GetBMCStoresByCustomerIdRequest.java | 34 + .../GetBMCStoresByCustomerIdResponse.java | 64 + .../GetCampaignCriterionsByIdsRequest.java | 125 + .../GetCampaignCriterionsByIdsResponse.java | 92 + .../GetCampaignSizesByAccountIdRequest.java | 92 + .../GetCampaignSizesByAccountIdResponse.java | 64 + .../GetCampaignsByAccountIdRequest.java | 97 + .../GetCampaignsByAccountIdResponse.java | 64 + .../GetCampaignsByIdsRequest.java | 125 + .../GetCampaignsByIdsResponse.java | 92 + .../GetEditorialReasonsByIdsRequest.java | 122 + .../GetEditorialReasonsByIdsResponse.java | 92 + .../GetKeywordsByAdGroupIdRequest.java | 64 + .../GetKeywordsByAdGroupIdResponse.java | 64 + .../GetKeywordsByEditorialStatusRequest.java | 94 + .../GetKeywordsByEditorialStatusResponse.java | 64 + .../GetKeywordsByIdsRequest.java | 92 + .../GetKeywordsByIdsResponse.java | 92 + .../GetListItemsBySharedListRequest.java | 64 + .../GetListItemsBySharedListResponse.java | 64 + .../GetMediaAssociationsRequest.java | 97 + .../GetMediaAssociationsResponse.java | 92 + .../GetMediaByIdsRequest.java | 92 + .../GetMediaByIdsResponse.java | 64 + .../GetMediaMetaDataByAccountIdRequest.java | 69 + .../GetMediaMetaDataByAccountIdResponse.java | 64 + .../GetMediaMetaDataByIdsRequest.java | 64 + .../GetMediaMetaDataByIdsResponse.java | 92 + ...GetNegativeKeywordsByEntityIdsRequest.java | 120 + ...etNegativeKeywordsByEntityIdsResponse.java | 92 + .../GetNegativeSitesByAdGroupIdsRequest.java | 92 + .../GetNegativeSitesByAdGroupIdsResponse.java | 92 + .../GetNegativeSitesByCampaignIdsRequest.java | 92 + ...GetNegativeSitesByCampaignIdsResponse.java | 92 + .../GetPlacementDetailsForUrlsRequest.java | 64 + .../GetPlacementDetailsForUrlsResponse.java | 64 + .../GetSharedEntitiesByAccountIdRequest.java | 64 + .../GetSharedEntitiesByAccountIdResponse.java | 64 + ...dEntityAssociationsByEntityIdsRequest.java | 120 + ...EntityAssociationsByEntityIdsResponse.java | 92 + ...yAssociationsBySharedEntityIdsRequest.java | 120 + ...AssociationsBySharedEntityIdsResponse.java | 92 + .../GetSitePlacementsByAdGroupIdRequest.java | 64 + .../GetSitePlacementsByAdGroupIdResponse.java | 64 + .../GetSitePlacementsByIdsRequest.java | 92 + .../GetSitePlacementsByIdsResponse.java | 64 + .../GetTargetsByAdGroupIdsRequest.java | 64 + .../GetTargetsByAdGroupIdsResponse.java | 92 + .../GetTargetsByCampaignIdsRequest.java | 64 + .../GetTargetsByCampaignIdsResponse.java | 92 + .../GetTargetsByIdsRequest.java | 64 + .../GetTargetsByIdsResponse.java | 64 + .../GetTargetsInfoFromLibraryRequest.java | 34 + .../GetTargetsInfoFromLibraryResponse.java | 64 + .../bingads/v10/campaignmanagement/Guid.java | 58 + .../ICampaignManagementService.java | 3514 +++++++++++ .../v10/campaignmanagement/IDREFS.java | 72 + .../v10/campaignmanagement/IdCollection.java | 62 + .../bingads/v10/campaignmanagement/Image.java | 64 + .../campaignmanagement/ImageAdExtension.java | 288 + .../ImageMediaRepresentation.java | 92 + .../ImpressionsPerDayRange.java | 90 + .../v10/campaignmanagement/IntentOption.java | 54 + .../v10/campaignmanagement/ItemAction.java | 54 + .../KeyValuePairOfstringstring.java | 90 + .../v10/campaignmanagement/Keyword.java | 486 ++ .../KeywordEditorialStatus.java | 57 + .../v10/campaignmanagement/KeywordStatus.java | 57 + .../v10/campaignmanagement/Language.java | 63 + .../LocationAdExtension.java | 234 + .../campaignmanagement/LocationTarget.java | 232 + .../v10/campaignmanagement/MatchType.java | 57 + .../bingads/v10/campaignmanagement/Media.java | 122 + .../campaignmanagement/MediaAssociation.java | 123 + .../MediaEnabledEntityFilter.java | 28 + .../MediaEnabledEntityFilterConverter.java | 34 + .../v10/campaignmanagement/MediaMetaData.java | 138 + .../MediaRepresentation.java | 122 + .../v10/campaignmanagement/MediaType.java | 90 + .../campaignmanagement/MetroAreaTarget.java | 62 + .../MetroAreaTargetBid.java | 102 + .../campaignmanagement/MigrationStatus.java | 57 + .../MigrationStatusInfo.java | 124 + .../v10/campaignmanagement/Minute.java | 57 + .../v10/campaignmanagement/NCName.java | 60 + .../v10/campaignmanagement/NMTOKEN.java | 63 + .../v10/campaignmanagement/NMTOKENS.java | 70 + .../bingads/v10/campaignmanagement/Name.java | 63 + .../NegativeAdGroupCriterion.java | 34 + .../NegativeCampaignCriterion.java | 34 + .../campaignmanagement/NegativeInteger.java | 60 + .../campaignmanagement/NegativeKeyword.java | 122 + .../NegativeKeywordList.java | 34 + .../v10/campaignmanagement/Network.java | 54 + .../NonNegativeInteger.java | 61 + .../NonPositiveInteger.java | 61 + .../v10/campaignmanagement/ObjectFactory.java | 5200 +++++++++++++++++ .../campaignmanagement/OperationError.java | 146 + .../campaignmanagement/PlacementDetail.java | 146 + .../campaignmanagement/PositiveInteger.java | 60 + .../campaignmanagement/PostalCodeTarget.java | 62 + .../PostalCodeTargetBid.java | 102 + .../v10/campaignmanagement/PricingModel.java | 51 + .../v10/campaignmanagement/ProductAd.java | 64 + .../campaignmanagement/ProductCondition.java | 90 + .../campaignmanagement/ProductPartition.java | 122 + .../ProductPartitionType.java | 51 + .../v10/campaignmanagement/ProductScope.java | 64 + .../v10/campaignmanagement/RadiusTarget.java | 62 + .../campaignmanagement/RadiusTargetBid.java | 220 + .../SetAdExtensionsAssociationsRequest.java | 122 + .../SetAdExtensionsAssociationsResponse.java | 64 + .../SetNegativeSitesToAdGroupsRequest.java | 92 + .../SetNegativeSitesToAdGroupsResponse.java | 64 + .../SetNegativeSitesToCampaignsRequest.java | 92 + .../SetNegativeSitesToCampaignsResponse.java | 64 + .../SetSharedEntityAssociationsRequest.java | 64 + .../SetSharedEntityAssociationsResponse.java | 64 + .../SetTargetToAdGroupRequest.java | 120 + .../SetTargetToAdGroupResponse.java | 34 + .../SetTargetToCampaignRequest.java | 120 + .../SetTargetToCampaignResponse.java | 34 + .../v10/campaignmanagement/Setting.java | 66 + .../v10/campaignmanagement/SharedEntity.java | 178 + .../SharedEntityAssociation.java | 130 + .../v10/campaignmanagement/SharedList.java | 68 + .../campaignmanagement/SharedListItem.java | 94 + .../campaignmanagement/ShoppingSetting.java | 120 + .../v10/campaignmanagement/SiteLink.java | 314 + .../SiteLinksAdExtension.java | 64 + .../v10/campaignmanagement/SitePlacement.java | 176 + .../SitePlacementStatus.java | 57 + .../v10/campaignmanagement/StateTarget.java | 62 + .../campaignmanagement/StateTargetBid.java | 102 + .../v10/campaignmanagement/Target.java | 286 + .../v10/campaignmanagement/TargetInfo.java | 90 + .../v10/campaignmanagement/TextAd.java | 148 + .../v10/campaignmanagement/UnsignedLong.java | 60 + .../UpdateAdExtensionsRequest.java | 92 + .../UpdateAdExtensionsResponse.java | 34 + .../UpdateAdGroupCriterionsRequest.java | 125 + .../UpdateAdGroupCriterionsResponse.java | 64 + .../UpdateAdGroupsRequest.java | 120 + .../UpdateAdGroupsResponse.java | 64 + .../campaignmanagement/UpdateAdsRequest.java | 92 + .../campaignmanagement/UpdateAdsResponse.java | 64 + .../UpdateCampaignCriterionsRequest.java | 97 + .../UpdateCampaignCriterionsResponse.java | 64 + .../UpdateCampaignsRequest.java | 92 + .../UpdateCampaignsResponse.java | 64 + .../UpdateKeywordsRequest.java | 92 + .../UpdateKeywordsResponse.java | 64 + .../UpdateSharedEntitiesRequest.java | 64 + .../UpdateSharedEntitiesResponse.java | 64 + .../UpdateSitePlacementsRequest.java | 92 + .../UpdateSitePlacementsResponse.java | 34 + .../UpdateTargetsInLibraryRequest.java | 64 + .../UpdateTargetsInLibraryResponse.java | 34 + .../v10/campaignmanagement/package-info.java | 2 + proxies/generateAllServiceProxies.bat | 6 + proxies/jaxb-bindings-reporting.xml | 28 +- proxies/jaxb-bindings-v10.adinsight.xml | 11 + proxies/jaxb-bindings-v10.bulk.xml | 11 + .../jaxb-bindings-v10.campaignmanagement.xml | 23 + proxies/jaxws-bindings-v10.adinsight.xml | 11 + proxies/jaxws-bindings-v10.bulk.xml | 11 + .../jaxws-bindings-v10.campaignmanagement.xml | 14 + 631 files changed, 66974 insertions(+), 162 deletions(-) create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdApiError.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail_Exception.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscape.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeInput.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AdPosition.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Adapter1.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Adapter2.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Adapter3.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail_Exception.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ApplicationFault.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdApiError.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscape.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscapeInput.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBatchError.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidLandscapePoint.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidOpportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBroadMatchSearchQueryKPI.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetOpportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetPoint.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedBidAndTraffic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedPositionAndTraffic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfHistoricalSearchCountPeriodic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndConfidence.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndMatchType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordBidLandscape.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategory.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategoryResult.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographicResult.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedBid.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedPosition.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordHistoricalPerformance.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedBid.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedPosition.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordKPI.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocation.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocationResult.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordOpportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSearchCount.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSuggestion.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfMatchType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOperationError.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfSearchCountsByAttributes.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOflong.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfstring.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BatchError.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BidLandscapePoint.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BidOpportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BidOpportunityType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BidOpportunityTypeConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BroadMatchKeywordOpportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BroadMatchSearchQueryKPI.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BudgetLimitType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BudgetOpportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BudgetPoint.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/BudgetPointType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Char.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Currency.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/DayMonthAndYear.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Duration.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ENTITIES.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ENTITY.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/EstimatedBidAndTraffic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/EstimatedPositionAndTraffic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBudgetOpportunitiesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetBudgetOpportunitiesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Guid.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/HistoricalSearchCountPeriodic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/IDREFS.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordAndConfidence.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordAndMatchType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordBidLandscape.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordCategory.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordCategoryResult.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographic.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographicResult.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedBid.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedPosition.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordHistoricalPerformance.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedBid.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedPosition.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordKPI.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordLocation.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordLocationResult.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunityType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunityTypeConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordSearchCount.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/KeywordSuggestion.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Language.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/MatchType.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/NCName.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/NMTOKEN.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/NMTOKENS.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Name.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/NegativeInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/NonNegativeInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/NonPositiveInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/OperationError.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Opportunity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/PositiveInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ProbeRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ProbeResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/SearchCountsByAttributes.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/TargetAdPosition.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/TimeInterval.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/UnsignedLong.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/package-info.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/AdApiError.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail_Exception.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Adapter1.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Adapter2.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Adapter3.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail_Exception.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ApplicationFault.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ArrayOfAdApiError.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ArrayOfBatchError.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ArrayOfCampaignScope.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ArrayOfKeyValuePairOfstringstring.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ArrayOfOperationError.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ArrayOflong.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/BatchError.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/BulkDownloadEntity.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/BulkDownloadEntityConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/BulkService.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/CampaignScope.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Char.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/CompressionType.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/DataScope.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/DataScopeConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Date.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/DownloadFileType.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Duration.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ENTITIES.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ENTITY.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/EditorialError.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadUrlRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadUrlResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Guid.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/IBulkService.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/IDREFS.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/KeyValuePairOfstringstring.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Language.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/NCName.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/NMTOKEN.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/NMTOKENS.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/Name.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/NegativeInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/NonNegativeInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/NonPositiveInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ObjectFactory.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/OperationError.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/PerformanceStatsDateRange.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/PositiveInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ReportTimePeriod.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/ResponseMode.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/UnsignedLong.java create mode 100644 proxies/com/microsoft/bingads/v10/bulk/package-info.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AccountMigrationStatusesInfo.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Ad.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail_Exception.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdDistribution.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdDistributionConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdEditorialStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociationCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReason.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReasonCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdToEntityIdAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdentity.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionsTypeFilter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionsTypeFilterConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroup.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionAction.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionEditorialStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupNegativeSites.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotationType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter1.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter2.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter3.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter4.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter5.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter6.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter7.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignCriterionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignCriterionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddKeywordsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddKeywordsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddListItemsToSharedListRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddListItemsToSharedListResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddMediaRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddMediaResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Address.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AgeRange.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail_Exception.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AppAdExtension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AppUrl.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AppealStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ApplicationFault.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAccountMigrationStatusesInfo.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAd.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdApiError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociationCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReason.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReasonCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdToEntityIdAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdentity.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroup.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterionAction.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupNegativeSites.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAgeTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAppUrl.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfMediaAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfPlacementDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBMCStore.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchErrorCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaign.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignCriterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignNegativeSites.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignSize.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCityTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCountryTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCustomParameter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDayTimeTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDeviceOSTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDimension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReason.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReasonCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityIdToParentIdAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityNegativeKeyword.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfGenderTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfIdCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyValuePairOfstringstring.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyword.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMedia.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaMetaData.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaRepresentation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMetroAreaTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMigrationStatusInfo.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNegativeKeyword.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNullableOflong.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfOperationError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPlacementDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPostalCodeTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfProductCondition.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfRadiusTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSetting.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntity.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntityAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedListItem.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSiteLink.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSitePlacement.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfStateTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTargetInfo.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOflong.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfstring.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/AssociationType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/BMCStore.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/BatchError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/BatchErrorCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Bid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/BiddableAdGroupCriterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/BiddingModel.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/BudgetLimitType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/BusinessGeoCodeStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CallAdExtension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Campaign.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterionType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterionTypeConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignManagementService.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignNegativeSites.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignSize.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignTypeConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Char.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CityTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CityTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Criterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionTypeConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CustomParameter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/CustomParameters.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Date.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Day.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignCriterionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignCriterionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteKeywordsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteKeywordsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteListItemsFromSharedListRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteListItemsFromSharedListResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteMediaRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteMediaResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntityAssociationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntityAssociationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSitePlacementsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSitePlacementsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromCampaignRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromCampaignResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Dimension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/DistanceUnit.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Duration.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITIES.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITY.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail_Exception.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReason.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReasonCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EntityIdToParentIdAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EntityNegativeKeyword.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/EntityType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/FixedBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GenderType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GeoPoint.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByCampaignIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByCampaignIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByAdGroupIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByAdGroupIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetBMCStoresByCustomerIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetBMCStoresByCustomerIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignSizesByAccountIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignSizesByAccountIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetEditorialReasonsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetEditorialReasonsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByAdGroupIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByAdGroupIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetListItemsBySharedListRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetListItemsBySharedListResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByCampaignIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByCampaignIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetPlacementDetailsForUrlsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetPlacementDetailsForUrlsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByAdGroupIdRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByAdGroupIdResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Guid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/IDREFS.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/IdCollection.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Image.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ImageAdExtension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ImageMediaRepresentation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ImpressionsPerDayRange.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/IntentOption.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ItemAction.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/KeyValuePairOfstringstring.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Keyword.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordEditorialStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Language.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/LocationAdExtension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/LocationTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MatchType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Media.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MediaAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MediaEnabledEntityFilter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MediaEnabledEntityFilterConverter.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MediaMetaData.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MediaRepresentation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MediaType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatusInfo.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Minute.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NCName.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKEN.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKENS.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Name.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeAdGroupCriterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeCampaignCriterion.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeyword.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeywordList.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Network.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NonNegativeInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/NonPositiveInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/OperationError.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/PlacementDetail.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/PositiveInteger.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/PricingModel.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ProductAd.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ProductCondition.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartition.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartitionType.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ProductScope.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToAdGroupsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToAdGroupsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToCampaignsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToCampaignsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetSharedEntityAssociationsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetSharedEntityAssociationsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToAdGroupRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToAdGroupResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Setting.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntity.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntityAssociation.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SharedList.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SharedListItem.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/ShoppingSetting.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLink.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLinksAdExtension.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacement.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacementStatus.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/StateTarget.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/StateTargetBid.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/Target.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/TargetInfo.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/TextAd.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UnsignedLong.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignCriterionsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignCriterionsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateKeywordsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateKeywordsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSharedEntitiesRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSharedEntitiesResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSitePlacementsRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSitePlacementsResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/package-info.java create mode 100644 proxies/jaxb-bindings-v10.adinsight.xml create mode 100644 proxies/jaxb-bindings-v10.bulk.xml create mode 100644 proxies/jaxb-bindings-v10.campaignmanagement.xml create mode 100644 proxies/jaxws-bindings-v10.adinsight.xml create mode 100644 proxies/jaxws-bindings-v10.bulk.xml create mode 100644 proxies/jaxws-bindings-v10.campaignmanagement.xml diff --git a/proxies/com/microsoft/bingads/reporting/AdGroupPerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/AdGroupPerformanceReportColumn.java index 093b79ab3c..6acddc667c 100644 --- a/proxies/com/microsoft/bingads/reporting/AdGroupPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/AdGroupPerformanceReportColumn.java @@ -80,6 +80,8 @@ * <enumeration value="TotalVisits"/> * <enumeration value="AveragePagesPerVisit"/> * <enumeration value="AverageDurationPerVisit"/> + * <enumeration value="TrackingTemplate"/> + * <enumeration value="CustomParameters"/> * </restriction> * </simpleType> * @@ -220,7 +222,11 @@ public enum AdGroupPerformanceReportColumn { @XmlEnumValue("AveragePagesPerVisit") AVERAGE_PAGES_PER_VISIT("AveragePagesPerVisit"), @XmlEnumValue("AverageDurationPerVisit") - AVERAGE_DURATION_PER_VISIT("AverageDurationPerVisit"); + AVERAGE_DURATION_PER_VISIT("AverageDurationPerVisit"), + @XmlEnumValue("TrackingTemplate") + TRACKING_TEMPLATE("TrackingTemplate"), + @XmlEnumValue("CustomParameters") + CUSTOM_PARAMETERS("CustomParameters"); private final String value; AdGroupPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/AdPerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/AdPerformanceReportColumn.java index b593b57f11..20bdbf7927 100644 --- a/proxies/com/microsoft/bingads/reporting/AdPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/AdPerformanceReportColumn.java @@ -60,6 +60,11 @@ * <enumeration value="CostPerAssist"/> * <enumeration value="RevenuePerConversion"/> * <enumeration value="RevenuePerAssist"/> + * <enumeration value="TrackingTemplate"/> + * <enumeration value="CustomParameters"/> + * <enumeration value="FinalURL"/> + * <enumeration value="FinalMobileURL"/> + * <enumeration value="FinalAppURL"/> * </restriction> * </simpleType> * @@ -160,7 +165,17 @@ public enum AdPerformanceReportColumn { @XmlEnumValue("RevenuePerConversion") REVENUE_PER_CONVERSION("RevenuePerConversion"), @XmlEnumValue("RevenuePerAssist") - REVENUE_PER_ASSIST("RevenuePerAssist"); + REVENUE_PER_ASSIST("RevenuePerAssist"), + @XmlEnumValue("TrackingTemplate") + TRACKING_TEMPLATE("TrackingTemplate"), + @XmlEnumValue("CustomParameters") + CUSTOM_PARAMETERS("CustomParameters"), + @XmlEnumValue("FinalURL") + FINAL_URL("FinalURL"), + @XmlEnumValue("FinalMobileURL") + FINAL_MOBILE_URL("FinalMobileURL"), + @XmlEnumValue("FinalAppURL") + FINAL_APP_URL("FinalAppURL"); private final String value; AdPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/CampaignPerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/CampaignPerformanceReportColumn.java index 4ba73debf9..1b754c51b2 100644 --- a/proxies/com/microsoft/bingads/reporting/CampaignPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/CampaignPerformanceReportColumn.java @@ -78,6 +78,8 @@ * <enumeration value="TotalVisits"/> * <enumeration value="AveragePagesPerVisit"/> * <enumeration value="AverageDurationPerVisit"/> + * <enumeration value="TrackingTemplate"/> + * <enumeration value="CustomParameters"/> * </restriction> * </simpleType> * @@ -214,7 +216,11 @@ public enum CampaignPerformanceReportColumn { @XmlEnumValue("AveragePagesPerVisit") AVERAGE_PAGES_PER_VISIT("AveragePagesPerVisit"), @XmlEnumValue("AverageDurationPerVisit") - AVERAGE_DURATION_PER_VISIT("AverageDurationPerVisit"); + AVERAGE_DURATION_PER_VISIT("AverageDurationPerVisit"), + @XmlEnumValue("TrackingTemplate") + TRACKING_TEMPLATE("TrackingTemplate"), + @XmlEnumValue("CustomParameters") + CUSTOM_PARAMETERS("CustomParameters"); private final String value; CampaignPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/DestinationUrlPerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/DestinationUrlPerformanceReportColumn.java index a2e7f6cdd7..4905f2e0db 100644 --- a/proxies/com/microsoft/bingads/reporting/DestinationUrlPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/DestinationUrlPerformanceReportColumn.java @@ -51,6 +51,11 @@ * <enumeration value="CostPerAssist"/> * <enumeration value="RevenuePerConversion"/> * <enumeration value="RevenuePerAssist"/> + * <enumeration value="TrackingTemplate"/> + * <enumeration value="CustomParameters"/> + * <enumeration value="FinalURL"/> + * <enumeration value="FinalMobileURL"/> + * <enumeration value="FinalAppURL"/> * </restriction> * </simpleType> * @@ -133,7 +138,17 @@ public enum DestinationUrlPerformanceReportColumn { @XmlEnumValue("RevenuePerConversion") REVENUE_PER_CONVERSION("RevenuePerConversion"), @XmlEnumValue("RevenuePerAssist") - REVENUE_PER_ASSIST("RevenuePerAssist"); + REVENUE_PER_ASSIST("RevenuePerAssist"), + @XmlEnumValue("TrackingTemplate") + TRACKING_TEMPLATE("TrackingTemplate"), + @XmlEnumValue("CustomParameters") + CUSTOM_PARAMETERS("CustomParameters"), + @XmlEnumValue("FinalURL") + FINAL_URL("FinalURL"), + @XmlEnumValue("FinalMobileURL") + FINAL_MOBILE_URL("FinalMobileURL"), + @XmlEnumValue("FinalAppURL") + FINAL_APP_URL("FinalAppURL"); private final String value; DestinationUrlPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/KeywordPerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/KeywordPerformanceReportColumn.java index 56dc1dd2cf..c3d2d14fd5 100644 --- a/proxies/com/microsoft/bingads/reporting/KeywordPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/KeywordPerformanceReportColumn.java @@ -77,6 +77,11 @@ * <enumeration value="TotalVisits"/> * <enumeration value="AveragePagesPerVisit"/> * <enumeration value="AverageDurationPerVisit"/> + * <enumeration value="TrackingTemplate"/> + * <enumeration value="CustomParameters"/> + * <enumeration value="FinalURL"/> + * <enumeration value="FinalMobileURL"/> + * <enumeration value="FinalAppURL"/> * </restriction> * </simpleType> * @@ -211,7 +216,17 @@ public enum KeywordPerformanceReportColumn { @XmlEnumValue("AveragePagesPerVisit") AVERAGE_PAGES_PER_VISIT("AveragePagesPerVisit"), @XmlEnumValue("AverageDurationPerVisit") - AVERAGE_DURATION_PER_VISIT("AverageDurationPerVisit"); + AVERAGE_DURATION_PER_VISIT("AverageDurationPerVisit"), + @XmlEnumValue("TrackingTemplate") + TRACKING_TEMPLATE("TrackingTemplate"), + @XmlEnumValue("CustomParameters") + CUSTOM_PARAMETERS("CustomParameters"), + @XmlEnumValue("FinalURL") + FINAL_URL("FinalURL"), + @XmlEnumValue("FinalMobileURL") + FINAL_MOBILE_URL("FinalMobileURL"), + @XmlEnumValue("FinalAppURL") + FINAL_APP_URL("FinalAppURL"); private final String value; KeywordPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/ObjectFactory.java b/proxies/com/microsoft/bingads/reporting/ObjectFactory.java index b18b41c588..84dd837c3b 100644 --- a/proxies/com/microsoft/bingads/reporting/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/reporting/ObjectFactory.java @@ -59,8 +59,8 @@ public class ObjectFactory { private final static QName _ArrayOfAdPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdPerformanceReportColumn"); private final static QName _AdDynamicTextPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdDynamicTextPerformanceReportFilter"); private final static QName _AdExtensionByKeywordReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionByKeywordReportColumn"); - private final static QName _ArrayOfAgeGenderDemographicReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAgeGenderDemographicReportColumn"); private final static QName _AccountPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountPerformanceReportFilter"); + private final static QName _ArrayOfAgeGenderDemographicReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAgeGenderDemographicReportColumn"); private final static QName _ArrayOfDestinationUrlPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfDestinationUrlPerformanceReportColumn"); private final static QName _ProductPartitionPerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductPartitionPerformanceReportRequest"); private final static QName _CustomerAccountId_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "CustomerAccountId"); @@ -74,8 +74,8 @@ public class ObjectFactory { private final static QName _AdExtensionDetailReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionDetailReportColumn"); private final static QName _UserName_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "UserName"); private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); - private final static QName _AdExtensionByAdReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionByAdReportFilter"); private final static QName _ProductTargetPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductTargetPerformanceReportFilter"); + private final static QName _AdExtensionByAdReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionByAdReportFilter"); private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); private final static QName _GoalsAndFunnelsReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "GoalsAndFunnelsReportFilter"); private final static QName _BudgetSummaryReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BudgetSummaryReportRequest"); @@ -107,11 +107,11 @@ public class ObjectFactory { private final static QName _TrackingId_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "TrackingId"); private final static QName _ArrayOfProductTargetPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfProductTargetPerformanceReportColumn"); private final static QName _DeviceOSReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "DeviceOSReportFilter"); - private final static QName _SearchCampaignChangeHistoryReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "SearchCampaignChangeHistoryReportFilter"); private final static QName _AdExtensionDetailReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionDetailReportRequest"); + private final static QName _SearchCampaignChangeHistoryReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "SearchCampaignChangeHistoryReportFilter"); private final static QName _AccountReportScope_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountReportScope"); - private final static QName _ShareOfVoiceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ShareOfVoiceReportColumn"); private final static QName _ProductOfferPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductOfferPerformanceReportFilter"); + private final static QName _ShareOfVoiceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ShareOfVoiceReportColumn"); private final static QName _ReportRequestStatus_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ReportRequestStatus"); private final static QName _AdStatusReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdStatusReportFilter"); private final static QName _ArrayOfAdExtensionByKeywordReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdExtensionByKeywordReportColumn"); @@ -135,14 +135,14 @@ public class ObjectFactory { private final static QName _ArrayOfTrafficSourcesReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfTrafficSourcesReportColumn"); private final static QName _AdPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdPerformanceReportFilter"); private final static QName _ProductDimensionPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductDimensionPerformanceReportColumn"); - private final static QName _TrafficSourcesReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "TrafficSourcesReportFilter"); private final static QName _GeoLocationPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "GeoLocationPerformanceReportColumn"); + private final static QName _TrafficSourcesReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "TrafficSourcesReportFilter"); private final static QName _ProductOfferPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductOfferPerformanceReportColumn"); private final static QName _BudgetSummaryReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BudgetSummaryReportColumn"); private final static QName _RichAdSubTypeFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "RichAdSubTypeFilter"); private final static QName _ArrayOfAdApiError_QNAME = new QName("https://adapi.microsoft.com", "ArrayOfAdApiError"); - private final static QName _PublisherUsagePerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "PublisherUsagePerformanceReportRequest"); private final static QName _AccountPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountPerformanceReportColumn"); + private final static QName _PublisherUsagePerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "PublisherUsagePerformanceReportRequest"); private final static QName _ApplicationToken_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ApplicationToken"); private final static QName _CallDetailReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "CallDetailReportRequest"); private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); @@ -170,8 +170,8 @@ public class ObjectFactory { private final static QName _AdApiError_QNAME = new QName("https://adapi.microsoft.com", "AdApiError"); private final static QName _AdGroupStatusReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdGroupStatusReportFilter"); private final static QName _ArrayOfBatchError_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfBatchError"); - private final static QName _AdDynamicTextPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdDynamicTextPerformanceReportColumn"); private final static QName _ArrayOfAdGroupReportScope_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdGroupReportScope"); + private final static QName _AdDynamicTextPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdDynamicTextPerformanceReportColumn"); private final static QName _SortOrder_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "SortOrder"); private final static QName _AdPerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdPerformanceReportRequest"); private final static QName _ArrayOfNegativeKeywordConflictReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfNegativeKeywordConflictReportColumn"); @@ -190,8 +190,8 @@ public class ObjectFactory { private final static QName _AdGroupPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdGroupPerformanceReportColumn"); private final static QName _ArrayOfSearchQueryPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfSearchQueryPerformanceReportColumn"); private final static QName _ConversionPerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ConversionPerformanceReportRequest"); - private final static QName _NegativeKeywordConflictReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "NegativeKeywordConflictReportRequest"); private final static QName _ArrayOfGoalsAndFunnelsReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfGoalsAndFunnelsReportColumn"); + private final static QName _NegativeKeywordConflictReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "NegativeKeywordConflictReportRequest"); private final static QName _ProductTargetPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductTargetPerformanceReportColumn"); private final static QName _GeoLocationPerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "GeoLocationPerformanceReportRequest"); private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); @@ -225,8 +225,8 @@ public class ObjectFactory { private final static QName _ApplicationFault_QNAME = new QName("https://adapi.microsoft.com", "ApplicationFault"); private final static QName _PublisherUsagePerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "PublisherUsagePerformanceReportFilter"); private final static QName _AccountThroughAdGroupReportScope_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountThroughAdGroupReportScope"); - private final static QName _ArrayOfAdGroupPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdGroupPerformanceReportColumn"); private final static QName _BrandZonePerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BrandZonePerformanceReportFilter"); + private final static QName _ArrayOfAdGroupPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdGroupPerformanceReportColumn"); private final static QName _ShareOfVoiceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ShareOfVoiceReportFilter"); private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); @@ -432,19 +432,19 @@ public ConversionPerformanceReportRequest createConversionPerformanceReportReque } /** - * Create an instance of {@link NegativeKeywordConflictReportRequest } + * Create an instance of {@link ArrayOfGoalsAndFunnelsReportColumn } * */ - public NegativeKeywordConflictReportRequest createNegativeKeywordConflictReportRequest() { - return new NegativeKeywordConflictReportRequest(); + public ArrayOfGoalsAndFunnelsReportColumn createArrayOfGoalsAndFunnelsReportColumn() { + return new ArrayOfGoalsAndFunnelsReportColumn(); } /** - * Create an instance of {@link ArrayOfGoalsAndFunnelsReportColumn } + * Create an instance of {@link NegativeKeywordConflictReportRequest } * */ - public ArrayOfGoalsAndFunnelsReportColumn createArrayOfGoalsAndFunnelsReportColumn() { - return new ArrayOfGoalsAndFunnelsReportColumn(); + public NegativeKeywordConflictReportRequest createNegativeKeywordConflictReportRequest() { + return new NegativeKeywordConflictReportRequest(); } /** @@ -528,19 +528,19 @@ public ArrayOfConversionPerformanceReportColumn createArrayOfConversionPerforman } /** - * Create an instance of {@link SearchCampaignChangeHistoryReportFilter } + * Create an instance of {@link AdExtensionDetailReportRequest } * */ - public SearchCampaignChangeHistoryReportFilter createSearchCampaignChangeHistoryReportFilter() { - return new SearchCampaignChangeHistoryReportFilter(); + public AdExtensionDetailReportRequest createAdExtensionDetailReportRequest() { + return new AdExtensionDetailReportRequest(); } /** - * Create an instance of {@link AdExtensionDetailReportRequest } + * Create an instance of {@link SearchCampaignChangeHistoryReportFilter } * */ - public AdExtensionDetailReportRequest createAdExtensionDetailReportRequest() { - return new AdExtensionDetailReportRequest(); + public SearchCampaignChangeHistoryReportFilter createSearchCampaignChangeHistoryReportFilter() { + return new SearchCampaignChangeHistoryReportFilter(); } /** @@ -704,19 +704,19 @@ public AccountThroughAdGroupReportScope createAccountThroughAdGroupReportScope() } /** - * Create an instance of {@link ArrayOfAdGroupPerformanceReportColumn } + * Create an instance of {@link BrandZonePerformanceReportFilter } * */ - public ArrayOfAdGroupPerformanceReportColumn createArrayOfAdGroupPerformanceReportColumn() { - return new ArrayOfAdGroupPerformanceReportColumn(); + public BrandZonePerformanceReportFilter createBrandZonePerformanceReportFilter() { + return new BrandZonePerformanceReportFilter(); } /** - * Create an instance of {@link BrandZonePerformanceReportFilter } + * Create an instance of {@link ArrayOfAdGroupPerformanceReportColumn } * */ - public BrandZonePerformanceReportFilter createBrandZonePerformanceReportFilter() { - return new BrandZonePerformanceReportFilter(); + public ArrayOfAdGroupPerformanceReportColumn createArrayOfAdGroupPerformanceReportColumn() { + return new ArrayOfAdGroupPerformanceReportColumn(); } /** @@ -808,19 +808,19 @@ public ArrayOfGeoLocationPerformanceReportColumn createArrayOfGeoLocationPerform } /** - * Create an instance of {@link AdExtensionDimensionReportRequest } + * Create an instance of {@link TrafficSourcesReportFilter } * */ - public AdExtensionDimensionReportRequest createAdExtensionDimensionReportRequest() { - return new AdExtensionDimensionReportRequest(); + public TrafficSourcesReportFilter createTrafficSourcesReportFilter() { + return new TrafficSourcesReportFilter(); } /** - * Create an instance of {@link TrafficSourcesReportFilter } + * Create an instance of {@link AdExtensionDimensionReportRequest } * */ - public TrafficSourcesReportFilter createTrafficSourcesReportFilter() { - return new TrafficSourcesReportFilter(); + public AdExtensionDimensionReportRequest createAdExtensionDimensionReportRequest() { + return new AdExtensionDimensionReportRequest(); } /** @@ -1040,19 +1040,19 @@ public AdDynamicTextPerformanceReportFilter createAdDynamicTextPerformanceReport } /** - * Create an instance of {@link ArrayOfAgeGenderDemographicReportColumn } + * Create an instance of {@link AccountPerformanceReportFilter } * */ - public ArrayOfAgeGenderDemographicReportColumn createArrayOfAgeGenderDemographicReportColumn() { - return new ArrayOfAgeGenderDemographicReportColumn(); + public AccountPerformanceReportFilter createAccountPerformanceReportFilter() { + return new AccountPerformanceReportFilter(); } /** - * Create an instance of {@link AccountPerformanceReportFilter } + * Create an instance of {@link ArrayOfAgeGenderDemographicReportColumn } * */ - public AccountPerformanceReportFilter createAccountPerformanceReportFilter() { - return new AccountPerformanceReportFilter(); + public ArrayOfAgeGenderDemographicReportColumn createArrayOfAgeGenderDemographicReportColumn() { + return new ArrayOfAgeGenderDemographicReportColumn(); } /** @@ -1080,19 +1080,19 @@ public ProductPartitionPerformanceReportRequest createProductPartitionPerformanc } /** - * Create an instance of {@link SearchQueryPerformanceReportRequest } + * Create an instance of {@link ProductTargetPerformanceReportRequest } * */ - public SearchQueryPerformanceReportRequest createSearchQueryPerformanceReportRequest() { - return new SearchQueryPerformanceReportRequest(); + public ProductTargetPerformanceReportRequest createProductTargetPerformanceReportRequest() { + return new ProductTargetPerformanceReportRequest(); } /** - * Create an instance of {@link ProductTargetPerformanceReportRequest } + * Create an instance of {@link SearchQueryPerformanceReportRequest } * */ - public ProductTargetPerformanceReportRequest createProductTargetPerformanceReportRequest() { - return new ProductTargetPerformanceReportRequest(); + public SearchQueryPerformanceReportRequest createSearchQueryPerformanceReportRequest() { + return new SearchQueryPerformanceReportRequest(); } /** @@ -1127,6 +1127,14 @@ public ArrayOfBatchError createArrayOfBatchError() { return new ArrayOfBatchError(); } + /** + * Create an instance of {@link ProductTargetPerformanceReportFilter } + * + */ + public ProductTargetPerformanceReportFilter createProductTargetPerformanceReportFilter() { + return new ProductTargetPerformanceReportFilter(); + } + /** * Create an instance of {@link ArrayOfAdGroupReportScope } * @@ -1143,14 +1151,6 @@ public AdExtensionByAdReportFilter createAdExtensionByAdReportFilter() { return new AdExtensionByAdReportFilter(); } - /** - * Create an instance of {@link ProductTargetPerformanceReportFilter } - * - */ - public ProductTargetPerformanceReportFilter createProductTargetPerformanceReportFilter() { - return new ProductTargetPerformanceReportFilter(); - } - /** * Create an instance of {@link GoalsAndFunnelsReportFilter } * @@ -1232,19 +1232,19 @@ public ArrayOfAdExtensionDimensionReportColumn createArrayOfAdExtensionDimension } /** - * Create an instance of {@link ArrayOfPublisherUsagePerformanceReportColumn } + * Create an instance of {@link ArrayOfAdExtensionDetailReportColumn } * */ - public ArrayOfPublisherUsagePerformanceReportColumn createArrayOfPublisherUsagePerformanceReportColumn() { - return new ArrayOfPublisherUsagePerformanceReportColumn(); + public ArrayOfAdExtensionDetailReportColumn createArrayOfAdExtensionDetailReportColumn() { + return new ArrayOfAdExtensionDetailReportColumn(); } /** - * Create an instance of {@link ArrayOfAdExtensionDetailReportColumn } + * Create an instance of {@link ArrayOfPublisherUsagePerformanceReportColumn } * */ - public ArrayOfAdExtensionDetailReportColumn createArrayOfAdExtensionDetailReportColumn() { - return new ArrayOfAdExtensionDetailReportColumn(); + public ArrayOfPublisherUsagePerformanceReportColumn createArrayOfPublisherUsagePerformanceReportColumn() { + return new ArrayOfPublisherUsagePerformanceReportColumn(); } /** @@ -1632,21 +1632,21 @@ public JAXBElement createAdExtensionByKeywordR } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAgeGenderDemographicReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAgeGenderDemographicReportColumn") - public JAXBElement createArrayOfAgeGenderDemographicReportColumn(ArrayOfAgeGenderDemographicReportColumn value) { - return new JAXBElement(_ArrayOfAgeGenderDemographicReportColumn_QNAME, ArrayOfAgeGenderDemographicReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportFilter") + public JAXBElement createAccountPerformanceReportFilter(AccountPerformanceReportFilter value) { + return new JAXBElement(_AccountPerformanceReportFilter_QNAME, AccountPerformanceReportFilter.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAgeGenderDemographicReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportFilter") - public JAXBElement createAccountPerformanceReportFilter(AccountPerformanceReportFilter value) { - return new JAXBElement(_AccountPerformanceReportFilter_QNAME, AccountPerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAgeGenderDemographicReportColumn") + public JAXBElement createArrayOfAgeGenderDemographicReportColumn(ArrayOfAgeGenderDemographicReportColumn value) { + return new JAXBElement(_ArrayOfAgeGenderDemographicReportColumn_QNAME, ArrayOfAgeGenderDemographicReportColumn.class, null, value); } /** @@ -1767,21 +1767,21 @@ public JAXBElement createGuid(Guid value) { } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionByAdReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ProductTargetPerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionByAdReportFilter") - public JAXBElement createAdExtensionByAdReportFilter(AdExtensionByAdReportFilter value) { - return new JAXBElement(_AdExtensionByAdReportFilter_QNAME, AdExtensionByAdReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductTargetPerformanceReportFilter") + public JAXBElement createProductTargetPerformanceReportFilter(ProductTargetPerformanceReportFilter value) { + return new JAXBElement(_ProductTargetPerformanceReportFilter_QNAME, ProductTargetPerformanceReportFilter.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ProductTargetPerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionByAdReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductTargetPerformanceReportFilter") - public JAXBElement createProductTargetPerformanceReportFilter(ProductTargetPerformanceReportFilter value) { - return new JAXBElement(_ProductTargetPerformanceReportFilter_QNAME, ProductTargetPerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionByAdReportFilter") + public JAXBElement createAdExtensionByAdReportFilter(AdExtensionByAdReportFilter value) { + return new JAXBElement(_AdExtensionByAdReportFilter_QNAME, AdExtensionByAdReportFilter.class, null, value); } /** @@ -2066,21 +2066,21 @@ public JAXBElement> createDeviceOSReportFilter( } /** - * Create an instance of {@link JAXBElement }{@code <}{@link SearchCampaignChangeHistoryReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionDetailReportRequest }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "SearchCampaignChangeHistoryReportFilter") - public JAXBElement createSearchCampaignChangeHistoryReportFilter(SearchCampaignChangeHistoryReportFilter value) { - return new JAXBElement(_SearchCampaignChangeHistoryReportFilter_QNAME, SearchCampaignChangeHistoryReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionDetailReportRequest") + public JAXBElement createAdExtensionDetailReportRequest(AdExtensionDetailReportRequest value) { + return new JAXBElement(_AdExtensionDetailReportRequest_QNAME, AdExtensionDetailReportRequest.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionDetailReportRequest }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link SearchCampaignChangeHistoryReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionDetailReportRequest") - public JAXBElement createAdExtensionDetailReportRequest(AdExtensionDetailReportRequest value) { - return new JAXBElement(_AdExtensionDetailReportRequest_QNAME, AdExtensionDetailReportRequest.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "SearchCampaignChangeHistoryReportFilter") + public JAXBElement createSearchCampaignChangeHistoryReportFilter(SearchCampaignChangeHistoryReportFilter value) { + return new JAXBElement(_SearchCampaignChangeHistoryReportFilter_QNAME, SearchCampaignChangeHistoryReportFilter.class, null, value); } /** @@ -2093,21 +2093,21 @@ public JAXBElement createAccountReportScope(AccountReportSco } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ShareOfVoiceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ProductOfferPerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ShareOfVoiceReportColumn") - public JAXBElement createShareOfVoiceReportColumn(ShareOfVoiceReportColumn value) { - return new JAXBElement(_ShareOfVoiceReportColumn_QNAME, ShareOfVoiceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductOfferPerformanceReportFilter") + public JAXBElement createProductOfferPerformanceReportFilter(ProductOfferPerformanceReportFilter value) { + return new JAXBElement(_ProductOfferPerformanceReportFilter_QNAME, ProductOfferPerformanceReportFilter.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ProductOfferPerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ShareOfVoiceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductOfferPerformanceReportFilter") - public JAXBElement createProductOfferPerformanceReportFilter(ProductOfferPerformanceReportFilter value) { - return new JAXBElement(_ProductOfferPerformanceReportFilter_QNAME, ProductOfferPerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ShareOfVoiceReportColumn") + public JAXBElement createShareOfVoiceReportColumn(ShareOfVoiceReportColumn value) { + return new JAXBElement(_ShareOfVoiceReportColumn_QNAME, ShareOfVoiceReportColumn.class, null, value); } /** @@ -2319,21 +2319,21 @@ public JAXBElement createProductDimensi } /** - * Create an instance of {@link JAXBElement }{@code <}{@link TrafficSourcesReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link GeoLocationPerformanceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "TrafficSourcesReportFilter") - public JAXBElement createTrafficSourcesReportFilter(TrafficSourcesReportFilter value) { - return new JAXBElement(_TrafficSourcesReportFilter_QNAME, TrafficSourcesReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "GeoLocationPerformanceReportColumn") + public JAXBElement createGeoLocationPerformanceReportColumn(GeoLocationPerformanceReportColumn value) { + return new JAXBElement(_GeoLocationPerformanceReportColumn_QNAME, GeoLocationPerformanceReportColumn.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link GeoLocationPerformanceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link TrafficSourcesReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "GeoLocationPerformanceReportColumn") - public JAXBElement createGeoLocationPerformanceReportColumn(GeoLocationPerformanceReportColumn value) { - return new JAXBElement(_GeoLocationPerformanceReportColumn_QNAME, GeoLocationPerformanceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "TrafficSourcesReportFilter") + public JAXBElement createTrafficSourcesReportFilter(TrafficSourcesReportFilter value) { + return new JAXBElement(_TrafficSourcesReportFilter_QNAME, TrafficSourcesReportFilter.class, null, value); } /** @@ -2374,21 +2374,21 @@ public JAXBElement createArrayOfAdApiError(ArrayOfAdApiError } /** - * Create an instance of {@link JAXBElement }{@code <}{@link PublisherUsagePerformanceReportRequest }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "PublisherUsagePerformanceReportRequest") - public JAXBElement createPublisherUsagePerformanceReportRequest(PublisherUsagePerformanceReportRequest value) { - return new JAXBElement(_PublisherUsagePerformanceReportRequest_QNAME, PublisherUsagePerformanceReportRequest.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportColumn") + public JAXBElement createAccountPerformanceReportColumn(AccountPerformanceReportColumn value) { + return new JAXBElement(_AccountPerformanceReportColumn_QNAME, AccountPerformanceReportColumn.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link PublisherUsagePerformanceReportRequest }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportColumn") - public JAXBElement createAccountPerformanceReportColumn(AccountPerformanceReportColumn value) { - return new JAXBElement(_AccountPerformanceReportColumn_QNAME, AccountPerformanceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "PublisherUsagePerformanceReportRequest") + public JAXBElement createPublisherUsagePerformanceReportRequest(PublisherUsagePerformanceReportRequest value) { + return new JAXBElement(_PublisherUsagePerformanceReportRequest_QNAME, PublisherUsagePerformanceReportRequest.class, null, value); } /** @@ -2638,21 +2638,21 @@ public JAXBElement createArrayOfBatchError(ArrayOfBatchError } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AdDynamicTextPerformanceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupReportScope }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdDynamicTextPerformanceReportColumn") - public JAXBElement createAdDynamicTextPerformanceReportColumn(AdDynamicTextPerformanceReportColumn value) { - return new JAXBElement(_AdDynamicTextPerformanceReportColumn_QNAME, AdDynamicTextPerformanceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAdGroupReportScope") + public JAXBElement createArrayOfAdGroupReportScope(ArrayOfAdGroupReportScope value) { + return new JAXBElement(_ArrayOfAdGroupReportScope_QNAME, ArrayOfAdGroupReportScope.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupReportScope }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AdDynamicTextPerformanceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAdGroupReportScope") - public JAXBElement createArrayOfAdGroupReportScope(ArrayOfAdGroupReportScope value) { - return new JAXBElement(_ArrayOfAdGroupReportScope_QNAME, ArrayOfAdGroupReportScope.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdDynamicTextPerformanceReportColumn") + public JAXBElement createAdDynamicTextPerformanceReportColumn(AdDynamicTextPerformanceReportColumn value) { + return new JAXBElement(_AdDynamicTextPerformanceReportColumn_QNAME, AdDynamicTextPerformanceReportColumn.class, null, value); } /** @@ -2818,21 +2818,21 @@ public JAXBElement createConversionPerforman } /** - * Create an instance of {@link JAXBElement }{@code <}{@link NegativeKeywordConflictReportRequest }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfGoalsAndFunnelsReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "NegativeKeywordConflictReportRequest") - public JAXBElement createNegativeKeywordConflictReportRequest(NegativeKeywordConflictReportRequest value) { - return new JAXBElement(_NegativeKeywordConflictReportRequest_QNAME, NegativeKeywordConflictReportRequest.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfGoalsAndFunnelsReportColumn") + public JAXBElement createArrayOfGoalsAndFunnelsReportColumn(ArrayOfGoalsAndFunnelsReportColumn value) { + return new JAXBElement(_ArrayOfGoalsAndFunnelsReportColumn_QNAME, ArrayOfGoalsAndFunnelsReportColumn.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfGoalsAndFunnelsReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link NegativeKeywordConflictReportRequest }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfGoalsAndFunnelsReportColumn") - public JAXBElement createArrayOfGoalsAndFunnelsReportColumn(ArrayOfGoalsAndFunnelsReportColumn value) { - return new JAXBElement(_ArrayOfGoalsAndFunnelsReportColumn_QNAME, ArrayOfGoalsAndFunnelsReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "NegativeKeywordConflictReportRequest") + public JAXBElement createNegativeKeywordConflictReportRequest(NegativeKeywordConflictReportRequest value) { + return new JAXBElement(_NegativeKeywordConflictReportRequest_QNAME, NegativeKeywordConflictReportRequest.class, null, value); } /** @@ -3140,21 +3140,21 @@ public JAXBElement createAccountThroughAdGroup } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupPerformanceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link BrandZonePerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAdGroupPerformanceReportColumn") - public JAXBElement createArrayOfAdGroupPerformanceReportColumn(ArrayOfAdGroupPerformanceReportColumn value) { - return new JAXBElement(_ArrayOfAdGroupPerformanceReportColumn_QNAME, ArrayOfAdGroupPerformanceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "BrandZonePerformanceReportFilter") + public JAXBElement createBrandZonePerformanceReportFilter(BrandZonePerformanceReportFilter value) { + return new JAXBElement(_BrandZonePerformanceReportFilter_QNAME, BrandZonePerformanceReportFilter.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link BrandZonePerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupPerformanceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "BrandZonePerformanceReportFilter") - public JAXBElement createBrandZonePerformanceReportFilter(BrandZonePerformanceReportFilter value) { - return new JAXBElement(_BrandZonePerformanceReportFilter_QNAME, BrandZonePerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAdGroupPerformanceReportColumn") + public JAXBElement createArrayOfAdGroupPerformanceReportColumn(ArrayOfAdGroupPerformanceReportColumn value) { + return new JAXBElement(_ArrayOfAdGroupPerformanceReportColumn_QNAME, ArrayOfAdGroupPerformanceReportColumn.class, null, value); } /** diff --git a/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java index 6343eb8be6..9981416593 100644 --- a/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java @@ -20,13 +20,11 @@ * <enumeration value="AdGroupName"/> * <enumeration value="AdGroupId"/> * <enumeration value="AdId"/> - * <enumeration value="AdStatus"/> * <enumeration value="CampaignName"/> * <enumeration value="CurrencyCode"/> * <enumeration value="DeviceType"/> * <enumeration value="Language"/> * <enumeration value="MerchantProductId"/> - * <enumeration value="SellerName"/> * <enumeration value="Title"/> * <enumeration value="Condition"/> * <enumeration value="Brand"/> @@ -50,7 +48,6 @@ * <enumeration value="Ctr"/> * <enumeration value="AverageCpc"/> * <enumeration value="Spend"/> - * <enumeration value="AverageCpm"/> * </restriction> * </simpleType> * @@ -72,8 +69,6 @@ public enum ProductDimensionPerformanceReportColumn { AD_GROUP_ID("AdGroupId"), @XmlEnumValue("AdId") AD_ID("AdId"), - @XmlEnumValue("AdStatus") - AD_STATUS("AdStatus"), @XmlEnumValue("CampaignName") CAMPAIGN_NAME("CampaignName"), @XmlEnumValue("CurrencyCode") @@ -84,8 +79,6 @@ public enum ProductDimensionPerformanceReportColumn { LANGUAGE("Language"), @XmlEnumValue("MerchantProductId") MERCHANT_PRODUCT_ID("MerchantProductId"), - @XmlEnumValue("SellerName") - SELLER_NAME("SellerName"), @XmlEnumValue("Title") TITLE("Title"), @XmlEnumValue("Condition") @@ -131,9 +124,7 @@ public enum ProductDimensionPerformanceReportColumn { @XmlEnumValue("AverageCpc") AVERAGE_CPC("AverageCpc"), @XmlEnumValue("Spend") - SPEND("Spend"), - @XmlEnumValue("AverageCpm") - AVERAGE_CPM("AverageCpm"); + SPEND("Spend"); private final String value; ProductDimensionPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/ReportRequest.java b/proxies/com/microsoft/bingads/reporting/ReportRequest.java index cfde0bbb30..0c7fa4bdc8 100644 --- a/proxies/com/microsoft/bingads/reporting/ReportRequest.java +++ b/proxies/com/microsoft/bingads/reporting/ReportRequest.java @@ -65,8 +65,8 @@ AgeGenderDemographicReportRequest.class, ProductDimensionPerformanceReportRequest.class, ProductPartitionPerformanceReportRequest.class, - SearchQueryPerformanceReportRequest.class, ProductTargetPerformanceReportRequest.class, + SearchQueryPerformanceReportRequest.class, BrandZonePerformanceReportRequest.class, AdPerformanceReportRequest.class, BudgetSummaryReportRequest.class, diff --git a/proxies/com/microsoft/bingads/reporting/SitePerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/SitePerformanceReportColumn.java index cfeb3bb4da..47baa3a88e 100644 --- a/proxies/com/microsoft/bingads/reporting/SitePerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/SitePerformanceReportColumn.java @@ -44,6 +44,11 @@ * <enumeration value="PricingModel"/> * <enumeration value="DeviceType"/> * <enumeration value="Language"/> + * <enumeration value="TrackingTemplate"/> + * <enumeration value="CustomParameters"/> + * <enumeration value="FinalURL"/> + * <enumeration value="FinalMobileURL"/> + * <enumeration value="FinalAppURL"/> * </restriction> * </simpleType> * @@ -112,7 +117,17 @@ public enum SitePerformanceReportColumn { @XmlEnumValue("DeviceType") DEVICE_TYPE("DeviceType"), @XmlEnumValue("Language") - LANGUAGE("Language"); + LANGUAGE("Language"), + @XmlEnumValue("TrackingTemplate") + TRACKING_TEMPLATE("TrackingTemplate"), + @XmlEnumValue("CustomParameters") + CUSTOM_PARAMETERS("CustomParameters"), + @XmlEnumValue("FinalURL") + FINAL_URL("FinalURL"), + @XmlEnumValue("FinalMobileURL") + FINAL_MOBILE_URL("FinalMobileURL"), + @XmlEnumValue("FinalAppURL") + FINAL_APP_URL("FinalAppURL"); private final String value; SitePerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdApiError.java b/proxies/com/microsoft/bingads/v10/adinsight/AdApiError.java new file mode 100644 index 0000000000..b8b37f1e9e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdApiError.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdApiError complex type. + * + *

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

+ * <complexType name="AdApiError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Detail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdApiError", namespace = "https://adapi.microsoft.com", propOrder = { + "code", + "detail", + "errorCode", + "message" +}) +public class AdApiError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Detail", nillable = true) + protected String detail; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "Message", nillable = true) + protected String message; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the detail property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetail() { + return detail; + } + + /** + * Sets the value of the detail property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetail(String value) { + this.detail = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail.java b/proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail.java new file mode 100644 index 0000000000..25c044d72c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdApiFaultDetail complex type. + * + *

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

+ * <complexType name="AdApiFaultDetail">
+ *   <complexContent>
+ *     <extension base="{https://adapi.microsoft.com}ApplicationFault">
+ *       <sequence>
+ *         <element name="Errors" type="{https://adapi.microsoft.com}ArrayOfAdApiError" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdApiFaultDetail", namespace = "https://adapi.microsoft.com", propOrder = { + "errors" +}) +public class AdApiFaultDetail + extends ApplicationFault +{ + + @XmlElement(name = "Errors", nillable = true) + protected ArrayOfAdApiError errors; + + /** + * Gets the value of the errors property. + * + * @return + * possible object is + * {@link ArrayOfAdApiError } + * + */ + public ArrayOfAdApiError getErrors() { + return errors; + } + + /** + * Sets the value of the errors property. + * + * @param value + * allowed object is + * {@link ArrayOfAdApiError } + * + */ + public void setErrors(ArrayOfAdApiError value) { + this.errors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail_Exception.java b/proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail_Exception.java new file mode 100644 index 0000000000..7daae00dbb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdApiFaultDetail_Exception.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebFault(name = "AdApiFaultDetail", targetNamespace = "https://adapi.microsoft.com") +public class AdApiFaultDetail_Exception + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private AdApiFaultDetail faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public AdApiFaultDetail_Exception(String message, AdApiFaultDetail faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public AdApiFaultDetail_Exception(String message, AdApiFaultDetail faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: com.microsoft.bingads.v10.adinsight.AdApiFaultDetail + */ + public AdApiFaultDetail getFaultInfo() { + return faultInfo; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscape.java b/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscape.java new file mode 100644 index 0000000000..e1869c7db4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscape.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupBidLandscape complex type. + * + *

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

+ * <complexType name="AdGroupBidLandscape">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupBidLandscapeType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AdGroupBidLandscapeType" minOccurs="0"/>
+ *         <element name="StartDate" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DayMonthAndYear" minOccurs="0"/>
+ *         <element name="EndDate" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DayMonthAndYear" minOccurs="0"/>
+ *         <element name="BidLandscapePoints" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfBidLandscapePoint" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdGroupBidLandscape", propOrder = { + "adGroupId", + "adGroupBidLandscapeType", + "startDate", + "endDate", + "bidLandscapePoints" +}) +public class AdGroupBidLandscape { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "AdGroupBidLandscapeType") + @XmlSchemaType(name = "string") + protected AdGroupBidLandscapeType adGroupBidLandscapeType; + @XmlElement(name = "StartDate", nillable = true) + protected DayMonthAndYear startDate; + @XmlElement(name = "EndDate", nillable = true) + protected DayMonthAndYear endDate; + @XmlElement(name = "BidLandscapePoints", nillable = true) + protected ArrayOfBidLandscapePoint bidLandscapePoints; + + /** + * 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 adGroupBidLandscapeType property. + * + * @return + * possible object is + * {@link AdGroupBidLandscapeType } + * + */ + public AdGroupBidLandscapeType getAdGroupBidLandscapeType() { + return adGroupBidLandscapeType; + } + + /** + * Sets the value of the adGroupBidLandscapeType property. + * + * @param value + * allowed object is + * {@link AdGroupBidLandscapeType } + * + */ + public void setAdGroupBidLandscapeType(AdGroupBidLandscapeType value) { + this.adGroupBidLandscapeType = value; + } + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link DayMonthAndYear } + * + */ + public DayMonthAndYear getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link DayMonthAndYear } + * + */ + public void setStartDate(DayMonthAndYear value) { + this.startDate = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link DayMonthAndYear } + * + */ + public DayMonthAndYear getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link DayMonthAndYear } + * + */ + public void setEndDate(DayMonthAndYear value) { + this.endDate = value; + } + + /** + * Gets the value of the bidLandscapePoints property. + * + * @return + * possible object is + * {@link ArrayOfBidLandscapePoint } + * + */ + public ArrayOfBidLandscapePoint getBidLandscapePoints() { + return bidLandscapePoints; + } + + /** + * Sets the value of the bidLandscapePoints property. + * + * @param value + * allowed object is + * {@link ArrayOfBidLandscapePoint } + * + */ + public void setBidLandscapePoints(ArrayOfBidLandscapePoint value) { + this.bidLandscapePoints = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeInput.java b/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeInput.java new file mode 100644 index 0000000000..092faf2312 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeInput.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupBidLandscapeInput complex type. + * + *

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

+ * <complexType name="AdGroupBidLandscapeInput">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupBidLandscapeType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AdGroupBidLandscapeType" minOccurs="0"/>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdGroupBidLandscapeInput", propOrder = { + "adGroupBidLandscapeType", + "adGroupId" +}) +public class AdGroupBidLandscapeInput { + + @XmlElement(name = "AdGroupBidLandscapeType") + @XmlSchemaType(name = "string") + protected AdGroupBidLandscapeType adGroupBidLandscapeType; + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + + /** + * Gets the value of the adGroupBidLandscapeType property. + * + * @return + * possible object is + * {@link AdGroupBidLandscapeType } + * + */ + public AdGroupBidLandscapeType getAdGroupBidLandscapeType() { + return adGroupBidLandscapeType; + } + + /** + * Sets the value of the adGroupBidLandscapeType property. + * + * @param value + * allowed object is + * {@link AdGroupBidLandscapeType } + * + */ + public void setAdGroupBidLandscapeType(AdGroupBidLandscapeType value) { + this.adGroupBidLandscapeType = 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeType.java b/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeType.java new file mode 100644 index 0000000000..dbe8b71206 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdGroupBidLandscapeType.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupBidLandscapeType. + * + *

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

+ *

+ * <simpleType name="AdGroupBidLandscapeType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Uniform"/>
+ *     <enumeration value="DefaultBidOnly"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdGroupBidLandscapeType") +@XmlEnum +public enum AdGroupBidLandscapeType { + + @XmlEnumValue("Uniform") + UNIFORM("Uniform"), + @XmlEnumValue("DefaultBidOnly") + DEFAULT_BID_ONLY("DefaultBidOnly"); + private final String value; + + AdGroupBidLandscapeType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdGroupBidLandscapeType fromValue(String v) { + for (AdGroupBidLandscapeType c: AdGroupBidLandscapeType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java b/proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java new file mode 100644 index 0000000000..2519531c1b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java @@ -0,0 +1,78 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebServiceClient(name = "AdInsightService", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", wsdlLocation = "https://adinsight.api.sandbox.bingads.microsoft.com/Api/Advertiser/AdInsight/V10/AdInsightService.svc?wsdl") +public class AdInsightService + extends Service +{ + + private final static URL ADINSIGHTSERVICE_WSDL_LOCATION; + private final static WebServiceException ADINSIGHTSERVICE_EXCEPTION; + private final static QName ADINSIGHTSERVICE_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "AdInsightService"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("https://adinsight.api.sandbox.bingads.microsoft.com/Api/Advertiser/AdInsight/V10/AdInsightService.svc?wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + ADINSIGHTSERVICE_WSDL_LOCATION = url; + ADINSIGHTSERVICE_EXCEPTION = e; + } + + public AdInsightService() { + super(__getWsdlLocation(), ADINSIGHTSERVICE_QNAME); + } + + public AdInsightService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + /** + * + * @return + * returns IAdInsightService + */ + @WebEndpoint(name = "BasicHttpBinding_IAdInsightService") + public IAdInsightService getBasicHttpBindingIAdInsightService() { + return super.getPort(new QName("Microsoft.Advertiser.AdInsight.Api.Service", "BasicHttpBinding_IAdInsightService"), IAdInsightService.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns IAdInsightService + */ + @WebEndpoint(name = "BasicHttpBinding_IAdInsightService") + public IAdInsightService getBasicHttpBindingIAdInsightService(WebServiceFeature... features) { + return super.getPort(new QName("Microsoft.Advertiser.AdInsight.Api.Service", "BasicHttpBinding_IAdInsightService"), IAdInsightService.class, features); + } + + private static URL __getWsdlLocation() { + if (ADINSIGHTSERVICE_EXCEPTION!= null) { + throw ADINSIGHTSERVICE_EXCEPTION; + } + return ADINSIGHTSERVICE_WSDL_LOCATION; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdPosition.java b/proxies/com/microsoft/bingads/v10/adinsight/AdPosition.java new file mode 100644 index 0000000000..5098163a79 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdPosition.java @@ -0,0 +1,93 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdPosition. + * + *

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

+ *

+ * <simpleType name="AdPosition">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="All"/>
+ *     <enumeration value="MainLine1"/>
+ *     <enumeration value="MainLine2"/>
+ *     <enumeration value="MainLine3"/>
+ *     <enumeration value="MainLine4"/>
+ *     <enumeration value="SideBar1"/>
+ *     <enumeration value="SideBar2"/>
+ *     <enumeration value="SideBar3"/>
+ *     <enumeration value="SideBar4"/>
+ *     <enumeration value="SideBar5"/>
+ *     <enumeration value="SideBar6"/>
+ *     <enumeration value="SideBar7"/>
+ *     <enumeration value="SideBar8"/>
+ *     <enumeration value="SideBar9"/>
+ *     <enumeration value="SideBar10"/>
+ *     <enumeration value="Aggregate"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdPosition") +@XmlEnum +public enum AdPosition { + + @XmlEnumValue("All") + ALL("All"), + @XmlEnumValue("MainLine1") + MAIN_LINE_1("MainLine1"), + @XmlEnumValue("MainLine2") + MAIN_LINE_2("MainLine2"), + @XmlEnumValue("MainLine3") + MAIN_LINE_3("MainLine3"), + @XmlEnumValue("MainLine4") + MAIN_LINE_4("MainLine4"), + @XmlEnumValue("SideBar1") + SIDE_BAR_1("SideBar1"), + @XmlEnumValue("SideBar2") + SIDE_BAR_2("SideBar2"), + @XmlEnumValue("SideBar3") + SIDE_BAR_3("SideBar3"), + @XmlEnumValue("SideBar4") + SIDE_BAR_4("SideBar4"), + @XmlEnumValue("SideBar5") + SIDE_BAR_5("SideBar5"), + @XmlEnumValue("SideBar6") + SIDE_BAR_6("SideBar6"), + @XmlEnumValue("SideBar7") + SIDE_BAR_7("SideBar7"), + @XmlEnumValue("SideBar8") + SIDE_BAR_8("SideBar8"), + @XmlEnumValue("SideBar9") + SIDE_BAR_9("SideBar9"), + @XmlEnumValue("SideBar10") + SIDE_BAR_10("SideBar10"), + @XmlEnumValue("Aggregate") + AGGREGATE("Aggregate"); + private final String value; + + AdPosition(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdPosition fromValue(String v) { + for (AdPosition c: AdPosition.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Adapter1.java b/proxies/com/microsoft/bingads/v10/adinsight/Adapter1.java new file mode 100644 index 0000000000..12803c6063 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Adapter1.java @@ -0,0 +1,23 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.Calendar; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter1 + extends XmlAdapter +{ + + + public Calendar unmarshal(String value) { + return (javax.xml.bind.DatatypeConverter.parseDateTime(value)); + } + + public String marshal(Calendar value) { + if (value == null) { + return null; + } + return (javax.xml.bind.DatatypeConverter.printDateTime(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Adapter2.java b/proxies/com/microsoft/bingads/v10/adinsight/Adapter2.java new file mode 100644 index 0000000000..395e68edee --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Adapter2.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter2 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.adinsight.KeywordOpportunityTypeConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.adinsight.KeywordOpportunityTypeConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Adapter3.java b/proxies/com/microsoft/bingads/v10/adinsight/Adapter3.java new file mode 100644 index 0000000000..8573a75b2d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Adapter3.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter3 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.adinsight.BidOpportunityTypeConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.adinsight.BidOpportunityTypeConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail.java b/proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail.java new file mode 100644 index 0000000000..46301c8369 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ApiFaultDetail complex type. + * + *

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

+ * <complexType name="ApiFaultDetail">
+ *   <complexContent>
+ *     <extension base="{https://adapi.microsoft.com}ApplicationFault">
+ *       <sequence>
+ *         <element name="BatchErrors" type="{https://bingads.microsoft.com/AdInsight/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="OperationErrors" type="{https://bingads.microsoft.com/AdInsight/v10}ArrayOfOperationError" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ApiFaultDetail", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", propOrder = { + "batchErrors", + "operationErrors" +}) +public class ApiFaultDetail + extends ApplicationFault +{ + + @XmlElement(name = "BatchErrors", nillable = true) + protected ArrayOfBatchError batchErrors; + @XmlElement(name = "OperationErrors", nillable = true) + protected ArrayOfOperationError operationErrors; + + /** + * Gets the value of the batchErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getBatchErrors() { + return batchErrors; + } + + /** + * Sets the value of the batchErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setBatchErrors(ArrayOfBatchError value) { + this.batchErrors = value; + } + + /** + * Gets the value of the operationErrors property. + * + * @return + * possible object is + * {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError getOperationErrors() { + return operationErrors; + } + + /** + * Sets the value of the operationErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfOperationError } + * + */ + public void setOperationErrors(ArrayOfOperationError value) { + this.operationErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail_Exception.java b/proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail_Exception.java new file mode 100644 index 0000000000..4fff48bca7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ApiFaultDetail_Exception.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebFault(name = "ApiFaultDetail", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class ApiFaultDetail_Exception + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private ApiFaultDetail faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public ApiFaultDetail_Exception(String message, ApiFaultDetail faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public ApiFaultDetail_Exception(String message, ApiFaultDetail faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: com.microsoft.bingads.v10.adinsight.ApiFaultDetail + */ + public ApiFaultDetail getFaultInfo() { + return faultInfo; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ApplicationFault.java b/proxies/com/microsoft/bingads/v10/adinsight/ApplicationFault.java new file mode 100644 index 0000000000..a6e303bf61 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ApplicationFault.java @@ -0,0 +1,67 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ApplicationFault complex type. + * + *

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

+ * <complexType name="ApplicationFault">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TrackingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ApplicationFault", namespace = "https://adapi.microsoft.com", propOrder = { + "trackingId" +}) +@XmlSeeAlso({ + ApiFaultDetail.class, + AdApiFaultDetail.class +}) +public class ApplicationFault { + + @XmlElement(name = "TrackingId", nillable = true) + protected String trackingId; + + /** + * Gets the value of the trackingId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingId() { + return trackingId; + } + + /** + * Sets the value of the trackingId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingId(String value) { + this.trackingId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdApiError.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdApiError.java new file mode 100644 index 0000000000..af5227fcb2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdApiError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdApiError complex type. + * + *

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

+ * <complexType name="ArrayOfAdApiError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdApiError" type="{https://adapi.microsoft.com}AdApiError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdApiError", namespace = "https://adapi.microsoft.com", propOrder = { + "adApiErrors" +}) +public class ArrayOfAdApiError { + + @XmlElement(name = "AdApiError", nillable = true) + protected List adApiErrors; + + /** + * Gets the value of the adApiErrors 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 JAXB object. + * This is why there is not a set method for the adApiErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdApiError } + * + * + */ + public List getAdApiErrors() { + if (adApiErrors == null) { + adApiErrors = new ArrayList(); + } + return this.adApiErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscape.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscape.java new file mode 100644 index 0000000000..4054e768b3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscape.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdGroupBidLandscape complex type. + * + *

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

+ * <complexType name="ArrayOfAdGroupBidLandscape">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupBidLandscape" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AdGroupBidLandscape" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdGroupBidLandscape", propOrder = { + "adGroupBidLandscapes" +}) +public class ArrayOfAdGroupBidLandscape { + + @XmlElement(name = "AdGroupBidLandscape", nillable = true) + protected List adGroupBidLandscapes; + + /** + * Gets the value of the adGroupBidLandscapes 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 JAXB object. + * This is why there is not a set method for the adGroupBidLandscapes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdGroupBidLandscape } + * + * + */ + public List getAdGroupBidLandscapes() { + if (adGroupBidLandscapes == null) { + adGroupBidLandscapes = new ArrayList(); + } + return this.adGroupBidLandscapes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscapeInput.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscapeInput.java new file mode 100644 index 0000000000..874f3280d6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAdGroupBidLandscapeInput.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdGroupBidLandscapeInput complex type. + * + *

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

+ * <complexType name="ArrayOfAdGroupBidLandscapeInput">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupBidLandscapeInput" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AdGroupBidLandscapeInput" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdGroupBidLandscapeInput", propOrder = { + "adGroupBidLandscapeInputs" +}) +public class ArrayOfAdGroupBidLandscapeInput { + + @XmlElement(name = "AdGroupBidLandscapeInput", nillable = true) + protected List adGroupBidLandscapeInputs; + + /** + * Gets the value of the adGroupBidLandscapeInputs 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 JAXB object. + * This is why there is not a set method for the adGroupBidLandscapeInputs property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdGroupBidLandscapeInput } + * + * + */ + public List getAdGroupBidLandscapeInputs() { + if (adGroupBidLandscapeInputs == null) { + adGroupBidLandscapeInputs = new ArrayList(); + } + return this.adGroupBidLandscapeInputs; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBatchError.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBatchError.java new file mode 100644 index 0000000000..f63f803d73 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBatchError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBatchError complex type. + * + *

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

+ * <complexType name="ArrayOfBatchError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BatchError" type="{https://bingads.microsoft.com/AdInsight/v10}BatchError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBatchError", namespace = "https://bingads.microsoft.com/AdInsight/v10", propOrder = { + "batchErrors" +}) +public class ArrayOfBatchError { + + @XmlElement(name = "BatchError", nillable = true) + protected List batchErrors; + + /** + * Gets the value of the batchErrors 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 JAXB object. + * This is why there is not a set method for the batchErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BatchError } + * + * + */ + public List getBatchErrors() { + if (batchErrors == null) { + batchErrors = new ArrayList(); + } + return this.batchErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidLandscapePoint.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidLandscapePoint.java new file mode 100644 index 0000000000..7e1c02c44c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidLandscapePoint.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBidLandscapePoint complex type. + * + *

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

+ * <complexType name="ArrayOfBidLandscapePoint">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidLandscapePoint" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BidLandscapePoint" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBidLandscapePoint", propOrder = { + "bidLandscapePoints" +}) +public class ArrayOfBidLandscapePoint { + + @XmlElement(name = "BidLandscapePoint", nillable = true) + protected List bidLandscapePoints; + + /** + * Gets the value of the bidLandscapePoints 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 JAXB object. + * This is why there is not a set method for the bidLandscapePoints property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BidLandscapePoint } + * + * + */ + public List getBidLandscapePoints() { + if (bidLandscapePoints == null) { + bidLandscapePoints = new ArrayList(); + } + return this.bidLandscapePoints; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidOpportunity.java new file mode 100644 index 0000000000..517e44d07f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBidOpportunity.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBidOpportunity complex type. + * + *

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

+ * <complexType name="ArrayOfBidOpportunity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidOpportunity" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BidOpportunity" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBidOpportunity", propOrder = { + "bidOpportunities" +}) +public class ArrayOfBidOpportunity { + + @XmlElement(name = "BidOpportunity", nillable = true) + protected List bidOpportunities; + + /** + * Gets the value of the bidOpportunities 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 JAXB object. + * This is why there is not a set method for the bidOpportunities property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BidOpportunity } + * + * + */ + public List getBidOpportunities() { + if (bidOpportunities == null) { + bidOpportunities = new ArrayList(); + } + return this.bidOpportunities; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBroadMatchSearchQueryKPI.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBroadMatchSearchQueryKPI.java new file mode 100644 index 0000000000..5fec123d9f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBroadMatchSearchQueryKPI.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBroadMatchSearchQueryKPI complex type. + * + *

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

+ * <complexType name="ArrayOfBroadMatchSearchQueryKPI">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BroadMatchSearchQueryKPI" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BroadMatchSearchQueryKPI" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBroadMatchSearchQueryKPI", propOrder = { + "broadMatchSearchQueryKPIs" +}) +public class ArrayOfBroadMatchSearchQueryKPI { + + @XmlElement(name = "BroadMatchSearchQueryKPI", nillable = true) + protected List broadMatchSearchQueryKPIs; + + /** + * Gets the value of the broadMatchSearchQueryKPIs 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 JAXB object. + * This is why there is not a set method for the broadMatchSearchQueryKPIs property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BroadMatchSearchQueryKPI } + * + * + */ + public List getBroadMatchSearchQueryKPIs() { + if (broadMatchSearchQueryKPIs == null) { + broadMatchSearchQueryKPIs = new ArrayList(); + } + return this.broadMatchSearchQueryKPIs; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetOpportunity.java new file mode 100644 index 0000000000..e2ba346b6e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetOpportunity.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBudgetOpportunity complex type. + * + *

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

+ * <complexType name="ArrayOfBudgetOpportunity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BudgetOpportunity" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BudgetOpportunity" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBudgetOpportunity", propOrder = { + "budgetOpportunities" +}) +public class ArrayOfBudgetOpportunity { + + @XmlElement(name = "BudgetOpportunity", nillable = true) + protected List budgetOpportunities; + + /** + * Gets the value of the budgetOpportunities 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 JAXB object. + * This is why there is not a set method for the budgetOpportunities property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BudgetOpportunity } + * + * + */ + public List getBudgetOpportunities() { + if (budgetOpportunities == null) { + budgetOpportunities = new ArrayList(); + } + return this.budgetOpportunities; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetPoint.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetPoint.java new file mode 100644 index 0000000000..6441a82fdc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfBudgetPoint.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBudgetPoint complex type. + * + *

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

+ * <complexType name="ArrayOfBudgetPoint">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BudgetPoint" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BudgetPoint" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBudgetPoint", propOrder = { + "budgetPoints" +}) +public class ArrayOfBudgetPoint { + + @XmlElement(name = "BudgetPoint", nillable = true) + protected List budgetPoints; + + /** + * Gets the value of the budgetPoints 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 JAXB object. + * This is why there is not a set method for the budgetPoints property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BudgetPoint } + * + * + */ + public List getBudgetPoints() { + if (budgetPoints == null) { + budgetPoints = new ArrayList(); + } + return this.budgetPoints; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedBidAndTraffic.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedBidAndTraffic.java new file mode 100644 index 0000000000..290f7ce201 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedBidAndTraffic.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfEstimatedBidAndTraffic complex type. + * + *

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

+ * <complexType name="ArrayOfEstimatedBidAndTraffic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EstimatedBidAndTraffic" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}EstimatedBidAndTraffic" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfEstimatedBidAndTraffic", propOrder = { + "estimatedBidAndTraffics" +}) +public class ArrayOfEstimatedBidAndTraffic { + + @XmlElement(name = "EstimatedBidAndTraffic", nillable = true) + protected List estimatedBidAndTraffics; + + /** + * Gets the value of the estimatedBidAndTraffics 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 JAXB object. + * This is why there is not a set method for the estimatedBidAndTraffics property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EstimatedBidAndTraffic } + * + * + */ + public List getEstimatedBidAndTraffics() { + if (estimatedBidAndTraffics == null) { + estimatedBidAndTraffics = new ArrayList(); + } + return this.estimatedBidAndTraffics; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedPositionAndTraffic.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedPositionAndTraffic.java new file mode 100644 index 0000000000..c350a4a943 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfEstimatedPositionAndTraffic.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfEstimatedPositionAndTraffic complex type. + * + *

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

+ * <complexType name="ArrayOfEstimatedPositionAndTraffic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EstimatedPositionAndTraffic" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}EstimatedPositionAndTraffic" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfEstimatedPositionAndTraffic", propOrder = { + "estimatedPositionAndTraffics" +}) +public class ArrayOfEstimatedPositionAndTraffic { + + @XmlElement(name = "EstimatedPositionAndTraffic", nillable = true) + protected List estimatedPositionAndTraffics; + + /** + * Gets the value of the estimatedPositionAndTraffics 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 JAXB object. + * This is why there is not a set method for the estimatedPositionAndTraffics property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EstimatedPositionAndTraffic } + * + * + */ + public List getEstimatedPositionAndTraffics() { + if (estimatedPositionAndTraffics == null) { + estimatedPositionAndTraffics = new ArrayList(); + } + return this.estimatedPositionAndTraffics; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfHistoricalSearchCountPeriodic.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfHistoricalSearchCountPeriodic.java new file mode 100644 index 0000000000..ff4141c1d8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfHistoricalSearchCountPeriodic.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfHistoricalSearchCountPeriodic complex type. + * + *

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

+ * <complexType name="ArrayOfHistoricalSearchCountPeriodic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="HistoricalSearchCountPeriodic" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}HistoricalSearchCountPeriodic" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfHistoricalSearchCountPeriodic", propOrder = { + "historicalSearchCountPeriodics" +}) +public class ArrayOfHistoricalSearchCountPeriodic { + + @XmlElement(name = "HistoricalSearchCountPeriodic", nillable = true) + protected List historicalSearchCountPeriodics; + + /** + * Gets the value of the historicalSearchCountPeriodics 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 JAXB object. + * This is why there is not a set method for the historicalSearchCountPeriodics property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link HistoricalSearchCountPeriodic } + * + * + */ + public List getHistoricalSearchCountPeriodics() { + if (historicalSearchCountPeriodics == null) { + historicalSearchCountPeriodics = new ArrayList(); + } + return this.historicalSearchCountPeriodics; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndConfidence.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndConfidence.java new file mode 100644 index 0000000000..85020f6b57 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndConfidence.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordAndConfidence complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordAndConfidence">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordAndConfidence" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordAndConfidence" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordAndConfidence", propOrder = { + "keywordAndConfidences" +}) +public class ArrayOfKeywordAndConfidence { + + @XmlElement(name = "KeywordAndConfidence", nillable = true) + protected List keywordAndConfidences; + + /** + * Gets the value of the keywordAndConfidences 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 JAXB object. + * This is why there is not a set method for the keywordAndConfidences property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordAndConfidence } + * + * + */ + public List getKeywordAndConfidences() { + if (keywordAndConfidences == null) { + keywordAndConfidences = new ArrayList(); + } + return this.keywordAndConfidences; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndMatchType.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndMatchType.java new file mode 100644 index 0000000000..c69ec16dff --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordAndMatchType.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordAndMatchType complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordAndMatchType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordAndMatchType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message}KeywordAndMatchType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordAndMatchType", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message", propOrder = { + "keywordAndMatchTypes" +}) +public class ArrayOfKeywordAndMatchType { + + @XmlElement(name = "KeywordAndMatchType", nillable = true) + protected List keywordAndMatchTypes; + + /** + * Gets the value of the keywordAndMatchTypes 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 JAXB object. + * This is why there is not a set method for the keywordAndMatchTypes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordAndMatchType } + * + * + */ + public List getKeywordAndMatchTypes() { + if (keywordAndMatchTypes == null) { + keywordAndMatchTypes = new ArrayList(); + } + return this.keywordAndMatchTypes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordBidLandscape.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordBidLandscape.java new file mode 100644 index 0000000000..7505719808 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordBidLandscape.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordBidLandscape complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordBidLandscape">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordBidLandscape" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordBidLandscape" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordBidLandscape", propOrder = { + "keywordBidLandscapes" +}) +public class ArrayOfKeywordBidLandscape { + + @XmlElement(name = "KeywordBidLandscape", nillable = true) + protected List keywordBidLandscapes; + + /** + * Gets the value of the keywordBidLandscapes 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 JAXB object. + * This is why there is not a set method for the keywordBidLandscapes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordBidLandscape } + * + * + */ + public List getKeywordBidLandscapes() { + if (keywordBidLandscapes == null) { + keywordBidLandscapes = new ArrayList(); + } + return this.keywordBidLandscapes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategory.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategory.java new file mode 100644 index 0000000000..0acc03e327 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategory.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordCategory complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordCategory">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordCategory" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordCategory" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordCategory", propOrder = { + "keywordCategories" +}) +public class ArrayOfKeywordCategory { + + @XmlElement(name = "KeywordCategory", nillable = true) + protected List keywordCategories; + + /** + * Gets the value of the keywordCategories 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 JAXB object. + * This is why there is not a set method for the keywordCategories property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordCategory } + * + * + */ + public List getKeywordCategories() { + if (keywordCategories == null) { + keywordCategories = new ArrayList(); + } + return this.keywordCategories; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategoryResult.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategoryResult.java new file mode 100644 index 0000000000..14d70a1dbe --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordCategoryResult.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordCategoryResult complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordCategoryResult">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordCategoryResult" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordCategoryResult" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordCategoryResult", propOrder = { + "keywordCategoryResults" +}) +public class ArrayOfKeywordCategoryResult { + + @XmlElement(name = "KeywordCategoryResult", nillable = true) + protected List keywordCategoryResults; + + /** + * Gets the value of the keywordCategoryResults 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 JAXB object. + * This is why there is not a set method for the keywordCategoryResults property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordCategoryResult } + * + * + */ + public List getKeywordCategoryResults() { + if (keywordCategoryResults == null) { + keywordCategoryResults = new ArrayList(); + } + return this.keywordCategoryResults; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographic.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographic.java new file mode 100644 index 0000000000..f79d6f3531 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographic.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordDemographic complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordDemographic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordDemographic" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordDemographic" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordDemographic", propOrder = { + "keywordDemographics" +}) +public class ArrayOfKeywordDemographic { + + @XmlElement(name = "KeywordDemographic", nillable = true) + protected List keywordDemographics; + + /** + * Gets the value of the keywordDemographics 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 JAXB object. + * This is why there is not a set method for the keywordDemographics property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordDemographic } + * + * + */ + public List getKeywordDemographics() { + if (keywordDemographics == null) { + keywordDemographics = new ArrayList(); + } + return this.keywordDemographics; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographicResult.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographicResult.java new file mode 100644 index 0000000000..56a56bc89a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordDemographicResult.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordDemographicResult complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordDemographicResult">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordDemographicResult" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordDemographicResult" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordDemographicResult", propOrder = { + "keywordDemographicResults" +}) +public class ArrayOfKeywordDemographicResult { + + @XmlElement(name = "KeywordDemographicResult", nillable = true) + protected List keywordDemographicResults; + + /** + * Gets the value of the keywordDemographicResults 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 JAXB object. + * This is why there is not a set method for the keywordDemographicResults property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordDemographicResult } + * + * + */ + public List getKeywordDemographicResults() { + if (keywordDemographicResults == null) { + keywordDemographicResults = new ArrayList(); + } + return this.keywordDemographicResults; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedBid.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedBid.java new file mode 100644 index 0000000000..6a99f2fec6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordEstimatedBid complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordEstimatedBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordEstimatedBid" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordEstimatedBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordEstimatedBid", propOrder = { + "keywordEstimatedBids" +}) +public class ArrayOfKeywordEstimatedBid { + + @XmlElement(name = "KeywordEstimatedBid", nillable = true) + protected List keywordEstimatedBids; + + /** + * Gets the value of the keywordEstimatedBids 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 JAXB object. + * This is why there is not a set method for the keywordEstimatedBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordEstimatedBid } + * + * + */ + public List getKeywordEstimatedBids() { + if (keywordEstimatedBids == null) { + keywordEstimatedBids = new ArrayList(); + } + return this.keywordEstimatedBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedPosition.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedPosition.java new file mode 100644 index 0000000000..50b359c035 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordEstimatedPosition.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordEstimatedPosition complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordEstimatedPosition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordEstimatedPosition" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordEstimatedPosition" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordEstimatedPosition", propOrder = { + "keywordEstimatedPositions" +}) +public class ArrayOfKeywordEstimatedPosition { + + @XmlElement(name = "KeywordEstimatedPosition", nillable = true) + protected List keywordEstimatedPositions; + + /** + * Gets the value of the keywordEstimatedPositions 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 JAXB object. + * This is why there is not a set method for the keywordEstimatedPositions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordEstimatedPosition } + * + * + */ + public List getKeywordEstimatedPositions() { + if (keywordEstimatedPositions == null) { + keywordEstimatedPositions = new ArrayList(); + } + return this.keywordEstimatedPositions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordHistoricalPerformance.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordHistoricalPerformance.java new file mode 100644 index 0000000000..c730860f65 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordHistoricalPerformance.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordHistoricalPerformance complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordHistoricalPerformance">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordHistoricalPerformance" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordHistoricalPerformance" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordHistoricalPerformance", propOrder = { + "keywordHistoricalPerformances" +}) +public class ArrayOfKeywordHistoricalPerformance { + + @XmlElement(name = "KeywordHistoricalPerformance", nillable = true) + protected List keywordHistoricalPerformances; + + /** + * Gets the value of the keywordHistoricalPerformances 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 JAXB object. + * This is why there is not a set method for the keywordHistoricalPerformances property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordHistoricalPerformance } + * + * + */ + public List getKeywordHistoricalPerformances() { + if (keywordHistoricalPerformances == null) { + keywordHistoricalPerformances = new ArrayList(); + } + return this.keywordHistoricalPerformances; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedBid.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedBid.java new file mode 100644 index 0000000000..14f6cfc8c1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordIdEstimatedBid complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordIdEstimatedBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordIdEstimatedBid" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordIdEstimatedBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordIdEstimatedBid", propOrder = { + "keywordIdEstimatedBids" +}) +public class ArrayOfKeywordIdEstimatedBid { + + @XmlElement(name = "KeywordIdEstimatedBid", nillable = true) + protected List keywordIdEstimatedBids; + + /** + * Gets the value of the keywordIdEstimatedBids 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 JAXB object. + * This is why there is not a set method for the keywordIdEstimatedBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordIdEstimatedBid } + * + * + */ + public List getKeywordIdEstimatedBids() { + if (keywordIdEstimatedBids == null) { + keywordIdEstimatedBids = new ArrayList(); + } + return this.keywordIdEstimatedBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedPosition.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedPosition.java new file mode 100644 index 0000000000..f76199a225 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordIdEstimatedPosition.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordIdEstimatedPosition complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordIdEstimatedPosition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordIdEstimatedPosition" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordIdEstimatedPosition" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordIdEstimatedPosition", propOrder = { + "keywordIdEstimatedPositions" +}) +public class ArrayOfKeywordIdEstimatedPosition { + + @XmlElement(name = "KeywordIdEstimatedPosition", nillable = true) + protected List keywordIdEstimatedPositions; + + /** + * Gets the value of the keywordIdEstimatedPositions 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 JAXB object. + * This is why there is not a set method for the keywordIdEstimatedPositions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordIdEstimatedPosition } + * + * + */ + public List getKeywordIdEstimatedPositions() { + if (keywordIdEstimatedPositions == null) { + keywordIdEstimatedPositions = new ArrayList(); + } + return this.keywordIdEstimatedPositions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordKPI.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordKPI.java new file mode 100644 index 0000000000..5784df5284 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordKPI.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordKPI complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordKPI">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordKPI" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordKPI" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordKPI", propOrder = { + "keywordKPIs" +}) +public class ArrayOfKeywordKPI { + + @XmlElement(name = "KeywordKPI", nillable = true) + protected List keywordKPIs; + + /** + * Gets the value of the keywordKPIs 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 JAXB object. + * This is why there is not a set method for the keywordKPIs property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordKPI } + * + * + */ + public List getKeywordKPIs() { + if (keywordKPIs == null) { + keywordKPIs = new ArrayList(); + } + return this.keywordKPIs; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocation.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocation.java new file mode 100644 index 0000000000..5df70c1476 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordLocation complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordLocation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordLocation" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordLocation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordLocation", propOrder = { + "keywordLocations" +}) +public class ArrayOfKeywordLocation { + + @XmlElement(name = "KeywordLocation", nillable = true) + protected List keywordLocations; + + /** + * Gets the value of the keywordLocations 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 JAXB object. + * This is why there is not a set method for the keywordLocations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordLocation } + * + * + */ + public List getKeywordLocations() { + if (keywordLocations == null) { + keywordLocations = new ArrayList(); + } + return this.keywordLocations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocationResult.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocationResult.java new file mode 100644 index 0000000000..4fcd50ab1b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordLocationResult.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordLocationResult complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordLocationResult">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordLocationResult" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordLocationResult" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordLocationResult", propOrder = { + "keywordLocationResults" +}) +public class ArrayOfKeywordLocationResult { + + @XmlElement(name = "KeywordLocationResult", nillable = true) + protected List keywordLocationResults; + + /** + * Gets the value of the keywordLocationResults 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 JAXB object. + * This is why there is not a set method for the keywordLocationResults property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordLocationResult } + * + * + */ + public List getKeywordLocationResults() { + if (keywordLocationResults == null) { + keywordLocationResults = new ArrayList(); + } + return this.keywordLocationResults; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordOpportunity.java new file mode 100644 index 0000000000..45bf22c026 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordOpportunity.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordOpportunity complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordOpportunity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordOpportunity" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordOpportunity" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordOpportunity", propOrder = { + "keywordOpportunities" +}) +public class ArrayOfKeywordOpportunity { + + @XmlElement(name = "KeywordOpportunity", nillable = true) + protected List keywordOpportunities; + + /** + * Gets the value of the keywordOpportunities 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 JAXB object. + * This is why there is not a set method for the keywordOpportunities property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordOpportunity } + * + * + */ + public List getKeywordOpportunities() { + if (keywordOpportunities == null) { + keywordOpportunities = new ArrayList(); + } + return this.keywordOpportunities; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSearchCount.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSearchCount.java new file mode 100644 index 0000000000..6591ed208b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSearchCount.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordSearchCount complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordSearchCount">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordSearchCount" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordSearchCount" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordSearchCount", propOrder = { + "keywordSearchCounts" +}) +public class ArrayOfKeywordSearchCount { + + @XmlElement(name = "KeywordSearchCount", nillable = true) + protected List keywordSearchCounts; + + /** + * Gets the value of the keywordSearchCounts 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 JAXB object. + * This is why there is not a set method for the keywordSearchCounts property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordSearchCount } + * + * + */ + public List getKeywordSearchCounts() { + if (keywordSearchCounts == null) { + keywordSearchCounts = new ArrayList(); + } + return this.keywordSearchCounts; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSuggestion.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSuggestion.java new file mode 100644 index 0000000000..19e043bdd2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfKeywordSuggestion.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeywordSuggestion complex type. + * + *

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

+ * <complexType name="ArrayOfKeywordSuggestion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordSuggestion" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordSuggestion" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeywordSuggestion", propOrder = { + "keywordSuggestions" +}) +public class ArrayOfKeywordSuggestion { + + @XmlElement(name = "KeywordSuggestion", nillable = true) + protected List keywordSuggestions; + + /** + * Gets the value of the keywordSuggestions 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 JAXB object. + * This is why there is not a set method for the keywordSuggestions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordSuggestion } + * + * + */ + public List getKeywordSuggestions() { + if (keywordSuggestions == null) { + keywordSuggestions = new ArrayList(); + } + return this.keywordSuggestions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfMatchType.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfMatchType.java new file mode 100644 index 0000000000..4347ccd91f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfMatchType.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMatchType complex type. + * + *

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

+ * <complexType name="ArrayOfMatchType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MatchType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}MatchType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMatchType", propOrder = { + "matchTypes" +}) +public class ArrayOfMatchType { + + @XmlElement(name = "MatchType") + @XmlSchemaType(name = "string") + protected List matchTypes; + + /** + * Gets the value of the matchTypes 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 JAXB object. + * This is why there is not a set method for the matchTypes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link MatchType } + * + * + */ + public List getMatchTypes() { + if (matchTypes == null) { + matchTypes = new ArrayList(); + } + return this.matchTypes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOperationError.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOperationError.java new file mode 100644 index 0000000000..f2867b90fd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOperationError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfOperationError complex type. + * + *

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

+ * <complexType name="ArrayOfOperationError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="OperationError" type="{https://bingads.microsoft.com/AdInsight/v10}OperationError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfOperationError", namespace = "https://bingads.microsoft.com/AdInsight/v10", propOrder = { + "operationErrors" +}) +public class ArrayOfOperationError { + + @XmlElement(name = "OperationError", nillable = true) + protected List operationErrors; + + /** + * Gets the value of the operationErrors 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 JAXB object. + * This is why there is not a set method for the operationErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link OperationError } + * + * + */ + public List getOperationErrors() { + if (operationErrors == null) { + operationErrors = new ArrayList(); + } + return this.operationErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfSearchCountsByAttributes.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfSearchCountsByAttributes.java new file mode 100644 index 0000000000..ea2a008817 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfSearchCountsByAttributes.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfSearchCountsByAttributes complex type. + * + *

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

+ * <complexType name="ArrayOfSearchCountsByAttributes">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SearchCountsByAttributes" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}SearchCountsByAttributes" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSearchCountsByAttributes", propOrder = { + "searchCountsByAttributes" +}) +public class ArrayOfSearchCountsByAttributes { + + @XmlElement(name = "SearchCountsByAttributes", nillable = true) + protected List searchCountsByAttributes; + + /** + * Gets the value of the searchCountsByAttributes 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 JAXB object. + * This is why there is not a set method for the searchCountsByAttributes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SearchCountsByAttributes } + * + * + */ + public List getSearchCountsByAttributes() { + if (searchCountsByAttributes == null) { + searchCountsByAttributes = new ArrayList(); + } + return this.searchCountsByAttributes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOflong.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOflong.java new file mode 100644 index 0000000000..e1d8d49af5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOflong.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOflong complex type. + * + *

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

+ * <complexType name="ArrayOflong">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="long" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOflong", namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", propOrder = { + "longs" +}) +public class ArrayOflong { + + @XmlElement(name = "long", type = Long.class) + protected List longs; + + /** + * Gets the value of the longs 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 JAXB object. + * This is why there is not a set method for the longs property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Long } + * + * + */ + public List getLongs() { + if (longs == null) { + longs = new ArrayList(); + } + return this.longs; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfstring.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfstring.java new file mode 100644 index 0000000000..5e0de4b24e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfstring.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfstring complex type. + * + *

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

+ * <complexType name="ArrayOfstring">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="string" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfstring", namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", propOrder = { + "strings" +}) +public class ArrayOfstring { + + @XmlElement(name = "string", nillable = true) + protected List strings; + + /** + * Gets the value of the strings 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 JAXB object. + * This is why there is not a set method for the strings property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getStrings() { + if (strings == null) { + strings = new ArrayList(); + } + return this.strings; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BatchError.java b/proxies/com/microsoft/bingads/v10/adinsight/BatchError.java new file mode 100644 index 0000000000..5bcc4ca1fe --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BatchError.java @@ -0,0 +1,174 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BatchError complex type. + * + *

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

+ * <complexType name="BatchError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Index" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BatchError", namespace = "https://bingads.microsoft.com/AdInsight/v10", propOrder = { + "code", + "details", + "errorCode", + "index", + "message" +}) +public class BatchError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Details", nillable = true) + protected String details; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "Index") + protected Integer index; + @XmlElement(name = "Message", nillable = true) + protected String message; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BidLandscapePoint.java b/proxies/com/microsoft/bingads/v10/adinsight/BidLandscapePoint.java new file mode 100644 index 0000000000..acd026ec19 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BidLandscapePoint.java @@ -0,0 +1,232 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BidLandscapePoint complex type. + * + *

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

+ * <complexType name="BidLandscapePoint">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Clicks" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Impressions" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="TopImpressions" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Currency" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Currency" minOccurs="0"/>
+ *         <element name="Cost" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MarginalCPC" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BidLandscapePoint", propOrder = { + "bid", + "clicks", + "impressions", + "topImpressions", + "currency", + "cost", + "marginalCPC" +}) +public class BidLandscapePoint { + + @XmlElement(name = "Bid") + protected Double bid; + @XmlElement(name = "Clicks", nillable = true) + protected Double clicks; + @XmlElement(name = "Impressions") + protected Long impressions; + @XmlElement(name = "TopImpressions", nillable = true) + protected Long topImpressions; + @XmlElement(name = "Currency") + @XmlSchemaType(name = "string") + protected Currency currency; + @XmlElement(name = "Cost", nillable = true) + protected Double cost; + @XmlElement(name = "MarginalCPC", nillable = true) + protected Double marginalCPC; + + /** + * Gets the value of the bid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getBid() { + return bid; + } + + /** + * Sets the value of the bid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setBid(Double value) { + this.bid = value; + } + + /** + * Gets the value of the clicks property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getClicks() { + return clicks; + } + + /** + * Sets the value of the clicks property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setClicks(Double value) { + this.clicks = value; + } + + /** + * Gets the value of the impressions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getImpressions() { + return impressions; + } + + /** + * Sets the value of the impressions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setImpressions(Long value) { + this.impressions = value; + } + + /** + * Gets the value of the topImpressions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTopImpressions() { + return topImpressions; + } + + /** + * Sets the value of the topImpressions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTopImpressions(Long value) { + this.topImpressions = 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; + } + + /** + * Gets the value of the cost property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCost() { + return cost; + } + + /** + * Sets the value of the cost property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCost(Double value) { + this.cost = value; + } + + /** + * Gets the value of the marginalCPC property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMarginalCPC() { + return marginalCPC; + } + + /** + * Sets the value of the marginalCPC property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMarginalCPC(Double value) { + this.marginalCPC = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunity.java new file mode 100644 index 0000000000..52e1e4e400 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunity.java @@ -0,0 +1,288 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BidOpportunity complex type. + * + *

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

+ * <complexType name="BidOpportunity">
+ *   <complexContent>
+ *     <extension base="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Opportunity">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CurrentBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedIncreaseInClicks" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedIncreaseInCost" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedIncreaseInImpressions" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="KeywordId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MatchType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="SuggestedBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BidOpportunity", propOrder = { + "adGroupId", + "campaignId", + "currentBid", + "estimatedIncreaseInClicks", + "estimatedIncreaseInCost", + "estimatedIncreaseInImpressions", + "keywordId", + "matchType", + "suggestedBid" +}) +public class BidOpportunity + extends Opportunity +{ + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "CurrentBid") + protected Double currentBid; + @XmlElement(name = "EstimatedIncreaseInClicks") + protected Double estimatedIncreaseInClicks; + @XmlElement(name = "EstimatedIncreaseInCost") + protected Double estimatedIncreaseInCost; + @XmlElement(name = "EstimatedIncreaseInImpressions") + protected Long estimatedIncreaseInImpressions; + @XmlElement(name = "KeywordId") + protected Long keywordId; + @XmlElement(name = "MatchType", nillable = true) + protected String matchType; + @XmlElement(name = "SuggestedBid") + protected Double suggestedBid; + + /** + * 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 currentBid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCurrentBid() { + return currentBid; + } + + /** + * Sets the value of the currentBid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCurrentBid(Double value) { + this.currentBid = value; + } + + /** + * Gets the value of the estimatedIncreaseInClicks property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedIncreaseInClicks() { + return estimatedIncreaseInClicks; + } + + /** + * Sets the value of the estimatedIncreaseInClicks property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedIncreaseInClicks(Double value) { + this.estimatedIncreaseInClicks = 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 keywordId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getKeywordId() { + return keywordId; + } + + /** + * Sets the value of the keywordId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setKeywordId(Long value) { + this.keywordId = value; + } + + /** + * Gets the value of the matchType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMatchType() { + return matchType; + } + + /** + * Sets the value of the matchType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMatchType(String value) { + this.matchType = 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunityType.java b/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunityType.java new file mode 100644 index 0000000000..4ab20e5e03 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunityType.java @@ -0,0 +1,30 @@ +package com.microsoft.bingads.v10.adinsight; + +/** + * Enum class for BidOpportunityType. + */ +public enum BidOpportunityType { + + FIRST_PAGE("FirstPage"), + MAIN_LINE("MainLine"), + MAIN_LINE1("MainLine1"); + + private final String value; + + BidOpportunityType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static BidOpportunityType fromValue(String v) { + for (BidOpportunityType c : BidOpportunityType.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/v10/adinsight/BidOpportunityTypeConverter.java b/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunityTypeConverter.java new file mode 100644 index 0000000000..a30f37167d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BidOpportunityTypeConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class BidOpportunityTypeConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(BidOpportunityType.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (BidOpportunityType 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/v10/adinsight/BroadMatchKeywordOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/BroadMatchKeywordOpportunity.java new file mode 100644 index 0000000000..31374a8331 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BroadMatchKeywordOpportunity.java @@ -0,0 +1,260 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BroadMatchKeywordOpportunity complex type. + * + *

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

+ * <complexType name="BroadMatchKeywordOpportunity">
+ *   <complexContent>
+ *     <extension base="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordOpportunity">
+ *       <sequence>
+ *         <element name="AverageCPC" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="AverageCTR" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="ClickShare" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="ImpressionShare" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="ReferenceKeywordBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="ReferenceKeywordId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ReferenceKeywordMatchType" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="SearchQueryKPIs" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfBroadMatchSearchQueryKPI" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BroadMatchKeywordOpportunity", propOrder = { + "averageCPC", + "averageCTR", + "clickShare", + "impressionShare", + "referenceKeywordBid", + "referenceKeywordId", + "referenceKeywordMatchType", + "searchQueryKPIs" +}) +public class BroadMatchKeywordOpportunity + extends KeywordOpportunity +{ + + @XmlElement(name = "AverageCPC") + protected Double averageCPC; + @XmlElement(name = "AverageCTR") + protected Double averageCTR; + @XmlElement(name = "ClickShare") + protected Double clickShare; + @XmlElement(name = "ImpressionShare") + protected Double impressionShare; + @XmlElement(name = "ReferenceKeywordBid") + protected Double referenceKeywordBid; + @XmlElement(name = "ReferenceKeywordId") + protected Long referenceKeywordId; + @XmlElement(name = "ReferenceKeywordMatchType") + protected Integer referenceKeywordMatchType; + @XmlElement(name = "SearchQueryKPIs", nillable = true) + protected ArrayOfBroadMatchSearchQueryKPI searchQueryKPIs; + + /** + * Gets the value of the averageCPC property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAverageCPC() { + return averageCPC; + } + + /** + * Sets the value of the averageCPC property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAverageCPC(Double value) { + this.averageCPC = value; + } + + /** + * Gets the value of the averageCTR property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAverageCTR() { + return averageCTR; + } + + /** + * Sets the value of the averageCTR property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAverageCTR(Double value) { + this.averageCTR = value; + } + + /** + * Gets the value of the clickShare property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getClickShare() { + return clickShare; + } + + /** + * Sets the value of the clickShare property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setClickShare(Double value) { + this.clickShare = value; + } + + /** + * Gets the value of the impressionShare property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getImpressionShare() { + return impressionShare; + } + + /** + * Sets the value of the impressionShare property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setImpressionShare(Double value) { + this.impressionShare = value; + } + + /** + * Gets the value of the referenceKeywordBid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getReferenceKeywordBid() { + return referenceKeywordBid; + } + + /** + * Sets the value of the referenceKeywordBid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setReferenceKeywordBid(Double value) { + this.referenceKeywordBid = value; + } + + /** + * Gets the value of the referenceKeywordId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getReferenceKeywordId() { + return referenceKeywordId; + } + + /** + * Sets the value of the referenceKeywordId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setReferenceKeywordId(Long value) { + this.referenceKeywordId = value; + } + + /** + * Gets the value of the referenceKeywordMatchType property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getReferenceKeywordMatchType() { + return referenceKeywordMatchType; + } + + /** + * Sets the value of the referenceKeywordMatchType property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setReferenceKeywordMatchType(Integer value) { + this.referenceKeywordMatchType = value; + } + + /** + * Gets the value of the searchQueryKPIs property. + * + * @return + * possible object is + * {@link ArrayOfBroadMatchSearchQueryKPI } + * + */ + public ArrayOfBroadMatchSearchQueryKPI getSearchQueryKPIs() { + return searchQueryKPIs; + } + + /** + * Sets the value of the searchQueryKPIs property. + * + * @param value + * allowed object is + * {@link ArrayOfBroadMatchSearchQueryKPI } + * + */ + public void setSearchQueryKPIs(ArrayOfBroadMatchSearchQueryKPI value) { + this.searchQueryKPIs = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BroadMatchSearchQueryKPI.java b/proxies/com/microsoft/bingads/v10/adinsight/BroadMatchSearchQueryKPI.java new file mode 100644 index 0000000000..8cfa38999f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BroadMatchSearchQueryKPI.java @@ -0,0 +1,174 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BroadMatchSearchQueryKPI complex type. + * + *

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

+ * <complexType name="BroadMatchSearchQueryKPI">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AverageCTR" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Clicks" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Impressions" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SRPV" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SearchQuery" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BroadMatchSearchQueryKPI", propOrder = { + "averageCTR", + "clicks", + "impressions", + "srpv", + "searchQuery" +}) +public class BroadMatchSearchQueryKPI { + + @XmlElement(name = "AverageCTR") + protected Double averageCTR; + @XmlElement(name = "Clicks") + protected Double clicks; + @XmlElement(name = "Impressions") + protected Long impressions; + @XmlElement(name = "SRPV") + protected Long srpv; + @XmlElement(name = "SearchQuery", nillable = true) + protected String searchQuery; + + /** + * Gets the value of the averageCTR property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAverageCTR() { + return averageCTR; + } + + /** + * Sets the value of the averageCTR property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAverageCTR(Double value) { + this.averageCTR = value; + } + + /** + * Gets the value of the clicks property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getClicks() { + return clicks; + } + + /** + * Sets the value of the clicks property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setClicks(Double value) { + this.clicks = value; + } + + /** + * Gets the value of the impressions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getImpressions() { + return impressions; + } + + /** + * Sets the value of the impressions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setImpressions(Long value) { + this.impressions = value; + } + + /** + * Gets the value of the srpv property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSRPV() { + return srpv; + } + + /** + * Sets the value of the srpv property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSRPV(Long value) { + this.srpv = value; + } + + /** + * Gets the value of the searchQuery property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSearchQuery() { + return searchQuery; + } + + /** + * Sets the value of the searchQuery property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSearchQuery(String value) { + this.searchQuery = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BudgetLimitType.java b/proxies/com/microsoft/bingads/v10/adinsight/BudgetLimitType.java new file mode 100644 index 0000000000..dc0f64d0a3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BudgetLimitType.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BudgetLimitType. + * + *

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

+ *

+ * <simpleType name="BudgetLimitType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="MonthlyBudgetSpendUntilDepleted"/>
+ *     <enumeration value="DailyBudgetStandard"/>
+ *     <enumeration value="DailyBudgetAccelerated"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "BudgetLimitType") +@XmlEnum +public enum BudgetLimitType { + + @XmlEnumValue("MonthlyBudgetSpendUntilDepleted") + MONTHLY_BUDGET_SPEND_UNTIL_DEPLETED("MonthlyBudgetSpendUntilDepleted"), + @XmlEnumValue("DailyBudgetStandard") + DAILY_BUDGET_STANDARD("DailyBudgetStandard"), + @XmlEnumValue("DailyBudgetAccelerated") + DAILY_BUDGET_ACCELERATED("DailyBudgetAccelerated"); + private final String value; + + BudgetLimitType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static BudgetLimitType fromValue(String v) { + for (BudgetLimitType c: BudgetLimitType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BudgetOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/BudgetOpportunity.java new file mode 100644 index 0000000000..bab2f6a687 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BudgetOpportunity.java @@ -0,0 +1,290 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BudgetOpportunity complex type. + * + *

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

+ * <complexType name="BudgetOpportunity">
+ *   <complexContent>
+ *     <extension base="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Opportunity">
+ *       <sequence>
+ *         <element name="BudgetPoints" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfBudgetPoint" minOccurs="0"/>
+ *         <element name="BudgetType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BudgetLimitType" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CurrentBudget" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="IncreaseInClicks" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="IncreaseInImpressions" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="PercentageIncreaseInClicks" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="PercentageIncreaseInImpressions" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="RecommendedBudget" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BudgetOpportunity", propOrder = { + "budgetPoints", + "budgetType", + "campaignId", + "currentBudget", + "increaseInClicks", + "increaseInImpressions", + "percentageIncreaseInClicks", + "percentageIncreaseInImpressions", + "recommendedBudget" +}) +public class BudgetOpportunity + extends Opportunity +{ + + @XmlElement(name = "BudgetPoints", nillable = true) + protected ArrayOfBudgetPoint budgetPoints; + @XmlElement(name = "BudgetType") + @XmlSchemaType(name = "string") + protected BudgetLimitType budgetType; + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "CurrentBudget") + protected Double currentBudget; + @XmlElement(name = "IncreaseInClicks") + protected Double increaseInClicks; + @XmlElement(name = "IncreaseInImpressions") + protected Long increaseInImpressions; + @XmlElement(name = "PercentageIncreaseInClicks") + protected Integer percentageIncreaseInClicks; + @XmlElement(name = "PercentageIncreaseInImpressions") + protected Integer percentageIncreaseInImpressions; + @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 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 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 increaseInClicks property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getIncreaseInClicks() { + return increaseInClicks; + } + + /** + * Sets the value of the increaseInClicks property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setIncreaseInClicks(Double value) { + this.increaseInClicks = value; + } + + /** + * Gets the value of the increaseInImpressions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIncreaseInImpressions() { + return increaseInImpressions; + } + + /** + * Sets the value of the increaseInImpressions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIncreaseInImpressions(Long value) { + this.increaseInImpressions = value; + } + + /** + * Gets the value of the percentageIncreaseInClicks property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPercentageIncreaseInClicks() { + return percentageIncreaseInClicks; + } + + /** + * Sets the value of the percentageIncreaseInClicks property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPercentageIncreaseInClicks(Integer value) { + this.percentageIncreaseInClicks = value; + } + + /** + * Gets the value of the percentageIncreaseInImpressions property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPercentageIncreaseInImpressions() { + return percentageIncreaseInImpressions; + } + + /** + * Sets the value of the percentageIncreaseInImpressions property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPercentageIncreaseInImpressions(Integer value) { + this.percentageIncreaseInImpressions = 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/v10/adinsight/BudgetPoint.java b/proxies/com/microsoft/bingads/v10/adinsight/BudgetPoint.java new file mode 100644 index 0000000000..15b21c454e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BudgetPoint.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BudgetPoint complex type. + * + *

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

+ * <complexType name="BudgetPoint">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BudgetAmount" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="BudgetPointType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BudgetPointType" minOccurs="0"/>
+ *         <element name="EstimatedWeeklyClicks" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedWeeklyCost" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedWeeklyImpressions" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BudgetPoint", propOrder = { + "budgetAmount", + "budgetPointType", + "estimatedWeeklyClicks", + "estimatedWeeklyCost", + "estimatedWeeklyImpressions" +}) +public class BudgetPoint { + + @XmlElement(name = "BudgetAmount") + protected Double budgetAmount; + @XmlElement(name = "BudgetPointType") + @XmlSchemaType(name = "string") + protected BudgetPointType budgetPointType; + @XmlElement(name = "EstimatedWeeklyClicks") + protected Double estimatedWeeklyClicks; + @XmlElement(name = "EstimatedWeeklyCost") + protected Double estimatedWeeklyCost; + @XmlElement(name = "EstimatedWeeklyImpressions") + protected Double estimatedWeeklyImpressions; + + /** + * Gets the value of the budgetAmount property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getBudgetAmount() { + return budgetAmount; + } + + /** + * Sets the value of the budgetAmount property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setBudgetAmount(Double value) { + this.budgetAmount = value; + } + + /** + * Gets the value of the budgetPointType property. + * + * @return + * possible object is + * {@link BudgetPointType } + * + */ + public BudgetPointType getBudgetPointType() { + return budgetPointType; + } + + /** + * Sets the value of the budgetPointType property. + * + * @param value + * allowed object is + * {@link BudgetPointType } + * + */ + public void setBudgetPointType(BudgetPointType value) { + this.budgetPointType = value; + } + + /** + * Gets the value of the estimatedWeeklyClicks property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedWeeklyClicks() { + return estimatedWeeklyClicks; + } + + /** + * Sets the value of the estimatedWeeklyClicks property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedWeeklyClicks(Double value) { + this.estimatedWeeklyClicks = value; + } + + /** + * Gets the value of the estimatedWeeklyCost property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedWeeklyCost() { + return estimatedWeeklyCost; + } + + /** + * Sets the value of the estimatedWeeklyCost property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedWeeklyCost(Double value) { + this.estimatedWeeklyCost = value; + } + + /** + * Gets the value of the estimatedWeeklyImpressions property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedWeeklyImpressions() { + return estimatedWeeklyImpressions; + } + + /** + * Sets the value of the estimatedWeeklyImpressions property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedWeeklyImpressions(Double value) { + this.estimatedWeeklyImpressions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/BudgetPointType.java b/proxies/com/microsoft/bingads/v10/adinsight/BudgetPointType.java new file mode 100644 index 0000000000..36a2748135 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/BudgetPointType.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BudgetPointType. + * + *

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

+ *

+ * <simpleType name="BudgetPointType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Current"/>
+ *     <enumeration value="Suggested"/>
+ *     <enumeration value="Maximum"/>
+ *     <enumeration value="Other"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "BudgetPointType") +@XmlEnum +public enum BudgetPointType { + + @XmlEnumValue("Current") + CURRENT("Current"), + @XmlEnumValue("Suggested") + SUGGESTED("Suggested"), + @XmlEnumValue("Maximum") + MAXIMUM("Maximum"), + @XmlEnumValue("Other") + OTHER("Other"); + private final String value; + + BudgetPointType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static BudgetPointType fromValue(String v) { + for (BudgetPointType c: BudgetPointType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Char.java b/proxies/com/microsoft/bingads/v10/adinsight/Char.java new file mode 100644 index 0000000000..6ee7ee29d8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Char.java @@ -0,0 +1,49 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for char simple type. + * + *

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

+ * <simpleType name="char">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}int">
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "char", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Char { + + @XmlValue + protected int value; + + /** + * Gets the value of the value property. + * + */ + public int getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(int value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Currency.java b/proxies/com/microsoft/bingads/v10/adinsight/Currency.java new file mode 100644 index 0000000000..e4c5f7108b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Currency.java @@ -0,0 +1,321 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Currency. + * + *

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

+ *

+ * <simpleType name="Currency">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="AlgerianDinar"/>
+ *     <enumeration value="ArgentinePeso"/>
+ *     <enumeration value="ArmenianDram"/>
+ *     <enumeration value="AustralianDollar"/>
+ *     <enumeration value="AzerbaijanianManat"/>
+ *     <enumeration value="BahrainiDinar"/>
+ *     <enumeration value="Baht"/>
+ *     <enumeration value="Balboa"/>
+ *     <enumeration value="BelarussianRuble"/>
+ *     <enumeration value="BelizeDollar"/>
+ *     <enumeration value="Bolivar"/>
+ *     <enumeration value="Boliviano"/>
+ *     <enumeration value="BrazilianReal"/>
+ *     <enumeration value="BruneiDollar"/>
+ *     <enumeration value="CanadianDollar"/>
+ *     <enumeration value="ChileanPeso"/>
+ *     <enumeration value="ColombianPeso"/>
+ *     <enumeration value="CordobaOro"/>
+ *     <enumeration value="CostaRicanColon"/>
+ *     <enumeration value="Croatiankuna"/>
+ *     <enumeration value="CzechKoruna"/>
+ *     <enumeration value="DanishKrone"/>
+ *     <enumeration value="Denar"/>
+ *     <enumeration value="DominicanPeso"/>
+ *     <enumeration value="Dong"/>
+ *     <enumeration value="EgyptianPound"/>
+ *     <enumeration value="Euro"/>
+ *     <enumeration value="Forint"/>
+ *     <enumeration value="Guarani"/>
+ *     <enumeration value="HongKongDollar"/>
+ *     <enumeration value="Hryvnia"/>
+ *     <enumeration value="IcelandKrona"/>
+ *     <enumeration value="IndianRupee"/>
+ *     <enumeration value="IranianRial"/>
+ *     <enumeration value="IraqiDinar"/>
+ *     <enumeration value="JamaicanDollar"/>
+ *     <enumeration value="JapaneseYen"/>
+ *     <enumeration value="JordanianDinar"/>
+ *     <enumeration value="KenyanShilling"/>
+ *     <enumeration value="Kroon"/>
+ *     <enumeration value="KuwaitiDinar"/>
+ *     <enumeration value="Lari"/>
+ *     <enumeration value="LatvianLats"/>
+ *     <enumeration value="LebanesePound"/>
+ *     <enumeration value="Lek"/>
+ *     <enumeration value="Lempira"/>
+ *     <enumeration value="Leu"/>
+ *     <enumeration value="Lev"/>
+ *     <enumeration value="LibyanDinar"/>
+ *     <enumeration value="LithuanianLitus"/>
+ *     <enumeration value="MalaysianRinggit"/>
+ *     <enumeration value="MexicanPeso"/>
+ *     <enumeration value="MoroccanDirham"/>
+ *     <enumeration value="NewIsraeliSheqel"/>
+ *     <enumeration value="NewTaiwanDollar"/>
+ *     <enumeration value="NewZealandDollar"/>
+ *     <enumeration value="NorwegianKrone"/>
+ *     <enumeration value="NuevoSol"/>
+ *     <enumeration value="PakistanRupee"/>
+ *     <enumeration value="Pataca"/>
+ *     <enumeration value="PesoUruguayo"/>
+ *     <enumeration value="PhilippinePeso"/>
+ *     <enumeration value="QatariRial"/>
+ *     <enumeration value="Quetzal"/>
+ *     <enumeration value="RialOmani"/>
+ *     <enumeration value="Rufiyaa"/>
+ *     <enumeration value="Rupiah"/>
+ *     <enumeration value="RussianRuble"/>
+ *     <enumeration value="SaudiRiyal"/>
+ *     <enumeration value="SingaporeDollar"/>
+ *     <enumeration value="SlovakKoruna"/>
+ *     <enumeration value="Som"/>
+ *     <enumeration value="SouthAfricanRand"/>
+ *     <enumeration value="SwedishKrona"/>
+ *     <enumeration value="SwissFranc"/>
+ *     <enumeration value="SyrianPound"/>
+ *     <enumeration value="Tenge"/>
+ *     <enumeration value="Tolar"/>
+ *     <enumeration value="TrinidadandTobagoDollar"/>
+ *     <enumeration value="Tugrik"/>
+ *     <enumeration value="TunisianDinar"/>
+ *     <enumeration value="TurkishLira"/>
+ *     <enumeration value="UAEDirham"/>
+ *     <enumeration value="UKPound"/>
+ *     <enumeration value="USDollar"/>
+ *     <enumeration value="UzbekistanSum"/>
+ *     <enumeration value="Won"/>
+ *     <enumeration value="YemeniRial"/>
+ *     <enumeration value="YuanRenminbi"/>
+ *     <enumeration value="YugoslavianNewDinar"/>
+ *     <enumeration value="ZimbabweDollar"/>
+ *     <enumeration value="Zloty"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "Currency") +@XmlEnum +public enum Currency { + + @XmlEnumValue("AlgerianDinar") + ALGERIAN_DINAR("AlgerianDinar"), + @XmlEnumValue("ArgentinePeso") + ARGENTINE_PESO("ArgentinePeso"), + @XmlEnumValue("ArmenianDram") + ARMENIAN_DRAM("ArmenianDram"), + @XmlEnumValue("AustralianDollar") + AUSTRALIAN_DOLLAR("AustralianDollar"), + @XmlEnumValue("AzerbaijanianManat") + AZERBAIJANIAN_MANAT("AzerbaijanianManat"), + @XmlEnumValue("BahrainiDinar") + BAHRAINI_DINAR("BahrainiDinar"), + @XmlEnumValue("Baht") + BAHT("Baht"), + @XmlEnumValue("Balboa") + BALBOA("Balboa"), + @XmlEnumValue("BelarussianRuble") + BELARUSSIAN_RUBLE("BelarussianRuble"), + @XmlEnumValue("BelizeDollar") + BELIZE_DOLLAR("BelizeDollar"), + @XmlEnumValue("Bolivar") + BOLIVAR("Bolivar"), + @XmlEnumValue("Boliviano") + BOLIVIANO("Boliviano"), + @XmlEnumValue("BrazilianReal") + BRAZILIAN_REAL("BrazilianReal"), + @XmlEnumValue("BruneiDollar") + BRUNEI_DOLLAR("BruneiDollar"), + @XmlEnumValue("CanadianDollar") + CANADIAN_DOLLAR("CanadianDollar"), + @XmlEnumValue("ChileanPeso") + CHILEAN_PESO("ChileanPeso"), + @XmlEnumValue("ColombianPeso") + COLOMBIAN_PESO("ColombianPeso"), + @XmlEnumValue("CordobaOro") + CORDOBA_ORO("CordobaOro"), + @XmlEnumValue("CostaRicanColon") + COSTA_RICAN_COLON("CostaRicanColon"), + @XmlEnumValue("Croatiankuna") + CROATIANKUNA("Croatiankuna"), + @XmlEnumValue("CzechKoruna") + CZECH_KORUNA("CzechKoruna"), + @XmlEnumValue("DanishKrone") + DANISH_KRONE("DanishKrone"), + @XmlEnumValue("Denar") + DENAR("Denar"), + @XmlEnumValue("DominicanPeso") + DOMINICAN_PESO("DominicanPeso"), + @XmlEnumValue("Dong") + DONG("Dong"), + @XmlEnumValue("EgyptianPound") + EGYPTIAN_POUND("EgyptianPound"), + @XmlEnumValue("Euro") + EURO("Euro"), + @XmlEnumValue("Forint") + FORINT("Forint"), + @XmlEnumValue("Guarani") + GUARANI("Guarani"), + @XmlEnumValue("HongKongDollar") + HONG_KONG_DOLLAR("HongKongDollar"), + @XmlEnumValue("Hryvnia") + HRYVNIA("Hryvnia"), + @XmlEnumValue("IcelandKrona") + ICELAND_KRONA("IcelandKrona"), + @XmlEnumValue("IndianRupee") + INDIAN_RUPEE("IndianRupee"), + @XmlEnumValue("IranianRial") + IRANIAN_RIAL("IranianRial"), + @XmlEnumValue("IraqiDinar") + IRAQI_DINAR("IraqiDinar"), + @XmlEnumValue("JamaicanDollar") + JAMAICAN_DOLLAR("JamaicanDollar"), + @XmlEnumValue("JapaneseYen") + JAPANESE_YEN("JapaneseYen"), + @XmlEnumValue("JordanianDinar") + JORDANIAN_DINAR("JordanianDinar"), + @XmlEnumValue("KenyanShilling") + KENYAN_SHILLING("KenyanShilling"), + @XmlEnumValue("Kroon") + KROON("Kroon"), + @XmlEnumValue("KuwaitiDinar") + KUWAITI_DINAR("KuwaitiDinar"), + @XmlEnumValue("Lari") + LARI("Lari"), + @XmlEnumValue("LatvianLats") + LATVIAN_LATS("LatvianLats"), + @XmlEnumValue("LebanesePound") + LEBANESE_POUND("LebanesePound"), + @XmlEnumValue("Lek") + LEK("Lek"), + @XmlEnumValue("Lempira") + LEMPIRA("Lempira"), + @XmlEnumValue("Leu") + LEU("Leu"), + @XmlEnumValue("Lev") + LEV("Lev"), + @XmlEnumValue("LibyanDinar") + LIBYAN_DINAR("LibyanDinar"), + @XmlEnumValue("LithuanianLitus") + LITHUANIAN_LITUS("LithuanianLitus"), + @XmlEnumValue("MalaysianRinggit") + MALAYSIAN_RINGGIT("MalaysianRinggit"), + @XmlEnumValue("MexicanPeso") + MEXICAN_PESO("MexicanPeso"), + @XmlEnumValue("MoroccanDirham") + MOROCCAN_DIRHAM("MoroccanDirham"), + @XmlEnumValue("NewIsraeliSheqel") + NEW_ISRAELI_SHEQEL("NewIsraeliSheqel"), + @XmlEnumValue("NewTaiwanDollar") + NEW_TAIWAN_DOLLAR("NewTaiwanDollar"), + @XmlEnumValue("NewZealandDollar") + NEW_ZEALAND_DOLLAR("NewZealandDollar"), + @XmlEnumValue("NorwegianKrone") + NORWEGIAN_KRONE("NorwegianKrone"), + @XmlEnumValue("NuevoSol") + NUEVO_SOL("NuevoSol"), + @XmlEnumValue("PakistanRupee") + PAKISTAN_RUPEE("PakistanRupee"), + @XmlEnumValue("Pataca") + PATACA("Pataca"), + @XmlEnumValue("PesoUruguayo") + PESO_URUGUAYO("PesoUruguayo"), + @XmlEnumValue("PhilippinePeso") + PHILIPPINE_PESO("PhilippinePeso"), + @XmlEnumValue("QatariRial") + QATARI_RIAL("QatariRial"), + @XmlEnumValue("Quetzal") + QUETZAL("Quetzal"), + @XmlEnumValue("RialOmani") + RIAL_OMANI("RialOmani"), + @XmlEnumValue("Rufiyaa") + RUFIYAA("Rufiyaa"), + @XmlEnumValue("Rupiah") + RUPIAH("Rupiah"), + @XmlEnumValue("RussianRuble") + RUSSIAN_RUBLE("RussianRuble"), + @XmlEnumValue("SaudiRiyal") + SAUDI_RIYAL("SaudiRiyal"), + @XmlEnumValue("SingaporeDollar") + SINGAPORE_DOLLAR("SingaporeDollar"), + @XmlEnumValue("SlovakKoruna") + SLOVAK_KORUNA("SlovakKoruna"), + @XmlEnumValue("Som") + SOM("Som"), + @XmlEnumValue("SouthAfricanRand") + SOUTH_AFRICAN_RAND("SouthAfricanRand"), + @XmlEnumValue("SwedishKrona") + SWEDISH_KRONA("SwedishKrona"), + @XmlEnumValue("SwissFranc") + SWISS_FRANC("SwissFranc"), + @XmlEnumValue("SyrianPound") + SYRIAN_POUND("SyrianPound"), + @XmlEnumValue("Tenge") + TENGE("Tenge"), + @XmlEnumValue("Tolar") + TOLAR("Tolar"), + @XmlEnumValue("TrinidadandTobagoDollar") + TRINIDADAND_TOBAGO_DOLLAR("TrinidadandTobagoDollar"), + @XmlEnumValue("Tugrik") + TUGRIK("Tugrik"), + @XmlEnumValue("TunisianDinar") + TUNISIAN_DINAR("TunisianDinar"), + @XmlEnumValue("TurkishLira") + TURKISH_LIRA("TurkishLira"), + @XmlEnumValue("UAEDirham") + UAE_DIRHAM("UAEDirham"), + @XmlEnumValue("UKPound") + UK_POUND("UKPound"), + @XmlEnumValue("USDollar") + US_DOLLAR("USDollar"), + @XmlEnumValue("UzbekistanSum") + UZBEKISTAN_SUM("UzbekistanSum"), + @XmlEnumValue("Won") + WON("Won"), + @XmlEnumValue("YemeniRial") + YEMENI_RIAL("YemeniRial"), + @XmlEnumValue("YuanRenminbi") + YUAN_RENMINBI("YuanRenminbi"), + @XmlEnumValue("YugoslavianNewDinar") + YUGOSLAVIAN_NEW_DINAR("YugoslavianNewDinar"), + @XmlEnumValue("ZimbabweDollar") + ZIMBABWE_DOLLAR("ZimbabweDollar"), + @XmlEnumValue("Zloty") + ZLOTY("Zloty"); + 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/v10/adinsight/DayMonthAndYear.java b/proxies/com/microsoft/bingads/v10/adinsight/DayMonthAndYear.java new file mode 100644 index 0000000000..4b2190e199 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/DayMonthAndYear.java @@ -0,0 +1,118 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DayMonthAndYear complex type. + * + *

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

+ * <complexType name="DayMonthAndYear">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Day" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Month" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Year" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DayMonthAndYear", propOrder = { + "day", + "month", + "year" +}) +public class DayMonthAndYear { + + @XmlElement(name = "Day") + protected Integer day; + @XmlElement(name = "Month") + protected Integer month; + @XmlElement(name = "Year") + protected Integer year; + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setDay(Integer value) { + this.day = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMonth(Integer value) { + this.month = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setYear(Integer value) { + this.year = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Duration.java b/proxies/com/microsoft/bingads/v10/adinsight/Duration.java new file mode 100644 index 0000000000..f7d778de5d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Duration.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for duration simple type. + * + *

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

+ * <simpleType name="duration">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}duration">
+ *     <pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
+ *     <minInclusive value="-P10675199DT2H48M5.4775808S"/>
+ *     <maxInclusive value="P10675199DT2H48M5.4775807S"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "duration", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Duration { + + @XmlValue + protected javax.xml.datatype.Duration value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link javax.xml.datatype.Duration } + * + */ + public javax.xml.datatype.Duration getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link javax.xml.datatype.Duration } + * + */ + public void setValue(javax.xml.datatype.Duration value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ENTITIES.java b/proxies/com/microsoft/bingads/v10/adinsight/ENTITIES.java new file mode 100644 index 0000000000..3695745299 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ENTITIES.java @@ -0,0 +1,70 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for ENTITIES simple type. + * + *

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

+ * <simpleType name="ENTITIES">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}ENTITY" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ENTITIES", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class ENTITIES { + + @XmlValue + @XmlSchemaType(name = "ENTITIES") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ENTITY } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ENTITY.java b/proxies/com/microsoft/bingads/v10/adinsight/ENTITY.java new file mode 100644 index 0000000000..1adc261a0d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ENTITY.java @@ -0,0 +1,59 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for ENTITY simple type. + * + *

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

+ * <simpleType name="ENTITY">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ENTITY", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class ENTITY { + + @XmlValue + @XmlSchemaType(name = "ENTITY") + protected NCName value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NCName } + * + */ + public NCName getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NCName } + * + */ + public void setValue(NCName value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/EstimatedBidAndTraffic.java b/proxies/com/microsoft/bingads/v10/adinsight/EstimatedBidAndTraffic.java new file mode 100644 index 0000000000..7300c577f3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/EstimatedBidAndTraffic.java @@ -0,0 +1,345 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EstimatedBidAndTraffic complex type. + * + *

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

+ * <complexType name="EstimatedBidAndTraffic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MinClicksPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MaxClicksPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="AverageCPC" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MinImpressionsPerWeek" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MaxImpressionsPerWeek" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CTR" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MinTotalCostPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MaxTotalCostPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Currency" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Currency" minOccurs="0"/>
+ *         <element name="MatchType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}MatchType" minOccurs="0"/>
+ *         <element name="EstimatedMinBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EstimatedBidAndTraffic", propOrder = { + "minClicksPerWeek", + "maxClicksPerWeek", + "averageCPC", + "minImpressionsPerWeek", + "maxImpressionsPerWeek", + "ctr", + "minTotalCostPerWeek", + "maxTotalCostPerWeek", + "currency", + "matchType", + "estimatedMinBid" +}) +public class EstimatedBidAndTraffic { + + @XmlElement(name = "MinClicksPerWeek", nillable = true) + protected Double minClicksPerWeek; + @XmlElement(name = "MaxClicksPerWeek", nillable = true) + protected Double maxClicksPerWeek; + @XmlElement(name = "AverageCPC", nillable = true) + protected Double averageCPC; + @XmlElement(name = "MinImpressionsPerWeek", nillable = true) + protected Long minImpressionsPerWeek; + @XmlElement(name = "MaxImpressionsPerWeek", nillable = true) + protected Long maxImpressionsPerWeek; + @XmlElement(name = "CTR", nillable = true) + protected Double ctr; + @XmlElement(name = "MinTotalCostPerWeek", nillable = true) + protected Double minTotalCostPerWeek; + @XmlElement(name = "MaxTotalCostPerWeek", nillable = true) + protected Double maxTotalCostPerWeek; + @XmlElement(name = "Currency") + @XmlSchemaType(name = "string") + protected Currency currency; + @XmlElement(name = "MatchType") + @XmlSchemaType(name = "string") + protected MatchType matchType; + @XmlElement(name = "EstimatedMinBid") + protected Double estimatedMinBid; + + /** + * Gets the value of the minClicksPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMinClicksPerWeek() { + return minClicksPerWeek; + } + + /** + * Sets the value of the minClicksPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMinClicksPerWeek(Double value) { + this.minClicksPerWeek = value; + } + + /** + * Gets the value of the maxClicksPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxClicksPerWeek() { + return maxClicksPerWeek; + } + + /** + * Sets the value of the maxClicksPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxClicksPerWeek(Double value) { + this.maxClicksPerWeek = value; + } + + /** + * Gets the value of the averageCPC property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAverageCPC() { + return averageCPC; + } + + /** + * Sets the value of the averageCPC property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAverageCPC(Double value) { + this.averageCPC = value; + } + + /** + * Gets the value of the minImpressionsPerWeek property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMinImpressionsPerWeek() { + return minImpressionsPerWeek; + } + + /** + * Sets the value of the minImpressionsPerWeek property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMinImpressionsPerWeek(Long value) { + this.minImpressionsPerWeek = value; + } + + /** + * Gets the value of the maxImpressionsPerWeek property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMaxImpressionsPerWeek() { + return maxImpressionsPerWeek; + } + + /** + * Sets the value of the maxImpressionsPerWeek property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMaxImpressionsPerWeek(Long value) { + this.maxImpressionsPerWeek = value; + } + + /** + * Gets the value of the ctr property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCTR() { + return ctr; + } + + /** + * Sets the value of the ctr property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCTR(Double value) { + this.ctr = value; + } + + /** + * Gets the value of the minTotalCostPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMinTotalCostPerWeek() { + return minTotalCostPerWeek; + } + + /** + * Sets the value of the minTotalCostPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMinTotalCostPerWeek(Double value) { + this.minTotalCostPerWeek = value; + } + + /** + * Gets the value of the maxTotalCostPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxTotalCostPerWeek() { + return maxTotalCostPerWeek; + } + + /** + * Sets the value of the maxTotalCostPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxTotalCostPerWeek(Double value) { + this.maxTotalCostPerWeek = 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; + } + + /** + * Gets the value of the matchType property. + * + * @return + * possible object is + * {@link MatchType } + * + */ + public MatchType getMatchType() { + return matchType; + } + + /** + * Sets the value of the matchType property. + * + * @param value + * allowed object is + * {@link MatchType } + * + */ + public void setMatchType(MatchType value) { + this.matchType = value; + } + + /** + * Gets the value of the estimatedMinBid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedMinBid() { + return estimatedMinBid; + } + + /** + * Sets the value of the estimatedMinBid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedMinBid(Double value) { + this.estimatedMinBid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/EstimatedPositionAndTraffic.java b/proxies/com/microsoft/bingads/v10/adinsight/EstimatedPositionAndTraffic.java new file mode 100644 index 0000000000..ee7e7fb49e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/EstimatedPositionAndTraffic.java @@ -0,0 +1,345 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EstimatedPositionAndTraffic complex type. + * + *

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

+ * <complexType name="EstimatedPositionAndTraffic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MatchType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}MatchType" minOccurs="0"/>
+ *         <element name="MinClicksPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MaxClicksPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="AverageCPC" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MinImpressionsPerWeek" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MaxImpressionsPerWeek" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CTR" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MinTotalCostPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="MaxTotalCostPerWeek" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Currency" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Currency" minOccurs="0"/>
+ *         <element name="EstimatedAdPosition" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EstimatedPositionAndTraffic", propOrder = { + "matchType", + "minClicksPerWeek", + "maxClicksPerWeek", + "averageCPC", + "minImpressionsPerWeek", + "maxImpressionsPerWeek", + "ctr", + "minTotalCostPerWeek", + "maxTotalCostPerWeek", + "currency", + "estimatedAdPosition" +}) +public class EstimatedPositionAndTraffic { + + @XmlElement(name = "MatchType") + @XmlSchemaType(name = "string") + protected MatchType matchType; + @XmlElement(name = "MinClicksPerWeek") + protected Double minClicksPerWeek; + @XmlElement(name = "MaxClicksPerWeek") + protected Double maxClicksPerWeek; + @XmlElement(name = "AverageCPC") + protected Double averageCPC; + @XmlElement(name = "MinImpressionsPerWeek") + protected Long minImpressionsPerWeek; + @XmlElement(name = "MaxImpressionsPerWeek") + protected Long maxImpressionsPerWeek; + @XmlElement(name = "CTR") + protected Double ctr; + @XmlElement(name = "MinTotalCostPerWeek") + protected Double minTotalCostPerWeek; + @XmlElement(name = "MaxTotalCostPerWeek") + protected Double maxTotalCostPerWeek; + @XmlElement(name = "Currency") + @XmlSchemaType(name = "string") + protected Currency currency; + @XmlElement(name = "EstimatedAdPosition") + protected Double estimatedAdPosition; + + /** + * Gets the value of the matchType property. + * + * @return + * possible object is + * {@link MatchType } + * + */ + public MatchType getMatchType() { + return matchType; + } + + /** + * Sets the value of the matchType property. + * + * @param value + * allowed object is + * {@link MatchType } + * + */ + public void setMatchType(MatchType value) { + this.matchType = value; + } + + /** + * Gets the value of the minClicksPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMinClicksPerWeek() { + return minClicksPerWeek; + } + + /** + * Sets the value of the minClicksPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMinClicksPerWeek(Double value) { + this.minClicksPerWeek = value; + } + + /** + * Gets the value of the maxClicksPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxClicksPerWeek() { + return maxClicksPerWeek; + } + + /** + * Sets the value of the maxClicksPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxClicksPerWeek(Double value) { + this.maxClicksPerWeek = value; + } + + /** + * Gets the value of the averageCPC property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAverageCPC() { + return averageCPC; + } + + /** + * Sets the value of the averageCPC property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAverageCPC(Double value) { + this.averageCPC = value; + } + + /** + * Gets the value of the minImpressionsPerWeek property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMinImpressionsPerWeek() { + return minImpressionsPerWeek; + } + + /** + * Sets the value of the minImpressionsPerWeek property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMinImpressionsPerWeek(Long value) { + this.minImpressionsPerWeek = value; + } + + /** + * Gets the value of the maxImpressionsPerWeek property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMaxImpressionsPerWeek() { + return maxImpressionsPerWeek; + } + + /** + * Sets the value of the maxImpressionsPerWeek property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMaxImpressionsPerWeek(Long value) { + this.maxImpressionsPerWeek = value; + } + + /** + * Gets the value of the ctr property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCTR() { + return ctr; + } + + /** + * Sets the value of the ctr property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCTR(Double value) { + this.ctr = value; + } + + /** + * Gets the value of the minTotalCostPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMinTotalCostPerWeek() { + return minTotalCostPerWeek; + } + + /** + * Sets the value of the minTotalCostPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMinTotalCostPerWeek(Double value) { + this.minTotalCostPerWeek = value; + } + + /** + * Gets the value of the maxTotalCostPerWeek property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxTotalCostPerWeek() { + return maxTotalCostPerWeek; + } + + /** + * Sets the value of the maxTotalCostPerWeek property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxTotalCostPerWeek(Double value) { + this.maxTotalCostPerWeek = 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; + } + + /** + * Gets the value of the estimatedAdPosition property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedAdPosition() { + return estimatedAdPosition; + } + + /** + * Sets the value of the estimatedAdPosition property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedAdPosition(Double value) { + this.estimatedAdPosition = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsRequest.java new file mode 100644 index 0000000000..9c48397d6c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupBidLandscapeInputs" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfAdGroupBidLandscapeInput" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupBidLandscapeInputs" +}) +@XmlRootElement(name = "GetBidLandscapeByAdGroupIdsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBidLandscapeByAdGroupIdsRequest { + + @XmlElement(name = "AdGroupBidLandscapeInputs", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfAdGroupBidLandscapeInput adGroupBidLandscapeInputs; + + /** + * Gets the value of the adGroupBidLandscapeInputs property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupBidLandscapeInput } + * + */ + public ArrayOfAdGroupBidLandscapeInput getAdGroupBidLandscapeInputs() { + return adGroupBidLandscapeInputs; + } + + /** + * Sets the value of the adGroupBidLandscapeInputs property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupBidLandscapeInput } + * + */ + public void setAdGroupBidLandscapeInputs(ArrayOfAdGroupBidLandscapeInput value) { + this.adGroupBidLandscapeInputs = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsResponse.java new file mode 100644 index 0000000000..c1f6f64e6f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByAdGroupIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidLandscape" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfAdGroupBidLandscape" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "bidLandscape" +}) +@XmlRootElement(name = "GetBidLandscapeByAdGroupIdsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBidLandscapeByAdGroupIdsResponse { + + @XmlElement(name = "BidLandscape", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfAdGroupBidLandscape bidLandscape; + + /** + * Gets the value of the bidLandscape property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupBidLandscape } + * + */ + public ArrayOfAdGroupBidLandscape getBidLandscape() { + return bidLandscape; + } + + /** + * Sets the value of the bidLandscape property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupBidLandscape } + * + */ + public void setBidLandscape(ArrayOfAdGroupBidLandscape value) { + this.bidLandscape = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsRequest.java new file mode 100644 index 0000000000..dd13f96189 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="IncludeCurrentBid" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordIds", + "includeCurrentBid" +}) +@XmlRootElement(name = "GetBidLandscapeByKeywordIdsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBidLandscapeByKeywordIdsRequest { + + @XmlElement(name = "KeywordIds", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOflong keywordIds; + @XmlElement(name = "IncludeCurrentBid", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Boolean includeCurrentBid; + + /** + * Gets the value of the keywordIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getKeywordIds() { + return keywordIds; + } + + /** + * Sets the value of the keywordIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setKeywordIds(ArrayOflong value) { + this.keywordIds = value; + } + + /** + * Gets the value of the includeCurrentBid property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIncludeCurrentBid() { + return includeCurrentBid; + } + + /** + * Sets the value of the includeCurrentBid property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIncludeCurrentBid(Boolean value) { + this.includeCurrentBid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsResponse.java new file mode 100644 index 0000000000..4b6a0f22d5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBidLandscapeByKeywordIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidLandscape" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordBidLandscape" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "bidLandscape" +}) +@XmlRootElement(name = "GetBidLandscapeByKeywordIdsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBidLandscapeByKeywordIdsResponse { + + @XmlElement(name = "BidLandscape", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordBidLandscape bidLandscape; + + /** + * Gets the value of the bidLandscape property. + * + * @return + * possible object is + * {@link ArrayOfKeywordBidLandscape } + * + */ + public ArrayOfKeywordBidLandscape getBidLandscape() { + return bidLandscape; + } + + /** + * Sets the value of the bidLandscape property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordBidLandscape } + * + */ + public void setBidLandscape(ArrayOfKeywordBidLandscape value) { + this.bidLandscape = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesRequest.java new file mode 100644 index 0000000000..9e0bbb90a0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesRequest.java @@ -0,0 +1,125 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="OpportunityType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}BidOpportunityType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "campaignId", + "opportunityType" +}) +@XmlRootElement(name = "GetBidOpportunitiesRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBidOpportunitiesRequest { + + @XmlElement(name = "AdGroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long adGroupId; + @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long campaignId; + @XmlElement(name = "OpportunityType", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", type = String.class) + @XmlJavaTypeAdapter(Adapter3 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection opportunityType; + + /** + * 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 opportunityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getOpportunityType() { + return opportunityType; + } + + /** + * Sets the value of the opportunityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOpportunityType(Collection value) { + this.opportunityType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesResponse.java new file mode 100644 index 0000000000..98ea046768 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBidOpportunitiesResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Opportunities" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfBidOpportunity" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "opportunities" +}) +@XmlRootElement(name = "GetBidOpportunitiesResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBidOpportunitiesResponse { + + @XmlElement(name = "Opportunities", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfBidOpportunity opportunities; + + /** + * Gets the value of the opportunities property. + * + * @return + * possible object is + * {@link ArrayOfBidOpportunity } + * + */ + public ArrayOfBidOpportunity getOpportunities() { + return opportunities; + } + + /** + * Sets the value of the opportunities property. + * + * @param value + * allowed object is + * {@link ArrayOfBidOpportunity } + * + */ + public void setOpportunities(ArrayOfBidOpportunity value) { + this.opportunities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetBudgetOpportunitiesRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBudgetOpportunitiesRequest.java new file mode 100644 index 0000000000..cb44b65f9d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBudgetOpportunitiesRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId" +}) +@XmlRootElement(name = "GetBudgetOpportunitiesRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBudgetOpportunitiesRequest { + + @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + 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/v10/adinsight/GetBudgetOpportunitiesResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetBudgetOpportunitiesResponse.java new file mode 100644 index 0000000000..c240ff6724 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetBudgetOpportunitiesResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Opportunities" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfBudgetOpportunity" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "opportunities" +}) +@XmlRootElement(name = "GetBudgetOpportunitiesResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetBudgetOpportunitiesResponse { + + @XmlElement(name = "Opportunities", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfBudgetOpportunity opportunities; + + /** + * Gets the value of the opportunities property. + * + * @return + * possible object is + * {@link ArrayOfBudgetOpportunity } + * + */ + public ArrayOfBudgetOpportunity getOpportunities() { + return opportunities; + } + + /** + * Sets the value of the opportunities property. + * + * @param value + * allowed object is + * {@link ArrayOfBudgetOpportunity } + * + */ + public void setOpportunities(ArrayOfBudgetOpportunity value) { + this.opportunities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsRequest.java new file mode 100644 index 0000000000..e1a9423eec --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsRequest.java @@ -0,0 +1,94 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="TargetPositionForAds" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}TargetAdPosition" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordIds", + "targetPositionForAds" +}) +@XmlRootElement(name = "GetEstimatedBidByKeywordIdsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedBidByKeywordIdsRequest { + + @XmlElement(name = "KeywordIds", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOflong keywordIds; + @XmlElement(name = "TargetPositionForAds", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") + @XmlSchemaType(name = "string") + protected TargetAdPosition targetPositionForAds; + + /** + * Gets the value of the keywordIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getKeywordIds() { + return keywordIds; + } + + /** + * Sets the value of the keywordIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setKeywordIds(ArrayOflong value) { + this.keywordIds = value; + } + + /** + * Gets the value of the targetPositionForAds property. + * + * @return + * possible object is + * {@link TargetAdPosition } + * + */ + public TargetAdPosition getTargetPositionForAds() { + return targetPositionForAds; + } + + /** + * Sets the value of the targetPositionForAds property. + * + * @param value + * allowed object is + * {@link TargetAdPosition } + * + */ + public void setTargetPositionForAds(TargetAdPosition value) { + this.targetPositionForAds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsResponse.java new file mode 100644 index 0000000000..685876c7e3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordEstimatedBids" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordIdEstimatedBid" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordEstimatedBids" +}) +@XmlRootElement(name = "GetEstimatedBidByKeywordIdsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedBidByKeywordIdsResponse { + + @XmlElement(name = "KeywordEstimatedBids", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordIdEstimatedBid keywordEstimatedBids; + + /** + * Gets the value of the keywordEstimatedBids property. + * + * @return + * possible object is + * {@link ArrayOfKeywordIdEstimatedBid } + * + */ + public ArrayOfKeywordIdEstimatedBid getKeywordEstimatedBids() { + return keywordEstimatedBids; + } + + /** + * Sets the value of the keywordEstimatedBids property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordIdEstimatedBid } + * + */ + public void setKeywordEstimatedBids(ArrayOfKeywordIdEstimatedBid value) { + this.keywordEstimatedBids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java new file mode 100644 index 0000000000..6ea14a739e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java @@ -0,0 +1,263 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message}ArrayOfKeywordAndMatchType" minOccurs="0"/>
+ *         <element name="TargetPositionForAds" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}TargetAdPosition" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Currency" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Currency" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdgroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="EntityLevelBid" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "targetPositionForAds", + "language", + "publisherCountries", + "currency", + "campaignId", + "adgroupId", + "entityLevelBid" +}) +@XmlRootElement(name = "GetEstimatedBidByKeywordsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedBidByKeywordsRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordAndMatchType keywords; + @XmlElement(name = "TargetPositionForAds", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") + @XmlSchemaType(name = "string") + protected TargetAdPosition targetPositionForAds; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountries", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring publisherCountries; + @XmlElement(name = "Currency", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + @XmlSchemaType(name = "string") + protected Currency currency; + @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long campaignId; + @XmlElement(name = "AdgroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long adgroupId; + @XmlElement(name = "EntityLevelBid", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String entityLevelBid; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfKeywordAndMatchType } + * + */ + public ArrayOfKeywordAndMatchType getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordAndMatchType } + * + */ + public void setKeywords(ArrayOfKeywordAndMatchType value) { + this.keywords = value; + } + + /** + * Gets the value of the targetPositionForAds property. + * + * @return + * possible object is + * {@link TargetAdPosition } + * + */ + public TargetAdPosition getTargetPositionForAds() { + return targetPositionForAds; + } + + /** + * Sets the value of the targetPositionForAds property. + * + * @param value + * allowed object is + * {@link TargetAdPosition } + * + */ + public void setTargetPositionForAds(TargetAdPosition value) { + this.targetPositionForAds = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountries property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getPublisherCountries() { + return publisherCountries; + } + + /** + * Sets the value of the publisherCountries property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setPublisherCountries(ArrayOfstring value) { + this.publisherCountries = 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; + } + + /** + * 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 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 entityLevelBid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntityLevelBid() { + return entityLevelBid; + } + + /** + * Sets the value of the entityLevelBid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntityLevelBid(String value) { + this.entityLevelBid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsResponse.java new file mode 100644 index 0000000000..836fec0945 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordEstimatedBids" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordEstimatedBid" minOccurs="0"/>
+ *         <element name="AdGroupEstimatedBid" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}EstimatedBidAndTraffic" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordEstimatedBids", + "adGroupEstimatedBid" +}) +@XmlRootElement(name = "GetEstimatedBidByKeywordsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedBidByKeywordsResponse { + + @XmlElement(name = "KeywordEstimatedBids", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordEstimatedBid keywordEstimatedBids; + @XmlElement(name = "AdGroupEstimatedBid", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected EstimatedBidAndTraffic adGroupEstimatedBid; + + /** + * Gets the value of the keywordEstimatedBids property. + * + * @return + * possible object is + * {@link ArrayOfKeywordEstimatedBid } + * + */ + public ArrayOfKeywordEstimatedBid getKeywordEstimatedBids() { + return keywordEstimatedBids; + } + + /** + * Sets the value of the keywordEstimatedBids property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordEstimatedBid } + * + */ + public void setKeywordEstimatedBids(ArrayOfKeywordEstimatedBid value) { + this.keywordEstimatedBids = value; + } + + /** + * Gets the value of the adGroupEstimatedBid property. + * + * @return + * possible object is + * {@link EstimatedBidAndTraffic } + * + */ + public EstimatedBidAndTraffic getAdGroupEstimatedBid() { + return adGroupEstimatedBid; + } + + /** + * Sets the value of the adGroupEstimatedBid property. + * + * @param value + * allowed object is + * {@link EstimatedBidAndTraffic } + * + */ + public void setAdGroupEstimatedBid(EstimatedBidAndTraffic value) { + this.adGroupEstimatedBid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsRequest.java new file mode 100644 index 0000000000..0d5acb7fd4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="MaxBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordIds", + "maxBid" +}) +@XmlRootElement(name = "GetEstimatedPositionByKeywordIdsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedPositionByKeywordIdsRequest { + + @XmlElement(name = "KeywordIds", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOflong keywordIds; + @XmlElement(name = "MaxBid", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") + protected Double maxBid; + + /** + * Gets the value of the keywordIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getKeywordIds() { + return keywordIds; + } + + /** + * Sets the value of the keywordIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setKeywordIds(ArrayOflong value) { + this.keywordIds = value; + } + + /** + * Gets the value of the maxBid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxBid() { + return maxBid; + } + + /** + * Sets the value of the maxBid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxBid(Double value) { + this.maxBid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsResponse.java new file mode 100644 index 0000000000..df591b4d3c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordEstimatedPositions" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordIdEstimatedPosition" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordEstimatedPositions" +}) +@XmlRootElement(name = "GetEstimatedPositionByKeywordIdsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedPositionByKeywordIdsResponse { + + @XmlElement(name = "KeywordEstimatedPositions", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordIdEstimatedPosition keywordEstimatedPositions; + + /** + * Gets the value of the keywordEstimatedPositions property. + * + * @return + * possible object is + * {@link ArrayOfKeywordIdEstimatedPosition } + * + */ + public ArrayOfKeywordIdEstimatedPosition getKeywordEstimatedPositions() { + return keywordEstimatedPositions; + } + + /** + * Sets the value of the keywordEstimatedPositions property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordIdEstimatedPosition } + * + */ + public void setKeywordEstimatedPositions(ArrayOfKeywordIdEstimatedPosition value) { + this.keywordEstimatedPositions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java new file mode 100644 index 0000000000..c61ee1cf41 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java @@ -0,0 +1,262 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="MaxBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Currency" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Currency" minOccurs="0"/>
+ *         <element name="MatchTypes" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfMatchType" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdgroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "maxBid", + "language", + "publisherCountries", + "currency", + "matchTypes", + "campaignId", + "adgroupId" +}) +@XmlRootElement(name = "GetEstimatedPositionByKeywordsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedPositionByKeywordsRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring keywords; + @XmlElement(name = "MaxBid", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") + protected Double maxBid; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountries", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring publisherCountries; + @XmlElement(name = "Currency", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + @XmlSchemaType(name = "string") + protected Currency currency; + @XmlElement(name = "MatchTypes", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfMatchType matchTypes; + @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long campaignId; + @XmlElement(name = "AdgroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long adgroupId; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setKeywords(ArrayOfstring value) { + this.keywords = value; + } + + /** + * Gets the value of the maxBid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMaxBid() { + return maxBid; + } + + /** + * Sets the value of the maxBid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMaxBid(Double value) { + this.maxBid = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountries property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getPublisherCountries() { + return publisherCountries; + } + + /** + * Sets the value of the publisherCountries property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setPublisherCountries(ArrayOfstring value) { + this.publisherCountries = 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; + } + + /** + * Gets the value of the matchTypes property. + * + * @return + * possible object is + * {@link ArrayOfMatchType } + * + */ + public ArrayOfMatchType getMatchTypes() { + return matchTypes; + } + + /** + * Sets the value of the matchTypes property. + * + * @param value + * allowed object is + * {@link ArrayOfMatchType } + * + */ + public void setMatchTypes(ArrayOfMatchType value) { + this.matchTypes = 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 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsResponse.java new file mode 100644 index 0000000000..730bf41683 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordEstimatedPositions" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordEstimatedPosition" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordEstimatedPositions" +}) +@XmlRootElement(name = "GetEstimatedPositionByKeywordsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetEstimatedPositionByKeywordsResponse { + + @XmlElement(name = "KeywordEstimatedPositions", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordEstimatedPosition keywordEstimatedPositions; + + /** + * Gets the value of the keywordEstimatedPositions property. + * + * @return + * possible object is + * {@link ArrayOfKeywordEstimatedPosition } + * + */ + public ArrayOfKeywordEstimatedPosition getKeywordEstimatedPositions() { + return keywordEstimatedPositions; + } + + /** + * Sets the value of the keywordEstimatedPositions property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordEstimatedPosition } + * + */ + public void setKeywordEstimatedPositions(ArrayOfKeywordEstimatedPosition value) { + this.keywordEstimatedPositions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceRequest.java new file mode 100644 index 0000000000..8c738bdcf0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceRequest.java @@ -0,0 +1,235 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="TimeInterval" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}TimeInterval" minOccurs="0"/>
+ *         <element name="TargetAdPosition" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AdPosition" minOccurs="0"/>
+ *         <element name="MatchTypes" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfMatchType" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Devices" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "timeInterval", + "targetAdPosition", + "matchTypes", + "language", + "publisherCountries", + "devices" +}) +@XmlRootElement(name = "GetHistoricalKeywordPerformanceRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetHistoricalKeywordPerformanceRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring keywords; + @XmlElement(name = "TimeInterval", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + @XmlSchemaType(name = "string") + protected TimeInterval timeInterval; + @XmlElement(name = "TargetAdPosition", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + @XmlSchemaType(name = "string") + protected AdPosition targetAdPosition; + @XmlElement(name = "MatchTypes", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfMatchType matchTypes; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountries", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring publisherCountries; + @XmlElement(name = "Devices", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring devices; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setKeywords(ArrayOfstring value) { + this.keywords = value; + } + + /** + * Gets the value of the timeInterval property. + * + * @return + * possible object is + * {@link TimeInterval } + * + */ + public TimeInterval getTimeInterval() { + return timeInterval; + } + + /** + * Sets the value of the timeInterval property. + * + * @param value + * allowed object is + * {@link TimeInterval } + * + */ + public void setTimeInterval(TimeInterval value) { + this.timeInterval = value; + } + + /** + * Gets the value of the targetAdPosition property. + * + * @return + * possible object is + * {@link AdPosition } + * + */ + public AdPosition getTargetAdPosition() { + return targetAdPosition; + } + + /** + * Sets the value of the targetAdPosition property. + * + * @param value + * allowed object is + * {@link AdPosition } + * + */ + public void setTargetAdPosition(AdPosition value) { + this.targetAdPosition = value; + } + + /** + * Gets the value of the matchTypes property. + * + * @return + * possible object is + * {@link ArrayOfMatchType } + * + */ + public ArrayOfMatchType getMatchTypes() { + return matchTypes; + } + + /** + * Sets the value of the matchTypes property. + * + * @param value + * allowed object is + * {@link ArrayOfMatchType } + * + */ + public void setMatchTypes(ArrayOfMatchType value) { + this.matchTypes = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountries property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getPublisherCountries() { + return publisherCountries; + } + + /** + * Sets the value of the publisherCountries property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setPublisherCountries(ArrayOfstring value) { + this.publisherCountries = value; + } + + /** + * Gets the value of the devices property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getDevices() { + return devices; + } + + /** + * Sets the value of the devices property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setDevices(ArrayOfstring value) { + this.devices = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceResponse.java new file mode 100644 index 0000000000..3a6b85640a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalKeywordPerformanceResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordHistoricalPerformances" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordHistoricalPerformance" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordHistoricalPerformances" +}) +@XmlRootElement(name = "GetHistoricalKeywordPerformanceResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetHistoricalKeywordPerformanceResponse { + + @XmlElement(name = "KeywordHistoricalPerformances", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordHistoricalPerformance keywordHistoricalPerformances; + + /** + * Gets the value of the keywordHistoricalPerformances property. + * + * @return + * possible object is + * {@link ArrayOfKeywordHistoricalPerformance } + * + */ + public ArrayOfKeywordHistoricalPerformance getKeywordHistoricalPerformances() { + return keywordHistoricalPerformances; + } + + /** + * Sets the value of the keywordHistoricalPerformances property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordHistoricalPerformance } + * + */ + public void setKeywordHistoricalPerformances(ArrayOfKeywordHistoricalPerformance value) { + this.keywordHistoricalPerformances = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountRequest.java new file mode 100644 index 0000000000..d71fcb3080 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountRequest.java @@ -0,0 +1,232 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="StartDate" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DayMonthAndYear" minOccurs="0"/>
+ *         <element name="EndDate" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DayMonthAndYear" minOccurs="0"/>
+ *         <element name="TimePeriodRollup" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Devices" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "language", + "publisherCountries", + "startDate", + "endDate", + "timePeriodRollup", + "devices" +}) +@XmlRootElement(name = "GetHistoricalSearchCountRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetHistoricalSearchCountRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring keywords; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountries", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring publisherCountries; + @XmlElement(name = "StartDate", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected DayMonthAndYear startDate; + @XmlElement(name = "EndDate", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected DayMonthAndYear endDate; + @XmlElement(name = "TimePeriodRollup", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String timePeriodRollup; + @XmlElement(name = "Devices", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring devices; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setKeywords(ArrayOfstring value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountries property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getPublisherCountries() { + return publisherCountries; + } + + /** + * Sets the value of the publisherCountries property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setPublisherCountries(ArrayOfstring value) { + this.publisherCountries = value; + } + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link DayMonthAndYear } + * + */ + public DayMonthAndYear getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link DayMonthAndYear } + * + */ + public void setStartDate(DayMonthAndYear value) { + this.startDate = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link DayMonthAndYear } + * + */ + public DayMonthAndYear getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link DayMonthAndYear } + * + */ + public void setEndDate(DayMonthAndYear value) { + this.endDate = value; + } + + /** + * Gets the value of the timePeriodRollup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTimePeriodRollup() { + return timePeriodRollup; + } + + /** + * Sets the value of the timePeriodRollup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTimePeriodRollup(String value) { + this.timePeriodRollup = value; + } + + /** + * Gets the value of the devices property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getDevices() { + return devices; + } + + /** + * Sets the value of the devices property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setDevices(ArrayOfstring value) { + this.devices = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountResponse.java new file mode 100644 index 0000000000..a539eb56cc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetHistoricalSearchCountResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordSearchCounts" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordSearchCount" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordSearchCounts" +}) +@XmlRootElement(name = "GetHistoricalSearchCountResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetHistoricalSearchCountResponse { + + @XmlElement(name = "KeywordSearchCounts", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordSearchCount keywordSearchCounts; + + /** + * Gets the value of the keywordSearchCounts property. + * + * @return + * possible object is + * {@link ArrayOfKeywordSearchCount } + * + */ + public ArrayOfKeywordSearchCount getKeywordSearchCounts() { + return keywordSearchCounts; + } + + /** + * Sets the value of the keywordSearchCounts property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordSearchCount } + * + */ + public void setKeywordSearchCounts(ArrayOfKeywordSearchCount value) { + this.keywordSearchCounts = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesRequest.java new file mode 100644 index 0000000000..a917702f4c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesRequest.java @@ -0,0 +1,148 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="MaxCategories" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "language", + "publisherCountry", + "maxCategories" +}) +@XmlRootElement(name = "GetKeywordCategoriesRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordCategoriesRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring keywords; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountry", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String publisherCountry; + @XmlElement(name = "MaxCategories", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Integer maxCategories; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setKeywords(ArrayOfstring value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisherCountry() { + return publisherCountry; + } + + /** + * Sets the value of the publisherCountry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisherCountry(String value) { + this.publisherCountry = value; + } + + /** + * Gets the value of the maxCategories property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMaxCategories() { + return maxCategories; + } + + /** + * Sets the value of the maxCategories property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMaxCategories(Integer value) { + this.maxCategories = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesResponse.java new file mode 100644 index 0000000000..7fe1155c9c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordCategoriesResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Result" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordCategoryResult" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "result" +}) +@XmlRootElement(name = "GetKeywordCategoriesResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordCategoriesResponse { + + @XmlElement(name = "Result", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordCategoryResult result; + + /** + * Gets the value of the result property. + * + * @return + * possible object is + * {@link ArrayOfKeywordCategoryResult } + * + */ + public ArrayOfKeywordCategoryResult getResult() { + return result; + } + + /** + * Sets the value of the result property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordCategoryResult } + * + */ + public void setResult(ArrayOfKeywordCategoryResult value) { + this.result = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsRequest.java new file mode 100644 index 0000000000..26199937af --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsRequest.java @@ -0,0 +1,148 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Device" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "language", + "publisherCountry", + "device" +}) +@XmlRootElement(name = "GetKeywordDemographicsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordDemographicsRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring keywords; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountry", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String publisherCountry; + @XmlElement(name = "Device", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring device; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setKeywords(ArrayOfstring value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisherCountry() { + return publisherCountry; + } + + /** + * Sets the value of the publisherCountry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisherCountry(String value) { + this.publisherCountry = value; + } + + /** + * Gets the value of the device property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getDevice() { + return device; + } + + /** + * Sets the value of the device property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setDevice(ArrayOfstring value) { + this.device = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsResponse.java new file mode 100644 index 0000000000..294054212c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordDemographicsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordDemographicResult" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordDemographicResult" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordDemographicResult" +}) +@XmlRootElement(name = "GetKeywordDemographicsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordDemographicsResponse { + + @XmlElement(name = "KeywordDemographicResult", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordDemographicResult keywordDemographicResult; + + /** + * Gets the value of the keywordDemographicResult property. + * + * @return + * possible object is + * {@link ArrayOfKeywordDemographicResult } + * + */ + public ArrayOfKeywordDemographicResult getKeywordDemographicResult() { + return keywordDemographicResult; + } + + /** + * Sets the value of the keywordDemographicResult property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordDemographicResult } + * + */ + public void setKeywordDemographicResult(ArrayOfKeywordDemographicResult value) { + this.keywordDemographicResult = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsRequest.java new file mode 100644 index 0000000000..5f5524d8d8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsRequest.java @@ -0,0 +1,232 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Device" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Level" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="ParentCountry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="MaxLocations" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "language", + "publisherCountry", + "device", + "level", + "parentCountry", + "maxLocations" +}) +@XmlRootElement(name = "GetKeywordLocationsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordLocationsRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring keywords; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountry", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String publisherCountry; + @XmlElement(name = "Device", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring device; + @XmlElement(name = "Level", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Integer level; + @XmlElement(name = "ParentCountry", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String parentCountry; + @XmlElement(name = "MaxLocations", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Integer maxLocations; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setKeywords(ArrayOfstring value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisherCountry() { + return publisherCountry; + } + + /** + * Sets the value of the publisherCountry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisherCountry(String value) { + this.publisherCountry = value; + } + + /** + * Gets the value of the device property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getDevice() { + return device; + } + + /** + * Sets the value of the device property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setDevice(ArrayOfstring value) { + this.device = value; + } + + /** + * Gets the value of the level property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getLevel() { + return level; + } + + /** + * Sets the value of the level property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setLevel(Integer value) { + this.level = value; + } + + /** + * Gets the value of the parentCountry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParentCountry() { + return parentCountry; + } + + /** + * Sets the value of the parentCountry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParentCountry(String value) { + this.parentCountry = value; + } + + /** + * Gets the value of the maxLocations property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMaxLocations() { + return maxLocations; + } + + /** + * Sets the value of the maxLocations property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMaxLocations(Integer value) { + this.maxLocations = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsResponse.java new file mode 100644 index 0000000000..9249e2bc88 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordLocationsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordLocationResult" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordLocationResult" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordLocationResult" +}) +@XmlRootElement(name = "GetKeywordLocationsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordLocationsResponse { + + @XmlElement(name = "KeywordLocationResult", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordLocationResult keywordLocationResult; + + /** + * Gets the value of the keywordLocationResult property. + * + * @return + * possible object is + * {@link ArrayOfKeywordLocationResult } + * + */ + public ArrayOfKeywordLocationResult getKeywordLocationResult() { + return keywordLocationResult; + } + + /** + * Sets the value of the keywordLocationResult property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordLocationResult } + * + */ + public void setKeywordLocationResult(ArrayOfKeywordLocationResult value) { + this.keywordLocationResult = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesRequest.java new file mode 100644 index 0000000000..165b7925f9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesRequest.java @@ -0,0 +1,125 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="OpportunityType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordOpportunityType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "campaignId", + "opportunityType" +}) +@XmlRootElement(name = "GetKeywordOpportunitiesRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordOpportunitiesRequest { + + @XmlElement(name = "AdGroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long adGroupId; + @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long campaignId; + @XmlElement(name = "OpportunityType", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", type = String.class) + @XmlJavaTypeAdapter(Adapter2 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection opportunityType; + + /** + * 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 opportunityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getOpportunityType() { + return opportunityType; + } + + /** + * Sets the value of the opportunityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOpportunityType(Collection value) { + this.opportunityType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesResponse.java new file mode 100644 index 0000000000..0f09356d24 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetKeywordOpportunitiesResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Opportunities" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordOpportunity" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "opportunities" +}) +@XmlRootElement(name = "GetKeywordOpportunitiesResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetKeywordOpportunitiesResponse { + + @XmlElement(name = "Opportunities", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordOpportunity opportunities; + + /** + * Gets the value of the opportunities property. + * + * @return + * possible object is + * {@link ArrayOfKeywordOpportunity } + * + */ + public ArrayOfKeywordOpportunity getOpportunities() { + return opportunities; + } + + /** + * Sets the value of the opportunities property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordOpportunity } + * + */ + public void setOpportunities(ArrayOfKeywordOpportunity value) { + this.opportunities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Guid.java b/proxies/com/microsoft/bingads/v10/adinsight/Guid.java new file mode 100644 index 0000000000..5456ad0941 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Guid.java @@ -0,0 +1,58 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for guid simple type. + * + *

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

+ * <simpleType name="guid">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "guid", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Guid { + + @XmlValue + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/HistoricalSearchCountPeriodic.java b/proxies/com/microsoft/bingads/v10/adinsight/HistoricalSearchCountPeriodic.java new file mode 100644 index 0000000000..2d058ac178 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/HistoricalSearchCountPeriodic.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for HistoricalSearchCountPeriodic complex type. + * + *

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

+ * <complexType name="HistoricalSearchCountPeriodic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SearchCount" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="DayMonthAndYear" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DayMonthAndYear" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "HistoricalSearchCountPeriodic", propOrder = { + "searchCount", + "dayMonthAndYear" +}) +public class HistoricalSearchCountPeriodic { + + @XmlElement(name = "SearchCount") + protected Long searchCount; + @XmlElement(name = "DayMonthAndYear", nillable = true) + protected DayMonthAndYear dayMonthAndYear; + + /** + * Gets the value of the searchCount property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSearchCount() { + return searchCount; + } + + /** + * Sets the value of the searchCount property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSearchCount(Long value) { + this.searchCount = value; + } + + /** + * Gets the value of the dayMonthAndYear property. + * + * @return + * possible object is + * {@link DayMonthAndYear } + * + */ + public DayMonthAndYear getDayMonthAndYear() { + return dayMonthAndYear; + } + + /** + * Sets the value of the dayMonthAndYear property. + * + * @param value + * allowed object is + * {@link DayMonthAndYear } + * + */ + public void setDayMonthAndYear(DayMonthAndYear value) { + this.dayMonthAndYear = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java b/proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java new file mode 100644 index 0000000000..c248ceebc3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java @@ -0,0 +1,726 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.concurrent.Future; +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebService(name = "IAdInsightService", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface IAdInsightService { + + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBidOpportunities", action = "GetBidOpportunities") + public Response getBidOpportunitiesAsync( + @WebParam(name = "GetBidOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidOpportunitiesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBidOpportunities", action = "GetBidOpportunities") + public Future getBidOpportunitiesAsync( + @WebParam(name = "GetBidOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidOpportunitiesRequest parameters, + @WebParam(name = "GetBidOpportunitiesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetBidOpportunitiesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBidOpportunities", action = "GetBidOpportunities") + @WebResult(name = "GetBidOpportunitiesResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetBidOpportunitiesResponse getBidOpportunities( + @WebParam(name = "GetBidOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidOpportunitiesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBudgetOpportunities", action = "GetBudgetOpportunities") + public Response getBudgetOpportunitiesAsync( + @WebParam(name = "GetBudgetOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBudgetOpportunitiesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBudgetOpportunities", action = "GetBudgetOpportunities") + public Future getBudgetOpportunitiesAsync( + @WebParam(name = "GetBudgetOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBudgetOpportunitiesRequest parameters, + @WebParam(name = "GetBudgetOpportunitiesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetBudgetOpportunitiesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBudgetOpportunities", action = "GetBudgetOpportunities") + @WebResult(name = "GetBudgetOpportunitiesResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetBudgetOpportunitiesResponse getBudgetOpportunities( + @WebParam(name = "GetBudgetOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBudgetOpportunitiesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetKeywordOpportunities", action = "GetKeywordOpportunities") + public Response getKeywordOpportunitiesAsync( + @WebParam(name = "GetKeywordOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordOpportunitiesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetKeywordOpportunities", action = "GetKeywordOpportunities") + public Future getKeywordOpportunitiesAsync( + @WebParam(name = "GetKeywordOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordOpportunitiesRequest parameters, + @WebParam(name = "GetKeywordOpportunitiesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetKeywordOpportunitiesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetKeywordOpportunities", action = "GetKeywordOpportunities") + @WebResult(name = "GetKeywordOpportunitiesResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetKeywordOpportunitiesResponse getKeywordOpportunities( + @WebParam(name = "GetKeywordOpportunitiesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordOpportunitiesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetEstimatedBidByKeywordIds", action = "GetEstimatedBidByKeywordIds") + public Response getEstimatedBidByKeywordIdsAsync( + @WebParam(name = "GetEstimatedBidByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedBidByKeywordIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetEstimatedBidByKeywordIds", action = "GetEstimatedBidByKeywordIds") + public Future getEstimatedBidByKeywordIdsAsync( + @WebParam(name = "GetEstimatedBidByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedBidByKeywordIdsRequest parameters, + @WebParam(name = "GetEstimatedBidByKeywordIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetEstimatedBidByKeywordIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetEstimatedBidByKeywordIds", action = "GetEstimatedBidByKeywordIds") + @WebResult(name = "GetEstimatedBidByKeywordIdsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetEstimatedBidByKeywordIdsResponse getEstimatedBidByKeywordIds( + @WebParam(name = "GetEstimatedBidByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedBidByKeywordIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetEstimatedPositionByKeywordIds", action = "GetEstimatedPositionByKeywordIds") + public Response getEstimatedPositionByKeywordIdsAsync( + @WebParam(name = "GetEstimatedPositionByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedPositionByKeywordIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetEstimatedPositionByKeywordIds", action = "GetEstimatedPositionByKeywordIds") + public Future getEstimatedPositionByKeywordIdsAsync( + @WebParam(name = "GetEstimatedPositionByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedPositionByKeywordIdsRequest parameters, + @WebParam(name = "GetEstimatedPositionByKeywordIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetEstimatedPositionByKeywordIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetEstimatedPositionByKeywordIds", action = "GetEstimatedPositionByKeywordIds") + @WebResult(name = "GetEstimatedPositionByKeywordIdsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetEstimatedPositionByKeywordIdsResponse getEstimatedPositionByKeywordIds( + @WebParam(name = "GetEstimatedPositionByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedPositionByKeywordIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetEstimatedBidByKeywords", action = "GetEstimatedBidByKeywords") + public Response getEstimatedBidByKeywordsAsync( + @WebParam(name = "GetEstimatedBidByKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedBidByKeywordsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetEstimatedBidByKeywords", action = "GetEstimatedBidByKeywords") + public Future getEstimatedBidByKeywordsAsync( + @WebParam(name = "GetEstimatedBidByKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedBidByKeywordsRequest parameters, + @WebParam(name = "GetEstimatedBidByKeywordsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetEstimatedBidByKeywordsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetEstimatedBidByKeywords", action = "GetEstimatedBidByKeywords") + @WebResult(name = "GetEstimatedBidByKeywordsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetEstimatedBidByKeywordsResponse getEstimatedBidByKeywords( + @WebParam(name = "GetEstimatedBidByKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedBidByKeywordsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetEstimatedPositionByKeywords", action = "GetEstimatedPositionByKeywords") + public Response getEstimatedPositionByKeywordsAsync( + @WebParam(name = "GetEstimatedPositionByKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedPositionByKeywordsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetEstimatedPositionByKeywords", action = "GetEstimatedPositionByKeywords") + public Future getEstimatedPositionByKeywordsAsync( + @WebParam(name = "GetEstimatedPositionByKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedPositionByKeywordsRequest parameters, + @WebParam(name = "GetEstimatedPositionByKeywordsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetEstimatedPositionByKeywordsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetEstimatedPositionByKeywords", action = "GetEstimatedPositionByKeywords") + @WebResult(name = "GetEstimatedPositionByKeywordsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetEstimatedPositionByKeywordsResponse getEstimatedPositionByKeywords( + @WebParam(name = "GetEstimatedPositionByKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetEstimatedPositionByKeywordsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBidLandscapeByAdGroupIds", action = "GetBidLandscapeByAdGroupIds") + public Response getBidLandscapeByAdGroupIdsAsync( + @WebParam(name = "GetBidLandscapeByAdGroupIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidLandscapeByAdGroupIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBidLandscapeByAdGroupIds", action = "GetBidLandscapeByAdGroupIds") + public Future getBidLandscapeByAdGroupIdsAsync( + @WebParam(name = "GetBidLandscapeByAdGroupIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidLandscapeByAdGroupIdsRequest parameters, + @WebParam(name = "GetBidLandscapeByAdGroupIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetBidLandscapeByAdGroupIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBidLandscapeByAdGroupIds", action = "GetBidLandscapeByAdGroupIds") + @WebResult(name = "GetBidLandscapeByAdGroupIdsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetBidLandscapeByAdGroupIdsResponse getBidLandscapeByAdGroupIds( + @WebParam(name = "GetBidLandscapeByAdGroupIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidLandscapeByAdGroupIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBidLandscapeByKeywordIds", action = "GetBidLandscapeByKeywordIds") + public Response getBidLandscapeByKeywordIdsAsync( + @WebParam(name = "GetBidLandscapeByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidLandscapeByKeywordIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBidLandscapeByKeywordIds", action = "GetBidLandscapeByKeywordIds") + public Future getBidLandscapeByKeywordIdsAsync( + @WebParam(name = "GetBidLandscapeByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidLandscapeByKeywordIdsRequest parameters, + @WebParam(name = "GetBidLandscapeByKeywordIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetBidLandscapeByKeywordIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBidLandscapeByKeywordIds", action = "GetBidLandscapeByKeywordIds") + @WebResult(name = "GetBidLandscapeByKeywordIdsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetBidLandscapeByKeywordIdsResponse getBidLandscapeByKeywordIds( + @WebParam(name = "GetBidLandscapeByKeywordIdsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetBidLandscapeByKeywordIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetHistoricalKeywordPerformance", action = "GetHistoricalKeywordPerformance") + public Response getHistoricalKeywordPerformanceAsync( + @WebParam(name = "GetHistoricalKeywordPerformanceRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetHistoricalKeywordPerformanceRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetHistoricalKeywordPerformance", action = "GetHistoricalKeywordPerformance") + public Future getHistoricalKeywordPerformanceAsync( + @WebParam(name = "GetHistoricalKeywordPerformanceRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetHistoricalKeywordPerformanceRequest parameters, + @WebParam(name = "GetHistoricalKeywordPerformanceResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetHistoricalKeywordPerformanceResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetHistoricalKeywordPerformance", action = "GetHistoricalKeywordPerformance") + @WebResult(name = "GetHistoricalKeywordPerformanceResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetHistoricalKeywordPerformanceResponse getHistoricalKeywordPerformance( + @WebParam(name = "GetHistoricalKeywordPerformanceRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetHistoricalKeywordPerformanceRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetHistoricalSearchCount", action = "GetHistoricalSearchCount") + public Response getHistoricalSearchCountAsync( + @WebParam(name = "GetHistoricalSearchCountRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetHistoricalSearchCountRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetHistoricalSearchCount", action = "GetHistoricalSearchCount") + public Future getHistoricalSearchCountAsync( + @WebParam(name = "GetHistoricalSearchCountRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetHistoricalSearchCountRequest parameters, + @WebParam(name = "GetHistoricalSearchCountResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetHistoricalSearchCountResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetHistoricalSearchCount", action = "GetHistoricalSearchCount") + @WebResult(name = "GetHistoricalSearchCountResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetHistoricalSearchCountResponse getHistoricalSearchCount( + @WebParam(name = "GetHistoricalSearchCountRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetHistoricalSearchCountRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetKeywordCategories", action = "GetKeywordCategories") + public Response getKeywordCategoriesAsync( + @WebParam(name = "GetKeywordCategoriesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordCategoriesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetKeywordCategories", action = "GetKeywordCategories") + public Future getKeywordCategoriesAsync( + @WebParam(name = "GetKeywordCategoriesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordCategoriesRequest parameters, + @WebParam(name = "GetKeywordCategoriesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetKeywordCategoriesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetKeywordCategories", action = "GetKeywordCategories") + @WebResult(name = "GetKeywordCategoriesResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetKeywordCategoriesResponse getKeywordCategories( + @WebParam(name = "GetKeywordCategoriesRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordCategoriesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetKeywordDemographics", action = "GetKeywordDemographics") + public Response getKeywordDemographicsAsync( + @WebParam(name = "GetKeywordDemographicsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordDemographicsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetKeywordDemographics", action = "GetKeywordDemographics") + public Future getKeywordDemographicsAsync( + @WebParam(name = "GetKeywordDemographicsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordDemographicsRequest parameters, + @WebParam(name = "GetKeywordDemographicsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetKeywordDemographicsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetKeywordDemographics", action = "GetKeywordDemographics") + @WebResult(name = "GetKeywordDemographicsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetKeywordDemographicsResponse getKeywordDemographics( + @WebParam(name = "GetKeywordDemographicsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordDemographicsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetKeywordLocations", action = "GetKeywordLocations") + public Response getKeywordLocationsAsync( + @WebParam(name = "GetKeywordLocationsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordLocationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetKeywordLocations", action = "GetKeywordLocations") + public Future getKeywordLocationsAsync( + @WebParam(name = "GetKeywordLocationsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordLocationsRequest parameters, + @WebParam(name = "GetKeywordLocationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.GetKeywordLocationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetKeywordLocations", action = "GetKeywordLocations") + @WebResult(name = "GetKeywordLocationsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetKeywordLocationsResponse getKeywordLocations( + @WebParam(name = "GetKeywordLocationsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetKeywordLocationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SuggestKeywordsForUrl", action = "SuggestKeywordsForUrl") + public Response suggestKeywordsForUrlAsync( + @WebParam(name = "SuggestKeywordsForUrlRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + SuggestKeywordsForUrlRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SuggestKeywordsForUrl", action = "SuggestKeywordsForUrl") + public Future suggestKeywordsForUrlAsync( + @WebParam(name = "SuggestKeywordsForUrlRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + SuggestKeywordsForUrlRequest parameters, + @WebParam(name = "SuggestKeywordsForUrlResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.SuggestKeywordsForUrlResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "SuggestKeywordsForUrl", action = "SuggestKeywordsForUrl") + @WebResult(name = "SuggestKeywordsForUrlResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public SuggestKeywordsForUrlResponse suggestKeywordsForUrl( + @WebParam(name = "SuggestKeywordsForUrlRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + SuggestKeywordsForUrlRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SuggestKeywordsFromExistingKeywords", action = "SuggestKeywordsFromExistingKeywords") + public Response suggestKeywordsFromExistingKeywordsAsync( + @WebParam(name = "SuggestKeywordsFromExistingKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + SuggestKeywordsFromExistingKeywordsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SuggestKeywordsFromExistingKeywords", action = "SuggestKeywordsFromExistingKeywords") + public Future suggestKeywordsFromExistingKeywordsAsync( + @WebParam(name = "SuggestKeywordsFromExistingKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + SuggestKeywordsFromExistingKeywordsRequest parameters, + @WebParam(name = "SuggestKeywordsFromExistingKeywordsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.SuggestKeywordsFromExistingKeywordsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "SuggestKeywordsFromExistingKeywords", action = "SuggestKeywordsFromExistingKeywords") + @WebResult(name = "SuggestKeywordsFromExistingKeywordsResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public SuggestKeywordsFromExistingKeywordsResponse suggestKeywordsFromExistingKeywords( + @WebParam(name = "SuggestKeywordsFromExistingKeywordsRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + SuggestKeywordsFromExistingKeywordsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "Probe", action = "Probe") + public Response probeAsync( + @WebParam(name = "ProbeRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + ProbeRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "Probe", action = "Probe") + public Future probeAsync( + @WebParam(name = "ProbeRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + ProbeRequest parameters, + @WebParam(name = "ProbeResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.adinsight.ProbeResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "Probe", action = "Probe") + @WebResult(name = "ProbeResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public ProbeResponse probe( + @WebParam(name = "ProbeRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + ProbeRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/IDREFS.java b/proxies/com/microsoft/bingads/v10/adinsight/IDREFS.java new file mode 100644 index 0000000000..d517323eb7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/IDREFS.java @@ -0,0 +1,72 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlIDREF; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for IDREFS simple type. + * + *

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

+ * <simpleType name="IDREFS">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}IDREF" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "IDREFS", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class IDREFS { + + @XmlValue + @XmlIDREF + @XmlSchemaType(name = "IDREFS") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordAndConfidence.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordAndConfidence.java new file mode 100644 index 0000000000..b93b1637c6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordAndConfidence.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordAndConfidence complex type. + * + *

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

+ * <complexType name="KeywordAndConfidence">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SuggestedKeyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ConfidenceScore" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordAndConfidence", propOrder = { + "suggestedKeyword", + "confidenceScore" +}) +public class KeywordAndConfidence { + + @XmlElement(name = "SuggestedKeyword", nillable = true) + protected String suggestedKeyword; + @XmlElement(name = "ConfidenceScore") + protected Double confidenceScore; + + /** + * 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; + } + + /** + * Gets the value of the confidenceScore property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getConfidenceScore() { + return confidenceScore; + } + + /** + * Sets the value of the confidenceScore property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setConfidenceScore(Double value) { + this.confidenceScore = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordAndMatchType.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordAndMatchType.java new file mode 100644 index 0000000000..f65e3ad7e9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordAndMatchType.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordAndMatchType complex type. + * + *

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

+ * <complexType name="KeywordAndMatchType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="MatchTypes" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfMatchType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordAndMatchType", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message", propOrder = { + "keywordText", + "matchTypes" +}) +public class KeywordAndMatchType { + + @XmlElement(name = "KeywordText", nillable = true) + protected String keywordText; + @XmlElement(name = "MatchTypes", nillable = true) + protected ArrayOfMatchType matchTypes; + + /** + * Gets the value of the keywordText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywordText() { + return keywordText; + } + + /** + * Sets the value of the keywordText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywordText(String value) { + this.keywordText = value; + } + + /** + * Gets the value of the matchTypes property. + * + * @return + * possible object is + * {@link ArrayOfMatchType } + * + */ + public ArrayOfMatchType getMatchTypes() { + return matchTypes; + } + + /** + * Sets the value of the matchTypes property. + * + * @param value + * allowed object is + * {@link ArrayOfMatchType } + * + */ + public void setMatchTypes(ArrayOfMatchType value) { + this.matchTypes = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordBidLandscape.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordBidLandscape.java new file mode 100644 index 0000000000..c562ac7a7c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordBidLandscape.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordBidLandscape complex type. + * + *

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

+ * <complexType name="KeywordBidLandscape">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="StartDate" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DayMonthAndYear" minOccurs="0"/>
+ *         <element name="EndDate" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DayMonthAndYear" minOccurs="0"/>
+ *         <element name="BidLandscapePoints" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfBidLandscapePoint" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordBidLandscape", propOrder = { + "keywordId", + "startDate", + "endDate", + "bidLandscapePoints" +}) +public class KeywordBidLandscape { + + @XmlElement(name = "KeywordId") + protected Long keywordId; + @XmlElement(name = "StartDate", nillable = true) + protected DayMonthAndYear startDate; + @XmlElement(name = "EndDate", nillable = true) + protected DayMonthAndYear endDate; + @XmlElement(name = "BidLandscapePoints", nillable = true) + protected ArrayOfBidLandscapePoint bidLandscapePoints; + + /** + * Gets the value of the keywordId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getKeywordId() { + return keywordId; + } + + /** + * Sets the value of the keywordId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setKeywordId(Long value) { + this.keywordId = value; + } + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link DayMonthAndYear } + * + */ + public DayMonthAndYear getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link DayMonthAndYear } + * + */ + public void setStartDate(DayMonthAndYear value) { + this.startDate = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link DayMonthAndYear } + * + */ + public DayMonthAndYear getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link DayMonthAndYear } + * + */ + public void setEndDate(DayMonthAndYear value) { + this.endDate = value; + } + + /** + * Gets the value of the bidLandscapePoints property. + * + * @return + * possible object is + * {@link ArrayOfBidLandscapePoint } + * + */ + public ArrayOfBidLandscapePoint getBidLandscapePoints() { + return bidLandscapePoints; + } + + /** + * Sets the value of the bidLandscapePoints property. + * + * @param value + * allowed object is + * {@link ArrayOfBidLandscapePoint } + * + */ + public void setBidLandscapePoints(ArrayOfBidLandscapePoint value) { + this.bidLandscapePoints = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordCategory.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordCategory.java new file mode 100644 index 0000000000..1ecde82bed --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordCategory.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordCategory complex type. + * + *

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

+ * <complexType name="KeywordCategory">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Category" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ConfidenceScore" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordCategory", propOrder = { + "category", + "confidenceScore" +}) +public class KeywordCategory { + + @XmlElement(name = "Category", nillable = true) + protected String category; + @XmlElement(name = "ConfidenceScore") + protected Double confidenceScore; + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + + /** + * Gets the value of the confidenceScore property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getConfidenceScore() { + return confidenceScore; + } + + /** + * Sets the value of the confidenceScore property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setConfidenceScore(Double value) { + this.confidenceScore = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordCategoryResult.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordCategoryResult.java new file mode 100644 index 0000000000..bdab7f12b6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordCategoryResult.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordCategoryResult complex type. + * + *

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

+ * <complexType name="KeywordCategoryResult">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="KeywordCategories" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordCategory" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordCategoryResult", propOrder = { + "keyword", + "keywordCategories" +}) +public class KeywordCategoryResult { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "KeywordCategories", nillable = true) + protected ArrayOfKeywordCategory keywordCategories; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the keywordCategories property. + * + * @return + * possible object is + * {@link ArrayOfKeywordCategory } + * + */ + public ArrayOfKeywordCategory getKeywordCategories() { + return keywordCategories; + } + + /** + * Sets the value of the keywordCategories property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordCategory } + * + */ + public void setKeywordCategories(ArrayOfKeywordCategory value) { + this.keywordCategories = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographic.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographic.java new file mode 100644 index 0000000000..9813d88d7c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographic.java @@ -0,0 +1,314 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordDemographic complex type. + * + *

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

+ * <complexType name="KeywordDemographic">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Device" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Age18_24" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Age25_34" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Age35_49" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Age50_64" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Age65Plus" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="AgeUnknown" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Female" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Male" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="GenderUnknown" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordDemographic", propOrder = { + "device", + "age1824", + "age2534", + "age3549", + "age5064", + "age65Plus", + "ageUnknown", + "female", + "male", + "genderUnknown" +}) +public class KeywordDemographic { + + @XmlElement(name = "Device", nillable = true) + protected String device; + @XmlElement(name = "Age18_24") + protected Double age1824; + @XmlElement(name = "Age25_34") + protected Double age2534; + @XmlElement(name = "Age35_49") + protected Double age3549; + @XmlElement(name = "Age50_64") + protected Double age5064; + @XmlElement(name = "Age65Plus") + protected Double age65Plus; + @XmlElement(name = "AgeUnknown") + protected Double ageUnknown; + @XmlElement(name = "Female") + protected Double female; + @XmlElement(name = "Male") + protected Double male; + @XmlElement(name = "GenderUnknown") + protected Double genderUnknown; + + /** + * Gets the value of the device property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDevice() { + return device; + } + + /** + * Sets the value of the device property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDevice(String value) { + this.device = value; + } + + /** + * Gets the value of the age1824 property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAge1824() { + return age1824; + } + + /** + * Sets the value of the age1824 property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAge1824(Double value) { + this.age1824 = value; + } + + /** + * Gets the value of the age2534 property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAge2534() { + return age2534; + } + + /** + * Sets the value of the age2534 property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAge2534(Double value) { + this.age2534 = value; + } + + /** + * Gets the value of the age3549 property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAge3549() { + return age3549; + } + + /** + * Sets the value of the age3549 property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAge3549(Double value) { + this.age3549 = value; + } + + /** + * Gets the value of the age5064 property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAge5064() { + return age5064; + } + + /** + * Sets the value of the age5064 property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAge5064(Double value) { + this.age5064 = value; + } + + /** + * Gets the value of the age65Plus property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAge65Plus() { + return age65Plus; + } + + /** + * Sets the value of the age65Plus property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAge65Plus(Double value) { + this.age65Plus = value; + } + + /** + * Gets the value of the ageUnknown property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAgeUnknown() { + return ageUnknown; + } + + /** + * Sets the value of the ageUnknown property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAgeUnknown(Double value) { + this.ageUnknown = value; + } + + /** + * Gets the value of the female property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getFemale() { + return female; + } + + /** + * Sets the value of the female property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setFemale(Double value) { + this.female = value; + } + + /** + * Gets the value of the male property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMale() { + return male; + } + + /** + * Sets the value of the male property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMale(Double value) { + this.male = value; + } + + /** + * Gets the value of the genderUnknown property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getGenderUnknown() { + return genderUnknown; + } + + /** + * Sets the value of the genderUnknown property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setGenderUnknown(Double value) { + this.genderUnknown = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographicResult.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographicResult.java new file mode 100644 index 0000000000..e83ed0bbee --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordDemographicResult.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordDemographicResult complex type. + * + *

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

+ * <complexType name="KeywordDemographicResult">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="KeywordDemographics" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordDemographic" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordDemographicResult", propOrder = { + "keyword", + "keywordDemographics" +}) +public class KeywordDemographicResult { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "KeywordDemographics", nillable = true) + protected ArrayOfKeywordDemographic keywordDemographics; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the keywordDemographics property. + * + * @return + * possible object is + * {@link ArrayOfKeywordDemographic } + * + */ + public ArrayOfKeywordDemographic getKeywordDemographics() { + return keywordDemographics; + } + + /** + * Sets the value of the keywordDemographics property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordDemographic } + * + */ + public void setKeywordDemographics(ArrayOfKeywordDemographic value) { + this.keywordDemographics = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedBid.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedBid.java new file mode 100644 index 0000000000..9355f6df03 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedBid.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordEstimatedBid complex type. + * + *

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

+ * <complexType name="KeywordEstimatedBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="EstimatedBids" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfEstimatedBidAndTraffic" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordEstimatedBid", propOrder = { + "keyword", + "estimatedBids" +}) +public class KeywordEstimatedBid { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "EstimatedBids", nillable = true) + protected ArrayOfEstimatedBidAndTraffic estimatedBids; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the estimatedBids property. + * + * @return + * possible object is + * {@link ArrayOfEstimatedBidAndTraffic } + * + */ + public ArrayOfEstimatedBidAndTraffic getEstimatedBids() { + return estimatedBids; + } + + /** + * Sets the value of the estimatedBids property. + * + * @param value + * allowed object is + * {@link ArrayOfEstimatedBidAndTraffic } + * + */ + public void setEstimatedBids(ArrayOfEstimatedBidAndTraffic value) { + this.estimatedBids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedPosition.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedPosition.java new file mode 100644 index 0000000000..41e89ea597 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordEstimatedPosition.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordEstimatedPosition complex type. + * + *

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

+ * <complexType name="KeywordEstimatedPosition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="EstimatedPositions" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfEstimatedPositionAndTraffic" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordEstimatedPosition", propOrder = { + "keyword", + "estimatedPositions" +}) +public class KeywordEstimatedPosition { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "EstimatedPositions", nillable = true) + protected ArrayOfEstimatedPositionAndTraffic estimatedPositions; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the estimatedPositions property. + * + * @return + * possible object is + * {@link ArrayOfEstimatedPositionAndTraffic } + * + */ + public ArrayOfEstimatedPositionAndTraffic getEstimatedPositions() { + return estimatedPositions; + } + + /** + * Sets the value of the estimatedPositions property. + * + * @param value + * allowed object is + * {@link ArrayOfEstimatedPositionAndTraffic } + * + */ + public void setEstimatedPositions(ArrayOfEstimatedPositionAndTraffic value) { + this.estimatedPositions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordHistoricalPerformance.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordHistoricalPerformance.java new file mode 100644 index 0000000000..8230d56039 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordHistoricalPerformance.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordHistoricalPerformance complex type. + * + *

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

+ * <complexType name="KeywordHistoricalPerformance">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="KeywordKPIs" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordKPI" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordHistoricalPerformance", propOrder = { + "keyword", + "keywordKPIs" +}) +public class KeywordHistoricalPerformance { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "KeywordKPIs", nillable = true) + protected ArrayOfKeywordKPI keywordKPIs; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the keywordKPIs property. + * + * @return + * possible object is + * {@link ArrayOfKeywordKPI } + * + */ + public ArrayOfKeywordKPI getKeywordKPIs() { + return keywordKPIs; + } + + /** + * Sets the value of the keywordKPIs property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordKPI } + * + */ + public void setKeywordKPIs(ArrayOfKeywordKPI value) { + this.keywordKPIs = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedBid.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedBid.java new file mode 100644 index 0000000000..49d2a9048f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedBid.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordIdEstimatedBid complex type. + * + *

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

+ * <complexType name="KeywordIdEstimatedBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="KeywordEstimatedBid" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordEstimatedBid" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordIdEstimatedBid", propOrder = { + "keywordId", + "keywordEstimatedBid" +}) +public class KeywordIdEstimatedBid { + + @XmlElement(name = "KeywordId") + protected Long keywordId; + @XmlElement(name = "KeywordEstimatedBid", nillable = true) + protected KeywordEstimatedBid keywordEstimatedBid; + + /** + * Gets the value of the keywordId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getKeywordId() { + return keywordId; + } + + /** + * Sets the value of the keywordId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setKeywordId(Long value) { + this.keywordId = value; + } + + /** + * Gets the value of the keywordEstimatedBid property. + * + * @return + * possible object is + * {@link KeywordEstimatedBid } + * + */ + public KeywordEstimatedBid getKeywordEstimatedBid() { + return keywordEstimatedBid; + } + + /** + * Sets the value of the keywordEstimatedBid property. + * + * @param value + * allowed object is + * {@link KeywordEstimatedBid } + * + */ + public void setKeywordEstimatedBid(KeywordEstimatedBid value) { + this.keywordEstimatedBid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedPosition.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedPosition.java new file mode 100644 index 0000000000..dd9fcc7b17 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordIdEstimatedPosition.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordIdEstimatedPosition complex type. + * + *

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

+ * <complexType name="KeywordIdEstimatedPosition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="KeywordEstimatedPosition" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}KeywordEstimatedPosition" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordIdEstimatedPosition", propOrder = { + "keywordId", + "keywordEstimatedPosition" +}) +public class KeywordIdEstimatedPosition { + + @XmlElement(name = "KeywordId") + protected Long keywordId; + @XmlElement(name = "KeywordEstimatedPosition", nillable = true) + protected KeywordEstimatedPosition keywordEstimatedPosition; + + /** + * Gets the value of the keywordId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getKeywordId() { + return keywordId; + } + + /** + * Sets the value of the keywordId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setKeywordId(Long value) { + this.keywordId = value; + } + + /** + * Gets the value of the keywordEstimatedPosition property. + * + * @return + * possible object is + * {@link KeywordEstimatedPosition } + * + */ + public KeywordEstimatedPosition getKeywordEstimatedPosition() { + return keywordEstimatedPosition; + } + + /** + * Sets the value of the keywordEstimatedPosition property. + * + * @param value + * allowed object is + * {@link KeywordEstimatedPosition } + * + */ + public void setKeywordEstimatedPosition(KeywordEstimatedPosition value) { + this.keywordEstimatedPosition = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordKPI.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordKPI.java new file mode 100644 index 0000000000..8856004c1f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordKPI.java @@ -0,0 +1,289 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordKPI complex type. + * + *

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

+ * <complexType name="KeywordKPI">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Device" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="MatchType" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}MatchType" minOccurs="0"/>
+ *         <element name="AdPosition" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AdPosition" minOccurs="0"/>
+ *         <element name="Clicks" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Impressions" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AverageCPC" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="CTR" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="TotalCost" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="AverageBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordKPI", propOrder = { + "device", + "matchType", + "adPosition", + "clicks", + "impressions", + "averageCPC", + "ctr", + "totalCost", + "averageBid" +}) +public class KeywordKPI { + + @XmlElement(name = "Device", nillable = true) + protected String device; + @XmlElement(name = "MatchType") + @XmlSchemaType(name = "string") + protected MatchType matchType; + @XmlElement(name = "AdPosition") + @XmlSchemaType(name = "string") + protected AdPosition adPosition; + @XmlElement(name = "Clicks") + protected Integer clicks; + @XmlElement(name = "Impressions") + protected Long impressions; + @XmlElement(name = "AverageCPC") + protected Double averageCPC; + @XmlElement(name = "CTR") + protected Double ctr; + @XmlElement(name = "TotalCost") + protected Double totalCost; + @XmlElement(name = "AverageBid") + protected Double averageBid; + + /** + * Gets the value of the device property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDevice() { + return device; + } + + /** + * Sets the value of the device property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDevice(String value) { + this.device = value; + } + + /** + * Gets the value of the matchType property. + * + * @return + * possible object is + * {@link MatchType } + * + */ + public MatchType getMatchType() { + return matchType; + } + + /** + * Sets the value of the matchType property. + * + * @param value + * allowed object is + * {@link MatchType } + * + */ + public void setMatchType(MatchType value) { + this.matchType = value; + } + + /** + * Gets the value of the adPosition property. + * + * @return + * possible object is + * {@link AdPosition } + * + */ + public AdPosition getAdPosition() { + return adPosition; + } + + /** + * Sets the value of the adPosition property. + * + * @param value + * allowed object is + * {@link AdPosition } + * + */ + public void setAdPosition(AdPosition value) { + this.adPosition = value; + } + + /** + * Gets the value of the clicks property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getClicks() { + return clicks; + } + + /** + * Sets the value of the clicks property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setClicks(Integer value) { + this.clicks = value; + } + + /** + * Gets the value of the impressions property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getImpressions() { + return impressions; + } + + /** + * Sets the value of the impressions property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setImpressions(Long value) { + this.impressions = value; + } + + /** + * Gets the value of the averageCPC property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAverageCPC() { + return averageCPC; + } + + /** + * Sets the value of the averageCPC property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAverageCPC(Double value) { + this.averageCPC = value; + } + + /** + * Gets the value of the ctr property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getCTR() { + return ctr; + } + + /** + * Sets the value of the ctr property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setCTR(Double value) { + this.ctr = value; + } + + /** + * Gets the value of the totalCost property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getTotalCost() { + return totalCost; + } + + /** + * Sets the value of the totalCost property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setTotalCost(Double value) { + this.totalCost = value; + } + + /** + * Gets the value of the averageBid property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAverageBid() { + return averageBid; + } + + /** + * Sets the value of the averageBid property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAverageBid(Double value) { + this.averageBid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordLocation.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordLocation.java new file mode 100644 index 0000000000..5f218161bc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordLocation.java @@ -0,0 +1,118 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordLocation complex type. + * + *

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

+ * <complexType name="KeywordLocation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Device" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Location" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Percentage" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordLocation", propOrder = { + "device", + "location", + "percentage" +}) +public class KeywordLocation { + + @XmlElement(name = "Device", nillable = true) + protected String device; + @XmlElement(name = "Location", nillable = true) + protected String location; + @XmlElement(name = "Percentage") + protected Double percentage; + + /** + * Gets the value of the device property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDevice() { + return device; + } + + /** + * Sets the value of the device property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDevice(String value) { + this.device = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the percentage property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPercentage() { + return percentage; + } + + /** + * Sets the value of the percentage property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPercentage(Double value) { + this.percentage = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordLocationResult.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordLocationResult.java new file mode 100644 index 0000000000..b245f8c8cd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordLocationResult.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordLocationResult complex type. + * + *

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

+ * <complexType name="KeywordLocationResult">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="KeywordLocations" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordLocation" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordLocationResult", propOrder = { + "keyword", + "keywordLocations" +}) +public class KeywordLocationResult { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "KeywordLocations", nillable = true) + protected ArrayOfKeywordLocation keywordLocations; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the keywordLocations property. + * + * @return + * possible object is + * {@link ArrayOfKeywordLocation } + * + */ + public ArrayOfKeywordLocation getKeywordLocations() { + return keywordLocations; + } + + /** + * Sets the value of the keywordLocations property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordLocation } + * + */ + public void setKeywordLocations(ArrayOfKeywordLocation value) { + this.keywordLocations = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java new file mode 100644 index 0000000000..b2b2805f0a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java @@ -0,0 +1,320 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordOpportunity complex type. + * + *

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

+ * <complexType name="KeywordOpportunity">
+ *   <complexContent>
+ *     <extension base="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Opportunity">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Competition" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedIncreaseInClicks" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedIncreaseInCost" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="EstimatedIncreaseInImpressions" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MatchType" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="MonthlySearches" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SuggestedBid" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="SuggestedKeyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordOpportunity", propOrder = { + "adGroupId", + "campaignId", + "competition", + "estimatedIncreaseInClicks", + "estimatedIncreaseInCost", + "estimatedIncreaseInImpressions", + "matchType", + "monthlySearches", + "suggestedBid", + "suggestedKeyword" +}) +@XmlSeeAlso({ + BroadMatchKeywordOpportunity.class +}) +public class KeywordOpportunity + extends Opportunity +{ + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "Competition") + protected Double competition; + @XmlElement(name = "EstimatedIncreaseInClicks") + protected Double estimatedIncreaseInClicks; + @XmlElement(name = "EstimatedIncreaseInCost") + protected Double estimatedIncreaseInCost; + @XmlElement(name = "EstimatedIncreaseInImpressions") + protected Long estimatedIncreaseInImpressions; + @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 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 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 estimatedIncreaseInClicks property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getEstimatedIncreaseInClicks() { + return estimatedIncreaseInClicks; + } + + /** + * Sets the value of the estimatedIncreaseInClicks property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setEstimatedIncreaseInClicks(Double value) { + this.estimatedIncreaseInClicks = 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 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/v10/adinsight/KeywordOpportunityType.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunityType.java new file mode 100644 index 0000000000..8557aed518 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunityType.java @@ -0,0 +1,29 @@ +package com.microsoft.bingads.v10.adinsight; + +/** + * Enum class for KeywordOpportunityType. + */ +public enum KeywordOpportunityType { + + BROAD_MATCH("BroadMatch"), + CAMPAIGN_CONTEXT("CampaignContext"); + + private final String value; + + KeywordOpportunityType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static KeywordOpportunityType fromValue(String v) { + for (KeywordOpportunityType c : KeywordOpportunityType.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/v10/adinsight/KeywordOpportunityTypeConverter.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunityTypeConverter.java new file mode 100644 index 0000000000..080d11d7fb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunityTypeConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class KeywordOpportunityTypeConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(KeywordOpportunityType.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (KeywordOpportunityType 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/v10/adinsight/KeywordSearchCount.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordSearchCount.java new file mode 100644 index 0000000000..87be608a48 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordSearchCount.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordSearchCount complex type. + * + *

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

+ * <complexType name="KeywordSearchCount">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="SearchCountsByAttributes" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfSearchCountsByAttributes" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordSearchCount", propOrder = { + "keyword", + "searchCountsByAttributes" +}) +public class KeywordSearchCount { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "SearchCountsByAttributes", nillable = true) + protected ArrayOfSearchCountsByAttributes searchCountsByAttributes; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the searchCountsByAttributes property. + * + * @return + * possible object is + * {@link ArrayOfSearchCountsByAttributes } + * + */ + public ArrayOfSearchCountsByAttributes getSearchCountsByAttributes() { + return searchCountsByAttributes; + } + + /** + * Sets the value of the searchCountsByAttributes property. + * + * @param value + * allowed object is + * {@link ArrayOfSearchCountsByAttributes } + * + */ + public void setSearchCountsByAttributes(ArrayOfSearchCountsByAttributes value) { + this.searchCountsByAttributes = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordSuggestion.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordSuggestion.java new file mode 100644 index 0000000000..b0ef3ae011 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordSuggestion.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordSuggestion complex type. + * + *

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

+ * <complexType name="KeywordSuggestion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="SuggestionsAndConfidence" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordAndConfidence" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeywordSuggestion", propOrder = { + "keyword", + "suggestionsAndConfidence" +}) +public class KeywordSuggestion { + + @XmlElement(name = "Keyword", nillable = true) + protected String keyword; + @XmlElement(name = "SuggestionsAndConfidence", nillable = true) + protected ArrayOfKeywordAndConfidence suggestionsAndConfidence; + + /** + * Gets the value of the keyword property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyword() { + return keyword; + } + + /** + * Sets the value of the keyword property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyword(String value) { + this.keyword = value; + } + + /** + * Gets the value of the suggestionsAndConfidence property. + * + * @return + * possible object is + * {@link ArrayOfKeywordAndConfidence } + * + */ + public ArrayOfKeywordAndConfidence getSuggestionsAndConfidence() { + return suggestionsAndConfidence; + } + + /** + * Sets the value of the suggestionsAndConfidence property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordAndConfidence } + * + */ + public void setSuggestionsAndConfidence(ArrayOfKeywordAndConfidence value) { + this.suggestionsAndConfidence = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Language.java b/proxies/com/microsoft/bingads/v10/adinsight/Language.java new file mode 100644 index 0000000000..5bfa47fbd1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Language.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for language simple type. + * + *

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

+ * <simpleType name="language">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "language", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class Language { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/MatchType.java b/proxies/com/microsoft/bingads/v10/adinsight/MatchType.java new file mode 100644 index 0000000000..f567e53a51 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/MatchType.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MatchType. + * + *

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

+ *

+ * <simpleType name="MatchType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Exact"/>
+ *     <enumeration value="Phrase"/>
+ *     <enumeration value="Broad"/>
+ *     <enumeration value="Content"/>
+ *     <enumeration value="Aggregate"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "MatchType") +@XmlEnum +public enum MatchType { + + @XmlEnumValue("Exact") + EXACT("Exact"), + @XmlEnumValue("Phrase") + PHRASE("Phrase"), + @XmlEnumValue("Broad") + BROAD("Broad"), + @XmlEnumValue("Content") + CONTENT("Content"), + @XmlEnumValue("Aggregate") + AGGREGATE("Aggregate"); + private final String value; + + MatchType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MatchType fromValue(String v) { + for (MatchType c: MatchType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/NCName.java b/proxies/com/microsoft/bingads/v10/adinsight/NCName.java new file mode 100644 index 0000000000..58dbe03d69 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/NCName.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for NCName simple type. + * + *

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

+ * <simpleType name="NCName">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}Name">
+ *     <pattern value="[\i-[:]][\c-[:]]*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NCName", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NCName { + + @XmlValue + @XmlSchemaType(name = "NCName") + protected Name value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link Name } + * + */ + public Name getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link Name } + * + */ + public void setValue(Name value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/NMTOKEN.java b/proxies/com/microsoft/bingads/v10/adinsight/NMTOKEN.java new file mode 100644 index 0000000000..741028b044 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/NMTOKEN.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for NMTOKEN simple type. + * + *

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

+ * <simpleType name="NMTOKEN">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="\c+"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NMTOKEN", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NMTOKEN { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NMTOKEN") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/NMTOKENS.java b/proxies/com/microsoft/bingads/v10/adinsight/NMTOKENS.java new file mode 100644 index 0000000000..702e149859 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/NMTOKENS.java @@ -0,0 +1,70 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for NMTOKENS simple type. + * + *

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

+ * <simpleType name="NMTOKENS">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NMTOKENS", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class NMTOKENS { + + @XmlValue + @XmlSchemaType(name = "NMTOKENS") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link NMTOKEN } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Name.java b/proxies/com/microsoft/bingads/v10/adinsight/Name.java new file mode 100644 index 0000000000..13f51a5a15 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Name.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for Name simple type. + * + *

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

+ * <simpleType name="Name">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="\i\c*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Name", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class Name { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "Name") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/NegativeInteger.java b/proxies/com/microsoft/bingads/v10/adinsight/NegativeInteger.java new file mode 100644 index 0000000000..6ef9a620e2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/NegativeInteger.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for negativeInteger simple type. + * + *

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

+ * <simpleType name="negativeInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonPositiveInteger">
+ *     <maxInclusive value="-1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "negativeInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NegativeInteger { + + @XmlValue + @XmlSchemaType(name = "negativeInteger") + protected NonPositiveInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonPositiveInteger } + * + */ + public NonPositiveInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonPositiveInteger } + * + */ + public void setValue(NonPositiveInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/NonNegativeInteger.java b/proxies/com/microsoft/bingads/v10/adinsight/NonNegativeInteger.java new file mode 100644 index 0000000000..5c1b363842 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/NonNegativeInteger.java @@ -0,0 +1,61 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for nonNegativeInteger simple type. + * + *

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

+ * <simpleType name="nonNegativeInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *     <minInclusive value="0"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "nonNegativeInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NonNegativeInteger { + + @XmlValue + @XmlSchemaType(name = "nonNegativeInteger") + protected BigInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/NonPositiveInteger.java b/proxies/com/microsoft/bingads/v10/adinsight/NonPositiveInteger.java new file mode 100644 index 0000000000..99d61653cc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/NonPositiveInteger.java @@ -0,0 +1,61 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for nonPositiveInteger simple type. + * + *

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

+ * <simpleType name="nonPositiveInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *     <maxInclusive value="0"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "nonPositiveInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NonPositiveInteger { + + @XmlValue + @XmlSchemaType(name = "nonPositiveInteger") + protected BigInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java b/proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java new file mode 100644 index 0000000000..279314c6fa --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java @@ -0,0 +1,2146 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.math.BigDecimal; +import java.util.Calendar; +import java.util.Collection; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.microsoft.bingads.v10.adinsight package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _AdPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AdPosition"); + private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); + private final static QName _ArrayOfOperationError_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v10", "ArrayOfOperationError"); + private final static QName _ArrayOfAdGroupBidLandscapeInput_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfAdGroupBidLandscapeInput"); + private final static QName _ApplicationToken_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "ApplicationToken"); + private final static QName _KeywordEstimatedPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordEstimatedPosition"); + private final static QName _ArrayOfAdApiError_QNAME = new QName("https://adapi.microsoft.com", "ArrayOfAdApiError"); + private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); + private final static QName _ArrayOfAdGroupBidLandscape_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfAdGroupBidLandscape"); + private final static QName _ArrayOfSearchCountsByAttributes_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfSearchCountsByAttributes"); + private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); + private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); + private final static QName _ArrayOfBatchError_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v10", "ArrayOfBatchError"); + private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); + private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); + private final static QName _MatchType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "MatchType"); + private final static QName _ArrayOfKeywordSuggestion_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordSuggestion"); + private final static QName _KeywordDemographicResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordDemographicResult"); + private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); + private final static QName _AdGroupBidLandscape_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AdGroupBidLandscape"); + private final static QName _BidOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BidOpportunity"); + private final static QName _ArrayOfKeywordIdEstimatedBid_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordIdEstimatedBid"); + private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); + private final static QName _EstimatedPositionAndTraffic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "EstimatedPositionAndTraffic"); + private final static QName _ArrayOfKeywordCategory_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordCategory"); + private final static QName _DayMonthAndYear_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "DayMonthAndYear"); + private final static QName _ArrayOfKeywordBidLandscape_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordBidLandscape"); + private final static QName _KeywordBidLandscape_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordBidLandscape"); + private final static QName _ArrayOfEstimatedBidAndTraffic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfEstimatedBidAndTraffic"); + private final static QName _ArrayOfBudgetOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfBudgetOpportunity"); + private final static QName _BroadMatchSearchQueryKPI_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BroadMatchSearchQueryKPI"); + private final static QName _EstimatedBidAndTraffic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "EstimatedBidAndTraffic"); + private final static QName _Password_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "Password"); + private final static QName _Currency_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Currency"); + private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); + private final static QName _BudgetPoint_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetPoint"); + private final static QName _KeywordAndMatchType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message", "KeywordAndMatchType"); + private final static QName _ArrayOfKeywordAndConfidence_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordAndConfidence"); + private final static QName _AdApiError_QNAME = new QName("https://adapi.microsoft.com", "AdApiError"); + private final static QName _CustomerAccountId_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "CustomerAccountId"); + private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); + private final static QName _BidLandscapePoint_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BidLandscapePoint"); + private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); + private final static QName _KeywordCategory_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordCategory"); + private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); + private final static QName _KeywordCategoryResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordCategoryResult"); + private final static QName _UserName_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "UserName"); + private final static QName _KeywordAndConfidence_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordAndConfidence"); + private final static QName _ArrayOfBudgetPoint_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfBudgetPoint"); + private final static QName _KeywordHistoricalPerformance_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordHistoricalPerformance"); + private final static QName _KeywordOpportunityType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordOpportunityType"); + private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary"); + private final static QName _BudgetLimitType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetLimitType"); + private final static QName _ApiFaultDetail_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "ApiFaultDetail"); + private final static QName _KeywordSuggestion_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordSuggestion"); + private final static QName _ArrayOfBidLandscapePoint_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfBidLandscapePoint"); + private final static QName _AuthenticationToken_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "AuthenticationToken"); + private final static QName _AdGroupBidLandscapeType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AdGroupBidLandscapeType"); + private final static QName _BudgetPointType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetPointType"); + private final static QName _ArrayOfKeywordDemographicResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordDemographicResult"); + private final static QName _ArrayOflong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOflong"); + private final static QName _KeywordKPI_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordKPI"); + private final static QName _BudgetOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetOpportunity"); + private final static QName _KeywordDemographic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordDemographic"); + private final static QName _ArrayOfstring_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOfstring"); + private final static QName _KeywordIdEstimatedPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordIdEstimatedPosition"); + private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); + private final static QName _Opportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Opportunity"); + private final static QName _ArrayOfHistoricalSearchCountPeriodic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfHistoricalSearchCountPeriodic"); + private final static QName _ArrayOfBidOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfBidOpportunity"); + private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); + private final static QName _BroadMatchKeywordOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BroadMatchKeywordOpportunity"); + private final static QName _CustomerId_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "CustomerId"); + private final static QName _KeywordEstimatedBid_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordEstimatedBid"); + private final static QName _ArrayOfKeywordEstimatedBid_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordEstimatedBid"); + private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); + private final static QName _OperationError_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v10", "OperationError"); + private final static QName _TrackingId_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "TrackingId"); + private final static QName _TimeInterval_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "TimeInterval"); + private final static QName _SearchCountsByAttributes_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "SearchCountsByAttributes"); + private final static QName _BatchError_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v10", "BatchError"); + private final static QName _ArrayOfKeywordOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordOpportunity"); + private final static QName _ArrayOfKeywordLocationResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordLocationResult"); + private final static QName _KeywordSearchCount_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordSearchCount"); + private final static QName _ArrayOfKeywordIdEstimatedPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordIdEstimatedPosition"); + private final static QName _AdGroupBidLandscapeInput_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AdGroupBidLandscapeInput"); + private final static QName _ArrayOfKeywordEstimatedPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordEstimatedPosition"); + private final static QName _ArrayOfKeywordAndMatchType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message", "ArrayOfKeywordAndMatchType"); + private final static QName _TargetAdPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "TargetAdPosition"); + private final static QName _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong"); + private final static QName _ArrayOfKeywordKPI_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordKPI"); + private final static QName _KeywordIdEstimatedBid_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordIdEstimatedBid"); + private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort"); + private final static QName _ArrayOfKeywordSearchCount_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordSearchCount"); + private final static QName _ArrayOfBroadMatchSearchQueryKPI_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfBroadMatchSearchQueryKPI"); + private final static QName _ArrayOfMatchType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfMatchType"); + private final static QName _HistoricalSearchCountPeriodic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "HistoricalSearchCountPeriodic"); + private final static QName _ArrayOfKeywordHistoricalPerformance_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordHistoricalPerformance"); + private final static QName _ArrayOfKeywordLocation_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordLocation"); + private final static QName _KeywordLocation_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordLocation"); + private final static QName _BidOpportunityType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BidOpportunityType"); + private final static QName _ArrayOfKeywordCategoryResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordCategoryResult"); + private final static QName _AdApiFaultDetail_QNAME = new QName("https://adapi.microsoft.com", "AdApiFaultDetail"); + private final static QName _KeywordLocationResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordLocationResult"); + private final static QName _ApplicationFault_QNAME = new QName("https://adapi.microsoft.com", "ApplicationFault"); + private final static QName _ArrayOfKeywordDemographic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordDemographic"); + private final static QName _DeveloperToken_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "DeveloperToken"); + private final static QName _ArrayOfEstimatedPositionAndTraffic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfEstimatedPositionAndTraffic"); + private final static QName _KeywordOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordOpportunity"); + private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); + private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); + private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.microsoft.bingads.v10.adinsight + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Language } + * + */ + public Language createLanguage() { + return new Language(); + } + + /** + * Create an instance of {@link NonNegativeInteger } + * + */ + public NonNegativeInteger createNonNegativeInteger() { + return new NonNegativeInteger(); + } + + /** + * Create an instance of {@link Name } + * + */ + public Name createName() { + return new Name(); + } + + /** + * Create an instance of {@link NCName } + * + */ + public NCName createNCName() { + return new NCName(); + } + + /** + * Create an instance of {@link ENTITY } + * + */ + public ENTITY createENTITY() { + return new ENTITY(); + } + + /** + * Create an instance of {@link NegativeInteger } + * + */ + public NegativeInteger createNegativeInteger() { + return new NegativeInteger(); + } + + /** + * Create an instance of {@link ENTITIES } + * + */ + public ENTITIES createENTITIES() { + return new ENTITIES(); + } + + /** + * Create an instance of {@link UnsignedLong } + * + */ + public UnsignedLong createUnsignedLong() { + return new UnsignedLong(); + } + + /** + * Create an instance of {@link IDREFS } + * + */ + public IDREFS createIDREFS() { + return new IDREFS(); + } + + /** + * Create an instance of {@link NonPositiveInteger } + * + */ + public NonPositiveInteger createNonPositiveInteger() { + return new NonPositiveInteger(); + } + + /** + * Create an instance of {@link NMTOKEN } + * + */ + public NMTOKEN createNMTOKEN() { + return new NMTOKEN(); + } + + /** + * Create an instance of {@link NMTOKENS } + * + */ + public NMTOKENS createNMTOKENS() { + return new NMTOKENS(); + } + + /** + * Create an instance of {@link PositiveInteger } + * + */ + public PositiveInteger createPositiveInteger() { + return new PositiveInteger(); + } + + /** + * Create an instance of {@link GetKeywordCategoriesResponse } + * + */ + public GetKeywordCategoriesResponse createGetKeywordCategoriesResponse() { + return new GetKeywordCategoriesResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordCategoryResult } + * + */ + public ArrayOfKeywordCategoryResult createArrayOfKeywordCategoryResult() { + return new ArrayOfKeywordCategoryResult(); + } + + /** + * Create an instance of {@link SuggestKeywordsForUrlRequest } + * + */ + public SuggestKeywordsForUrlRequest createSuggestKeywordsForUrlRequest() { + return new SuggestKeywordsForUrlRequest(); + } + + /** + * Create an instance of {@link GetBudgetOpportunitiesResponse } + * + */ + public GetBudgetOpportunitiesResponse createGetBudgetOpportunitiesResponse() { + return new GetBudgetOpportunitiesResponse(); + } + + /** + * Create an instance of {@link ArrayOfBudgetOpportunity } + * + */ + public ArrayOfBudgetOpportunity createArrayOfBudgetOpportunity() { + return new ArrayOfBudgetOpportunity(); + } + + /** + * Create an instance of {@link GetKeywordCategoriesRequest } + * + */ + public GetKeywordCategoriesRequest createGetKeywordCategoriesRequest() { + return new GetKeywordCategoriesRequest(); + } + + /** + * Create an instance of {@link ArrayOfstring } + * + */ + public ArrayOfstring createArrayOfstring() { + return new ArrayOfstring(); + } + + /** + * Create an instance of {@link GetKeywordDemographicsRequest } + * + */ + public GetKeywordDemographicsRequest createGetKeywordDemographicsRequest() { + return new GetKeywordDemographicsRequest(); + } + + /** + * Create an instance of {@link GetKeywordOpportunitiesResponse } + * + */ + public GetKeywordOpportunitiesResponse createGetKeywordOpportunitiesResponse() { + return new GetKeywordOpportunitiesResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordOpportunity } + * + */ + public ArrayOfKeywordOpportunity createArrayOfKeywordOpportunity() { + return new ArrayOfKeywordOpportunity(); + } + + /** + * Create an instance of {@link SuggestKeywordsForUrlResponse } + * + */ + public SuggestKeywordsForUrlResponse createSuggestKeywordsForUrlResponse() { + return new SuggestKeywordsForUrlResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordAndConfidence } + * + */ + public ArrayOfKeywordAndConfidence createArrayOfKeywordAndConfidence() { + return new ArrayOfKeywordAndConfidence(); + } + + /** + * Create an instance of {@link ProbeResponse } + * + */ + public ProbeResponse createProbeResponse() { + return new ProbeResponse(); + } + + /** + * Create an instance of {@link GetHistoricalKeywordPerformanceRequest } + * + */ + public GetHistoricalKeywordPerformanceRequest createGetHistoricalKeywordPerformanceRequest() { + return new GetHistoricalKeywordPerformanceRequest(); + } + + /** + * Create an instance of {@link ArrayOfMatchType } + * + */ + public ArrayOfMatchType createArrayOfMatchType() { + return new ArrayOfMatchType(); + } + + /** + * Create an instance of {@link GetKeywordOpportunitiesRequest } + * + */ + public GetKeywordOpportunitiesRequest createGetKeywordOpportunitiesRequest() { + return new GetKeywordOpportunitiesRequest(); + } + + /** + * Create an instance of {@link GetEstimatedPositionByKeywordIdsResponse } + * + */ + public GetEstimatedPositionByKeywordIdsResponse createGetEstimatedPositionByKeywordIdsResponse() { + return new GetEstimatedPositionByKeywordIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordIdEstimatedPosition } + * + */ + public ArrayOfKeywordIdEstimatedPosition createArrayOfKeywordIdEstimatedPosition() { + return new ArrayOfKeywordIdEstimatedPosition(); + } + + /** + * Create an instance of {@link GetBidLandscapeByAdGroupIdsRequest } + * + */ + public GetBidLandscapeByAdGroupIdsRequest createGetBidLandscapeByAdGroupIdsRequest() { + return new GetBidLandscapeByAdGroupIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOfAdGroupBidLandscapeInput } + * + */ + public ArrayOfAdGroupBidLandscapeInput createArrayOfAdGroupBidLandscapeInput() { + return new ArrayOfAdGroupBidLandscapeInput(); + } + + /** + * Create an instance of {@link GetEstimatedBidByKeywordsResponse } + * + */ + public GetEstimatedBidByKeywordsResponse createGetEstimatedBidByKeywordsResponse() { + return new GetEstimatedBidByKeywordsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordEstimatedBid } + * + */ + public ArrayOfKeywordEstimatedBid createArrayOfKeywordEstimatedBid() { + return new ArrayOfKeywordEstimatedBid(); + } + + /** + * Create an instance of {@link EstimatedBidAndTraffic } + * + */ + public EstimatedBidAndTraffic createEstimatedBidAndTraffic() { + return new EstimatedBidAndTraffic(); + } + + /** + * Create an instance of {@link GetHistoricalKeywordPerformanceResponse } + * + */ + public GetHistoricalKeywordPerformanceResponse createGetHistoricalKeywordPerformanceResponse() { + return new GetHistoricalKeywordPerformanceResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordHistoricalPerformance } + * + */ + public ArrayOfKeywordHistoricalPerformance createArrayOfKeywordHistoricalPerformance() { + return new ArrayOfKeywordHistoricalPerformance(); + } + + /** + * Create an instance of {@link ProbeRequest } + * + */ + public ProbeRequest createProbeRequest() { + return new ProbeRequest(); + } + + /** + * Create an instance of {@link GetBidOpportunitiesRequest } + * + */ + public GetBidOpportunitiesRequest createGetBidOpportunitiesRequest() { + return new GetBidOpportunitiesRequest(); + } + + /** + * Create an instance of {@link GetEstimatedPositionByKeywordsResponse } + * + */ + public GetEstimatedPositionByKeywordsResponse createGetEstimatedPositionByKeywordsResponse() { + return new GetEstimatedPositionByKeywordsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordEstimatedPosition } + * + */ + public ArrayOfKeywordEstimatedPosition createArrayOfKeywordEstimatedPosition() { + return new ArrayOfKeywordEstimatedPosition(); + } + + /** + * Create an instance of {@link SuggestKeywordsFromExistingKeywordsResponse } + * + */ + public SuggestKeywordsFromExistingKeywordsResponse createSuggestKeywordsFromExistingKeywordsResponse() { + return new SuggestKeywordsFromExistingKeywordsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordSuggestion } + * + */ + public ArrayOfKeywordSuggestion createArrayOfKeywordSuggestion() { + return new ArrayOfKeywordSuggestion(); + } + + /** + * Create an instance of {@link GetKeywordLocationsResponse } + * + */ + public GetKeywordLocationsResponse createGetKeywordLocationsResponse() { + return new GetKeywordLocationsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordLocationResult } + * + */ + public ArrayOfKeywordLocationResult createArrayOfKeywordLocationResult() { + return new ArrayOfKeywordLocationResult(); + } + + /** + * Create an instance of {@link GetBidOpportunitiesResponse } + * + */ + public GetBidOpportunitiesResponse createGetBidOpportunitiesResponse() { + return new GetBidOpportunitiesResponse(); + } + + /** + * Create an instance of {@link ArrayOfBidOpportunity } + * + */ + public ArrayOfBidOpportunity createArrayOfBidOpportunity() { + return new ArrayOfBidOpportunity(); + } + + /** + * Create an instance of {@link GetEstimatedPositionByKeywordsRequest } + * + */ + public GetEstimatedPositionByKeywordsRequest createGetEstimatedPositionByKeywordsRequest() { + return new GetEstimatedPositionByKeywordsRequest(); + } + + /** + * Create an instance of {@link SuggestKeywordsFromExistingKeywordsRequest } + * + */ + public SuggestKeywordsFromExistingKeywordsRequest createSuggestKeywordsFromExistingKeywordsRequest() { + return new SuggestKeywordsFromExistingKeywordsRequest(); + } + + /** + * Create an instance of {@link GetKeywordDemographicsResponse } + * + */ + public GetKeywordDemographicsResponse createGetKeywordDemographicsResponse() { + return new GetKeywordDemographicsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordDemographicResult } + * + */ + public ArrayOfKeywordDemographicResult createArrayOfKeywordDemographicResult() { + return new ArrayOfKeywordDemographicResult(); + } + + /** + * Create an instance of {@link GetKeywordLocationsRequest } + * + */ + public GetKeywordLocationsRequest createGetKeywordLocationsRequest() { + return new GetKeywordLocationsRequest(); + } + + /** + * Create an instance of {@link GetHistoricalSearchCountRequest } + * + */ + public GetHistoricalSearchCountRequest createGetHistoricalSearchCountRequest() { + return new GetHistoricalSearchCountRequest(); + } + + /** + * Create an instance of {@link DayMonthAndYear } + * + */ + public DayMonthAndYear createDayMonthAndYear() { + return new DayMonthAndYear(); + } + + /** + * Create an instance of {@link GetBidLandscapeByAdGroupIdsResponse } + * + */ + public GetBidLandscapeByAdGroupIdsResponse createGetBidLandscapeByAdGroupIdsResponse() { + return new GetBidLandscapeByAdGroupIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfAdGroupBidLandscape } + * + */ + public ArrayOfAdGroupBidLandscape createArrayOfAdGroupBidLandscape() { + return new ArrayOfAdGroupBidLandscape(); + } + + /** + * Create an instance of {@link GetHistoricalSearchCountResponse } + * + */ + public GetHistoricalSearchCountResponse createGetHistoricalSearchCountResponse() { + return new GetHistoricalSearchCountResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordSearchCount } + * + */ + public ArrayOfKeywordSearchCount createArrayOfKeywordSearchCount() { + return new ArrayOfKeywordSearchCount(); + } + + /** + * Create an instance of {@link GetEstimatedBidByKeywordIdsResponse } + * + */ + public GetEstimatedBidByKeywordIdsResponse createGetEstimatedBidByKeywordIdsResponse() { + return new GetEstimatedBidByKeywordIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordIdEstimatedBid } + * + */ + public ArrayOfKeywordIdEstimatedBid createArrayOfKeywordIdEstimatedBid() { + return new ArrayOfKeywordIdEstimatedBid(); + } + + /** + * Create an instance of {@link GetBidLandscapeByKeywordIdsResponse } + * + */ + public GetBidLandscapeByKeywordIdsResponse createGetBidLandscapeByKeywordIdsResponse() { + return new GetBidLandscapeByKeywordIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeywordBidLandscape } + * + */ + public ArrayOfKeywordBidLandscape createArrayOfKeywordBidLandscape() { + return new ArrayOfKeywordBidLandscape(); + } + + /** + * Create an instance of {@link GetEstimatedPositionByKeywordIdsRequest } + * + */ + public GetEstimatedPositionByKeywordIdsRequest createGetEstimatedPositionByKeywordIdsRequest() { + return new GetEstimatedPositionByKeywordIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOflong } + * + */ + public ArrayOflong createArrayOflong() { + return new ArrayOflong(); + } + + /** + * Create an instance of {@link GetEstimatedBidByKeywordsRequest } + * + */ + public GetEstimatedBidByKeywordsRequest createGetEstimatedBidByKeywordsRequest() { + return new GetEstimatedBidByKeywordsRequest(); + } + + /** + * Create an instance of {@link ArrayOfKeywordAndMatchType } + * + */ + public ArrayOfKeywordAndMatchType createArrayOfKeywordAndMatchType() { + return new ArrayOfKeywordAndMatchType(); + } + + /** + * Create an instance of {@link GetBudgetOpportunitiesRequest } + * + */ + public GetBudgetOpportunitiesRequest createGetBudgetOpportunitiesRequest() { + return new GetBudgetOpportunitiesRequest(); + } + + /** + * Create an instance of {@link ApiFaultDetail } + * + */ + public ApiFaultDetail createApiFaultDetail() { + return new ApiFaultDetail(); + } + + /** + * Create an instance of {@link GetEstimatedBidByKeywordIdsRequest } + * + */ + public GetEstimatedBidByKeywordIdsRequest createGetEstimatedBidByKeywordIdsRequest() { + return new GetEstimatedBidByKeywordIdsRequest(); + } + + /** + * Create an instance of {@link GetBidLandscapeByKeywordIdsRequest } + * + */ + public GetBidLandscapeByKeywordIdsRequest createGetBidLandscapeByKeywordIdsRequest() { + return new GetBidLandscapeByKeywordIdsRequest(); + } + + /** + * Create an instance of {@link EstimatedPositionAndTraffic } + * + */ + public EstimatedPositionAndTraffic createEstimatedPositionAndTraffic() { + return new EstimatedPositionAndTraffic(); + } + + /** + * Create an instance of {@link ArrayOfKeywordKPI } + * + */ + public ArrayOfKeywordKPI createArrayOfKeywordKPI() { + return new ArrayOfKeywordKPI(); + } + + /** + * Create an instance of {@link BidOpportunity } + * + */ + public BidOpportunity createBidOpportunity() { + return new BidOpportunity(); + } + + /** + * Create an instance of {@link KeywordIdEstimatedBid } + * + */ + public KeywordIdEstimatedBid createKeywordIdEstimatedBid() { + return new KeywordIdEstimatedBid(); + } + + /** + * Create an instance of {@link ArrayOfKeywordCategory } + * + */ + public ArrayOfKeywordCategory createArrayOfKeywordCategory() { + return new ArrayOfKeywordCategory(); + } + + /** + * Create an instance of {@link ArrayOfBroadMatchSearchQueryKPI } + * + */ + public ArrayOfBroadMatchSearchQueryKPI createArrayOfBroadMatchSearchQueryKPI() { + return new ArrayOfBroadMatchSearchQueryKPI(); + } + + /** + * Create an instance of {@link ArrayOfEstimatedBidAndTraffic } + * + */ + public ArrayOfEstimatedBidAndTraffic createArrayOfEstimatedBidAndTraffic() { + return new ArrayOfEstimatedBidAndTraffic(); + } + + /** + * Create an instance of {@link KeywordBidLandscape } + * + */ + public KeywordBidLandscape createKeywordBidLandscape() { + return new KeywordBidLandscape(); + } + + /** + * Create an instance of {@link HistoricalSearchCountPeriodic } + * + */ + public HistoricalSearchCountPeriodic createHistoricalSearchCountPeriodic() { + return new HistoricalSearchCountPeriodic(); + } + + /** + * Create an instance of {@link BroadMatchSearchQueryKPI } + * + */ + public BroadMatchSearchQueryKPI createBroadMatchSearchQueryKPI() { + return new BroadMatchSearchQueryKPI(); + } + + /** + * Create an instance of {@link ArrayOfKeywordLocation } + * + */ + public ArrayOfKeywordLocation createArrayOfKeywordLocation() { + return new ArrayOfKeywordLocation(); + } + + /** + * Create an instance of {@link KeywordLocation } + * + */ + public KeywordLocation createKeywordLocation() { + return new KeywordLocation(); + } + + /** + * Create an instance of {@link BudgetPoint } + * + */ + public BudgetPoint createBudgetPoint() { + return new BudgetPoint(); + } + + /** + * Create an instance of {@link BidLandscapePoint } + * + */ + public BidLandscapePoint createBidLandscapePoint() { + return new BidLandscapePoint(); + } + + /** + * Create an instance of {@link KeywordCategoryResult } + * + */ + public KeywordCategoryResult createKeywordCategoryResult() { + return new KeywordCategoryResult(); + } + + /** + * Create an instance of {@link KeywordCategory } + * + */ + public KeywordCategory createKeywordCategory() { + return new KeywordCategory(); + } + + /** + * Create an instance of {@link ArrayOfKeywordDemographic } + * + */ + public ArrayOfKeywordDemographic createArrayOfKeywordDemographic() { + return new ArrayOfKeywordDemographic(); + } + + /** + * Create an instance of {@link KeywordLocationResult } + * + */ + public KeywordLocationResult createKeywordLocationResult() { + return new KeywordLocationResult(); + } + + /** + * Create an instance of {@link KeywordAndConfidence } + * + */ + public KeywordAndConfidence createKeywordAndConfidence() { + return new KeywordAndConfidence(); + } + + /** + * Create an instance of {@link ArrayOfBudgetPoint } + * + */ + public ArrayOfBudgetPoint createArrayOfBudgetPoint() { + return new ArrayOfBudgetPoint(); + } + + /** + * Create an instance of {@link KeywordHistoricalPerformance } + * + */ + public KeywordHistoricalPerformance createKeywordHistoricalPerformance() { + return new KeywordHistoricalPerformance(); + } + + /** + * Create an instance of {@link ArrayOfEstimatedPositionAndTraffic } + * + */ + public ArrayOfEstimatedPositionAndTraffic createArrayOfEstimatedPositionAndTraffic() { + return new ArrayOfEstimatedPositionAndTraffic(); + } + + /** + * Create an instance of {@link KeywordOpportunity } + * + */ + public KeywordOpportunity createKeywordOpportunity() { + return new KeywordOpportunity(); + } + + /** + * Create an instance of {@link KeywordSuggestion } + * + */ + public KeywordSuggestion createKeywordSuggestion() { + return new KeywordSuggestion(); + } + + /** + * Create an instance of {@link ArrayOfBidLandscapePoint } + * + */ + public ArrayOfBidLandscapePoint createArrayOfBidLandscapePoint() { + return new ArrayOfBidLandscapePoint(); + } + + /** + * Create an instance of {@link KeywordKPI } + * + */ + public KeywordKPI createKeywordKPI() { + return new KeywordKPI(); + } + + /** + * Create an instance of {@link KeywordEstimatedPosition } + * + */ + public KeywordEstimatedPosition createKeywordEstimatedPosition() { + return new KeywordEstimatedPosition(); + } + + /** + * Create an instance of {@link BudgetOpportunity } + * + */ + public BudgetOpportunity createBudgetOpportunity() { + return new BudgetOpportunity(); + } + + /** + * Create an instance of {@link KeywordDemographic } + * + */ + public KeywordDemographic createKeywordDemographic() { + return new KeywordDemographic(); + } + + /** + * Create an instance of {@link ArrayOfHistoricalSearchCountPeriodic } + * + */ + public ArrayOfHistoricalSearchCountPeriodic createArrayOfHistoricalSearchCountPeriodic() { + return new ArrayOfHistoricalSearchCountPeriodic(); + } + + /** + * Create an instance of {@link KeywordIdEstimatedPosition } + * + */ + public KeywordIdEstimatedPosition createKeywordIdEstimatedPosition() { + return new KeywordIdEstimatedPosition(); + } + + /** + * Create an instance of {@link Opportunity } + * + */ + public Opportunity createOpportunity() { + return new Opportunity(); + } + + /** + * Create an instance of {@link ArrayOfSearchCountsByAttributes } + * + */ + public ArrayOfSearchCountsByAttributes createArrayOfSearchCountsByAttributes() { + return new ArrayOfSearchCountsByAttributes(); + } + + /** + * Create an instance of {@link BroadMatchKeywordOpportunity } + * + */ + public BroadMatchKeywordOpportunity createBroadMatchKeywordOpportunity() { + return new BroadMatchKeywordOpportunity(); + } + + /** + * Create an instance of {@link KeywordEstimatedBid } + * + */ + public KeywordEstimatedBid createKeywordEstimatedBid() { + return new KeywordEstimatedBid(); + } + + /** + * Create an instance of {@link SearchCountsByAttributes } + * + */ + public SearchCountsByAttributes createSearchCountsByAttributes() { + return new SearchCountsByAttributes(); + } + + /** + * Create an instance of {@link KeywordSearchCount } + * + */ + public KeywordSearchCount createKeywordSearchCount() { + return new KeywordSearchCount(); + } + + /** + * Create an instance of {@link AdGroupBidLandscapeInput } + * + */ + public AdGroupBidLandscapeInput createAdGroupBidLandscapeInput() { + return new AdGroupBidLandscapeInput(); + } + + /** + * Create an instance of {@link KeywordDemographicResult } + * + */ + public KeywordDemographicResult createKeywordDemographicResult() { + return new KeywordDemographicResult(); + } + + /** + * Create an instance of {@link AdGroupBidLandscape } + * + */ + public AdGroupBidLandscape createAdGroupBidLandscape() { + return new AdGroupBidLandscape(); + } + + /** + * Create an instance of {@link Duration } + * + */ + public Duration createDuration() { + return new Duration(); + } + + /** + * Create an instance of {@link Char } + * + */ + public Char createChar() { + return new Char(); + } + + /** + * Create an instance of {@link Guid } + * + */ + public Guid createGuid() { + return new Guid(); + } + + /** + * Create an instance of {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError createArrayOfBatchError() { + return new ArrayOfBatchError(); + } + + /** + * Create an instance of {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError createArrayOfOperationError() { + return new ArrayOfOperationError(); + } + + /** + * Create an instance of {@link BatchError } + * + */ + public BatchError createBatchError() { + return new BatchError(); + } + + /** + * Create an instance of {@link OperationError } + * + */ + public OperationError createOperationError() { + return new OperationError(); + } + + /** + * Create an instance of {@link ApplicationFault } + * + */ + public ApplicationFault createApplicationFault() { + return new ApplicationFault(); + } + + /** + * Create an instance of {@link AdApiError } + * + */ + public AdApiError createAdApiError() { + return new AdApiError(); + } + + /** + * Create an instance of {@link ArrayOfAdApiError } + * + */ + public ArrayOfAdApiError createArrayOfAdApiError() { + return new ArrayOfAdApiError(); + } + + /** + * Create an instance of {@link AdApiFaultDetail } + * + */ + public AdApiFaultDetail createAdApiFaultDetail() { + return new AdApiFaultDetail(); + } + + /** + * Create an instance of {@link KeywordAndMatchType } + * + */ + public KeywordAndMatchType createKeywordAndMatchType() { + return new KeywordAndMatchType(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdPosition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "AdPosition") + public JAXBElement createAdPosition(AdPosition value) { + return new JAXBElement(_AdPosition_QNAME, AdPosition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "duration") + public JAXBElement createDuration(Duration value) { + return new JAXBElement(_Duration_QNAME, Duration.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfOperationError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v10", name = "ArrayOfOperationError") + public JAXBElement createArrayOfOperationError(ArrayOfOperationError value) { + return new JAXBElement(_ArrayOfOperationError_QNAME, ArrayOfOperationError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupBidLandscapeInput }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfAdGroupBidLandscapeInput") + public JAXBElement createArrayOfAdGroupBidLandscapeInput(ArrayOfAdGroupBidLandscapeInput value) { + return new JAXBElement(_ArrayOfAdGroupBidLandscapeInput_QNAME, ArrayOfAdGroupBidLandscapeInput.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "ApplicationToken") + public JAXBElement createApplicationToken(String value) { + return new JAXBElement(_ApplicationToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordEstimatedPosition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordEstimatedPosition") + public JAXBElement createKeywordEstimatedPosition(KeywordEstimatedPosition value) { + return new JAXBElement(_KeywordEstimatedPosition_QNAME, KeywordEstimatedPosition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdApiError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "ArrayOfAdApiError") + public JAXBElement createArrayOfAdApiError(ArrayOfAdApiError value) { + return new JAXBElement(_ArrayOfAdApiError_QNAME, ArrayOfAdApiError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "string") + public JAXBElement createString(String value) { + return new JAXBElement(_String_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupBidLandscape }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfAdGroupBidLandscape") + public JAXBElement createArrayOfAdGroupBidLandscape(ArrayOfAdGroupBidLandscape value) { + return new JAXBElement(_ArrayOfAdGroupBidLandscape_QNAME, ArrayOfAdGroupBidLandscape.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSearchCountsByAttributes }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfSearchCountsByAttributes") + public JAXBElement createArrayOfSearchCountsByAttributes(ArrayOfSearchCountsByAttributes value) { + return new JAXBElement(_ArrayOfSearchCountsByAttributes_QNAME, ArrayOfSearchCountsByAttributes.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedInt") + public JAXBElement createUnsignedInt(Long value) { + return new JAXBElement(_UnsignedInt_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "short") + public JAXBElement createShort(Short value) { + return new JAXBElement(_Short_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBatchError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v10", name = "ArrayOfBatchError") + public JAXBElement createArrayOfBatchError(ArrayOfBatchError value) { + return new JAXBElement(_ArrayOfBatchError_QNAME, ArrayOfBatchError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "boolean") + public JAXBElement createBoolean(Boolean value) { + return new JAXBElement(_Boolean_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "int") + public JAXBElement createInt(Integer value) { + return new JAXBElement(_Int_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MatchType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "MatchType") + public JAXBElement createMatchType(MatchType value) { + return new JAXBElement(_MatchType_QNAME, MatchType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordSuggestion }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordSuggestion") + public JAXBElement createArrayOfKeywordSuggestion(ArrayOfKeywordSuggestion value) { + return new JAXBElement(_ArrayOfKeywordSuggestion_QNAME, ArrayOfKeywordSuggestion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordDemographicResult }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordDemographicResult") + public JAXBElement createKeywordDemographicResult(KeywordDemographicResult value) { + return new JAXBElement(_KeywordDemographicResult_QNAME, KeywordDemographicResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "QName") + public JAXBElement createQName(QName value) { + return new JAXBElement(_QName_QNAME, QName.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupBidLandscape }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "AdGroupBidLandscape") + public JAXBElement createAdGroupBidLandscape(AdGroupBidLandscape value) { + return new JAXBElement(_AdGroupBidLandscape_QNAME, AdGroupBidLandscape.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BidOpportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BidOpportunity") + public JAXBElement createBidOpportunity(BidOpportunity value) { + return new JAXBElement(_BidOpportunity_QNAME, BidOpportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordIdEstimatedBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordIdEstimatedBid") + public JAXBElement createArrayOfKeywordIdEstimatedBid(ArrayOfKeywordIdEstimatedBid value) { + return new JAXBElement(_ArrayOfKeywordIdEstimatedBid_QNAME, ArrayOfKeywordIdEstimatedBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedByte") + public JAXBElement createUnsignedByte(Short value) { + return new JAXBElement(_UnsignedByte_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EstimatedPositionAndTraffic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "EstimatedPositionAndTraffic") + public JAXBElement createEstimatedPositionAndTraffic(EstimatedPositionAndTraffic value) { + return new JAXBElement(_EstimatedPositionAndTraffic_QNAME, EstimatedPositionAndTraffic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordCategory }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordCategory") + public JAXBElement createArrayOfKeywordCategory(ArrayOfKeywordCategory value) { + return new JAXBElement(_ArrayOfKeywordCategory_QNAME, ArrayOfKeywordCategory.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DayMonthAndYear }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "DayMonthAndYear") + public JAXBElement createDayMonthAndYear(DayMonthAndYear value) { + return new JAXBElement(_DayMonthAndYear_QNAME, DayMonthAndYear.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordBidLandscape }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordBidLandscape") + public JAXBElement createArrayOfKeywordBidLandscape(ArrayOfKeywordBidLandscape value) { + return new JAXBElement(_ArrayOfKeywordBidLandscape_QNAME, ArrayOfKeywordBidLandscape.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordBidLandscape }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordBidLandscape") + public JAXBElement createKeywordBidLandscape(KeywordBidLandscape value) { + return new JAXBElement(_KeywordBidLandscape_QNAME, KeywordBidLandscape.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfEstimatedBidAndTraffic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfEstimatedBidAndTraffic") + public JAXBElement createArrayOfEstimatedBidAndTraffic(ArrayOfEstimatedBidAndTraffic value) { + return new JAXBElement(_ArrayOfEstimatedBidAndTraffic_QNAME, ArrayOfEstimatedBidAndTraffic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBudgetOpportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfBudgetOpportunity") + public JAXBElement createArrayOfBudgetOpportunity(ArrayOfBudgetOpportunity value) { + return new JAXBElement(_ArrayOfBudgetOpportunity_QNAME, ArrayOfBudgetOpportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BroadMatchSearchQueryKPI }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BroadMatchSearchQueryKPI") + public JAXBElement createBroadMatchSearchQueryKPI(BroadMatchSearchQueryKPI value) { + return new JAXBElement(_BroadMatchSearchQueryKPI_QNAME, BroadMatchSearchQueryKPI.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EstimatedBidAndTraffic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "EstimatedBidAndTraffic") + public JAXBElement createEstimatedBidAndTraffic(EstimatedBidAndTraffic value) { + return new JAXBElement(_EstimatedBidAndTraffic_QNAME, EstimatedBidAndTraffic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "Password") + public JAXBElement createPassword(String value) { + return new JAXBElement(_Password_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Currency }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "Currency") + public JAXBElement createCurrency(Currency value) { + return new JAXBElement(_Currency_QNAME, Currency.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "float") + public JAXBElement createFloat(Float value) { + return new JAXBElement(_Float_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BudgetPoint }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BudgetPoint") + public JAXBElement createBudgetPoint(BudgetPoint value) { + return new JAXBElement(_BudgetPoint_QNAME, BudgetPoint.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordAndMatchType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message", name = "KeywordAndMatchType") + public JAXBElement createKeywordAndMatchType(KeywordAndMatchType value) { + return new JAXBElement(_KeywordAndMatchType_QNAME, KeywordAndMatchType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordAndConfidence }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordAndConfidence") + public JAXBElement createArrayOfKeywordAndConfidence(ArrayOfKeywordAndConfidence value) { + return new JAXBElement(_ArrayOfKeywordAndConfidence_QNAME, ArrayOfKeywordAndConfidence.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdApiError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "AdApiError") + public JAXBElement createAdApiError(AdApiError value) { + return new JAXBElement(_AdApiError_QNAME, AdApiError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "CustomerAccountId") + public JAXBElement createCustomerAccountId(String value) { + return new JAXBElement(_CustomerAccountId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyType") + public JAXBElement createAnyType(Object value) { + return new JAXBElement(_AnyType_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BidLandscapePoint }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BidLandscapePoint") + public JAXBElement createBidLandscapePoint(BidLandscapePoint value) { + return new JAXBElement(_BidLandscapePoint_QNAME, BidLandscapePoint.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Guid }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "guid") + public JAXBElement createGuid(Guid value) { + return new JAXBElement(_Guid_QNAME, Guid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordCategory }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordCategory") + public JAXBElement createKeywordCategory(KeywordCategory value) { + return new JAXBElement(_KeywordCategory_QNAME, KeywordCategory.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "decimal") + public JAXBElement createDecimal(BigDecimal value) { + return new JAXBElement(_Decimal_QNAME, BigDecimal.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordCategoryResult }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordCategoryResult") + public JAXBElement createKeywordCategoryResult(KeywordCategoryResult value) { + return new JAXBElement(_KeywordCategoryResult_QNAME, KeywordCategoryResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "UserName") + public JAXBElement createUserName(String value) { + return new JAXBElement(_UserName_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordAndConfidence }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordAndConfidence") + public JAXBElement createKeywordAndConfidence(KeywordAndConfidence value) { + return new JAXBElement(_KeywordAndConfidence_QNAME, KeywordAndConfidence.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBudgetPoint }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfBudgetPoint") + public JAXBElement createArrayOfBudgetPoint(ArrayOfBudgetPoint value) { + return new JAXBElement(_ArrayOfBudgetPoint_QNAME, ArrayOfBudgetPoint.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordHistoricalPerformance }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordHistoricalPerformance") + public JAXBElement createKeywordHistoricalPerformance(KeywordHistoricalPerformance value) { + return new JAXBElement(_KeywordHistoricalPerformance_QNAME, KeywordHistoricalPerformance.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link KeywordOpportunityType }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordOpportunityType") + @XmlJavaTypeAdapter(Adapter2 .class) + public JAXBElement> createKeywordOpportunityType(Collection value) { + return new JAXBElement>(_KeywordOpportunityType_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "base64Binary") + public JAXBElement createBase64Binary(byte[] value) { + return new JAXBElement(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value)); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BudgetLimitType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BudgetLimitType") + public JAXBElement createBudgetLimitType(BudgetLimitType value) { + return new JAXBElement(_BudgetLimitType_QNAME, BudgetLimitType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ApiFaultDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "ApiFaultDetail") + public JAXBElement createApiFaultDetail(ApiFaultDetail value) { + return new JAXBElement(_ApiFaultDetail_QNAME, ApiFaultDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordSuggestion }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordSuggestion") + public JAXBElement createKeywordSuggestion(KeywordSuggestion value) { + return new JAXBElement(_KeywordSuggestion_QNAME, KeywordSuggestion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBidLandscapePoint }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfBidLandscapePoint") + public JAXBElement createArrayOfBidLandscapePoint(ArrayOfBidLandscapePoint value) { + return new JAXBElement(_ArrayOfBidLandscapePoint_QNAME, ArrayOfBidLandscapePoint.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "AuthenticationToken") + public JAXBElement createAuthenticationToken(String value) { + return new JAXBElement(_AuthenticationToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupBidLandscapeType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "AdGroupBidLandscapeType") + public JAXBElement createAdGroupBidLandscapeType(AdGroupBidLandscapeType value) { + return new JAXBElement(_AdGroupBidLandscapeType_QNAME, AdGroupBidLandscapeType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BudgetPointType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BudgetPointType") + public JAXBElement createBudgetPointType(BudgetPointType value) { + return new JAXBElement(_BudgetPointType_QNAME, BudgetPointType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordDemographicResult }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordDemographicResult") + public JAXBElement createArrayOfKeywordDemographicResult(ArrayOfKeywordDemographicResult value) { + return new JAXBElement(_ArrayOfKeywordDemographicResult_QNAME, ArrayOfKeywordDemographicResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOflong }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", name = "ArrayOflong") + public JAXBElement createArrayOflong(ArrayOflong value) { + return new JAXBElement(_ArrayOflong_QNAME, ArrayOflong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordKPI }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordKPI") + public JAXBElement createKeywordKPI(KeywordKPI value) { + return new JAXBElement(_KeywordKPI_QNAME, KeywordKPI.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BudgetOpportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BudgetOpportunity") + public JAXBElement createBudgetOpportunity(BudgetOpportunity value) { + return new JAXBElement(_BudgetOpportunity_QNAME, BudgetOpportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordDemographic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordDemographic") + public JAXBElement createKeywordDemographic(KeywordDemographic value) { + return new JAXBElement(_KeywordDemographic_QNAME, KeywordDemographic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfstring }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", name = "ArrayOfstring") + public JAXBElement createArrayOfstring(ArrayOfstring value) { + return new JAXBElement(_ArrayOfstring_QNAME, ArrayOfstring.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordIdEstimatedPosition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordIdEstimatedPosition") + public JAXBElement createKeywordIdEstimatedPosition(KeywordIdEstimatedPosition value) { + return new JAXBElement(_KeywordIdEstimatedPosition_QNAME, KeywordIdEstimatedPosition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "long") + public JAXBElement createLong(Long value) { + return new JAXBElement(_Long_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Opportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "Opportunity") + public JAXBElement createOpportunity(Opportunity value) { + return new JAXBElement(_Opportunity_QNAME, Opportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfHistoricalSearchCountPeriodic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfHistoricalSearchCountPeriodic") + public JAXBElement createArrayOfHistoricalSearchCountPeriodic(ArrayOfHistoricalSearchCountPeriodic value) { + return new JAXBElement(_ArrayOfHistoricalSearchCountPeriodic_QNAME, ArrayOfHistoricalSearchCountPeriodic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBidOpportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfBidOpportunity") + public JAXBElement createArrayOfBidOpportunity(ArrayOfBidOpportunity value) { + return new JAXBElement(_ArrayOfBidOpportunity_QNAME, ArrayOfBidOpportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Calendar }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "dateTime") + @XmlJavaTypeAdapter(Adapter1 .class) + public JAXBElement createDateTime(Calendar value) { + return new JAXBElement(_DateTime_QNAME, Calendar.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BroadMatchKeywordOpportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BroadMatchKeywordOpportunity") + public JAXBElement createBroadMatchKeywordOpportunity(BroadMatchKeywordOpportunity value) { + return new JAXBElement(_BroadMatchKeywordOpportunity_QNAME, BroadMatchKeywordOpportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "CustomerId") + public JAXBElement createCustomerId(String value) { + return new JAXBElement(_CustomerId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordEstimatedBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordEstimatedBid") + public JAXBElement createKeywordEstimatedBid(KeywordEstimatedBid value) { + return new JAXBElement(_KeywordEstimatedBid_QNAME, KeywordEstimatedBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordEstimatedBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordEstimatedBid") + public JAXBElement createArrayOfKeywordEstimatedBid(ArrayOfKeywordEstimatedBid value) { + return new JAXBElement(_ArrayOfKeywordEstimatedBid_QNAME, ArrayOfKeywordEstimatedBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Char }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "char") + public JAXBElement createChar(Char value) { + return new JAXBElement(_Char_QNAME, Char.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OperationError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v10", name = "OperationError") + public JAXBElement createOperationError(OperationError value) { + return new JAXBElement(_OperationError_QNAME, OperationError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "TrackingId") + public JAXBElement createTrackingId(String value) { + return new JAXBElement(_TrackingId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TimeInterval }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "TimeInterval") + public JAXBElement createTimeInterval(TimeInterval value) { + return new JAXBElement(_TimeInterval_QNAME, TimeInterval.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SearchCountsByAttributes }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "SearchCountsByAttributes") + public JAXBElement createSearchCountsByAttributes(SearchCountsByAttributes value) { + return new JAXBElement(_SearchCountsByAttributes_QNAME, SearchCountsByAttributes.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BatchError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/AdInsight/v10", name = "BatchError") + public JAXBElement createBatchError(BatchError value) { + return new JAXBElement(_BatchError_QNAME, BatchError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordOpportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordOpportunity") + public JAXBElement createArrayOfKeywordOpportunity(ArrayOfKeywordOpportunity value) { + return new JAXBElement(_ArrayOfKeywordOpportunity_QNAME, ArrayOfKeywordOpportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordLocationResult }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordLocationResult") + public JAXBElement createArrayOfKeywordLocationResult(ArrayOfKeywordLocationResult value) { + return new JAXBElement(_ArrayOfKeywordLocationResult_QNAME, ArrayOfKeywordLocationResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordSearchCount }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordSearchCount") + public JAXBElement createKeywordSearchCount(KeywordSearchCount value) { + return new JAXBElement(_KeywordSearchCount_QNAME, KeywordSearchCount.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordIdEstimatedPosition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordIdEstimatedPosition") + public JAXBElement createArrayOfKeywordIdEstimatedPosition(ArrayOfKeywordIdEstimatedPosition value) { + return new JAXBElement(_ArrayOfKeywordIdEstimatedPosition_QNAME, ArrayOfKeywordIdEstimatedPosition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupBidLandscapeInput }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "AdGroupBidLandscapeInput") + public JAXBElement createAdGroupBidLandscapeInput(AdGroupBidLandscapeInput value) { + return new JAXBElement(_AdGroupBidLandscapeInput_QNAME, AdGroupBidLandscapeInput.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordEstimatedPosition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordEstimatedPosition") + public JAXBElement createArrayOfKeywordEstimatedPosition(ArrayOfKeywordEstimatedPosition value) { + return new JAXBElement(_ArrayOfKeywordEstimatedPosition_QNAME, ArrayOfKeywordEstimatedPosition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordAndMatchType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message", name = "ArrayOfKeywordAndMatchType") + public JAXBElement createArrayOfKeywordAndMatchType(ArrayOfKeywordAndMatchType value) { + return new JAXBElement(_ArrayOfKeywordAndMatchType_QNAME, ArrayOfKeywordAndMatchType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TargetAdPosition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "TargetAdPosition") + public JAXBElement createTargetAdPosition(TargetAdPosition value) { + return new JAXBElement(_TargetAdPosition_QNAME, TargetAdPosition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link UnsignedLong }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedLong") + public JAXBElement createUnsignedLong(UnsignedLong value) { + return new JAXBElement(_UnsignedLong_QNAME, UnsignedLong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordKPI }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordKPI") + public JAXBElement createArrayOfKeywordKPI(ArrayOfKeywordKPI value) { + return new JAXBElement(_ArrayOfKeywordKPI_QNAME, ArrayOfKeywordKPI.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordIdEstimatedBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordIdEstimatedBid") + public JAXBElement createKeywordIdEstimatedBid(KeywordIdEstimatedBid value) { + return new JAXBElement(_KeywordIdEstimatedBid_QNAME, KeywordIdEstimatedBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedShort") + public JAXBElement createUnsignedShort(Integer value) { + return new JAXBElement(_UnsignedShort_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordSearchCount }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordSearchCount") + public JAXBElement createArrayOfKeywordSearchCount(ArrayOfKeywordSearchCount value) { + return new JAXBElement(_ArrayOfKeywordSearchCount_QNAME, ArrayOfKeywordSearchCount.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBroadMatchSearchQueryKPI }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfBroadMatchSearchQueryKPI") + public JAXBElement createArrayOfBroadMatchSearchQueryKPI(ArrayOfBroadMatchSearchQueryKPI value) { + return new JAXBElement(_ArrayOfBroadMatchSearchQueryKPI_QNAME, ArrayOfBroadMatchSearchQueryKPI.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMatchType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfMatchType") + public JAXBElement createArrayOfMatchType(ArrayOfMatchType value) { + return new JAXBElement(_ArrayOfMatchType_QNAME, ArrayOfMatchType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HistoricalSearchCountPeriodic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "HistoricalSearchCountPeriodic") + public JAXBElement createHistoricalSearchCountPeriodic(HistoricalSearchCountPeriodic value) { + return new JAXBElement(_HistoricalSearchCountPeriodic_QNAME, HistoricalSearchCountPeriodic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordHistoricalPerformance }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordHistoricalPerformance") + public JAXBElement createArrayOfKeywordHistoricalPerformance(ArrayOfKeywordHistoricalPerformance value) { + return new JAXBElement(_ArrayOfKeywordHistoricalPerformance_QNAME, ArrayOfKeywordHistoricalPerformance.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordLocation }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordLocation") + public JAXBElement createArrayOfKeywordLocation(ArrayOfKeywordLocation value) { + return new JAXBElement(_ArrayOfKeywordLocation_QNAME, ArrayOfKeywordLocation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordLocation }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordLocation") + public JAXBElement createKeywordLocation(KeywordLocation value) { + return new JAXBElement(_KeywordLocation_QNAME, KeywordLocation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link BidOpportunityType }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "BidOpportunityType") + @XmlJavaTypeAdapter(Adapter3 .class) + public JAXBElement> createBidOpportunityType(Collection value) { + return new JAXBElement>(_BidOpportunityType_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordCategoryResult }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordCategoryResult") + public JAXBElement createArrayOfKeywordCategoryResult(ArrayOfKeywordCategoryResult value) { + return new JAXBElement(_ArrayOfKeywordCategoryResult_QNAME, ArrayOfKeywordCategoryResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdApiFaultDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "AdApiFaultDetail") + public JAXBElement createAdApiFaultDetail(AdApiFaultDetail value) { + return new JAXBElement(_AdApiFaultDetail_QNAME, AdApiFaultDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordLocationResult }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordLocationResult") + public JAXBElement createKeywordLocationResult(KeywordLocationResult value) { + return new JAXBElement(_KeywordLocationResult_QNAME, KeywordLocationResult.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ApplicationFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "ApplicationFault") + public JAXBElement createApplicationFault(ApplicationFault value) { + return new JAXBElement(_ApplicationFault_QNAME, ApplicationFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordDemographic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfKeywordDemographic") + public JAXBElement createArrayOfKeywordDemographic(ArrayOfKeywordDemographic value) { + return new JAXBElement(_ArrayOfKeywordDemographic_QNAME, ArrayOfKeywordDemographic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "Microsoft.Advertiser.AdInsight.Api.Service", name = "DeveloperToken") + public JAXBElement createDeveloperToken(String value) { + return new JAXBElement(_DeveloperToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfEstimatedPositionAndTraffic }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfEstimatedPositionAndTraffic") + public JAXBElement createArrayOfEstimatedPositionAndTraffic(ArrayOfEstimatedPositionAndTraffic value) { + return new JAXBElement(_ArrayOfEstimatedPositionAndTraffic_QNAME, ArrayOfEstimatedPositionAndTraffic.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordOpportunity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "KeywordOpportunity") + public JAXBElement createKeywordOpportunity(KeywordOpportunity value) { + return new JAXBElement(_KeywordOpportunity_QNAME, KeywordOpportunity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyURI") + public JAXBElement createAnyURI(String value) { + return new JAXBElement(_AnyURI_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "byte") + public JAXBElement createByte(Byte value) { + return new JAXBElement(_Byte_QNAME, Byte.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "double") + public JAXBElement createDouble(Double value) { + return new JAXBElement(_Double_QNAME, Double.class, null, value); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/OperationError.java b/proxies/com/microsoft/bingads/v10/adinsight/OperationError.java new file mode 100644 index 0000000000..f362be49be --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/OperationError.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for OperationError complex type. + * + *

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

+ * <complexType name="OperationError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "OperationError", namespace = "https://bingads.microsoft.com/AdInsight/v10", propOrder = { + "code", + "details", + "errorCode", + "message" +}) +public class OperationError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Details", nillable = true) + protected String details; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "Message", nillable = true) + protected String message; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Opportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/Opportunity.java new file mode 100644 index 0000000000..557eb2feb0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Opportunity.java @@ -0,0 +1,68 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Opportunity complex type. + * + *

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

+ * <complexType name="Opportunity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="OpportunityKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Opportunity", propOrder = { + "opportunityKey" +}) +@XmlSeeAlso({ + BidOpportunity.class, + BudgetOpportunity.class, + KeywordOpportunity.class +}) +public class Opportunity { + + @XmlElement(name = "OpportunityKey", nillable = true) + protected String opportunityKey; + + /** + * Gets the value of the opportunityKey property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOpportunityKey() { + return opportunityKey; + } + + /** + * Sets the value of the opportunityKey property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOpportunityKey(String value) { + this.opportunityKey = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/PositiveInteger.java b/proxies/com/microsoft/bingads/v10/adinsight/PositiveInteger.java new file mode 100644 index 0000000000..fa3ec6444c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/PositiveInteger.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for positiveInteger simple type. + * + *

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

+ * <simpleType name="positiveInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger">
+ *     <minInclusive value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "positiveInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class PositiveInteger { + + @XmlValue + @XmlSchemaType(name = "positiveInteger") + protected NonNegativeInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonNegativeInteger } + * + */ + public NonNegativeInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonNegativeInteger } + * + */ + public void setValue(NonNegativeInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ProbeRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/ProbeRequest.java new file mode 100644 index 0000000000..5c0bd10bfb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ProbeRequest.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "ProbeRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class ProbeRequest { + + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ProbeResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/ProbeResponse.java new file mode 100644 index 0000000000..0c50174cd4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ProbeResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ServiceStatus" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "serviceStatus" +}) +@XmlRootElement(name = "ProbeResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class ProbeResponse { + + @XmlElement(name = "ServiceStatus", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") + protected Integer serviceStatus; + + /** + * Gets the value of the serviceStatus property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getServiceStatus() { + return serviceStatus; + } + + /** + * Sets the value of the serviceStatus property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setServiceStatus(Integer value) { + this.serviceStatus = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/SearchCountsByAttributes.java b/proxies/com/microsoft/bingads/v10/adinsight/SearchCountsByAttributes.java new file mode 100644 index 0000000000..7a9d2c7e06 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/SearchCountsByAttributes.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SearchCountsByAttributes complex type. + * + *

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

+ * <complexType name="SearchCountsByAttributes">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Device" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="HistoricalSearchCounts" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfHistoricalSearchCountPeriodic" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SearchCountsByAttributes", propOrder = { + "device", + "historicalSearchCounts" +}) +public class SearchCountsByAttributes { + + @XmlElement(name = "Device", nillable = true) + protected String device; + @XmlElement(name = "HistoricalSearchCounts", nillable = true) + protected ArrayOfHistoricalSearchCountPeriodic historicalSearchCounts; + + /** + * Gets the value of the device property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDevice() { + return device; + } + + /** + * Sets the value of the device property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDevice(String value) { + this.device = value; + } + + /** + * Gets the value of the historicalSearchCounts property. + * + * @return + * possible object is + * {@link ArrayOfHistoricalSearchCountPeriodic } + * + */ + public ArrayOfHistoricalSearchCountPeriodic getHistoricalSearchCounts() { + return historicalSearchCounts; + } + + /** + * Sets the value of the historicalSearchCounts property. + * + * @param value + * allowed object is + * {@link ArrayOfHistoricalSearchCountPeriodic } + * + */ + public void setHistoricalSearchCounts(ArrayOfHistoricalSearchCountPeriodic value) { + this.historicalSearchCounts = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlRequest.java new file mode 100644 index 0000000000..c92d1392f7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlRequest.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="MaxKeywords" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="MinConfidenceScore" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="ExcludeBrand" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "url", + "language", + "maxKeywords", + "minConfidenceScore", + "excludeBrand" +}) +@XmlRootElement(name = "SuggestKeywordsForUrlRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class SuggestKeywordsForUrlRequest { + + @XmlElement(name = "Url", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String url; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "MaxKeywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Integer maxKeywords; + @XmlElement(name = "MinConfidenceScore", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Double minConfidenceScore; + @XmlElement(name = "ExcludeBrand", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Boolean excludeBrand; + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the maxKeywords property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMaxKeywords() { + return maxKeywords; + } + + /** + * Sets the value of the maxKeywords property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMaxKeywords(Integer value) { + this.maxKeywords = value; + } + + /** + * Gets the value of the minConfidenceScore property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMinConfidenceScore() { + return minConfidenceScore; + } + + /** + * Sets the value of the minConfidenceScore property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMinConfidenceScore(Double value) { + this.minConfidenceScore = value; + } + + /** + * Gets the value of the excludeBrand property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getExcludeBrand() { + return excludeBrand; + } + + /** + * Sets the value of the excludeBrand property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setExcludeBrand(Boolean value) { + this.excludeBrand = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlResponse.java new file mode 100644 index 0000000000..b7e9984bc3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsForUrlResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordAndConfidence" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords" +}) +@XmlRootElement(name = "SuggestKeywordsForUrlResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class SuggestKeywordsForUrlResponse { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordAndConfidence keywords; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfKeywordAndConfidence } + * + */ + public ArrayOfKeywordAndConfidence getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordAndConfidence } + * + */ + public void setKeywords(ArrayOfKeywordAndConfidence value) { + this.keywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsRequest.java new file mode 100644 index 0000000000..cc856d030f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsRequest.java @@ -0,0 +1,288 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="MaxSuggestionsPerKeyword" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="SuggestionType" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="RemoveDuplicates" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="ExcludeBrand" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "language", + "publisherCountries", + "maxSuggestionsPerKeyword", + "suggestionType", + "removeDuplicates", + "excludeBrand", + "adGroupId", + "campaignId" +}) +@XmlRootElement(name = "SuggestKeywordsFromExistingKeywordsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class SuggestKeywordsFromExistingKeywordsRequest { + + @XmlElement(name = "Keywords", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring keywords; + @XmlElement(name = "Language", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected String language; + @XmlElement(name = "PublisherCountries", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfstring publisherCountries; + @XmlElement(name = "MaxSuggestionsPerKeyword", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Integer maxSuggestionsPerKeyword; + @XmlElement(name = "SuggestionType", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Integer suggestionType; + @XmlElement(name = "RemoveDuplicates", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Boolean removeDuplicates; + @XmlElement(name = "ExcludeBrand", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Boolean excludeBrand; + @XmlElement(name = "AdGroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long adGroupId; + @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long campaignId; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setKeywords(ArrayOfstring value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the publisherCountries property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getPublisherCountries() { + return publisherCountries; + } + + /** + * Sets the value of the publisherCountries property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setPublisherCountries(ArrayOfstring value) { + this.publisherCountries = value; + } + + /** + * Gets the value of the maxSuggestionsPerKeyword property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMaxSuggestionsPerKeyword() { + return maxSuggestionsPerKeyword; + } + + /** + * Sets the value of the maxSuggestionsPerKeyword property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMaxSuggestionsPerKeyword(Integer value) { + this.maxSuggestionsPerKeyword = value; + } + + /** + * Gets the value of the suggestionType property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getSuggestionType() { + return suggestionType; + } + + /** + * Sets the value of the suggestionType property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSuggestionType(Integer value) { + this.suggestionType = value; + } + + /** + * Gets the value of the removeDuplicates property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getRemoveDuplicates() { + return removeDuplicates; + } + + /** + * Sets the value of the removeDuplicates property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRemoveDuplicates(Boolean value) { + this.removeDuplicates = value; + } + + /** + * Gets the value of the excludeBrand property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getExcludeBrand() { + return excludeBrand; + } + + /** + * Sets the value of the excludeBrand property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setExcludeBrand(Boolean value) { + this.excludeBrand = 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsResponse.java new file mode 100644 index 0000000000..e87fa924b5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/SuggestKeywordsFromExistingKeywordsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordSuggestions" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfKeywordSuggestion" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordSuggestions" +}) +@XmlRootElement(name = "SuggestKeywordsFromExistingKeywordsResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class SuggestKeywordsFromExistingKeywordsResponse { + + @XmlElement(name = "KeywordSuggestions", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected ArrayOfKeywordSuggestion keywordSuggestions; + + /** + * Gets the value of the keywordSuggestions property. + * + * @return + * possible object is + * {@link ArrayOfKeywordSuggestion } + * + */ + public ArrayOfKeywordSuggestion getKeywordSuggestions() { + return keywordSuggestions; + } + + /** + * Sets the value of the keywordSuggestions property. + * + * @param value + * allowed object is + * {@link ArrayOfKeywordSuggestion } + * + */ + public void setKeywordSuggestions(ArrayOfKeywordSuggestion value) { + this.keywordSuggestions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/TargetAdPosition.java b/proxies/com/microsoft/bingads/v10/adinsight/TargetAdPosition.java new file mode 100644 index 0000000000..058aa71877 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/TargetAdPosition.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for TargetAdPosition. + * + *

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

+ *

+ * <simpleType name="TargetAdPosition">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="MainLine1"/>
+ *     <enumeration value="MainLine"/>
+ *     <enumeration value="SideBar"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TargetAdPosition") +@XmlEnum +public enum TargetAdPosition { + + @XmlEnumValue("MainLine1") + MAIN_LINE_1("MainLine1"), + @XmlEnumValue("MainLine") + MAIN_LINE("MainLine"), + @XmlEnumValue("SideBar") + SIDE_BAR("SideBar"); + private final String value; + + TargetAdPosition(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TargetAdPosition fromValue(String v) { + for (TargetAdPosition c: TargetAdPosition.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/TimeInterval.java b/proxies/com/microsoft/bingads/v10/adinsight/TimeInterval.java new file mode 100644 index 0000000000..916d73a1ad --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/TimeInterval.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for TimeInterval. + * + *

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

+ *

+ * <simpleType name="TimeInterval">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="LastMonth"/>
+ *     <enumeration value="LastWeek"/>
+ *     <enumeration value="LastDay"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "TimeInterval") +@XmlEnum +public enum TimeInterval { + + @XmlEnumValue("LastMonth") + LAST_MONTH("LastMonth"), + @XmlEnumValue("LastWeek") + LAST_WEEK("LastWeek"), + @XmlEnumValue("LastDay") + LAST_DAY("LastDay"); + private final String value; + + TimeInterval(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TimeInterval fromValue(String v) { + for (TimeInterval c: TimeInterval.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/UnsignedLong.java b/proxies/com/microsoft/bingads/v10/adinsight/UnsignedLong.java new file mode 100644 index 0000000000..9ab6d37df4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/UnsignedLong.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for unsignedLong simple type. + * + *

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

+ * <simpleType name="unsignedLong">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger">
+ *     <maxInclusive value="18446744073709551615"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "unsignedLong", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class UnsignedLong { + + @XmlValue + @XmlSchemaType(name = "unsignedLong") + protected NonNegativeInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonNegativeInteger } + * + */ + public NonNegativeInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonNegativeInteger } + * + */ + public void setValue(NonNegativeInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/package-info.java b/proxies/com/microsoft/bingads/v10/adinsight/package-info.java new file mode 100644 index 0000000000..9fd9724f47 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package com.microsoft.bingads.v10.adinsight; diff --git a/proxies/com/microsoft/bingads/v10/bulk/AdApiError.java b/proxies/com/microsoft/bingads/v10/bulk/AdApiError.java new file mode 100644 index 0000000000..456ce5a0db --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/AdApiError.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdApiError complex type. + * + *

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

+ * <complexType name="AdApiError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Detail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdApiError", namespace = "https://adapi.microsoft.com", propOrder = { + "code", + "detail", + "errorCode", + "message" +}) +public class AdApiError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Detail", nillable = true) + protected String detail; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "Message", nillable = true) + protected String message; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the detail property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetail() { + return detail; + } + + /** + * Sets the value of the detail property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetail(String value) { + this.detail = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail.java b/proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail.java new file mode 100644 index 0000000000..a95a901a7f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdApiFaultDetail complex type. + * + *

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

+ * <complexType name="AdApiFaultDetail">
+ *   <complexContent>
+ *     <extension base="{https://adapi.microsoft.com}ApplicationFault">
+ *       <sequence>
+ *         <element name="Errors" type="{https://adapi.microsoft.com}ArrayOfAdApiError" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdApiFaultDetail", namespace = "https://adapi.microsoft.com", propOrder = { + "errors" +}) +public class AdApiFaultDetail + extends ApplicationFault +{ + + @XmlElement(name = "Errors", nillable = true) + protected ArrayOfAdApiError errors; + + /** + * Gets the value of the errors property. + * + * @return + * possible object is + * {@link ArrayOfAdApiError } + * + */ + public ArrayOfAdApiError getErrors() { + return errors; + } + + /** + * Sets the value of the errors property. + * + * @param value + * allowed object is + * {@link ArrayOfAdApiError } + * + */ + public void setErrors(ArrayOfAdApiError value) { + this.errors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail_Exception.java b/proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail_Exception.java new file mode 100644 index 0000000000..c644cf18ac --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/AdApiFaultDetail_Exception.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebFault(name = "AdApiFaultDetail", targetNamespace = "https://adapi.microsoft.com") +public class AdApiFaultDetail_Exception + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private AdApiFaultDetail faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public AdApiFaultDetail_Exception(String message, AdApiFaultDetail faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public AdApiFaultDetail_Exception(String message, AdApiFaultDetail faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: com.microsoft.bingads.v10.bulk.AdApiFaultDetail + */ + public AdApiFaultDetail getFaultInfo() { + return faultInfo; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Adapter1.java b/proxies/com/microsoft/bingads/v10/bulk/Adapter1.java new file mode 100644 index 0000000000..7d8ddc729b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Adapter1.java @@ -0,0 +1,23 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.Calendar; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter1 + extends XmlAdapter +{ + + + public Calendar unmarshal(String value) { + return (javax.xml.bind.DatatypeConverter.parseDateTime(value)); + } + + public String marshal(Calendar value) { + if (value == null) { + return null; + } + return (javax.xml.bind.DatatypeConverter.printDateTime(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Adapter2.java b/proxies/com/microsoft/bingads/v10/bulk/Adapter2.java new file mode 100644 index 0000000000..b7536bd236 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Adapter2.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter2 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.bulk.DataScopeConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.bulk.DataScopeConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Adapter3.java b/proxies/com/microsoft/bingads/v10/bulk/Adapter3.java new file mode 100644 index 0000000000..15c5c16bd8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Adapter3.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter3 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.bulk.BulkDownloadEntityConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.bulk.BulkDownloadEntityConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail.java b/proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail.java new file mode 100644 index 0000000000..5773939fda --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ApiFaultDetail complex type. + * + *

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

+ * <complexType name="ApiFaultDetail">
+ *   <complexContent>
+ *     <extension base="{https://adapi.microsoft.com}ApplicationFault">
+ *       <sequence>
+ *         <element name="BatchErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="OperationErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfOperationError" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ApiFaultDetail", propOrder = { + "batchErrors", + "operationErrors" +}) +public class ApiFaultDetail + extends ApplicationFault +{ + + @XmlElement(name = "BatchErrors", nillable = true) + protected ArrayOfBatchError batchErrors; + @XmlElement(name = "OperationErrors", nillable = true) + protected ArrayOfOperationError operationErrors; + + /** + * Gets the value of the batchErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getBatchErrors() { + return batchErrors; + } + + /** + * Sets the value of the batchErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setBatchErrors(ArrayOfBatchError value) { + this.batchErrors = value; + } + + /** + * Gets the value of the operationErrors property. + * + * @return + * possible object is + * {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError getOperationErrors() { + return operationErrors; + } + + /** + * Sets the value of the operationErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfOperationError } + * + */ + public void setOperationErrors(ArrayOfOperationError value) { + this.operationErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail_Exception.java b/proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail_Exception.java new file mode 100644 index 0000000000..d3f7c47a53 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ApiFaultDetail_Exception.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebFault(name = "ApiFaultDetail", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10") +public class ApiFaultDetail_Exception + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private ApiFaultDetail faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public ApiFaultDetail_Exception(String message, ApiFaultDetail faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public ApiFaultDetail_Exception(String message, ApiFaultDetail faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: com.microsoft.bingads.v10.bulk.ApiFaultDetail + */ + public ApiFaultDetail getFaultInfo() { + return faultInfo; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ApplicationFault.java b/proxies/com/microsoft/bingads/v10/bulk/ApplicationFault.java new file mode 100644 index 0000000000..4b7b092907 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ApplicationFault.java @@ -0,0 +1,67 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ApplicationFault complex type. + * + *

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

+ * <complexType name="ApplicationFault">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TrackingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ApplicationFault", namespace = "https://adapi.microsoft.com", propOrder = { + "trackingId" +}) +@XmlSeeAlso({ + ApiFaultDetail.class, + AdApiFaultDetail.class +}) +public class ApplicationFault { + + @XmlElement(name = "TrackingId", nillable = true) + protected String trackingId; + + /** + * Gets the value of the trackingId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingId() { + return trackingId; + } + + /** + * Sets the value of the trackingId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingId(String value) { + this.trackingId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ArrayOfAdApiError.java b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfAdApiError.java new file mode 100644 index 0000000000..a71d1436de --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfAdApiError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdApiError complex type. + * + *

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

+ * <complexType name="ArrayOfAdApiError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdApiError" type="{https://adapi.microsoft.com}AdApiError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdApiError", namespace = "https://adapi.microsoft.com", propOrder = { + "adApiErrors" +}) +public class ArrayOfAdApiError { + + @XmlElement(name = "AdApiError", nillable = true) + protected List adApiErrors; + + /** + * Gets the value of the adApiErrors 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 JAXB object. + * This is why there is not a set method for the adApiErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdApiError } + * + * + */ + public List getAdApiErrors() { + if (adApiErrors == null) { + adApiErrors = new ArrayList(); + } + return this.adApiErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ArrayOfBatchError.java b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfBatchError.java new file mode 100644 index 0000000000..c63d86307c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfBatchError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBatchError complex type. + * + *

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

+ * <complexType name="ArrayOfBatchError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BatchError" type="{https://bingads.microsoft.com/CampaignManagement/v10}BatchError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBatchError", propOrder = { + "batchErrors" +}) +public class ArrayOfBatchError { + + @XmlElement(name = "BatchError", nillable = true) + protected List batchErrors; + + /** + * Gets the value of the batchErrors 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 JAXB object. + * This is why there is not a set method for the batchErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BatchError } + * + * + */ + public List getBatchErrors() { + if (batchErrors == null) { + batchErrors = new ArrayList(); + } + return this.batchErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ArrayOfCampaignScope.java b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfCampaignScope.java new file mode 100644 index 0000000000..3ecaaaf9e6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfCampaignScope.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCampaignScope complex type. + * + *

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

+ * <complexType name="ArrayOfCampaignScope">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignScope" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignScope" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCampaignScope", propOrder = { + "campaignScopes" +}) +public class ArrayOfCampaignScope { + + @XmlElement(name = "CampaignScope", nillable = true) + protected List campaignScopes; + + /** + * Gets the value of the campaignScopes 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 JAXB object. + * This is why there is not a set method for the campaignScopes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CampaignScope } + * + * + */ + public List getCampaignScopes() { + if (campaignScopes == null) { + campaignScopes = new ArrayList(); + } + return this.campaignScopes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ArrayOfKeyValuePairOfstringstring.java b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfKeyValuePairOfstringstring.java new file mode 100644 index 0000000000..328bd84af9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfKeyValuePairOfstringstring.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeyValuePairOfstringstring complex type. + * + *

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

+ * <complexType name="ArrayOfKeyValuePairOfstringstring">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeyValuePairOfstringstring" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}KeyValuePairOfstringstring" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeyValuePairOfstringstring", namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", propOrder = { + "keyValuePairOfstringstrings" +}) +public class ArrayOfKeyValuePairOfstringstring { + + @XmlElement(name = "KeyValuePairOfstringstring") + protected List keyValuePairOfstringstrings; + + /** + * Gets the value of the keyValuePairOfstringstrings 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 JAXB object. + * This is why there is not a set method for the keyValuePairOfstringstrings property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeyValuePairOfstringstring } + * + * + */ + public List getKeyValuePairOfstringstrings() { + if (keyValuePairOfstringstrings == null) { + keyValuePairOfstringstrings = new ArrayList(); + } + return this.keyValuePairOfstringstrings; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ArrayOfOperationError.java b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfOperationError.java new file mode 100644 index 0000000000..3c93c7e2b2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ArrayOfOperationError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfOperationError complex type. + * + *

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

+ * <complexType name="ArrayOfOperationError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="OperationError" type="{https://bingads.microsoft.com/CampaignManagement/v10}OperationError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfOperationError", propOrder = { + "operationErrors" +}) +public class ArrayOfOperationError { + + @XmlElement(name = "OperationError", nillable = true) + protected List operationErrors; + + /** + * Gets the value of the operationErrors 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 JAXB object. + * This is why there is not a set method for the operationErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link OperationError } + * + * + */ + public List getOperationErrors() { + if (operationErrors == null) { + operationErrors = new ArrayList(); + } + return this.operationErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ArrayOflong.java b/proxies/com/microsoft/bingads/v10/bulk/ArrayOflong.java new file mode 100644 index 0000000000..2b23088b7d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ArrayOflong.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOflong complex type. + * + *

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

+ * <complexType name="ArrayOflong">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="long" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOflong", namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", propOrder = { + "longs" +}) +public class ArrayOflong { + + @XmlElement(name = "long", type = Long.class) + protected List longs; + + /** + * Gets the value of the longs 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 JAXB object. + * This is why there is not a set method for the longs property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Long } + * + * + */ + public List getLongs() { + if (longs == null) { + longs = new ArrayList(); + } + return this.longs; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/BatchError.java b/proxies/com/microsoft/bingads/v10/bulk/BatchError.java new file mode 100644 index 0000000000..423b0c89fc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/BatchError.java @@ -0,0 +1,262 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BatchError complex type. + * + *

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

+ * <complexType name="BatchError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="FieldPath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Index" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BatchError", propOrder = { + "code", + "details", + "errorCode", + "fieldPath", + "forwardCompatibilityMap", + "index", + "message", + "type" +}) +@XmlSeeAlso({ + EditorialError.class +}) +public class BatchError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Details", nillable = true) + protected String details; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "FieldPath", nillable = true) + protected String fieldPath; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Index") + protected Integer index; + @XmlElement(name = "Message", nillable = true) + protected String message; + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the fieldPath property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFieldPath() { + return fieldPath; + } + + /** + * Sets the value of the fieldPath property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFieldPath(String value) { + this.fieldPath = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/BulkDownloadEntity.java b/proxies/com/microsoft/bingads/v10/bulk/BulkDownloadEntity.java new file mode 100644 index 0000000000..c4db7feb5d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/BulkDownloadEntity.java @@ -0,0 +1,55 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * Enum class for BulkDownloadEntity. + */ +public enum BulkDownloadEntity { + + CAMPAIGNS("Campaigns"), + AD_GROUPS("AdGroups"), + ADS("Ads"), + KEYWORDS("Keywords"), + CAMPAIGN_NEGATIVE_KEYWORDS("CampaignNegativeKeywords"), + AD_GROUP_NEGATIVE_KEYWORDS("AdGroupNegativeKeywords"), + CAMPAIGN_TARGETS("CampaignTargets"), + AD_GROUP_TARGETS("AdGroupTargets"), + CAMPAIGN_NEGATIVE_SITES("CampaignNegativeSites"), + AD_GROUP_NEGATIVE_SITES("AdGroupNegativeSites"), + CAMPAIGN_SITE_LINKS_AD_EXTENSIONS("CampaignSiteLinksAdExtensions"), + CAMPAIGN_LOCATION_AD_EXTENSIONS("CampaignLocationAdExtensions"), + CAMPAIGN_CALL_AD_EXTENSIONS("CampaignCallAdExtensions"), + AD_GROUP_SITE_LINKS_AD_EXTENSIONS("AdGroupSiteLinksAdExtensions"), + LOCATION_AD_EXTENSIONS("LocationAdExtensions"), + CALL_AD_EXTENSIONS("CallAdExtensions"), + SITE_LINKS_AD_EXTENSIONS("SiteLinksAdExtensions"), + NEGATIVE_KEYWORD_LISTS("NegativeKeywordLists"), + SHARED_NEGATIVE_KEYWORDS("SharedNegativeKeywords"), + CAMPAIGN_NEGATIVE_KEYWORD_LIST_ASSOCIATIONS("CampaignNegativeKeywordListAssociations"), + IMAGE_AD_EXTENSIONS("ImageAdExtensions"), + CAMPAIGN_IMAGE_AD_EXTENSIONS("CampaignImageAdExtensions"), + AD_GROUP_IMAGE_AD_EXTENSIONS("AdGroupImageAdExtensions"), + APP_AD_EXTENSIONS("AppAdExtensions"), + AD_GROUP_APP_AD_EXTENSIONS("AdGroupAppAdExtensions"), + CAMPAIGN_APP_AD_EXTENSIONS("CampaignAppAdExtensions"), + AD_GROUP_PRODUCT_PARTITIONS("AdGroupProductPartitions"), + CAMPAIGN_PRODUCT_SCOPES("CampaignProductScopes"); + + private final String value; + + BulkDownloadEntity(String v) { + value = v; + } + + public String value() { + return value; + } + + public static BulkDownloadEntity fromValue(String v) { + for (BulkDownloadEntity c : BulkDownloadEntity.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/v10/bulk/BulkDownloadEntityConverter.java b/proxies/com/microsoft/bingads/v10/bulk/BulkDownloadEntityConverter.java new file mode 100644 index 0000000000..e5f67d269f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/BulkDownloadEntityConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class BulkDownloadEntityConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(BulkDownloadEntity.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (BulkDownloadEntity 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/v10/bulk/BulkService.java b/proxies/com/microsoft/bingads/v10/bulk/BulkService.java new file mode 100644 index 0000000000..c45c96c5b4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/BulkService.java @@ -0,0 +1,78 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebServiceClient(name = "BulkService", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", wsdlLocation = "https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/BulkService.svc?wsdl") +public class BulkService + extends Service +{ + + private final static URL BULKSERVICE_WSDL_LOCATION; + private final static WebServiceException BULKSERVICE_EXCEPTION; + private final static QName BULKSERVICE_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BulkService"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/BulkService.svc?wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + BULKSERVICE_WSDL_LOCATION = url; + BULKSERVICE_EXCEPTION = e; + } + + public BulkService() { + super(__getWsdlLocation(), BULKSERVICE_QNAME); + } + + public BulkService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + /** + * + * @return + * returns IBulkService + */ + @WebEndpoint(name = "BasicHttpBinding_IBulkService") + public IBulkService getBasicHttpBindingIBulkService() { + return super.getPort(new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BasicHttpBinding_IBulkService"), IBulkService.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns IBulkService + */ + @WebEndpoint(name = "BasicHttpBinding_IBulkService") + public IBulkService getBasicHttpBindingIBulkService(WebServiceFeature... features) { + return super.getPort(new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BasicHttpBinding_IBulkService"), IBulkService.class, features); + } + + private static URL __getWsdlLocation() { + if (BULKSERVICE_EXCEPTION!= null) { + throw BULKSERVICE_EXCEPTION; + } + return BULKSERVICE_WSDL_LOCATION; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/CampaignScope.java b/proxies/com/microsoft/bingads/v10/bulk/CampaignScope.java new file mode 100644 index 0000000000..9da038a298 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/CampaignScope.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CampaignScope complex type. + * + *

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

+ * <complexType name="CampaignScope">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ParentAccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CampaignScope", propOrder = { + "campaignId", + "parentAccountId" +}) +public class CampaignScope { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "ParentAccountId") + protected Long parentAccountId; + + /** + * 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 parentAccountId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getParentAccountId() { + return parentAccountId; + } + + /** + * Sets the value of the parentAccountId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setParentAccountId(Long value) { + this.parentAccountId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Char.java b/proxies/com/microsoft/bingads/v10/bulk/Char.java new file mode 100644 index 0000000000..9d2864b396 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Char.java @@ -0,0 +1,49 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for char simple type. + * + *

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

+ * <simpleType name="char">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}int">
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "char", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Char { + + @XmlValue + protected int value; + + /** + * Gets the value of the value property. + * + */ + public int getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(int value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/CompressionType.java b/proxies/com/microsoft/bingads/v10/bulk/CompressionType.java new file mode 100644 index 0000000000..0da27090e7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/CompressionType.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CompressionType. + * + *

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

+ *

+ * <simpleType name="CompressionType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Zip"/>
+ *     <enumeration value="GZip"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "CompressionType") +@XmlEnum +public enum CompressionType { + + @XmlEnumValue("Zip") + ZIP("Zip"), + @XmlEnumValue("GZip") + G_ZIP("GZip"); + private final String value; + + CompressionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CompressionType fromValue(String v) { + for (CompressionType c: CompressionType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/DataScope.java b/proxies/com/microsoft/bingads/v10/bulk/DataScope.java new file mode 100644 index 0000000000..801e5e0641 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/DataScope.java @@ -0,0 +1,31 @@ +package com.microsoft.bingads.v10.bulk; + +/** + * Enum class for DataScope. + */ +public enum DataScope { + + ENTITY_DATA("EntityData"), + ENTITY_PERFORMANCE_DATA("EntityPerformanceData"), + QUALITY_SCORE_DATA("QualityScoreData"), + BID_SUGGESTIONS_DATA("BidSuggestionsData"); + + private final String value; + + DataScope(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DataScope fromValue(String v) { + for (DataScope c : DataScope.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/v10/bulk/DataScopeConverter.java b/proxies/com/microsoft/bingads/v10/bulk/DataScopeConverter.java new file mode 100644 index 0000000000..2f17817f15 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/DataScopeConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class DataScopeConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(DataScope.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (DataScope 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/v10/bulk/Date.java b/proxies/com/microsoft/bingads/v10/bulk/Date.java new file mode 100644 index 0000000000..ce23e7e97d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Date.java @@ -0,0 +1,94 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Date complex type. + * + *

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

+ * <complexType name="Date">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Day" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="Month" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="Year" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Date", propOrder = { + "day", + "month", + "year" +}) +public class Date { + + @XmlElement(name = "Day") + protected int day; + @XmlElement(name = "Month") + protected int month; + @XmlElement(name = "Year") + protected int year; + + /** + * Gets the value of the day property. + * + */ + public int getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + */ + public void setDay(int value) { + this.day = value; + } + + /** + * Gets the value of the month property. + * + */ + public int getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + */ + public void setMonth(int value) { + this.month = value; + } + + /** + * Gets the value of the year property. + * + */ + public int getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + */ + public void setYear(int value) { + this.year = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsRequest.java b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsRequest.java new file mode 100644 index 0000000000..eb6dcf4af6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsRequest.java @@ -0,0 +1,272 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.Calendar; +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="CompressionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CompressionType" minOccurs="0"/>
+ *         <element name="DataScope" type="{https://bingads.microsoft.com/CampaignManagement/v10}DataScope" minOccurs="0"/>
+ *         <element name="DownloadFileType" type="{https://bingads.microsoft.com/CampaignManagement/v10}DownloadFileType" minOccurs="0"/>
+ *         <element name="Entities" type="{https://bingads.microsoft.com/CampaignManagement/v10}BulkDownloadEntity" minOccurs="0"/>
+ *         <element name="FormatVersion" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="LastSyncTimeInUTC" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="PerformanceStatsDateRange" type="{https://bingads.microsoft.com/CampaignManagement/v10}PerformanceStatsDateRange" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountIds", + "compressionType", + "dataScope", + "downloadFileType", + "entities", + "formatVersion", + "lastSyncTimeInUTC", + "performanceStatsDateRange" +}) +@XmlRootElement(name = "DownloadCampaignsByAccountIdsRequest") +public class DownloadCampaignsByAccountIdsRequest { + + @XmlElement(name = "AccountIds", nillable = true) + protected ArrayOflong accountIds; + @XmlElement(name = "CompressionType", nillable = true) + @XmlSchemaType(name = "string") + protected CompressionType compressionType; + @XmlElement(name = "DataScope", type = String.class) + @XmlJavaTypeAdapter(Adapter2 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection dataScope; + @XmlElement(name = "DownloadFileType", nillable = true) + @XmlSchemaType(name = "string") + protected DownloadFileType downloadFileType; + @XmlElement(name = "Entities", type = String.class) + @XmlJavaTypeAdapter(Adapter3 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection entities; + @XmlElement(name = "FormatVersion", nillable = true) + protected String formatVersion; + @XmlElement(name = "LastSyncTimeInUTC", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar lastSyncTimeInUTC; + @XmlElement(name = "PerformanceStatsDateRange", nillable = true) + protected PerformanceStatsDateRange performanceStatsDateRange; + + /** + * Gets the value of the accountIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAccountIds() { + return accountIds; + } + + /** + * Sets the value of the accountIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAccountIds(ArrayOflong value) { + this.accountIds = value; + } + + /** + * Gets the value of the compressionType property. + * + * @return + * possible object is + * {@link CompressionType } + * + */ + public CompressionType getCompressionType() { + return compressionType; + } + + /** + * Sets the value of the compressionType property. + * + * @param value + * allowed object is + * {@link CompressionType } + * + */ + public void setCompressionType(CompressionType value) { + this.compressionType = value; + } + + /** + * Gets the value of the dataScope property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getDataScope() { + return dataScope; + } + + /** + * Sets the value of the dataScope property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDataScope(Collection value) { + this.dataScope = value; + } + + /** + * Gets the value of the downloadFileType property. + * + * @return + * possible object is + * {@link DownloadFileType } + * + */ + public DownloadFileType getDownloadFileType() { + return downloadFileType; + } + + /** + * Sets the value of the downloadFileType property. + * + * @param value + * allowed object is + * {@link DownloadFileType } + * + */ + public void setDownloadFileType(DownloadFileType value) { + this.downloadFileType = value; + } + + /** + * Gets the value of the entities property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getEntities() { + return entities; + } + + /** + * Sets the value of the entities property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntities(Collection value) { + this.entities = value; + } + + /** + * Gets the value of the formatVersion property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormatVersion() { + return formatVersion; + } + + /** + * Sets the value of the formatVersion property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormatVersion(String value) { + this.formatVersion = value; + } + + /** + * Gets the value of the lastSyncTimeInUTC property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getLastSyncTimeInUTC() { + return lastSyncTimeInUTC; + } + + /** + * Sets the value of the lastSyncTimeInUTC property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastSyncTimeInUTC(Calendar value) { + this.lastSyncTimeInUTC = value; + } + + /** + * Gets the value of the performanceStatsDateRange property. + * + * @return + * possible object is + * {@link PerformanceStatsDateRange } + * + */ + public PerformanceStatsDateRange getPerformanceStatsDateRange() { + return performanceStatsDateRange; + } + + /** + * Sets the value of the performanceStatsDateRange property. + * + * @param value + * allowed object is + * {@link PerformanceStatsDateRange } + * + */ + public void setPerformanceStatsDateRange(PerformanceStatsDateRange value) { + this.performanceStatsDateRange = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsResponse.java b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsResponse.java new file mode 100644 index 0000000000..099f3cbff6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByAccountIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DownloadRequestId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "downloadRequestId" +}) +@XmlRootElement(name = "DownloadCampaignsByAccountIdsResponse") +public class DownloadCampaignsByAccountIdsResponse { + + @XmlElement(name = "DownloadRequestId", nillable = true) + protected String downloadRequestId; + + /** + * Gets the value of the downloadRequestId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDownloadRequestId() { + return downloadRequestId; + } + + /** + * Sets the value of the downloadRequestId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDownloadRequestId(String value) { + this.downloadRequestId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsRequest.java b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsRequest.java new file mode 100644 index 0000000000..66a791a63c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsRequest.java @@ -0,0 +1,272 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.Calendar; +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Campaigns" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaignScope" minOccurs="0"/>
+ *         <element name="CompressionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CompressionType" minOccurs="0"/>
+ *         <element name="DataScope" type="{https://bingads.microsoft.com/CampaignManagement/v10}DataScope" minOccurs="0"/>
+ *         <element name="DownloadFileType" type="{https://bingads.microsoft.com/CampaignManagement/v10}DownloadFileType" minOccurs="0"/>
+ *         <element name="Entities" type="{https://bingads.microsoft.com/CampaignManagement/v10}BulkDownloadEntity" minOccurs="0"/>
+ *         <element name="FormatVersion" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="LastSyncTimeInUTC" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="PerformanceStatsDateRange" type="{https://bingads.microsoft.com/CampaignManagement/v10}PerformanceStatsDateRange" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaigns", + "compressionType", + "dataScope", + "downloadFileType", + "entities", + "formatVersion", + "lastSyncTimeInUTC", + "performanceStatsDateRange" +}) +@XmlRootElement(name = "DownloadCampaignsByCampaignIdsRequest") +public class DownloadCampaignsByCampaignIdsRequest { + + @XmlElement(name = "Campaigns", nillable = true) + protected ArrayOfCampaignScope campaigns; + @XmlElement(name = "CompressionType", nillable = true) + @XmlSchemaType(name = "string") + protected CompressionType compressionType; + @XmlElement(name = "DataScope", type = String.class) + @XmlJavaTypeAdapter(Adapter2 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection dataScope; + @XmlElement(name = "DownloadFileType", nillable = true) + @XmlSchemaType(name = "string") + protected DownloadFileType downloadFileType; + @XmlElement(name = "Entities", type = String.class) + @XmlJavaTypeAdapter(Adapter3 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection entities; + @XmlElement(name = "FormatVersion", nillable = true) + protected String formatVersion; + @XmlElement(name = "LastSyncTimeInUTC", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar lastSyncTimeInUTC; + @XmlElement(name = "PerformanceStatsDateRange", nillable = true) + protected PerformanceStatsDateRange performanceStatsDateRange; + + /** + * Gets the value of the campaigns property. + * + * @return + * possible object is + * {@link ArrayOfCampaignScope } + * + */ + public ArrayOfCampaignScope getCampaigns() { + return campaigns; + } + + /** + * Sets the value of the campaigns property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignScope } + * + */ + public void setCampaigns(ArrayOfCampaignScope value) { + this.campaigns = value; + } + + /** + * Gets the value of the compressionType property. + * + * @return + * possible object is + * {@link CompressionType } + * + */ + public CompressionType getCompressionType() { + return compressionType; + } + + /** + * Sets the value of the compressionType property. + * + * @param value + * allowed object is + * {@link CompressionType } + * + */ + public void setCompressionType(CompressionType value) { + this.compressionType = value; + } + + /** + * Gets the value of the dataScope property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getDataScope() { + return dataScope; + } + + /** + * Sets the value of the dataScope property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDataScope(Collection value) { + this.dataScope = value; + } + + /** + * Gets the value of the downloadFileType property. + * + * @return + * possible object is + * {@link DownloadFileType } + * + */ + public DownloadFileType getDownloadFileType() { + return downloadFileType; + } + + /** + * Sets the value of the downloadFileType property. + * + * @param value + * allowed object is + * {@link DownloadFileType } + * + */ + public void setDownloadFileType(DownloadFileType value) { + this.downloadFileType = value; + } + + /** + * Gets the value of the entities property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getEntities() { + return entities; + } + + /** + * Sets the value of the entities property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntities(Collection value) { + this.entities = value; + } + + /** + * Gets the value of the formatVersion property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormatVersion() { + return formatVersion; + } + + /** + * Sets the value of the formatVersion property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormatVersion(String value) { + this.formatVersion = value; + } + + /** + * Gets the value of the lastSyncTimeInUTC property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getLastSyncTimeInUTC() { + return lastSyncTimeInUTC; + } + + /** + * Sets the value of the lastSyncTimeInUTC property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastSyncTimeInUTC(Calendar value) { + this.lastSyncTimeInUTC = value; + } + + /** + * Gets the value of the performanceStatsDateRange property. + * + * @return + * possible object is + * {@link PerformanceStatsDateRange } + * + */ + public PerformanceStatsDateRange getPerformanceStatsDateRange() { + return performanceStatsDateRange; + } + + /** + * Sets the value of the performanceStatsDateRange property. + * + * @param value + * allowed object is + * {@link PerformanceStatsDateRange } + * + */ + public void setPerformanceStatsDateRange(PerformanceStatsDateRange value) { + this.performanceStatsDateRange = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsResponse.java b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsResponse.java new file mode 100644 index 0000000000..fbfd7cb0f1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/DownloadCampaignsByCampaignIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DownloadRequestId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "downloadRequestId" +}) +@XmlRootElement(name = "DownloadCampaignsByCampaignIdsResponse") +public class DownloadCampaignsByCampaignIdsResponse { + + @XmlElement(name = "DownloadRequestId", nillable = true) + protected String downloadRequestId; + + /** + * Gets the value of the downloadRequestId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDownloadRequestId() { + return downloadRequestId; + } + + /** + * Sets the value of the downloadRequestId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDownloadRequestId(String value) { + this.downloadRequestId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/DownloadFileType.java b/proxies/com/microsoft/bingads/v10/bulk/DownloadFileType.java new file mode 100644 index 0000000000..0039527017 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/DownloadFileType.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DownloadFileType. + * + *

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

+ *

+ * <simpleType name="DownloadFileType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Csv"/>
+ *     <enumeration value="Tsv"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "DownloadFileType") +@XmlEnum +public enum DownloadFileType { + + @XmlEnumValue("Csv") + CSV("Csv"), + @XmlEnumValue("Tsv") + TSV("Tsv"); + private final String value; + + DownloadFileType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DownloadFileType fromValue(String v) { + for (DownloadFileType c: DownloadFileType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Duration.java b/proxies/com/microsoft/bingads/v10/bulk/Duration.java new file mode 100644 index 0000000000..d64f9244c0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Duration.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for duration simple type. + * + *

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

+ * <simpleType name="duration">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}duration">
+ *     <pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
+ *     <minInclusive value="-P10675199DT2H48M5.4775808S"/>
+ *     <maxInclusive value="P10675199DT2H48M5.4775807S"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "duration", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Duration { + + @XmlValue + protected javax.xml.datatype.Duration value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link javax.xml.datatype.Duration } + * + */ + public javax.xml.datatype.Duration getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link javax.xml.datatype.Duration } + * + */ + public void setValue(javax.xml.datatype.Duration value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ENTITIES.java b/proxies/com/microsoft/bingads/v10/bulk/ENTITIES.java new file mode 100644 index 0000000000..877e222b3b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ENTITIES.java @@ -0,0 +1,70 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for ENTITIES simple type. + * + *

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

+ * <simpleType name="ENTITIES">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}ENTITY" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ENTITIES", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class ENTITIES { + + @XmlValue + @XmlSchemaType(name = "ENTITIES") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ENTITY } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ENTITY.java b/proxies/com/microsoft/bingads/v10/bulk/ENTITY.java new file mode 100644 index 0000000000..bd37726d8b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ENTITY.java @@ -0,0 +1,59 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for ENTITY simple type. + * + *

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

+ * <simpleType name="ENTITY">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ENTITY", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class ENTITY { + + @XmlValue + @XmlSchemaType(name = "ENTITY") + protected NCName value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NCName } + * + */ + public NCName getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NCName } + * + */ + public void setValue(NCName value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/EditorialError.java b/proxies/com/microsoft/bingads/v10/bulk/EditorialError.java new file mode 100644 index 0000000000..2141ca2079 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/EditorialError.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EditorialError complex type. + * + *

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

+ * <complexType name="EditorialError">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}BatchError">
+ *       <sequence>
+ *         <element name="Appealable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="DisapprovedText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Location" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ReasonCode" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EditorialError", propOrder = { + "appealable", + "disapprovedText", + "location", + "publisherCountry", + "reasonCode" +}) +public class EditorialError + extends BatchError +{ + + @XmlElement(name = "Appealable", nillable = true) + protected Boolean appealable; + @XmlElement(name = "DisapprovedText", nillable = true) + protected String disapprovedText; + @XmlElement(name = "Location", nillable = true) + protected String location; + @XmlElement(name = "PublisherCountry", nillable = true) + protected String publisherCountry; + @XmlElement(name = "ReasonCode") + protected Integer reasonCode; + + /** + * Gets the value of the appealable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getAppealable() { + return appealable; + } + + /** + * Sets the value of the appealable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAppealable(Boolean value) { + this.appealable = value; + } + + /** + * Gets the value of the disapprovedText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisapprovedText() { + return disapprovedText; + } + + /** + * Sets the value of the disapprovedText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisapprovedText(String value) { + this.disapprovedText = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the publisherCountry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisherCountry() { + return publisherCountry; + } + + /** + * Sets the value of the publisherCountry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisherCountry(String value) { + this.publisherCountry = value; + } + + /** + * Gets the value of the reasonCode property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getReasonCode() { + return reasonCode; + } + + /** + * Sets the value of the reasonCode property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setReasonCode(Integer value) { + this.reasonCode = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusRequest.java b/proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusRequest.java new file mode 100644 index 0000000000..f894ad63c2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "requestId" +}) +@XmlRootElement(name = "GetBulkDownloadStatusRequest") +public class GetBulkDownloadStatusRequest { + + @XmlElement(name = "RequestId", nillable = true) + protected String requestId; + + /** + * Gets the value of the requestId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRequestId() { + return requestId; + } + + /** + * Sets the value of the requestId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRequestId(String value) { + this.requestId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusResponse.java b/proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusResponse.java new file mode 100644 index 0000000000..70a93731fa --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/GetBulkDownloadStatusResponse.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Errors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfOperationError" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="PercentComplete" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="RequestStatus" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ResultFileUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "errors", + "forwardCompatibilityMap", + "percentComplete", + "requestStatus", + "resultFileUrl" +}) +@XmlRootElement(name = "GetBulkDownloadStatusResponse") +public class GetBulkDownloadStatusResponse { + + @XmlElement(name = "Errors", nillable = true) + protected ArrayOfOperationError errors; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "PercentComplete") + protected Integer percentComplete; + @XmlElement(name = "RequestStatus", nillable = true) + protected String requestStatus; + @XmlElement(name = "ResultFileUrl", nillable = true) + protected String resultFileUrl; + + /** + * Gets the value of the errors property. + * + * @return + * possible object is + * {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError getErrors() { + return errors; + } + + /** + * Sets the value of the errors property. + * + * @param value + * allowed object is + * {@link ArrayOfOperationError } + * + */ + public void setErrors(ArrayOfOperationError value) { + this.errors = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = value; + } + + /** + * Gets the value of the percentComplete property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPercentComplete() { + return percentComplete; + } + + /** + * Sets the value of the percentComplete property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPercentComplete(Integer value) { + this.percentComplete = value; + } + + /** + * Gets the value of the requestStatus property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRequestStatus() { + return requestStatus; + } + + /** + * Sets the value of the requestStatus property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRequestStatus(String value) { + this.requestStatus = value; + } + + /** + * Gets the value of the resultFileUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResultFileUrl() { + return resultFileUrl; + } + + /** + * Sets the value of the resultFileUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResultFileUrl(String value) { + this.resultFileUrl = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusRequest.java b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusRequest.java new file mode 100644 index 0000000000..8e210a0831 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "requestId" +}) +@XmlRootElement(name = "GetBulkUploadStatusRequest") +public class GetBulkUploadStatusRequest { + + @XmlElement(name = "RequestId", nillable = true) + protected String requestId; + + /** + * Gets the value of the requestId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRequestId() { + return requestId; + } + + /** + * Sets the value of the requestId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRequestId(String value) { + this.requestId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusResponse.java b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusResponse.java new file mode 100644 index 0000000000..32dc54b6c8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadStatusResponse.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Errors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfOperationError" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="PercentComplete" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="RequestStatus" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ResultFileUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "errors", + "forwardCompatibilityMap", + "percentComplete", + "requestStatus", + "resultFileUrl" +}) +@XmlRootElement(name = "GetBulkUploadStatusResponse") +public class GetBulkUploadStatusResponse { + + @XmlElement(name = "Errors", nillable = true) + protected ArrayOfOperationError errors; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "PercentComplete") + protected Integer percentComplete; + @XmlElement(name = "RequestStatus", nillable = true) + protected String requestStatus; + @XmlElement(name = "ResultFileUrl", nillable = true) + protected String resultFileUrl; + + /** + * Gets the value of the errors property. + * + * @return + * possible object is + * {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError getErrors() { + return errors; + } + + /** + * Sets the value of the errors property. + * + * @param value + * allowed object is + * {@link ArrayOfOperationError } + * + */ + public void setErrors(ArrayOfOperationError value) { + this.errors = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = value; + } + + /** + * Gets the value of the percentComplete property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPercentComplete() { + return percentComplete; + } + + /** + * Sets the value of the percentComplete property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPercentComplete(Integer value) { + this.percentComplete = value; + } + + /** + * Gets the value of the requestStatus property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRequestStatus() { + return requestStatus; + } + + /** + * Sets the value of the requestStatus property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRequestStatus(String value) { + this.requestStatus = value; + } + + /** + * Gets the value of the resultFileUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResultFileUrl() { + return resultFileUrl; + } + + /** + * Sets the value of the resultFileUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResultFileUrl(String value) { + this.resultFileUrl = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadUrlRequest.java b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadUrlRequest.java new file mode 100644 index 0000000000..2eff76374d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadUrlRequest.java @@ -0,0 +1,94 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ResponseMode" type="{https://bingads.microsoft.com/CampaignManagement/v10}ResponseMode" minOccurs="0"/>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "responseMode", + "accountId" +}) +@XmlRootElement(name = "GetBulkUploadUrlRequest") +public class GetBulkUploadUrlRequest { + + @XmlElement(name = "ResponseMode") + @XmlSchemaType(name = "string") + protected ResponseMode responseMode; + @XmlElement(name = "AccountId") + protected Long accountId; + + /** + * Gets the value of the responseMode property. + * + * @return + * possible object is + * {@link ResponseMode } + * + */ + public ResponseMode getResponseMode() { + return responseMode; + } + + /** + * Sets the value of the responseMode property. + * + * @param value + * allowed object is + * {@link ResponseMode } + * + */ + public void setResponseMode(ResponseMode value) { + this.responseMode = value; + } + + /** + * 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/v10/bulk/GetBulkUploadUrlResponse.java b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadUrlResponse.java new file mode 100644 index 0000000000..e4f2fe63af --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/GetBulkUploadUrlResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UploadUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "requestId", + "uploadUrl" +}) +@XmlRootElement(name = "GetBulkUploadUrlResponse") +public class GetBulkUploadUrlResponse { + + @XmlElement(name = "RequestId", nillable = true) + protected String requestId; + @XmlElement(name = "UploadUrl", nillable = true) + protected String uploadUrl; + + /** + * Gets the value of the requestId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRequestId() { + return requestId; + } + + /** + * Sets the value of the requestId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRequestId(String value) { + this.requestId = value; + } + + /** + * Gets the value of the uploadUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUploadUrl() { + return uploadUrl; + } + + /** + * Sets the value of the uploadUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUploadUrl(String value) { + this.uploadUrl = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Guid.java b/proxies/com/microsoft/bingads/v10/bulk/Guid.java new file mode 100644 index 0000000000..2737472090 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Guid.java @@ -0,0 +1,58 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for guid simple type. + * + *

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

+ * <simpleType name="guid">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "guid", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Guid { + + @XmlValue + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/IBulkService.java b/proxies/com/microsoft/bingads/v10/bulk/IBulkService.java new file mode 100644 index 0000000000..0ff7ad83de --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/IBulkService.java @@ -0,0 +1,234 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.concurrent.Future; +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebService(name = "IBulkService", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface IBulkService { + + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DownloadCampaignsByAccountIds", action = "DownloadCampaignsByAccountIds") + public Response downloadCampaignsByAccountIdsAsync( + @WebParam(name = "DownloadCampaignsByAccountIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DownloadCampaignsByAccountIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DownloadCampaignsByAccountIds", action = "DownloadCampaignsByAccountIds") + public Future downloadCampaignsByAccountIdsAsync( + @WebParam(name = "DownloadCampaignsByAccountIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DownloadCampaignsByAccountIdsRequest parameters, + @WebParam(name = "DownloadCampaignsByAccountIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DownloadCampaignsByAccountIds", action = "DownloadCampaignsByAccountIds") + @WebResult(name = "DownloadCampaignsByAccountIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DownloadCampaignsByAccountIdsResponse downloadCampaignsByAccountIds( + @WebParam(name = "DownloadCampaignsByAccountIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DownloadCampaignsByAccountIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DownloadCampaignsByCampaignIds", action = "DownloadCampaignsByCampaignIds") + public Response downloadCampaignsByCampaignIdsAsync( + @WebParam(name = "DownloadCampaignsByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DownloadCampaignsByCampaignIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DownloadCampaignsByCampaignIds", action = "DownloadCampaignsByCampaignIds") + public Future downloadCampaignsByCampaignIdsAsync( + @WebParam(name = "DownloadCampaignsByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DownloadCampaignsByCampaignIdsRequest parameters, + @WebParam(name = "DownloadCampaignsByCampaignIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DownloadCampaignsByCampaignIds", action = "DownloadCampaignsByCampaignIds") + @WebResult(name = "DownloadCampaignsByCampaignIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DownloadCampaignsByCampaignIdsResponse downloadCampaignsByCampaignIds( + @WebParam(name = "DownloadCampaignsByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DownloadCampaignsByCampaignIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBulkDownloadStatus", action = "GetBulkDownloadStatus") + public Response getBulkDownloadStatusAsync( + @WebParam(name = "GetBulkDownloadStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkDownloadStatusRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBulkDownloadStatus", action = "GetBulkDownloadStatus") + public Future getBulkDownloadStatusAsync( + @WebParam(name = "GetBulkDownloadStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkDownloadStatusRequest parameters, + @WebParam(name = "GetBulkDownloadStatusResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBulkDownloadStatus", action = "GetBulkDownloadStatus") + @WebResult(name = "GetBulkDownloadStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetBulkDownloadStatusResponse getBulkDownloadStatus( + @WebParam(name = "GetBulkDownloadStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkDownloadStatusRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBulkUploadUrl", action = "GetBulkUploadUrl") + public Response getBulkUploadUrlAsync( + @WebParam(name = "GetBulkUploadUrlRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkUploadUrlRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBulkUploadUrl", action = "GetBulkUploadUrl") + public Future getBulkUploadUrlAsync( + @WebParam(name = "GetBulkUploadUrlRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkUploadUrlRequest parameters, + @WebParam(name = "GetBulkUploadUrlResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.bulk.GetBulkUploadUrlResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBulkUploadUrl", action = "GetBulkUploadUrl") + @WebResult(name = "GetBulkUploadUrlResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetBulkUploadUrlResponse getBulkUploadUrl( + @WebParam(name = "GetBulkUploadUrlRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkUploadUrlRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBulkUploadStatus", action = "GetBulkUploadStatus") + public Response getBulkUploadStatusAsync( + @WebParam(name = "GetBulkUploadStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkUploadStatusRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBulkUploadStatus", action = "GetBulkUploadStatus") + public Future getBulkUploadStatusAsync( + @WebParam(name = "GetBulkUploadStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkUploadStatusRequest parameters, + @WebParam(name = "GetBulkUploadStatusResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBulkUploadStatus", action = "GetBulkUploadStatus") + @WebResult(name = "GetBulkUploadStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetBulkUploadStatusResponse getBulkUploadStatus( + @WebParam(name = "GetBulkUploadStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBulkUploadStatusRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/IDREFS.java b/proxies/com/microsoft/bingads/v10/bulk/IDREFS.java new file mode 100644 index 0000000000..65535680ae --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/IDREFS.java @@ -0,0 +1,72 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlIDREF; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for IDREFS simple type. + * + *

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

+ * <simpleType name="IDREFS">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}IDREF" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "IDREFS", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class IDREFS { + + @XmlValue + @XmlIDREF + @XmlSchemaType(name = "IDREFS") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/KeyValuePairOfstringstring.java b/proxies/com/microsoft/bingads/v10/bulk/KeyValuePairOfstringstring.java new file mode 100644 index 0000000000..bd0decabd9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/KeyValuePairOfstringstring.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeyValuePairOfstringstring complex type. + * + *

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

+ * <complexType name="KeyValuePairOfstringstring">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyValuePairOfstringstring", namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", propOrder = { + "key", + "value" +}) +public class KeyValuePairOfstringstring { + + @XmlElement(required = true, nillable = true) + protected String key; + @XmlElement(required = true, nillable = true) + protected String value; + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Language.java b/proxies/com/microsoft/bingads/v10/bulk/Language.java new file mode 100644 index 0000000000..6a0f9ab795 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Language.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for language simple type. + * + *

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

+ * <simpleType name="language">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "language", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class Language { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/NCName.java b/proxies/com/microsoft/bingads/v10/bulk/NCName.java new file mode 100644 index 0000000000..5dc7efda01 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/NCName.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for NCName simple type. + * + *

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

+ * <simpleType name="NCName">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}Name">
+ *     <pattern value="[\i-[:]][\c-[:]]*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NCName", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NCName { + + @XmlValue + @XmlSchemaType(name = "NCName") + protected Name value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link Name } + * + */ + public Name getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link Name } + * + */ + public void setValue(Name value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/NMTOKEN.java b/proxies/com/microsoft/bingads/v10/bulk/NMTOKEN.java new file mode 100644 index 0000000000..9be0f91262 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/NMTOKEN.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for NMTOKEN simple type. + * + *

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

+ * <simpleType name="NMTOKEN">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="\c+"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NMTOKEN", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NMTOKEN { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NMTOKEN") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/NMTOKENS.java b/proxies/com/microsoft/bingads/v10/bulk/NMTOKENS.java new file mode 100644 index 0000000000..1a76764ac6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/NMTOKENS.java @@ -0,0 +1,70 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for NMTOKENS simple type. + * + *

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

+ * <simpleType name="NMTOKENS">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NMTOKENS", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class NMTOKENS { + + @XmlValue + @XmlSchemaType(name = "NMTOKENS") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link NMTOKEN } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/Name.java b/proxies/com/microsoft/bingads/v10/bulk/Name.java new file mode 100644 index 0000000000..c471561ed0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/Name.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for Name simple type. + * + *

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

+ * <simpleType name="Name">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="\i\c*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Name", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class Name { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "Name") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/NegativeInteger.java b/proxies/com/microsoft/bingads/v10/bulk/NegativeInteger.java new file mode 100644 index 0000000000..6026af0613 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/NegativeInteger.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for negativeInteger simple type. + * + *

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

+ * <simpleType name="negativeInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonPositiveInteger">
+ *     <maxInclusive value="-1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "negativeInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NegativeInteger { + + @XmlValue + @XmlSchemaType(name = "negativeInteger") + protected NonPositiveInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonPositiveInteger } + * + */ + public NonPositiveInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonPositiveInteger } + * + */ + public void setValue(NonPositiveInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/NonNegativeInteger.java b/proxies/com/microsoft/bingads/v10/bulk/NonNegativeInteger.java new file mode 100644 index 0000000000..c97f19a298 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/NonNegativeInteger.java @@ -0,0 +1,61 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for nonNegativeInteger simple type. + * + *

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

+ * <simpleType name="nonNegativeInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *     <minInclusive value="0"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "nonNegativeInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NonNegativeInteger { + + @XmlValue + @XmlSchemaType(name = "nonNegativeInteger") + protected BigInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/NonPositiveInteger.java b/proxies/com/microsoft/bingads/v10/bulk/NonPositiveInteger.java new file mode 100644 index 0000000000..b95258bb14 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/NonPositiveInteger.java @@ -0,0 +1,61 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for nonPositiveInteger simple type. + * + *

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

+ * <simpleType name="nonPositiveInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *     <maxInclusive value="0"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "nonPositiveInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NonPositiveInteger { + + @XmlValue + @XmlSchemaType(name = "nonPositiveInteger") + protected BigInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ObjectFactory.java b/proxies/com/microsoft/bingads/v10/bulk/ObjectFactory.java new file mode 100644 index 0000000000..0cc1539c07 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ObjectFactory.java @@ -0,0 +1,906 @@ + +package com.microsoft.bingads.v10.bulk; + +import java.math.BigDecimal; +import java.util.Calendar; +import java.util.Collection; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.microsoft.bingads.v10.bulk package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _CompressionType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CompressionType"); + private final static QName _ApiFaultDetail_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ApiFaultDetail"); + private final static QName _CampaignScope_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignScope"); + private final static QName _DeveloperToken_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DeveloperToken"); + private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); + private final static QName _ArrayOflong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOflong"); + private final static QName _OperationError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "OperationError"); + private final static QName _Date_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Date"); + private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); + private final static QName _DownloadFileType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DownloadFileType"); + private final static QName _ArrayOfAdApiError_QNAME = new QName("https://adapi.microsoft.com", "ArrayOfAdApiError"); + private final static QName _ReportTimePeriod_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ReportTimePeriod"); + private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); + private final static QName _BatchError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BatchError"); + private final static QName _UserName_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "UserName"); + private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); + private final static QName _ArrayOfBatchError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfBatchError"); + private final static QName _Password_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Password"); + private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); + private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); + private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); + private final static QName _ArrayOfCampaignScope_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfCampaignScope"); + private final static QName _ArrayOfKeyValuePairOfstringstring_QNAME = new QName("http://schemas.datacontract.org/2004/07/System.Collections.Generic", "ArrayOfKeyValuePairOfstringstring"); + private final static QName _PerformanceStatsDateRange_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "PerformanceStatsDateRange"); + private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); + private final static QName _CustomerAccountId_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CustomerAccountId"); + private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); + private final static QName _ArrayOfOperationError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfOperationError"); + private final static QName _KeyValuePairOfstringstring_QNAME = new QName("http://schemas.datacontract.org/2004/07/System.Collections.Generic", "KeyValuePairOfstringstring"); + private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); + private final static QName _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong"); + private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); + private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort"); + private final static QName _ResponseMode_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ResponseMode"); + private final static QName _DataScope_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DataScope"); + private final static QName _TrackingId_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "TrackingId"); + private final static QName _CustomerId_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CustomerId"); + private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); + private final static QName _AdApiError_QNAME = new QName("https://adapi.microsoft.com", "AdApiError"); + private final static QName _BulkDownloadEntity_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BulkDownloadEntity"); + private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); + private final static QName _AdApiFaultDetail_QNAME = new QName("https://adapi.microsoft.com", "AdApiFaultDetail"); + private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); + private final static QName _ApplicationToken_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ApplicationToken"); + private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); + private final static QName _ApplicationFault_QNAME = new QName("https://adapi.microsoft.com", "ApplicationFault"); + private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary"); + private final static QName _EditorialError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "EditorialError"); + private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); + private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); + private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); + private final static QName _AuthenticationToken_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AuthenticationToken"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.microsoft.bingads.v10.bulk + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Language } + * + */ + public Language createLanguage() { + return new Language(); + } + + /** + * Create an instance of {@link NonNegativeInteger } + * + */ + public NonNegativeInteger createNonNegativeInteger() { + return new NonNegativeInteger(); + } + + /** + * Create an instance of {@link Name } + * + */ + public Name createName() { + return new Name(); + } + + /** + * Create an instance of {@link NCName } + * + */ + public NCName createNCName() { + return new NCName(); + } + + /** + * Create an instance of {@link ENTITY } + * + */ + public ENTITY createENTITY() { + return new ENTITY(); + } + + /** + * Create an instance of {@link NegativeInteger } + * + */ + public NegativeInteger createNegativeInteger() { + return new NegativeInteger(); + } + + /** + * Create an instance of {@link ENTITIES } + * + */ + public ENTITIES createENTITIES() { + return new ENTITIES(); + } + + /** + * Create an instance of {@link UnsignedLong } + * + */ + public UnsignedLong createUnsignedLong() { + return new UnsignedLong(); + } + + /** + * Create an instance of {@link IDREFS } + * + */ + public IDREFS createIDREFS() { + return new IDREFS(); + } + + /** + * Create an instance of {@link NonPositiveInteger } + * + */ + public NonPositiveInteger createNonPositiveInteger() { + return new NonPositiveInteger(); + } + + /** + * Create an instance of {@link NMTOKEN } + * + */ + public NMTOKEN createNMTOKEN() { + return new NMTOKEN(); + } + + /** + * Create an instance of {@link NMTOKENS } + * + */ + public NMTOKENS createNMTOKENS() { + return new NMTOKENS(); + } + + /** + * Create an instance of {@link PositiveInteger } + * + */ + public PositiveInteger createPositiveInteger() { + return new PositiveInteger(); + } + + /** + * Create an instance of {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError createArrayOfOperationError() { + return new ArrayOfOperationError(); + } + + /** + * Create an instance of {@link GetBulkUploadUrlRequest } + * + */ + public GetBulkUploadUrlRequest createGetBulkUploadUrlRequest() { + return new GetBulkUploadUrlRequest(); + } + + /** + * Create an instance of {@link EditorialError } + * + */ + public EditorialError createEditorialError() { + return new EditorialError(); + } + + /** + * Create an instance of {@link DownloadCampaignsByCampaignIdsRequest } + * + */ + public DownloadCampaignsByCampaignIdsRequest createDownloadCampaignsByCampaignIdsRequest() { + return new DownloadCampaignsByCampaignIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOfCampaignScope } + * + */ + public ArrayOfCampaignScope createArrayOfCampaignScope() { + return new ArrayOfCampaignScope(); + } + + /** + * Create an instance of {@link PerformanceStatsDateRange } + * + */ + public PerformanceStatsDateRange createPerformanceStatsDateRange() { + return new PerformanceStatsDateRange(); + } + + /** + * Create an instance of {@link DownloadCampaignsByAccountIdsRequest } + * + */ + public DownloadCampaignsByAccountIdsRequest createDownloadCampaignsByAccountIdsRequest() { + return new DownloadCampaignsByAccountIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOflong } + * + */ + public ArrayOflong createArrayOflong() { + return new ArrayOflong(); + } + + /** + * Create an instance of {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError createArrayOfBatchError() { + return new ArrayOfBatchError(); + } + + /** + * Create an instance of {@link GetBulkDownloadStatusResponse } + * + */ + public GetBulkDownloadStatusResponse createGetBulkDownloadStatusResponse() { + return new GetBulkDownloadStatusResponse(); + } + + /** + * Create an instance of {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring createArrayOfKeyValuePairOfstringstring() { + return new ArrayOfKeyValuePairOfstringstring(); + } + + /** + * Create an instance of {@link BatchError } + * + */ + public BatchError createBatchError() { + return new BatchError(); + } + + /** + * Create an instance of {@link GetBulkDownloadStatusRequest } + * + */ + public GetBulkDownloadStatusRequest createGetBulkDownloadStatusRequest() { + return new GetBulkDownloadStatusRequest(); + } + + /** + * Create an instance of {@link GetBulkUploadUrlResponse } + * + */ + public GetBulkUploadUrlResponse createGetBulkUploadUrlResponse() { + return new GetBulkUploadUrlResponse(); + } + + /** + * Create an instance of {@link Date } + * + */ + public Date createDate() { + return new Date(); + } + + /** + * Create an instance of {@link OperationError } + * + */ + public OperationError createOperationError() { + return new OperationError(); + } + + /** + * Create an instance of {@link GetBulkUploadStatusResponse } + * + */ + public GetBulkUploadStatusResponse createGetBulkUploadStatusResponse() { + return new GetBulkUploadStatusResponse(); + } + + /** + * Create an instance of {@link DownloadCampaignsByAccountIdsResponse } + * + */ + public DownloadCampaignsByAccountIdsResponse createDownloadCampaignsByAccountIdsResponse() { + return new DownloadCampaignsByAccountIdsResponse(); + } + + /** + * Create an instance of {@link CampaignScope } + * + */ + public CampaignScope createCampaignScope() { + return new CampaignScope(); + } + + /** + * Create an instance of {@link GetBulkUploadStatusRequest } + * + */ + public GetBulkUploadStatusRequest createGetBulkUploadStatusRequest() { + return new GetBulkUploadStatusRequest(); + } + + /** + * Create an instance of {@link DownloadCampaignsByCampaignIdsResponse } + * + */ + public DownloadCampaignsByCampaignIdsResponse createDownloadCampaignsByCampaignIdsResponse() { + return new DownloadCampaignsByCampaignIdsResponse(); + } + + /** + * Create an instance of {@link ApiFaultDetail } + * + */ + public ApiFaultDetail createApiFaultDetail() { + return new ApiFaultDetail(); + } + + /** + * Create an instance of {@link ApplicationFault } + * + */ + public ApplicationFault createApplicationFault() { + return new ApplicationFault(); + } + + /** + * Create an instance of {@link AdApiError } + * + */ + public AdApiError createAdApiError() { + return new AdApiError(); + } + + /** + * Create an instance of {@link ArrayOfAdApiError } + * + */ + public ArrayOfAdApiError createArrayOfAdApiError() { + return new ArrayOfAdApiError(); + } + + /** + * Create an instance of {@link AdApiFaultDetail } + * + */ + public AdApiFaultDetail createAdApiFaultDetail() { + return new AdApiFaultDetail(); + } + + /** + * Create an instance of {@link KeyValuePairOfstringstring } + * + */ + public KeyValuePairOfstringstring createKeyValuePairOfstringstring() { + return new KeyValuePairOfstringstring(); + } + + /** + * Create an instance of {@link Duration } + * + */ + public Duration createDuration() { + return new Duration(); + } + + /** + * Create an instance of {@link Char } + * + */ + public Char createChar() { + return new Char(); + } + + /** + * Create an instance of {@link Guid } + * + */ + public Guid createGuid() { + return new Guid(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CompressionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CompressionType") + public JAXBElement createCompressionType(CompressionType value) { + return new JAXBElement(_CompressionType_QNAME, CompressionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ApiFaultDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ApiFaultDetail") + public JAXBElement createApiFaultDetail(ApiFaultDetail value) { + return new JAXBElement(_ApiFaultDetail_QNAME, ApiFaultDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CampaignScope }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CampaignScope") + public JAXBElement createCampaignScope(CampaignScope value) { + return new JAXBElement(_CampaignScope_QNAME, CampaignScope.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DeveloperToken") + public JAXBElement createDeveloperToken(String value) { + return new JAXBElement(_DeveloperToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "duration") + public JAXBElement createDuration(Duration value) { + return new JAXBElement(_Duration_QNAME, Duration.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOflong }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", name = "ArrayOflong") + public JAXBElement createArrayOflong(ArrayOflong value) { + return new JAXBElement(_ArrayOflong_QNAME, ArrayOflong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OperationError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "OperationError") + public JAXBElement createOperationError(OperationError value) { + return new JAXBElement(_OperationError_QNAME, OperationError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Date }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Date") + public JAXBElement createDate(Date value) { + return new JAXBElement(_Date_QNAME, Date.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "long") + public JAXBElement createLong(Long value) { + return new JAXBElement(_Long_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DownloadFileType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DownloadFileType") + public JAXBElement createDownloadFileType(DownloadFileType value) { + return new JAXBElement(_DownloadFileType_QNAME, DownloadFileType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdApiError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "ArrayOfAdApiError") + public JAXBElement createArrayOfAdApiError(ArrayOfAdApiError value) { + return new JAXBElement(_ArrayOfAdApiError_QNAME, ArrayOfAdApiError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ReportTimePeriod }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ReportTimePeriod") + public JAXBElement createReportTimePeriod(ReportTimePeriod value) { + return new JAXBElement(_ReportTimePeriod_QNAME, ReportTimePeriod.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Calendar }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "dateTime") + @XmlJavaTypeAdapter(Adapter1 .class) + public JAXBElement createDateTime(Calendar value) { + return new JAXBElement(_DateTime_QNAME, Calendar.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BatchError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BatchError") + public JAXBElement createBatchError(BatchError value) { + return new JAXBElement(_BatchError_QNAME, BatchError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "UserName") + public JAXBElement createUserName(String value) { + return new JAXBElement(_UserName_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "string") + public JAXBElement createString(String value) { + return new JAXBElement(_String_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBatchError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfBatchError") + public JAXBElement createArrayOfBatchError(ArrayOfBatchError value) { + return new JAXBElement(_ArrayOfBatchError_QNAME, ArrayOfBatchError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Password") + public JAXBElement createPassword(String value) { + return new JAXBElement(_Password_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedInt") + public JAXBElement createUnsignedInt(Long value) { + return new JAXBElement(_UnsignedInt_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Char }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "char") + public JAXBElement createChar(Char value) { + return new JAXBElement(_Char_QNAME, Char.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "short") + public JAXBElement createShort(Short value) { + return new JAXBElement(_Short_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignScope }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfCampaignScope") + public JAXBElement createArrayOfCampaignScope(ArrayOfCampaignScope value) { + return new JAXBElement(_ArrayOfCampaignScope_QNAME, ArrayOfCampaignScope.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeyValuePairOfstringstring }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", name = "ArrayOfKeyValuePairOfstringstring") + public JAXBElement createArrayOfKeyValuePairOfstringstring(ArrayOfKeyValuePairOfstringstring value) { + return new JAXBElement(_ArrayOfKeyValuePairOfstringstring_QNAME, ArrayOfKeyValuePairOfstringstring.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PerformanceStatsDateRange }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "PerformanceStatsDateRange") + public JAXBElement createPerformanceStatsDateRange(PerformanceStatsDateRange value) { + return new JAXBElement(_PerformanceStatsDateRange_QNAME, PerformanceStatsDateRange.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "boolean") + public JAXBElement createBoolean(Boolean value) { + return new JAXBElement(_Boolean_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CustomerAccountId") + public JAXBElement createCustomerAccountId(String value) { + return new JAXBElement(_CustomerAccountId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "int") + public JAXBElement createInt(Integer value) { + return new JAXBElement(_Int_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfOperationError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfOperationError") + public JAXBElement createArrayOfOperationError(ArrayOfOperationError value) { + return new JAXBElement(_ArrayOfOperationError_QNAME, ArrayOfOperationError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeyValuePairOfstringstring }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", name = "KeyValuePairOfstringstring") + public JAXBElement createKeyValuePairOfstringstring(KeyValuePairOfstringstring value) { + return new JAXBElement(_KeyValuePairOfstringstring_QNAME, KeyValuePairOfstringstring.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "QName") + public JAXBElement createQName(QName value) { + return new JAXBElement(_QName_QNAME, QName.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link UnsignedLong }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedLong") + public JAXBElement createUnsignedLong(UnsignedLong value) { + return new JAXBElement(_UnsignedLong_QNAME, UnsignedLong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedByte") + public JAXBElement createUnsignedByte(Short value) { + return new JAXBElement(_UnsignedByte_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedShort") + public JAXBElement createUnsignedShort(Integer value) { + return new JAXBElement(_UnsignedShort_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ResponseMode }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ResponseMode") + public JAXBElement createResponseMode(ResponseMode value) { + return new JAXBElement(_ResponseMode_QNAME, ResponseMode.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link DataScope }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DataScope") + @XmlJavaTypeAdapter(Adapter2 .class) + public JAXBElement> createDataScope(Collection value) { + return new JAXBElement>(_DataScope_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "TrackingId") + public JAXBElement createTrackingId(String value) { + return new JAXBElement(_TrackingId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CustomerId") + public JAXBElement createCustomerId(String value) { + return new JAXBElement(_CustomerId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "float") + public JAXBElement createFloat(Float value) { + return new JAXBElement(_Float_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdApiError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "AdApiError") + public JAXBElement createAdApiError(AdApiError value) { + return new JAXBElement(_AdApiError_QNAME, AdApiError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link BulkDownloadEntity }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BulkDownloadEntity") + @XmlJavaTypeAdapter(Adapter3 .class) + public JAXBElement> createBulkDownloadEntity(Collection value) { + return new JAXBElement>(_BulkDownloadEntity_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyType") + public JAXBElement createAnyType(Object value) { + return new JAXBElement(_AnyType_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdApiFaultDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "AdApiFaultDetail") + public JAXBElement createAdApiFaultDetail(AdApiFaultDetail value) { + return new JAXBElement(_AdApiFaultDetail_QNAME, AdApiFaultDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Guid }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "guid") + public JAXBElement createGuid(Guid value) { + return new JAXBElement(_Guid_QNAME, Guid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ApplicationToken") + public JAXBElement createApplicationToken(String value) { + return new JAXBElement(_ApplicationToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "decimal") + public JAXBElement createDecimal(BigDecimal value) { + return new JAXBElement(_Decimal_QNAME, BigDecimal.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ApplicationFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "ApplicationFault") + public JAXBElement createApplicationFault(ApplicationFault value) { + return new JAXBElement(_ApplicationFault_QNAME, ApplicationFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "base64Binary") + public JAXBElement createBase64Binary(byte[] value) { + return new JAXBElement(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value)); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EditorialError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "EditorialError") + public JAXBElement createEditorialError(EditorialError value) { + return new JAXBElement(_EditorialError_QNAME, EditorialError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyURI") + public JAXBElement createAnyURI(String value) { + return new JAXBElement(_AnyURI_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "byte") + public JAXBElement createByte(Byte value) { + return new JAXBElement(_Byte_QNAME, Byte.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "double") + public JAXBElement createDouble(Double value) { + return new JAXBElement(_Double_QNAME, Double.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AuthenticationToken") + public JAXBElement createAuthenticationToken(String value) { + return new JAXBElement(_AuthenticationToken_QNAME, String.class, null, value); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/OperationError.java b/proxies/com/microsoft/bingads/v10/bulk/OperationError.java new file mode 100644 index 0000000000..1aaf2373dd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/OperationError.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for OperationError complex type. + * + *

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

+ * <complexType name="OperationError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "OperationError", propOrder = { + "code", + "details", + "errorCode", + "message" +}) +public class OperationError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Details", nillable = true) + protected String details; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "Message", nillable = true) + protected String message; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/PerformanceStatsDateRange.java b/proxies/com/microsoft/bingads/v10/bulk/PerformanceStatsDateRange.java new file mode 100644 index 0000000000..fa2c6cd117 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/PerformanceStatsDateRange.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for PerformanceStatsDateRange complex type. + * + *

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

+ * <complexType name="PerformanceStatsDateRange">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CustomDateRangeEnd" type="{https://bingads.microsoft.com/CampaignManagement/v10}Date" minOccurs="0"/>
+ *         <element name="CustomDateRangeStart" type="{https://bingads.microsoft.com/CampaignManagement/v10}Date" minOccurs="0"/>
+ *         <element name="PredefinedTime" type="{https://bingads.microsoft.com/CampaignManagement/v10}ReportTimePeriod" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PerformanceStatsDateRange", propOrder = { + "customDateRangeEnd", + "customDateRangeStart", + "predefinedTime" +}) +public class PerformanceStatsDateRange { + + @XmlElement(name = "CustomDateRangeEnd", nillable = true) + protected Date customDateRangeEnd; + @XmlElement(name = "CustomDateRangeStart", nillable = true) + protected Date customDateRangeStart; + @XmlElement(name = "PredefinedTime", nillable = true) + @XmlSchemaType(name = "string") + protected ReportTimePeriod predefinedTime; + + /** + * Gets the value of the customDateRangeEnd property. + * + * @return + * possible object is + * {@link Date } + * + */ + public Date getCustomDateRangeEnd() { + return customDateRangeEnd; + } + + /** + * Sets the value of the customDateRangeEnd property. + * + * @param value + * allowed object is + * {@link Date } + * + */ + public void setCustomDateRangeEnd(Date value) { + this.customDateRangeEnd = value; + } + + /** + * Gets the value of the customDateRangeStart property. + * + * @return + * possible object is + * {@link Date } + * + */ + public Date getCustomDateRangeStart() { + return customDateRangeStart; + } + + /** + * Sets the value of the customDateRangeStart property. + * + * @param value + * allowed object is + * {@link Date } + * + */ + public void setCustomDateRangeStart(Date value) { + this.customDateRangeStart = value; + } + + /** + * Gets the value of the predefinedTime property. + * + * @return + * possible object is + * {@link ReportTimePeriod } + * + */ + public ReportTimePeriod getPredefinedTime() { + return predefinedTime; + } + + /** + * Sets the value of the predefinedTime property. + * + * @param value + * allowed object is + * {@link ReportTimePeriod } + * + */ + public void setPredefinedTime(ReportTimePeriod value) { + this.predefinedTime = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/PositiveInteger.java b/proxies/com/microsoft/bingads/v10/bulk/PositiveInteger.java new file mode 100644 index 0000000000..1ea9cb41a5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/PositiveInteger.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for positiveInteger simple type. + * + *

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

+ * <simpleType name="positiveInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger">
+ *     <minInclusive value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "positiveInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class PositiveInteger { + + @XmlValue + @XmlSchemaType(name = "positiveInteger") + protected NonNegativeInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonNegativeInteger } + * + */ + public NonNegativeInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonNegativeInteger } + * + */ + public void setValue(NonNegativeInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ReportTimePeriod.java b/proxies/com/microsoft/bingads/v10/bulk/ReportTimePeriod.java new file mode 100644 index 0000000000..5615b4064b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ReportTimePeriod.java @@ -0,0 +1,81 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ReportTimePeriod. + * + *

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

+ *

+ * <simpleType name="ReportTimePeriod">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Today"/>
+ *     <enumeration value="Yesterday"/>
+ *     <enumeration value="LastSevenDays"/>
+ *     <enumeration value="ThisWeek"/>
+ *     <enumeration value="LastWeek"/>
+ *     <enumeration value="LastFourWeeks"/>
+ *     <enumeration value="ThisMonth"/>
+ *     <enumeration value="LastMonth"/>
+ *     <enumeration value="LastThreeMonths"/>
+ *     <enumeration value="LastSixMonths"/>
+ *     <enumeration value="ThisYear"/>
+ *     <enumeration value="LastYear"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ReportTimePeriod") +@XmlEnum +public enum ReportTimePeriod { + + @XmlEnumValue("Today") + TODAY("Today"), + @XmlEnumValue("Yesterday") + YESTERDAY("Yesterday"), + @XmlEnumValue("LastSevenDays") + LAST_SEVEN_DAYS("LastSevenDays"), + @XmlEnumValue("ThisWeek") + THIS_WEEK("ThisWeek"), + @XmlEnumValue("LastWeek") + LAST_WEEK("LastWeek"), + @XmlEnumValue("LastFourWeeks") + LAST_FOUR_WEEKS("LastFourWeeks"), + @XmlEnumValue("ThisMonth") + THIS_MONTH("ThisMonth"), + @XmlEnumValue("LastMonth") + LAST_MONTH("LastMonth"), + @XmlEnumValue("LastThreeMonths") + LAST_THREE_MONTHS("LastThreeMonths"), + @XmlEnumValue("LastSixMonths") + LAST_SIX_MONTHS("LastSixMonths"), + @XmlEnumValue("ThisYear") + THIS_YEAR("ThisYear"), + @XmlEnumValue("LastYear") + LAST_YEAR("LastYear"); + private final String value; + + ReportTimePeriod(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ReportTimePeriod fromValue(String v) { + for (ReportTimePeriod c: ReportTimePeriod.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/ResponseMode.java b/proxies/com/microsoft/bingads/v10/bulk/ResponseMode.java new file mode 100644 index 0000000000..41c2b03b69 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/ResponseMode.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ResponseMode. + * + *

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

+ *

+ * <simpleType name="ResponseMode">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ErrorsOnly"/>
+ *     <enumeration value="ErrorsAndResults"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ResponseMode") +@XmlEnum +public enum ResponseMode { + + @XmlEnumValue("ErrorsOnly") + ERRORS_ONLY("ErrorsOnly"), + @XmlEnumValue("ErrorsAndResults") + ERRORS_AND_RESULTS("ErrorsAndResults"); + private final String value; + + ResponseMode(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ResponseMode fromValue(String v) { + for (ResponseMode c: ResponseMode.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/UnsignedLong.java b/proxies/com/microsoft/bingads/v10/bulk/UnsignedLong.java new file mode 100644 index 0000000000..781ee8fc7a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/UnsignedLong.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.bulk; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for unsignedLong simple type. + * + *

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

+ * <simpleType name="unsignedLong">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger">
+ *     <maxInclusive value="18446744073709551615"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "unsignedLong", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class UnsignedLong { + + @XmlValue + @XmlSchemaType(name = "unsignedLong") + protected NonNegativeInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonNegativeInteger } + * + */ + public NonNegativeInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonNegativeInteger } + * + */ + public void setValue(NonNegativeInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/package-info.java b/proxies/com/microsoft/bingads/v10/bulk/package-info.java new file mode 100644 index 0000000000..9dc7379bd7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/bulk/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package com.microsoft.bingads.v10.bulk; diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AccountMigrationStatusesInfo.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AccountMigrationStatusesInfo.java new file mode 100644 index 0000000000..ddea66e2fd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AccountMigrationStatusesInfo.java @@ -0,0 +1,82 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AccountMigrationStatusesInfo complex type. + * + *

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

+ * <complexType name="AccountMigrationStatusesInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="MigrationStatusInfo" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMigrationStatusInfo" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AccountMigrationStatusesInfo", propOrder = { + "accountId", + "migrationStatusInfo" +}) +public class AccountMigrationStatusesInfo { + + @XmlElement(name = "AccountId") + protected long accountId; + @XmlElement(name = "MigrationStatusInfo", nillable = true) + protected ArrayOfMigrationStatusInfo migrationStatusInfo; + + /** + * Gets the value of the accountId property. + * + */ + public long getAccountId() { + return accountId; + } + + /** + * Sets the value of the accountId property. + * + */ + public void setAccountId(long value) { + this.accountId = value; + } + + /** + * Gets the value of the migrationStatusInfo property. + * + * @return + * possible object is + * {@link ArrayOfMigrationStatusInfo } + * + */ + public ArrayOfMigrationStatusInfo getMigrationStatusInfo() { + return migrationStatusInfo; + } + + /** + * Sets the value of the migrationStatusInfo property. + * + * @param value + * allowed object is + * {@link ArrayOfMigrationStatusInfo } + * + */ + public void setMigrationStatusInfo(ArrayOfMigrationStatusInfo value) { + this.migrationStatusInfo = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Ad.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Ad.java new file mode 100644 index 0000000000..418fc00838 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Ad.java @@ -0,0 +1,351 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Ad complex type. + * + *

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

+ * <complexType name="Ad">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DevicePreference" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="EditorialStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdEditorialStatus" minOccurs="0"/>
+ *         <element name="FinalAppUrls" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfAppUrl" minOccurs="0"/>
+ *         <element name="FinalMobileUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="FinalUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdStatus" minOccurs="0"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Type" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdType" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Ad", propOrder = { + "devicePreference", + "editorialStatus", + "finalAppUrls", + "finalMobileUrls", + "finalUrls", + "forwardCompatibilityMap", + "id", + "status", + "trackingUrlTemplate", + "type", + "urlCustomParameters" +}) +@XmlSeeAlso({ + TextAd.class, + ProductAd.class +}) +public class Ad { + + @XmlElement(name = "DevicePreference", nillable = true) + protected Long devicePreference; + @XmlElement(name = "EditorialStatus", nillable = true) + @XmlSchemaType(name = "string") + protected AdEditorialStatus editorialStatus; + @XmlElement(name = "FinalAppUrls", nillable = true) + protected ArrayOfAppUrl finalAppUrls; + @XmlElement(name = "FinalMobileUrls", nillable = true) + protected ArrayOfstring finalMobileUrls; + @XmlElement(name = "FinalUrls", nillable = true) + protected ArrayOfstring finalUrls; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "Status", nillable = true) + @XmlSchemaType(name = "string") + protected AdStatus status; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "Type", nillable = true) + @XmlSchemaType(name = "string") + protected AdType type; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + + /** + * Gets the value of the devicePreference property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDevicePreference() { + return devicePreference; + } + + /** + * Sets the value of the devicePreference property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDevicePreference(Long value) { + this.devicePreference = value; + } + + /** + * Gets the value of the editorialStatus property. + * + * @return + * possible object is + * {@link AdEditorialStatus } + * + */ + public AdEditorialStatus getEditorialStatus() { + return editorialStatus; + } + + /** + * Sets the value of the editorialStatus property. + * + * @param value + * allowed object is + * {@link AdEditorialStatus } + * + */ + public void setEditorialStatus(AdEditorialStatus value) { + this.editorialStatus = value; + } + + /** + * Gets the value of the finalAppUrls property. + * + * @return + * possible object is + * {@link ArrayOfAppUrl } + * + */ + public ArrayOfAppUrl getFinalAppUrls() { + return finalAppUrls; + } + + /** + * Sets the value of the finalAppUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfAppUrl } + * + */ + public void setFinalAppUrls(ArrayOfAppUrl value) { + this.finalAppUrls = value; + } + + /** + * Gets the value of the finalMobileUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalMobileUrls() { + return finalMobileUrls; + } + + /** + * Sets the value of the finalMobileUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalMobileUrls(ArrayOfstring value) { + this.finalMobileUrls = value; + } + + /** + * Gets the value of the finalUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalUrls() { + return finalUrls; + } + + /** + * Sets the value of the finalUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalUrls(ArrayOfstring value) { + this.finalUrls = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = 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 status property. + * + * @return + * possible object is + * {@link AdStatus } + * + */ + public AdStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link AdStatus } + * + */ + public void setStatus(AdStatus value) { + this.status = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link AdType } + * + */ + public AdType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link AdType } + * + */ + public void setType(AdType value) { + this.type = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiError.java new file mode 100644 index 0000000000..7721bfd114 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiError.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdApiError complex type. + * + *

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

+ * <complexType name="AdApiError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Detail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdApiError", namespace = "https://adapi.microsoft.com", propOrder = { + "code", + "detail", + "errorCode", + "message" +}) +public class AdApiError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Detail", nillable = true) + protected String detail; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "Message", nillable = true) + protected String message; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the detail property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetail() { + return detail; + } + + /** + * Sets the value of the detail property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetail(String value) { + this.detail = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail.java new file mode 100644 index 0000000000..ad2330d5f3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdApiFaultDetail complex type. + * + *

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

+ * <complexType name="AdApiFaultDetail">
+ *   <complexContent>
+ *     <extension base="{https://adapi.microsoft.com}ApplicationFault">
+ *       <sequence>
+ *         <element name="Errors" type="{https://adapi.microsoft.com}ArrayOfAdApiError" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdApiFaultDetail", namespace = "https://adapi.microsoft.com", propOrder = { + "errors" +}) +public class AdApiFaultDetail + extends ApplicationFault +{ + + @XmlElement(name = "Errors", nillable = true) + protected ArrayOfAdApiError errors; + + /** + * Gets the value of the errors property. + * + * @return + * possible object is + * {@link ArrayOfAdApiError } + * + */ + public ArrayOfAdApiError getErrors() { + return errors; + } + + /** + * Sets the value of the errors property. + * + * @param value + * allowed object is + * {@link ArrayOfAdApiError } + * + */ + public void setErrors(ArrayOfAdApiError value) { + this.errors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail_Exception.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail_Exception.java new file mode 100644 index 0000000000..69ca7a0f54 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdApiFaultDetail_Exception.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebFault(name = "AdApiFaultDetail", targetNamespace = "https://adapi.microsoft.com") +public class AdApiFaultDetail_Exception + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private AdApiFaultDetail faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public AdApiFaultDetail_Exception(String message, AdApiFaultDetail faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public AdApiFaultDetail_Exception(String message, AdApiFaultDetail faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: com.microsoft.bingads.v10.campaignmanagement.AdApiFaultDetail + */ + public AdApiFaultDetail getFaultInfo() { + return faultInfo; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdDistribution.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdDistribution.java new file mode 100644 index 0000000000..c9b8485fa6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdDistribution.java @@ -0,0 +1,29 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +/** + * Enum class for AdDistribution. + */ +public enum AdDistribution { + + SEARCH("Search"), + CONTENT("Content"); + + private final String value; + + AdDistribution(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdDistribution fromValue(String v) { + for (AdDistribution c : AdDistribution.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/v10/campaignmanagement/AdDistributionConverter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdDistributionConverter.java new file mode 100644 index 0000000000..cf752b2365 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdDistributionConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class AdDistributionConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(AdDistribution.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (AdDistribution 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/v10/campaignmanagement/AdEditorialStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdEditorialStatus.java new file mode 100644 index 0000000000..05df28a9c3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdEditorialStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdEditorialStatus. + * + *

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

+ *

+ * <simpleType name="AdEditorialStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Disapproved"/>
+ *     <enumeration value="Inactive"/>
+ *     <enumeration value="ActiveLimited"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdEditorialStatus") +@XmlEnum +public enum AdEditorialStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Disapproved") + DISAPPROVED("Disapproved"), + @XmlEnumValue("Inactive") + INACTIVE("Inactive"), + @XmlEnumValue("ActiveLimited") + ACTIVE_LIMITED("ActiveLimited"); + private final String value; + + AdEditorialStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdEditorialStatus fromValue(String v) { + for (AdEditorialStatus c: AdEditorialStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtension.java new file mode 100644 index 0000000000..736238620f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtension.java @@ -0,0 +1,184 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtension complex type. + * + *

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

+ * <complexType name="AdExtension">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionStatus" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="Version" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdExtension", propOrder = { + "forwardCompatibilityMap", + "id", + "status", + "type", + "version" +}) +@XmlSeeAlso({ + LocationAdExtension.class, + AppAdExtension.class, + CallAdExtension.class, + ImageAdExtension.class, + SiteLinksAdExtension.class +}) +public class AdExtension { + + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "Status", nillable = true) + @XmlSchemaType(name = "string") + protected AdExtensionStatus status; + @XmlElement(name = "Type", required = true, nillable = true) + protected String type; + @XmlElement(name = "Version", nillable = true) + protected Integer version; + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = 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 status property. + * + * @return + * possible object is + * {@link AdExtensionStatus } + * + */ + public AdExtensionStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link AdExtensionStatus } + * + */ + public void setStatus(AdExtensionStatus value) { + this.status = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setVersion(Integer value) { + this.version = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociation.java new file mode 100644 index 0000000000..be1734dd15 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociation.java @@ -0,0 +1,141 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionAssociation complex type. + * + *

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

+ * <complexType name="AdExtensionAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtension" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtension"/>
+ *         <element name="AssociationType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AssociationType"/>
+ *         <element name="EditorialStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionEditorialStatus" minOccurs="0"/>
+ *         <element name="EntityId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdExtensionAssociation", propOrder = { + "adExtension", + "associationType", + "editorialStatus", + "entityId" +}) +public class AdExtensionAssociation { + + @XmlElement(name = "AdExtension", required = true, nillable = true) + protected AdExtension adExtension; + @XmlElement(name = "AssociationType", required = true) + @XmlSchemaType(name = "string") + protected AssociationType associationType; + @XmlElement(name = "EditorialStatus", nillable = true) + @XmlSchemaType(name = "string") + protected AdExtensionEditorialStatus editorialStatus; + @XmlElement(name = "EntityId") + protected long entityId; + + /** + * Gets the value of the adExtension property. + * + * @return + * possible object is + * {@link AdExtension } + * + */ + public AdExtension getAdExtension() { + return adExtension; + } + + /** + * Sets the value of the adExtension property. + * + * @param value + * allowed object is + * {@link AdExtension } + * + */ + public void setAdExtension(AdExtension value) { + this.adExtension = value; + } + + /** + * Gets the value of the associationType property. + * + * @return + * possible object is + * {@link AssociationType } + * + */ + public AssociationType getAssociationType() { + return associationType; + } + + /** + * Sets the value of the associationType property. + * + * @param value + * allowed object is + * {@link AssociationType } + * + */ + public void setAssociationType(AssociationType value) { + this.associationType = value; + } + + /** + * Gets the value of the editorialStatus property. + * + * @return + * possible object is + * {@link AdExtensionEditorialStatus } + * + */ + public AdExtensionEditorialStatus getEditorialStatus() { + return editorialStatus; + } + + /** + * Sets the value of the editorialStatus property. + * + * @param value + * allowed object is + * {@link AdExtensionEditorialStatus } + * + */ + public void setEditorialStatus(AdExtensionEditorialStatus value) { + this.editorialStatus = value; + } + + /** + * Gets the value of the entityId property. + * + */ + public long getEntityId() { + return entityId; + } + + /** + * Sets the value of the entityId property. + * + */ + public void setEntityId(long value) { + this.entityId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociationCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociationCollection.java new file mode 100644 index 0000000000..a9fc26af9b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionAssociationCollection.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionAssociationCollection complex type. + * + *

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

+ * <complexType name="AdExtensionAssociationCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionAssociations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionAssociation"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdExtensionAssociationCollection", propOrder = { + "adExtensionAssociations" +}) +public class AdExtensionAssociationCollection { + + @XmlElement(name = "AdExtensionAssociations", required = true, nillable = true) + protected ArrayOfAdExtensionAssociation adExtensionAssociations; + + /** + * Gets the value of the adExtensionAssociations property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionAssociation } + * + */ + public ArrayOfAdExtensionAssociation getAdExtensionAssociations() { + return adExtensionAssociations; + } + + /** + * Sets the value of the adExtensionAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionAssociation } + * + */ + public void setAdExtensionAssociations(ArrayOfAdExtensionAssociation value) { + this.adExtensionAssociations = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReason.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReason.java new file mode 100644 index 0000000000..4afbb6a3ff --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReason.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionEditorialReason complex type. + * + *

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

+ * <complexType name="AdExtensionEditorialReason">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Location" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="ReasonCode" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Term" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdExtensionEditorialReason", propOrder = { + "location", + "publisherCountries", + "reasonCode", + "term" +}) +public class AdExtensionEditorialReason { + + @XmlElement(name = "Location", nillable = true) + protected String location; + @XmlElement(name = "PublisherCountries", nillable = true) + protected ArrayOfstring publisherCountries; + @XmlElement(name = "ReasonCode") + protected Integer reasonCode; + @XmlElement(name = "Term", nillable = true) + protected String term; + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the publisherCountries property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getPublisherCountries() { + return publisherCountries; + } + + /** + * Sets the value of the publisherCountries property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setPublisherCountries(ArrayOfstring value) { + this.publisherCountries = value; + } + + /** + * Gets the value of the reasonCode property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getReasonCode() { + return reasonCode; + } + + /** + * Sets the value of the reasonCode property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setReasonCode(Integer value) { + this.reasonCode = value; + } + + /** + * Gets the value of the term property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTerm() { + return term; + } + + /** + * Sets the value of the term property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTerm(String value) { + this.term = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReasonCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReasonCollection.java new file mode 100644 index 0000000000..b90952a5f1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialReasonCollection.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionEditorialReasonCollection complex type. + * + *

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

+ * <complexType name="AdExtensionEditorialReasonCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Reasons" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionEditorialReason" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdExtensionEditorialReasonCollection", propOrder = { + "adExtensionId", + "reasons" +}) +public class AdExtensionEditorialReasonCollection { + + @XmlElement(name = "AdExtensionId") + protected Long adExtensionId; + @XmlElement(name = "Reasons", nillable = true) + protected ArrayOfAdExtensionEditorialReason reasons; + + /** + * Gets the value of the adExtensionId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAdExtensionId() { + return adExtensionId; + } + + /** + * Sets the value of the adExtensionId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAdExtensionId(Long value) { + this.adExtensionId = value; + } + + /** + * Gets the value of the reasons property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionEditorialReason } + * + */ + public ArrayOfAdExtensionEditorialReason getReasons() { + return reasons; + } + + /** + * Sets the value of the reasons property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionEditorialReason } + * + */ + public void setReasons(ArrayOfAdExtensionEditorialReason value) { + this.reasons = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialStatus.java new file mode 100644 index 0000000000..41360ff30d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionEditorialStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionEditorialStatus. + * + *

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

+ *

+ * <simpleType name="AdExtensionEditorialStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Disapproved"/>
+ *     <enumeration value="Inactive"/>
+ *     <enumeration value="ActiveLimited"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdExtensionEditorialStatus") +@XmlEnum +public enum AdExtensionEditorialStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Disapproved") + DISAPPROVED("Disapproved"), + @XmlEnumValue("Inactive") + INACTIVE("Inactive"), + @XmlEnumValue("ActiveLimited") + ACTIVE_LIMITED("ActiveLimited"); + private final String value; + + AdExtensionEditorialStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdExtensionEditorialStatus fromValue(String v) { + for (AdExtensionEditorialStatus c: AdExtensionEditorialStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdToEntityIdAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdToEntityIdAssociation.java new file mode 100644 index 0000000000..a44645acd3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdToEntityIdAssociation.java @@ -0,0 +1,74 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionIdToEntityIdAssociation complex type. + * + *

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

+ * <complexType name="AdExtensionIdToEntityIdAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="EntityId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdExtensionIdToEntityIdAssociation", propOrder = { + "adExtensionId", + "entityId" +}) +public class AdExtensionIdToEntityIdAssociation { + + @XmlElement(name = "AdExtensionId") + protected long adExtensionId; + @XmlElement(name = "EntityId") + protected long entityId; + + /** + * Gets the value of the adExtensionId property. + * + */ + public long getAdExtensionId() { + return adExtensionId; + } + + /** + * Sets the value of the adExtensionId property. + * + */ + public void setAdExtensionId(long value) { + this.adExtensionId = value; + } + + /** + * Gets the value of the entityId property. + * + */ + public long getEntityId() { + return entityId; + } + + /** + * Sets the value of the entityId property. + * + */ + public void setEntityId(long value) { + this.entityId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdentity.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdentity.java new file mode 100644 index 0000000000..c09f2e11b3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionIdentity.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionIdentity complex type. + * + *

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

+ * <complexType name="AdExtensionIdentity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Version" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdExtensionIdentity", propOrder = { + "id", + "version" +}) +public class AdExtensionIdentity { + + @XmlElement(name = "Id") + protected Long id; + @XmlElement(name = "Version", nillable = true) + protected Integer version; + + /** + * 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 version property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setVersion(Integer value) { + this.version = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionStatus.java new file mode 100644 index 0000000000..cf9236a4c9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionStatus.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdExtensionStatus. + * + *

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

+ *

+ * <simpleType name="AdExtensionStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Deleted"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdExtensionStatus") +@XmlEnum +public enum AdExtensionStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Deleted") + DELETED("Deleted"); + private final String value; + + AdExtensionStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdExtensionStatus fromValue(String v) { + for (AdExtensionStatus c: AdExtensionStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionsTypeFilter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionsTypeFilter.java new file mode 100644 index 0000000000..03bab76c76 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionsTypeFilter.java @@ -0,0 +1,32 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +/** + * Enum class for AdExtensionsTypeFilter. + */ +public enum AdExtensionsTypeFilter { + + SITE_LINKS_AD_EXTENSION("SiteLinksAdExtension"), + LOCATION_AD_EXTENSION("LocationAdExtension"), + CALL_AD_EXTENSION("CallAdExtension"), + IMAGE_AD_EXTENSION("ImageAdExtension"), + APP_AD_EXTENSION("AppAdExtension"); + + private final String value; + + AdExtensionsTypeFilter(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdExtensionsTypeFilter fromValue(String v) { + for (AdExtensionsTypeFilter c : AdExtensionsTypeFilter.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/v10/campaignmanagement/AdExtensionsTypeFilterConverter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionsTypeFilterConverter.java new file mode 100644 index 0000000000..199cc563b4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdExtensionsTypeFilterConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class AdExtensionsTypeFilterConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(AdExtensionsTypeFilter.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (AdExtensionsTypeFilter 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/v10/campaignmanagement/AdGroup.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroup.java new file mode 100644 index 0000000000..81a515fa7c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroup.java @@ -0,0 +1,547 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for AdGroup complex type. + * + *

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

+ * <complexType name="AdGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdDistribution" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdDistribution" minOccurs="0"/>
+ *         <element name="AdRotation" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdRotation" minOccurs="0"/>
+ *         <element name="BiddingModel" type="{https://bingads.microsoft.com/CampaignManagement/v10}BiddingModel" minOccurs="0"/>
+ *         <element name="ContentMatchBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}Bid" minOccurs="0"/>
+ *         <element name="EndDate" type="{https://bingads.microsoft.com/CampaignManagement/v10}Date" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="NativeBidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Network" type="{https://bingads.microsoft.com/CampaignManagement/v10}Network" minOccurs="0"/>
+ *         <element name="PricingModel" type="{https://bingads.microsoft.com/CampaignManagement/v10}PricingModel" minOccurs="0"/>
+ *         <element name="SearchBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}Bid" minOccurs="0"/>
+ *         <element name="Settings" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSetting" minOccurs="0"/>
+ *         <element name="StartDate" type="{https://bingads.microsoft.com/CampaignManagement/v10}Date" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupStatus" minOccurs="0"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdGroup", propOrder = { + "adDistribution", + "adRotation", + "biddingModel", + "contentMatchBid", + "endDate", + "forwardCompatibilityMap", + "id", + "language", + "name", + "nativeBidAdjustment", + "network", + "pricingModel", + "searchBid", + "settings", + "startDate", + "status", + "trackingUrlTemplate", + "urlCustomParameters" +}) +public class AdGroup { + + @XmlElement(name = "AdDistribution", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter5 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection adDistribution; + @XmlElement(name = "AdRotation", nillable = true) + protected AdRotation adRotation; + @XmlElement(name = "BiddingModel", nillable = true) + @XmlSchemaType(name = "string") + protected BiddingModel biddingModel; + @XmlElement(name = "ContentMatchBid", nillable = true) + protected Bid contentMatchBid; + @XmlElement(name = "EndDate", nillable = true) + protected Date endDate; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "Language", nillable = true) + protected String language; + @XmlElement(name = "Name", nillable = true) + protected String name; + @XmlElement(name = "NativeBidAdjustment", nillable = true) + protected Integer nativeBidAdjustment; + @XmlElement(name = "Network", nillable = true) + @XmlSchemaType(name = "string") + protected Network network; + @XmlElement(name = "PricingModel", nillable = true) + @XmlSchemaType(name = "string") + protected PricingModel pricingModel; + @XmlElement(name = "SearchBid", nillable = true) + protected Bid searchBid; + @XmlElement(name = "Settings", nillable = true) + protected ArrayOfSetting settings; + @XmlElement(name = "StartDate", nillable = true) + protected Date startDate; + @XmlElement(name = "Status", nillable = true) + @XmlSchemaType(name = "string") + protected AdGroupStatus status; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + + /** + * Gets the value of the adDistribution property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getAdDistribution() { + return adDistribution; + } + + /** + * Sets the value of the adDistribution property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdDistribution(Collection value) { + this.adDistribution = value; + } + + /** + * Gets the value of the adRotation property. + * + * @return + * possible object is + * {@link AdRotation } + * + */ + public AdRotation getAdRotation() { + return adRotation; + } + + /** + * Sets the value of the adRotation property. + * + * @param value + * allowed object is + * {@link AdRotation } + * + */ + public void setAdRotation(AdRotation value) { + this.adRotation = value; + } + + /** + * Gets the value of the biddingModel property. + * + * @return + * possible object is + * {@link BiddingModel } + * + */ + public BiddingModel getBiddingModel() { + return biddingModel; + } + + /** + * Sets the value of the biddingModel property. + * + * @param value + * allowed object is + * {@link BiddingModel } + * + */ + public void setBiddingModel(BiddingModel value) { + this.biddingModel = value; + } + + /** + * Gets the value of the contentMatchBid property. + * + * @return + * possible object is + * {@link Bid } + * + */ + public Bid getContentMatchBid() { + return contentMatchBid; + } + + /** + * Sets the value of the contentMatchBid property. + * + * @param value + * allowed object is + * {@link Bid } + * + */ + public void setContentMatchBid(Bid value) { + this.contentMatchBid = value; + } + + /** + * Gets the value of the endDate property. + * + * @return + * possible object is + * {@link Date } + * + */ + public Date getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value + * allowed object is + * {@link Date } + * + */ + public void setEndDate(Date value) { + this.endDate = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = 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 language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = 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 nativeBidAdjustment property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNativeBidAdjustment() { + return nativeBidAdjustment; + } + + /** + * Sets the value of the nativeBidAdjustment property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNativeBidAdjustment(Integer value) { + this.nativeBidAdjustment = value; + } + + /** + * Gets the value of the network property. + * + * @return + * possible object is + * {@link Network } + * + */ + public Network getNetwork() { + return network; + } + + /** + * Sets the value of the network property. + * + * @param value + * allowed object is + * {@link Network } + * + */ + public void setNetwork(Network value) { + this.network = value; + } + + /** + * Gets the value of the pricingModel property. + * + * @return + * possible object is + * {@link PricingModel } + * + */ + public PricingModel getPricingModel() { + return pricingModel; + } + + /** + * Sets the value of the pricingModel property. + * + * @param value + * allowed object is + * {@link PricingModel } + * + */ + public void setPricingModel(PricingModel value) { + this.pricingModel = value; + } + + /** + * Gets the value of the searchBid property. + * + * @return + * possible object is + * {@link Bid } + * + */ + public Bid getSearchBid() { + return searchBid; + } + + /** + * Sets the value of the searchBid property. + * + * @param value + * allowed object is + * {@link Bid } + * + */ + public void setSearchBid(Bid value) { + this.searchBid = value; + } + + /** + * Gets the value of the settings property. + * + * @return + * possible object is + * {@link ArrayOfSetting } + * + */ + public ArrayOfSetting getSettings() { + return settings; + } + + /** + * Sets the value of the settings property. + * + * @param value + * allowed object is + * {@link ArrayOfSetting } + * + */ + public void setSettings(ArrayOfSetting value) { + this.settings = value; + } + + /** + * Gets the value of the startDate property. + * + * @return + * possible object is + * {@link Date } + * + */ + public Date getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value + * allowed object is + * {@link Date } + * + */ + public void setStartDate(Date value) { + this.startDate = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link AdGroupStatus } + * + */ + public AdGroupStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link AdGroupStatus } + * + */ + public void setStatus(AdGroupStatus value) { + this.status = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterion.java new file mode 100644 index 0000000000..e29ceb190b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterion.java @@ -0,0 +1,181 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupCriterion complex type. + * + *

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

+ * <complexType name="AdGroupCriterion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Criterion" type="{https://bingads.microsoft.com/CampaignManagement/v10}Criterion" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupCriterionStatus" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdGroupCriterion", propOrder = { + "adGroupId", + "criterion", + "id", + "status", + "type" +}) +@XmlSeeAlso({ + BiddableAdGroupCriterion.class, + NegativeAdGroupCriterion.class +}) +public class AdGroupCriterion { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "Criterion", nillable = true) + protected Criterion criterion; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "Status", nillable = true) + @XmlSchemaType(name = "string") + protected AdGroupCriterionStatus status; + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * 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 criterion property. + * + * @return + * possible object is + * {@link Criterion } + * + */ + public Criterion getCriterion() { + return criterion; + } + + /** + * Sets the value of the criterion property. + * + * @param value + * allowed object is + * {@link Criterion } + * + */ + public void setCriterion(Criterion value) { + this.criterion = 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 status property. + * + * @return + * possible object is + * {@link AdGroupCriterionStatus } + * + */ + public AdGroupCriterionStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link AdGroupCriterionStatus } + * + */ + public void setStatus(AdGroupCriterionStatus value) { + this.status = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionAction.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionAction.java new file mode 100644 index 0000000000..88104377e6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionAction.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupCriterionAction complex type. + * + *

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

+ * <complexType name="AdGroupCriterionAction">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Action" type="{https://bingads.microsoft.com/CampaignManagement/v10}ItemAction"/>
+ *         <element name="AdGroupCriterion" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupCriterion"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdGroupCriterionAction", propOrder = { + "action", + "adGroupCriterion" +}) +public class AdGroupCriterionAction { + + @XmlElement(name = "Action", required = true) + @XmlSchemaType(name = "string") + protected ItemAction action; + @XmlElement(name = "AdGroupCriterion", required = true, nillable = true) + protected AdGroupCriterion adGroupCriterion; + + /** + * Gets the value of the action property. + * + * @return + * possible object is + * {@link ItemAction } + * + */ + public ItemAction getAction() { + return action; + } + + /** + * Sets the value of the action property. + * + * @param value + * allowed object is + * {@link ItemAction } + * + */ + public void setAction(ItemAction value) { + this.action = value; + } + + /** + * Gets the value of the adGroupCriterion property. + * + * @return + * possible object is + * {@link AdGroupCriterion } + * + */ + public AdGroupCriterion getAdGroupCriterion() { + return adGroupCriterion; + } + + /** + * Sets the value of the adGroupCriterion property. + * + * @param value + * allowed object is + * {@link AdGroupCriterion } + * + */ + public void setAdGroupCriterion(AdGroupCriterion value) { + this.adGroupCriterion = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionEditorialStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionEditorialStatus.java new file mode 100644 index 0000000000..efee47fd7c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionEditorialStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupCriterionEditorialStatus. + * + *

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

+ *

+ * <simpleType name="AdGroupCriterionEditorialStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Disapproved"/>
+ *     <enumeration value="Inactive"/>
+ *     <enumeration value="ActiveLimited"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdGroupCriterionEditorialStatus") +@XmlEnum +public enum AdGroupCriterionEditorialStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Disapproved") + DISAPPROVED("Disapproved"), + @XmlEnumValue("Inactive") + INACTIVE("Inactive"), + @XmlEnumValue("ActiveLimited") + ACTIVE_LIMITED("ActiveLimited"); + private final String value; + + AdGroupCriterionEditorialStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdGroupCriterionEditorialStatus fromValue(String v) { + for (AdGroupCriterionEditorialStatus c: AdGroupCriterionEditorialStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionStatus.java new file mode 100644 index 0000000000..3ebff959e4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupCriterionStatus.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupCriterionStatus. + * + *

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

+ *

+ * <simpleType name="AdGroupCriterionStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Paused"/>
+ *     <enumeration value="Deleted"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdGroupCriterionStatus") +@XmlEnum +public enum AdGroupCriterionStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Paused") + PAUSED("Paused"), + @XmlEnumValue("Deleted") + DELETED("Deleted"); + private final String value; + + AdGroupCriterionStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdGroupCriterionStatus fromValue(String v) { + for (AdGroupCriterionStatus c: AdGroupCriterionStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupNegativeSites.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupNegativeSites.java new file mode 100644 index 0000000000..6209c7430d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupNegativeSites.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupNegativeSites complex type. + * + *

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

+ * <complexType name="AdGroupNegativeSites">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="NegativeSites" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdGroupNegativeSites", propOrder = { + "adGroupId", + "negativeSites" +}) +public class AdGroupNegativeSites { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "NegativeSites", nillable = true) + protected ArrayOfstring negativeSites; + + /** + * 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 negativeSites property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getNegativeSites() { + return negativeSites; + } + + /** + * Sets the value of the negativeSites property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setNegativeSites(ArrayOfstring value) { + this.negativeSites = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupStatus.java new file mode 100644 index 0000000000..38b7267816 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdGroupStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdGroupStatus. + * + *

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

+ *

+ * <simpleType name="AdGroupStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Paused"/>
+ *     <enumeration value="Expired"/>
+ *     <enumeration value="Deleted"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdGroupStatus") +@XmlEnum +public enum AdGroupStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Paused") + PAUSED("Paused"), + @XmlEnumValue("Expired") + EXPIRED("Expired"), + @XmlEnumValue("Deleted") + DELETED("Deleted"); + private final String value; + + AdGroupStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdGroupStatus fromValue(String v) { + for (AdGroupStatus c: AdGroupStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotation.java new file mode 100644 index 0000000000..a8edc12a39 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotation.java @@ -0,0 +1,126 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Calendar; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for AdRotation complex type. + * + *

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

+ * <complexType name="AdRotation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EndDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="StartDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="Type" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdRotationType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AdRotation", propOrder = { + "endDate", + "startDate", + "type" +}) +public class AdRotation { + + @XmlElement(name = "EndDate", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar endDate; + @XmlElement(name = "StartDate", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar startDate; + @XmlElement(name = "Type", nillable = true) + @XmlSchemaType(name = "string") + protected AdRotationType type; + + /** + * 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 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; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link AdRotationType } + * + */ + public AdRotationType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link AdRotationType } + * + */ + public void setType(AdRotationType value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotationType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotationType.java new file mode 100644 index 0000000000..ac8e374800 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdRotationType.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdRotationType. + * + *

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

+ *

+ * <simpleType name="AdRotationType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="OptimizeForClicks"/>
+ *     <enumeration value="RotateAdsEvenly"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdRotationType") +@XmlEnum +public enum AdRotationType { + + @XmlEnumValue("OptimizeForClicks") + OPTIMIZE_FOR_CLICKS("OptimizeForClicks"), + @XmlEnumValue("RotateAdsEvenly") + ROTATE_ADS_EVENLY("RotateAdsEvenly"); + private final String value; + + AdRotationType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdRotationType fromValue(String v) { + for (AdRotationType c: AdRotationType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdStatus.java new file mode 100644 index 0000000000..bac0c5b97f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdStatus. + * + *

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

+ *

+ * <simpleType name="AdStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Inactive"/>
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Paused"/>
+ *     <enumeration value="Deleted"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdStatus") +@XmlEnum +public enum AdStatus { + + @XmlEnumValue("Inactive") + INACTIVE("Inactive"), + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Paused") + PAUSED("Paused"), + @XmlEnumValue("Deleted") + DELETED("Deleted"); + private final String value; + + AdStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdStatus fromValue(String v) { + for (AdStatus c: AdStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java new file mode 100644 index 0000000000..02d45edeea --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AdType. + * + *

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

+ *

+ * <simpleType name="AdType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Text"/>
+ *     <enumeration value="Image"/>
+ *     <enumeration value="RichSearch"/>
+ *     <enumeration value="Product"/>
+ *     <enumeration value="AppInstall"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AdType") +@XmlEnum +public enum AdType { + + @XmlEnumValue("Text") + TEXT("Text"), + @XmlEnumValue("Image") + IMAGE("Image"), + @XmlEnumValue("RichSearch") + RICH_SEARCH("RichSearch"), + @XmlEnumValue("Product") + PRODUCT("Product"), + @XmlEnumValue("AppInstall") + APP_INSTALL("AppInstall"); + private final String value; + + AdType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AdType fromValue(String v) { + for (AdType c: AdType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter1.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter1.java new file mode 100644 index 0000000000..82711f8ca4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter1.java @@ -0,0 +1,23 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Calendar; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter1 + extends XmlAdapter +{ + + + public Calendar unmarshal(String value) { + return (javax.xml.bind.DatatypeConverter.parseDateTime(value)); + } + + public String marshal(Calendar value) { + if (value == null) { + return null; + } + return (javax.xml.bind.DatatypeConverter.printDateTime(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter2.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter2.java new file mode 100644 index 0000000000..f15a911b67 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter2.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter2 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.campaignmanagement.CampaignCriterionTypeConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.campaignmanagement.CampaignCriterionTypeConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter3.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter3.java new file mode 100644 index 0000000000..4645229bbd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter3.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter3 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.campaignmanagement.CampaignTypeConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.campaignmanagement.CampaignTypeConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter4.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter4.java new file mode 100644 index 0000000000..d0da0e6b7d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter4.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter4 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.campaignmanagement.AdExtensionsTypeFilterConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.campaignmanagement.AdExtensionsTypeFilterConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter5.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter5.java new file mode 100644 index 0000000000..96c637d3a6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter5.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter5 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.campaignmanagement.AdDistributionConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.campaignmanagement.AdDistributionConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter6.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter6.java new file mode 100644 index 0000000000..6deffd8c2f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter6.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter6 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.campaignmanagement.MediaEnabledEntityFilterConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.campaignmanagement.MediaEnabledEntityFilterConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter7.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter7.java new file mode 100644 index 0000000000..becf6ec577 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Adapter7.java @@ -0,0 +1,20 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.adapters.XmlAdapter; + +public class Adapter7 + extends XmlAdapter> +{ + + + public Collection unmarshal(String value) { + return (com.microsoft.bingads.v10.campaignmanagement.CriterionTypeConverter.convertToList(value)); + } + + public String marshal(Collection value) { + return (com.microsoft.bingads.v10.campaignmanagement.CriterionTypeConverter.convertToString(value)); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsRequest.java new file mode 100644 index 0000000000..18b372382d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtension" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensions" +}) +@XmlRootElement(name = "AddAdExtensionsRequest") +public class AddAdExtensionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensions", nillable = true) + protected ArrayOfAdExtension adExtensions; + + /** + * 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 adExtensions property. + * + * @return + * possible object is + * {@link ArrayOfAdExtension } + * + */ + public ArrayOfAdExtension getAdExtensions() { + return adExtensions; + } + + /** + * Sets the value of the adExtensions property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtension } + * + */ + public void setAdExtensions(ArrayOfAdExtension value) { + this.adExtensions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsResponse.java new file mode 100644 index 0000000000..a15feab3dc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdExtensionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionIdentities" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionIdentity" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adExtensionIdentities" +}) +@XmlRootElement(name = "AddAdExtensionsResponse") +public class AddAdExtensionsResponse { + + @XmlElement(name = "AdExtensionIdentities", nillable = true) + protected ArrayOfAdExtensionIdentity adExtensionIdentities; + + /** + * Gets the value of the adExtensionIdentities property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionIdentity } + * + */ + public ArrayOfAdExtensionIdentity getAdExtensionIdentities() { + return adExtensionIdentities; + } + + /** + * Sets the value of the adExtensionIdentities property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionIdentity } + * + */ + public void setAdExtensionIdentities(ArrayOfAdExtensionIdentity value) { + this.adExtensionIdentities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsRequest.java new file mode 100644 index 0000000000..de79fccd4e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsRequest.java @@ -0,0 +1,125 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupCriterions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroupCriterion" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adGroupCriterions", + "criterionType" +}) +@XmlRootElement(name = "AddAdGroupCriterionsRequest") +public class AddAdGroupCriterionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdGroupCriterions", nillable = true) + protected ArrayOfAdGroupCriterion adGroupCriterions; + @XmlElement(name = "CriterionType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter7 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * 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 adGroupCriterions property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupCriterion } + * + */ + public ArrayOfAdGroupCriterion getAdGroupCriterions() { + return adGroupCriterions; + } + + /** + * Sets the value of the adGroupCriterions property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupCriterion } + * + */ + public void setAdGroupCriterions(ArrayOfAdGroupCriterion value) { + this.adGroupCriterions = value; + } + + /** + * Gets the value of the criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsResponse.java new file mode 100644 index 0000000000..b2a324f0cf --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupCriterionsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupCriterionIds" type="{http://schemas.datacontract.org/2004/07/System}ArrayOfNullableOflong" minOccurs="0"/>
+ *         <element name="NestedPartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchErrorCollection" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupCriterionIds", + "nestedPartialErrors" +}) +@XmlRootElement(name = "AddAdGroupCriterionsResponse") +public class AddAdGroupCriterionsResponse { + + @XmlElement(name = "AdGroupCriterionIds", nillable = true) + protected ArrayOfNullableOflong adGroupCriterionIds; + @XmlElement(name = "NestedPartialErrors", nillable = true) + protected ArrayOfBatchErrorCollection nestedPartialErrors; + + /** + * Gets the value of the adGroupCriterionIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getAdGroupCriterionIds() { + return adGroupCriterionIds; + } + + /** + * Sets the value of the adGroupCriterionIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setAdGroupCriterionIds(ArrayOfNullableOflong value) { + this.adGroupCriterionIds = value; + } + + /** + * Gets the value of the nestedPartialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public ArrayOfBatchErrorCollection getNestedPartialErrors() { + return nestedPartialErrors; + } + + /** + * Sets the value of the nestedPartialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public void setNestedPartialErrors(ArrayOfBatchErrorCollection value) { + this.nestedPartialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsRequest.java new file mode 100644 index 0000000000..8e58a014ab --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroups" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroup" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId", + "adGroups" +}) +@XmlRootElement(name = "AddAdGroupsRequest") +public class AddAdGroupsRequest { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "AdGroups", nillable = true) + protected ArrayOfAdGroup adGroups; + + /** + * 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 adGroups property. + * + * @return + * possible object is + * {@link ArrayOfAdGroup } + * + */ + public ArrayOfAdGroup getAdGroups() { + return adGroups; + } + + /** + * Sets the value of the adGroups property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroup } + * + */ + public void setAdGroups(ArrayOfAdGroup value) { + this.adGroups = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsResponse.java new file mode 100644 index 0000000000..4f410321ea --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdGroupsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupIds" type="{http://schemas.datacontract.org/2004/07/System}ArrayOfNullableOflong" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupIds", + "partialErrors" +}) +@XmlRootElement(name = "AddAdGroupsResponse") +public class AddAdGroupsResponse { + + @XmlElement(name = "AdGroupIds", nillable = true) + protected ArrayOfNullableOflong adGroupIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the adGroupIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getAdGroupIds() { + return adGroupIds; + } + + /** + * Sets the value of the adGroupIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setAdGroupIds(ArrayOfNullableOflong value) { + this.adGroupIds = 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/v10/campaignmanagement/AddAdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdsRequest.java new file mode 100644 index 0000000000..507bb68115 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Ads" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAd" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "ads" +}) +@XmlRootElement(name = "AddAdsRequest") +public class AddAdsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "Ads", nillable = true) + protected ArrayOfAd ads; + + /** + * 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 ads property. + * + * @return + * possible object is + * {@link ArrayOfAd } + * + */ + public ArrayOfAd getAds() { + return ads; + } + + /** + * Sets the value of the ads property. + * + * @param value + * allowed object is + * {@link ArrayOfAd } + * + */ + public void setAds(ArrayOfAd value) { + this.ads = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdsResponse.java new file mode 100644 index 0000000000..a81b2efa0b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddAdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdIds" type="{http://schemas.datacontract.org/2004/07/System}ArrayOfNullableOflong" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adIds", + "partialErrors" +}) +@XmlRootElement(name = "AddAdsResponse") +public class AddAdsResponse { + + @XmlElement(name = "AdIds", nillable = true) + protected ArrayOfNullableOflong adIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the adIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getAdIds() { + return adIds; + } + + /** + * Sets the value of the adIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setAdIds(ArrayOfNullableOflong value) { + this.adIds = 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/v10/campaignmanagement/AddCampaignCriterionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignCriterionsRequest.java new file mode 100644 index 0000000000..d2ef3b4ce2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignCriterionsRequest.java @@ -0,0 +1,97 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignCriterions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaignCriterion" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignCriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignCriterions", + "criterionType" +}) +@XmlRootElement(name = "AddCampaignCriterionsRequest") +public class AddCampaignCriterionsRequest { + + @XmlElement(name = "CampaignCriterions", nillable = true) + protected ArrayOfCampaignCriterion campaignCriterions; + @XmlElement(name = "CriterionType", type = String.class) + @XmlJavaTypeAdapter(Adapter2 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * Gets the value of the campaignCriterions property. + * + * @return + * possible object is + * {@link ArrayOfCampaignCriterion } + * + */ + public ArrayOfCampaignCriterion getCampaignCriterions() { + return campaignCriterions; + } + + /** + * Sets the value of the campaignCriterions property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignCriterion } + * + */ + public void setCampaignCriterions(ArrayOfCampaignCriterion value) { + this.campaignCriterions = value; + } + + /** + * Gets the value of the criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignCriterionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignCriterionsResponse.java new file mode 100644 index 0000000000..afa6f94737 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignCriterionsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignCriterionIds" type="{http://schemas.datacontract.org/2004/07/System}ArrayOfNullableOflong" minOccurs="0"/>
+ *         <element name="NestedPartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchErrorCollection" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignCriterionIds", + "nestedPartialErrors" +}) +@XmlRootElement(name = "AddCampaignCriterionsResponse") +public class AddCampaignCriterionsResponse { + + @XmlElement(name = "CampaignCriterionIds", nillable = true) + protected ArrayOfNullableOflong campaignCriterionIds; + @XmlElement(name = "NestedPartialErrors", nillable = true) + protected ArrayOfBatchErrorCollection nestedPartialErrors; + + /** + * Gets the value of the campaignCriterionIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getCampaignCriterionIds() { + return campaignCriterionIds; + } + + /** + * Sets the value of the campaignCriterionIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setCampaignCriterionIds(ArrayOfNullableOflong value) { + this.campaignCriterionIds = value; + } + + /** + * Gets the value of the nestedPartialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public ArrayOfBatchErrorCollection getNestedPartialErrors() { + return nestedPartialErrors; + } + + /** + * Sets the value of the nestedPartialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public void setNestedPartialErrors(ArrayOfBatchErrorCollection value) { + this.nestedPartialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsRequest.java new file mode 100644 index 0000000000..64744310e7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Campaigns" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaign" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaigns" +}) +@XmlRootElement(name = "AddCampaignsRequest") +public class AddCampaignsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "Campaigns", nillable = true) + protected ArrayOfCampaign campaigns; + + /** + * 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 campaigns property. + * + * @return + * possible object is + * {@link ArrayOfCampaign } + * + */ + public ArrayOfCampaign getCampaigns() { + return campaigns; + } + + /** + * Sets the value of the campaigns property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaign } + * + */ + public void setCampaigns(ArrayOfCampaign value) { + this.campaigns = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsResponse.java new file mode 100644 index 0000000000..f3ee75ad3b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddCampaignsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignIds" type="{http://schemas.datacontract.org/2004/07/System}ArrayOfNullableOflong" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignIds", + "partialErrors" +}) +@XmlRootElement(name = "AddCampaignsResponse") +public class AddCampaignsResponse { + + @XmlElement(name = "CampaignIds", nillable = true) + protected ArrayOfNullableOflong campaignIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the campaignIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getCampaignIds() { + return campaignIds; + } + + /** + * Sets the value of the campaignIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setCampaignIds(ArrayOfNullableOflong value) { + this.campaignIds = 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/v10/campaignmanagement/AddKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddKeywordsRequest.java new file mode 100644 index 0000000000..7e2586e917 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddKeywordsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Keywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfKeyword" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "keywords" +}) +@XmlRootElement(name = "AddKeywordsRequest") +public class AddKeywordsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "Keywords", nillable = true) + protected ArrayOfKeyword keywords; + + /** + * 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 keywords property. + * + * @return + * possible object is + * {@link ArrayOfKeyword } + * + */ + public ArrayOfKeyword getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyword } + * + */ + public void setKeywords(ArrayOfKeyword value) { + this.keywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddKeywordsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddKeywordsResponse.java new file mode 100644 index 0000000000..af5a123bc3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddKeywordsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeywordIds" type="{http://schemas.datacontract.org/2004/07/System}ArrayOfNullableOflong" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywordIds", + "partialErrors" +}) +@XmlRootElement(name = "AddKeywordsResponse") +public class AddKeywordsResponse { + + @XmlElement(name = "KeywordIds", nillable = true) + protected ArrayOfNullableOflong keywordIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the keywordIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getKeywordIds() { + return keywordIds; + } + + /** + * Sets the value of the keywordIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setKeywordIds(ArrayOfNullableOflong value) { + this.keywordIds = 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/v10/campaignmanagement/AddListItemsToSharedListRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddListItemsToSharedListRequest.java new file mode 100644 index 0000000000..4a3ccc9468 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddListItemsToSharedListRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ListItems" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedListItem" minOccurs="0"/>
+ *         <element name="SharedList" type="{https://bingads.microsoft.com/CampaignManagement/v10}SharedList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "listItems", + "sharedList" +}) +@XmlRootElement(name = "AddListItemsToSharedListRequest") +public class AddListItemsToSharedListRequest { + + @XmlElement(name = "ListItems", nillable = true) + protected ArrayOfSharedListItem listItems; + @XmlElement(name = "SharedList", nillable = true) + protected SharedList sharedList; + + /** + * Gets the value of the listItems property. + * + * @return + * possible object is + * {@link ArrayOfSharedListItem } + * + */ + public ArrayOfSharedListItem getListItems() { + return listItems; + } + + /** + * Sets the value of the listItems property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedListItem } + * + */ + public void setListItems(ArrayOfSharedListItem value) { + this.listItems = value; + } + + /** + * Gets the value of the sharedList property. + * + * @return + * possible object is + * {@link SharedList } + * + */ + public SharedList getSharedList() { + return sharedList; + } + + /** + * Sets the value of the sharedList property. + * + * @param value + * allowed object is + * {@link SharedList } + * + */ + public void setSharedList(SharedList value) { + this.sharedList = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddListItemsToSharedListResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddListItemsToSharedListResponse.java new file mode 100644 index 0000000000..17645c0c77 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddListItemsToSharedListResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ListItemIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "listItemIds", + "partialErrors" +}) +@XmlRootElement(name = "AddListItemsToSharedListResponse") +public class AddListItemsToSharedListResponse { + + @XmlElement(name = "ListItemIds", nillable = true) + protected ArrayOflong listItemIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the listItemIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getListItemIds() { + return listItemIds; + } + + /** + * Sets the value of the listItemIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setListItemIds(ArrayOflong value) { + this.listItemIds = 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/v10/campaignmanagement/AddMediaRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddMediaRequest.java new file mode 100644 index 0000000000..2f1835a4de --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddMediaRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Media" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMedia" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "media" +}) +@XmlRootElement(name = "AddMediaRequest") +public class AddMediaRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "Media", nillable = true) + protected ArrayOfMedia media; + + /** + * 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 media property. + * + * @return + * possible object is + * {@link ArrayOfMedia } + * + */ + public ArrayOfMedia getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link ArrayOfMedia } + * + */ + public void setMedia(ArrayOfMedia value) { + this.media = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddMediaResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddMediaResponse.java new file mode 100644 index 0000000000..d39642aa54 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddMediaResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaIds" +}) +@XmlRootElement(name = "AddMediaResponse") +public class AddMediaResponse { + + @XmlElement(name = "MediaIds", nillable = true) + protected ArrayOflong mediaIds; + + /** + * Gets the value of the mediaIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getMediaIds() { + return mediaIds; + } + + /** + * Sets the value of the mediaIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setMediaIds(ArrayOflong value) { + this.mediaIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesRequest.java new file mode 100644 index 0000000000..a1919d0dbb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityNegativeKeywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfEntityNegativeKeyword" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entityNegativeKeywords" +}) +@XmlRootElement(name = "AddNegativeKeywordsToEntitiesRequest") +public class AddNegativeKeywordsToEntitiesRequest { + + @XmlElement(name = "EntityNegativeKeywords", nillable = true) + protected ArrayOfEntityNegativeKeyword entityNegativeKeywords; + + /** + * Gets the value of the entityNegativeKeywords property. + * + * @return + * possible object is + * {@link ArrayOfEntityNegativeKeyword } + * + */ + public ArrayOfEntityNegativeKeyword getEntityNegativeKeywords() { + return entityNegativeKeywords; + } + + /** + * Sets the value of the entityNegativeKeywords property. + * + * @param value + * allowed object is + * {@link ArrayOfEntityNegativeKeyword } + * + */ + public void setEntityNegativeKeywords(ArrayOfEntityNegativeKeyword value) { + this.entityNegativeKeywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesResponse.java new file mode 100644 index 0000000000..0399533b0f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddNegativeKeywordsToEntitiesResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="NegativeKeywordIds" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfIdCollection" minOccurs="0"/>
+ *         <element name="NestedPartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchErrorCollection" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "negativeKeywordIds", + "nestedPartialErrors" +}) +@XmlRootElement(name = "AddNegativeKeywordsToEntitiesResponse") +public class AddNegativeKeywordsToEntitiesResponse { + + @XmlElement(name = "NegativeKeywordIds", nillable = true) + protected ArrayOfIdCollection negativeKeywordIds; + @XmlElement(name = "NestedPartialErrors", nillable = true) + protected ArrayOfBatchErrorCollection nestedPartialErrors; + + /** + * Gets the value of the negativeKeywordIds property. + * + * @return + * possible object is + * {@link ArrayOfIdCollection } + * + */ + public ArrayOfIdCollection getNegativeKeywordIds() { + return negativeKeywordIds; + } + + /** + * Sets the value of the negativeKeywordIds property. + * + * @param value + * allowed object is + * {@link ArrayOfIdCollection } + * + */ + public void setNegativeKeywordIds(ArrayOfIdCollection value) { + this.negativeKeywordIds = value; + } + + /** + * Gets the value of the nestedPartialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public ArrayOfBatchErrorCollection getNestedPartialErrors() { + return nestedPartialErrors; + } + + /** + * Sets the value of the nestedPartialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public void setNestedPartialErrors(ArrayOfBatchErrorCollection value) { + this.nestedPartialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityRequest.java new file mode 100644 index 0000000000..05c2bbb814 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedEntity" type="{https://bingads.microsoft.com/CampaignManagement/v10}SharedEntity" minOccurs="0"/>
+ *         <element name="ListItems" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedListItem" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sharedEntity", + "listItems" +}) +@XmlRootElement(name = "AddSharedEntityRequest") +public class AddSharedEntityRequest { + + @XmlElement(name = "SharedEntity", nillable = true) + protected SharedEntity sharedEntity; + @XmlElement(name = "ListItems", nillable = true) + protected ArrayOfSharedListItem listItems; + + /** + * Gets the value of the sharedEntity property. + * + * @return + * possible object is + * {@link SharedEntity } + * + */ + public SharedEntity getSharedEntity() { + return sharedEntity; + } + + /** + * Sets the value of the sharedEntity property. + * + * @param value + * allowed object is + * {@link SharedEntity } + * + */ + public void setSharedEntity(SharedEntity value) { + this.sharedEntity = value; + } + + /** + * Gets the value of the listItems property. + * + * @return + * possible object is + * {@link ArrayOfSharedListItem } + * + */ + public ArrayOfSharedListItem getListItems() { + return listItems; + } + + /** + * Sets the value of the listItems property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedListItem } + * + */ + public void setListItems(ArrayOfSharedListItem value) { + this.listItems = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityResponse.java new file mode 100644 index 0000000000..d65c74d673 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSharedEntityResponse.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ListItemIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="SharedEntityId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "listItemIds", + "partialErrors", + "sharedEntityId" +}) +@XmlRootElement(name = "AddSharedEntityResponse") +public class AddSharedEntityResponse { + + @XmlElement(name = "ListItemIds", nillable = true) + protected ArrayOflong listItemIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + @XmlElement(name = "SharedEntityId") + protected Long sharedEntityId; + + /** + * Gets the value of the listItemIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getListItemIds() { + return listItemIds; + } + + /** + * Sets the value of the listItemIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setListItemIds(ArrayOflong value) { + this.listItemIds = 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; + } + + /** + * Gets the value of the sharedEntityId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSharedEntityId() { + return sharedEntityId; + } + + /** + * Sets the value of the sharedEntityId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSharedEntityId(Long value) { + this.sharedEntityId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsRequest.java new file mode 100644 index 0000000000..d284dd4836 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SitePlacements" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSitePlacement" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "sitePlacements" +}) +@XmlRootElement(name = "AddSitePlacementsRequest") +public class AddSitePlacementsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "SitePlacements", nillable = true) + protected ArrayOfSitePlacement sitePlacements; + + /** + * 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 sitePlacements property. + * + * @return + * possible object is + * {@link ArrayOfSitePlacement } + * + */ + public ArrayOfSitePlacement getSitePlacements() { + return sitePlacements; + } + + /** + * Sets the value of the sitePlacements property. + * + * @param value + * allowed object is + * {@link ArrayOfSitePlacement } + * + */ + public void setSitePlacements(ArrayOfSitePlacement value) { + this.sitePlacements = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsResponse.java new file mode 100644 index 0000000000..5065e6a341 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddSitePlacementsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SitePlacementIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sitePlacementIds" +}) +@XmlRootElement(name = "AddSitePlacementsResponse") +public class AddSitePlacementsResponse { + + @XmlElement(name = "SitePlacementIds", nillable = true) + protected ArrayOflong sitePlacementIds; + + /** + * Gets the value of the sitePlacementIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getSitePlacementIds() { + return sitePlacementIds; + } + + /** + * Sets the value of the sitePlacementIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setSitePlacementIds(ArrayOflong value) { + this.sitePlacementIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryRequest.java new file mode 100644 index 0000000000..fd5aac3162 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Targets" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfTarget" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "targets" +}) +@XmlRootElement(name = "AddTargetsToLibraryRequest") +public class AddTargetsToLibraryRequest { + + @XmlElement(name = "Targets", nillable = true) + protected ArrayOfTarget targets; + + /** + * Gets the value of the targets property. + * + * @return + * possible object is + * {@link ArrayOfTarget } + * + */ + public ArrayOfTarget getTargets() { + return targets; + } + + /** + * Sets the value of the targets property. + * + * @param value + * allowed object is + * {@link ArrayOfTarget } + * + */ + public void setTargets(ArrayOfTarget value) { + this.targets = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryResponse.java new file mode 100644 index 0000000000..38217a9b4c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AddTargetsToLibraryResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TargetIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "targetIds" +}) +@XmlRootElement(name = "AddTargetsToLibraryResponse") +public class AddTargetsToLibraryResponse { + + @XmlElement(name = "TargetIds", nillable = true) + protected ArrayOflong targetIds; + + /** + * Gets the value of the targetIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getTargetIds() { + return targetIds; + } + + /** + * Sets the value of the targetIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setTargetIds(ArrayOflong value) { + this.targetIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Address.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Address.java new file mode 100644 index 0000000000..7836a29225 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Address.java @@ -0,0 +1,230 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Address complex type. + * + *

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

+ * <complexType name="Address">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CityName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="CountryCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="PostalCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="ProvinceCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ProvinceName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="StreetAddress" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="StreetAddress2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Address", propOrder = { + "cityName", + "countryCode", + "postalCode", + "provinceCode", + "provinceName", + "streetAddress", + "streetAddress2" +}) +public class Address { + + @XmlElement(name = "CityName", required = true, nillable = true) + protected String cityName; + @XmlElement(name = "CountryCode", required = true, nillable = true) + protected String countryCode; + @XmlElement(name = "PostalCode", required = true, nillable = true) + protected String postalCode; + @XmlElement(name = "ProvinceCode", nillable = true) + protected String provinceCode; + @XmlElement(name = "ProvinceName", nillable = true) + protected String provinceName; + @XmlElement(name = "StreetAddress", required = true, nillable = true) + protected String streetAddress; + @XmlElement(name = "StreetAddress2", nillable = true) + protected String streetAddress2; + + /** + * Gets the value of the cityName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCityName() { + return cityName; + } + + /** + * Sets the value of the cityName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCityName(String value) { + this.cityName = value; + } + + /** + * Gets the value of the countryCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCountryCode() { + return countryCode; + } + + /** + * Sets the value of the countryCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCountryCode(String value) { + this.countryCode = value; + } + + /** + * Gets the value of the postalCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPostalCode() { + return postalCode; + } + + /** + * Sets the value of the postalCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPostalCode(String value) { + this.postalCode = value; + } + + /** + * Gets the value of the provinceCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProvinceCode() { + return provinceCode; + } + + /** + * Sets the value of the provinceCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProvinceCode(String value) { + this.provinceCode = value; + } + + /** + * Gets the value of the provinceName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProvinceName() { + return provinceName; + } + + /** + * Sets the value of the provinceName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProvinceName(String value) { + this.provinceName = value; + } + + /** + * Gets the value of the streetAddress property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStreetAddress() { + return streetAddress; + } + + /** + * Sets the value of the streetAddress property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStreetAddress(String value) { + this.streetAddress = value; + } + + /** + * Gets the value of the streetAddress2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStreetAddress2() { + return streetAddress2; + } + + /** + * Sets the value of the streetAddress2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStreetAddress2(String value) { + this.streetAddress2 = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeRange.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeRange.java new file mode 100644 index 0000000000..c235eed50c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeRange.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AgeRange. + * + *

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

+ *

+ * <simpleType name="AgeRange">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="EighteenToTwentyFive"/>
+ *     <enumeration value="TwentyFiveToThirtyFive"/>
+ *     <enumeration value="ThirtyFiveToFifty"/>
+ *     <enumeration value="FiftyToSixtyFive"/>
+ *     <enumeration value="SixtyFiveAndAbove"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AgeRange") +@XmlEnum +public enum AgeRange { + + @XmlEnumValue("EighteenToTwentyFive") + EIGHTEEN_TO_TWENTY_FIVE("EighteenToTwentyFive"), + @XmlEnumValue("TwentyFiveToThirtyFive") + TWENTY_FIVE_TO_THIRTY_FIVE("TwentyFiveToThirtyFive"), + @XmlEnumValue("ThirtyFiveToFifty") + THIRTY_FIVE_TO_FIFTY("ThirtyFiveToFifty"), + @XmlEnumValue("FiftyToSixtyFive") + FIFTY_TO_SIXTY_FIVE("FiftyToSixtyFive"), + @XmlEnumValue("SixtyFiveAndAbove") + SIXTY_FIVE_AND_ABOVE("SixtyFiveAndAbove"); + private final String value; + + AgeRange(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AgeRange fromValue(String v) { + for (AgeRange c: AgeRange.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTarget.java new file mode 100644 index 0000000000..00b2d23654 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AgeTarget complex type. + * + *

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

+ * <complexType name="AgeTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAgeTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AgeTarget", propOrder = { + "bids" +}) +public class AgeTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfAgeTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfAgeTargetBid } + * + */ + public ArrayOfAgeTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfAgeTargetBid } + * + */ + public void setBids(ArrayOfAgeTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTargetBid.java new file mode 100644 index 0000000000..d2dd45f1cb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AgeTargetBid.java @@ -0,0 +1,84 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AgeTargetBid complex type. + * + *

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

+ * <complexType name="AgeTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Age" type="{https://bingads.microsoft.com/CampaignManagement/v10}AgeRange"/>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AgeTargetBid", propOrder = { + "age", + "bidAdjustment" +}) +public class AgeTargetBid { + + @XmlElement(name = "Age", required = true) + @XmlSchemaType(name = "string") + protected AgeRange age; + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + + /** + * Gets the value of the age property. + * + * @return + * possible object is + * {@link AgeRange } + * + */ + public AgeRange getAge() { + return age; + } + + /** + * Sets the value of the age property. + * + * @param value + * allowed object is + * {@link AgeRange } + * + */ + public void setAge(AgeRange value) { + this.age = value; + } + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail.java new file mode 100644 index 0000000000..2b08018f83 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ApiFaultDetail complex type. + * + *

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

+ * <complexType name="ApiFaultDetail">
+ *   <complexContent>
+ *     <extension base="{https://adapi.microsoft.com}ApplicationFault">
+ *       <sequence>
+ *         <element name="BatchErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="OperationErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfOperationError" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ApiFaultDetail", propOrder = { + "batchErrors", + "operationErrors" +}) +public class ApiFaultDetail + extends ApplicationFault +{ + + @XmlElement(name = "BatchErrors", nillable = true) + protected ArrayOfBatchError batchErrors; + @XmlElement(name = "OperationErrors", nillable = true) + protected ArrayOfOperationError operationErrors; + + /** + * Gets the value of the batchErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getBatchErrors() { + return batchErrors; + } + + /** + * Sets the value of the batchErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setBatchErrors(ArrayOfBatchError value) { + this.batchErrors = value; + } + + /** + * Gets the value of the operationErrors property. + * + * @return + * possible object is + * {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError getOperationErrors() { + return operationErrors; + } + + /** + * Sets the value of the operationErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfOperationError } + * + */ + public void setOperationErrors(ArrayOfOperationError value) { + this.operationErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail_Exception.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail_Exception.java new file mode 100644 index 0000000000..c03f435dff --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApiFaultDetail_Exception.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebFault(name = "ApiFaultDetail", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10") +public class ApiFaultDetail_Exception + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private ApiFaultDetail faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public ApiFaultDetail_Exception(String message, ApiFaultDetail faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public ApiFaultDetail_Exception(String message, ApiFaultDetail faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: com.microsoft.bingads.v10.campaignmanagement.ApiFaultDetail + */ + public ApiFaultDetail getFaultInfo() { + return faultInfo; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AppAdExtension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppAdExtension.java new file mode 100644 index 0000000000..9e99626b97 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppAdExtension.java @@ -0,0 +1,316 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AppAdExtension complex type. + * + *

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

+ * <complexType name="AppAdExtension">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtension">
+ *       <sequence>
+ *         <element name="AppPlatform" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="AppStoreId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="DestinationUrl" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="DevicePreference" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="DisplayText" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="FinalAppUrls" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfAppUrl" minOccurs="0"/>
+ *         <element name="FinalMobileUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="FinalUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AppAdExtension", propOrder = { + "appPlatform", + "appStoreId", + "destinationUrl", + "devicePreference", + "displayText", + "finalAppUrls", + "finalMobileUrls", + "finalUrls", + "trackingUrlTemplate", + "urlCustomParameters" +}) +public class AppAdExtension + extends AdExtension +{ + + @XmlElement(name = "AppPlatform", required = true, nillable = true) + protected String appPlatform; + @XmlElement(name = "AppStoreId", required = true, nillable = true) + protected String appStoreId; + @XmlElement(name = "DestinationUrl", required = true, nillable = true) + protected String destinationUrl; + @XmlElement(name = "DevicePreference", nillable = true) + protected Long devicePreference; + @XmlElement(name = "DisplayText", required = true, nillable = true) + protected String displayText; + @XmlElement(name = "FinalAppUrls", nillable = true) + protected ArrayOfAppUrl finalAppUrls; + @XmlElement(name = "FinalMobileUrls", nillable = true) + protected ArrayOfstring finalMobileUrls; + @XmlElement(name = "FinalUrls", nillable = true) + protected ArrayOfstring finalUrls; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + + /** + * Gets the value of the appPlatform property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAppPlatform() { + return appPlatform; + } + + /** + * Sets the value of the appPlatform property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAppPlatform(String value) { + this.appPlatform = value; + } + + /** + * Gets the value of the appStoreId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAppStoreId() { + return appStoreId; + } + + /** + * Sets the value of the appStoreId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAppStoreId(String value) { + this.appStoreId = value; + } + + /** + * Gets the value of the destinationUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationUrl() { + return destinationUrl; + } + + /** + * Sets the value of the destinationUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationUrl(String value) { + this.destinationUrl = value; + } + + /** + * Gets the value of the devicePreference property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDevicePreference() { + return devicePreference; + } + + /** + * Sets the value of the devicePreference property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDevicePreference(Long value) { + this.devicePreference = value; + } + + /** + * Gets the value of the displayText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayText() { + return displayText; + } + + /** + * Sets the value of the displayText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayText(String value) { + this.displayText = value; + } + + /** + * Gets the value of the finalAppUrls property. + * + * @return + * possible object is + * {@link ArrayOfAppUrl } + * + */ + public ArrayOfAppUrl getFinalAppUrls() { + return finalAppUrls; + } + + /** + * Sets the value of the finalAppUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfAppUrl } + * + */ + public void setFinalAppUrls(ArrayOfAppUrl value) { + this.finalAppUrls = value; + } + + /** + * Gets the value of the finalMobileUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalMobileUrls() { + return finalMobileUrls; + } + + /** + * Sets the value of the finalMobileUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalMobileUrls(ArrayOfstring value) { + this.finalMobileUrls = value; + } + + /** + * Gets the value of the finalUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalUrls() { + return finalUrls; + } + + /** + * Sets the value of the finalUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalUrls(ArrayOfstring value) { + this.finalUrls = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AppUrl.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppUrl.java new file mode 100644 index 0000000000..3d6cde4950 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppUrl.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AppUrl complex type. + * + *

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

+ * <complexType name="AppUrl">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="OsType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AppUrl", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", propOrder = { + "osType", + "url" +}) +public class AppUrl { + + @XmlElement(name = "OsType", nillable = true) + protected String osType; + @XmlElement(name = "Url", nillable = true) + protected String url; + + /** + * Gets the value of the osType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOsType() { + return osType; + } + + /** + * Sets the value of the osType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOsType(String value) { + this.osType = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsRequest.java new file mode 100644 index 0000000000..3b026f92a3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsRequest.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityIdToParentIdAssociations" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfEntityIdToParentIdAssociation" minOccurs="0"/>
+ *         <element name="EntityType" type="{https://bingads.microsoft.com/CampaignManagement/v10}EntityType" minOccurs="0"/>
+ *         <element name="JustificationText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entityIdToParentIdAssociations", + "entityType", + "justificationText" +}) +@XmlRootElement(name = "AppealEditorialRejectionsRequest") +public class AppealEditorialRejectionsRequest { + + @XmlElement(name = "EntityIdToParentIdAssociations", nillable = true) + protected ArrayOfEntityIdToParentIdAssociation entityIdToParentIdAssociations; + @XmlElement(name = "EntityType") + @XmlSchemaType(name = "string") + protected EntityType entityType; + @XmlElement(name = "JustificationText", nillable = true) + protected String justificationText; + + /** + * Gets the value of the entityIdToParentIdAssociations property. + * + * @return + * possible object is + * {@link ArrayOfEntityIdToParentIdAssociation } + * + */ + public ArrayOfEntityIdToParentIdAssociation getEntityIdToParentIdAssociations() { + return entityIdToParentIdAssociations; + } + + /** + * Sets the value of the entityIdToParentIdAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfEntityIdToParentIdAssociation } + * + */ + public void setEntityIdToParentIdAssociations(ArrayOfEntityIdToParentIdAssociation value) { + this.entityIdToParentIdAssociations = value; + } + + /** + * Gets the value of the entityType property. + * + * @return + * possible object is + * {@link EntityType } + * + */ + public EntityType getEntityType() { + return entityType; + } + + /** + * Sets the value of the entityType property. + * + * @param value + * allowed object is + * {@link EntityType } + * + */ + public void setEntityType(EntityType value) { + this.entityType = value; + } + + /** + * Gets the value of the justificationText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getJustificationText() { + return justificationText; + } + + /** + * Sets the value of the justificationText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setJustificationText(String value) { + this.justificationText = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsResponse.java new file mode 100644 index 0000000000..479b1895b4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealEditorialRejectionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "AppealEditorialRejectionsResponse") +public class AppealEditorialRejectionsResponse { + + @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/v10/campaignmanagement/AppealStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealStatus.java new file mode 100644 index 0000000000..9663bb31a2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AppealStatus.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AppealStatus. + * + *

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

+ *

+ * <simpleType name="AppealStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Appealable"/>
+ *     <enumeration value="AppealPending"/>
+ *     <enumeration value="NotAppealable"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AppealStatus") +@XmlEnum +public enum AppealStatus { + + @XmlEnumValue("Appealable") + APPEALABLE("Appealable"), + @XmlEnumValue("AppealPending") + APPEAL_PENDING("AppealPending"), + @XmlEnumValue("NotAppealable") + NOT_APPEALABLE("NotAppealable"); + private final String value; + + AppealStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AppealStatus fromValue(String v) { + for (AppealStatus c: AppealStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplicationFault.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplicationFault.java new file mode 100644 index 0000000000..31b8b9a20f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplicationFault.java @@ -0,0 +1,68 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ApplicationFault complex type. + * + *

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

+ * <complexType name="ApplicationFault">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TrackingId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ApplicationFault", namespace = "https://adapi.microsoft.com", propOrder = { + "trackingId" +}) +@XmlSeeAlso({ + EditorialApiFaultDetail.class, + ApiFaultDetail.class, + AdApiFaultDetail.class +}) +public class ApplicationFault { + + @XmlElement(name = "TrackingId", nillable = true) + protected String trackingId; + + /** + * Gets the value of the trackingId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingId() { + return trackingId; + } + + /** + * Sets the value of the trackingId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingId(String value) { + this.trackingId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsRequest.java new file mode 100644 index 0000000000..90216dd1b5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CriterionActions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroupCriterionAction" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "criterionActions" +}) +@XmlRootElement(name = "ApplyProductPartitionActionsRequest") +public class ApplyProductPartitionActionsRequest { + + @XmlElement(name = "CriterionActions", nillable = true) + protected ArrayOfAdGroupCriterionAction criterionActions; + + /** + * Gets the value of the criterionActions property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupCriterionAction } + * + */ + public ArrayOfAdGroupCriterionAction getCriterionActions() { + return criterionActions; + } + + /** + * Sets the value of the criterionActions property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupCriterionAction } + * + */ + public void setCriterionActions(ArrayOfAdGroupCriterionAction value) { + this.criterionActions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsResponse.java new file mode 100644 index 0000000000..92d55dc467 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ApplyProductPartitionActionsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupCriterionIds" type="{http://schemas.datacontract.org/2004/07/System}ArrayOfNullableOflong" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupCriterionIds", + "partialErrors" +}) +@XmlRootElement(name = "ApplyProductPartitionActionsResponse") +public class ApplyProductPartitionActionsResponse { + + @XmlElement(name = "AdGroupCriterionIds", nillable = true) + protected ArrayOfNullableOflong adGroupCriterionIds; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the adGroupCriterionIds property. + * + * @return + * possible object is + * {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong getAdGroupCriterionIds() { + return adGroupCriterionIds; + } + + /** + * Sets the value of the adGroupCriterionIds property. + * + * @param value + * allowed object is + * {@link ArrayOfNullableOflong } + * + */ + public void setAdGroupCriterionIds(ArrayOfNullableOflong value) { + this.adGroupCriterionIds = 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/v10/campaignmanagement/ArrayOfAccountMigrationStatusesInfo.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAccountMigrationStatusesInfo.java new file mode 100644 index 0000000000..1d5348dff3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAccountMigrationStatusesInfo.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAccountMigrationStatusesInfo complex type. + * + *

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

+ * <complexType name="ArrayOfAccountMigrationStatusesInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountMigrationStatusesInfo" type="{https://bingads.microsoft.com/CampaignManagement/v10}AccountMigrationStatusesInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAccountMigrationStatusesInfo", propOrder = { + "accountMigrationStatusesInfos" +}) +public class ArrayOfAccountMigrationStatusesInfo { + + @XmlElement(name = "AccountMigrationStatusesInfo", nillable = true) + protected List accountMigrationStatusesInfos; + + /** + * Gets the value of the accountMigrationStatusesInfos 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 JAXB object. + * This is why there is not a set method for the accountMigrationStatusesInfos property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AccountMigrationStatusesInfo } + * + * + */ + public List getAccountMigrationStatusesInfos() { + if (accountMigrationStatusesInfos == null) { + accountMigrationStatusesInfos = new ArrayList(); + } + return this.accountMigrationStatusesInfos; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAd.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAd.java new file mode 100644 index 0000000000..226441c541 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAd.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAd complex type. + * + *

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

+ * <complexType name="ArrayOfAd">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Ad" type="{https://bingads.microsoft.com/CampaignManagement/v10}Ad" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAd", propOrder = { + "ads" +}) +public class ArrayOfAd { + + @XmlElement(name = "Ad", nillable = true) + protected List ads; + + /** + * Gets the value of the ads 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 JAXB object. + * This is why there is not a set method for the ads property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Ad } + * + * + */ + public List getAds() { + if (ads == null) { + ads = new ArrayList(); + } + return this.ads; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdApiError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdApiError.java new file mode 100644 index 0000000000..6a060b86ac --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdApiError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdApiError complex type. + * + *

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

+ * <complexType name="ArrayOfAdApiError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdApiError" type="{https://adapi.microsoft.com}AdApiError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdApiError", namespace = "https://adapi.microsoft.com", propOrder = { + "adApiErrors" +}) +public class ArrayOfAdApiError { + + @XmlElement(name = "AdApiError", nillable = true) + protected List adApiErrors; + + /** + * Gets the value of the adApiErrors 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 JAXB object. + * This is why there is not a set method for the adApiErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdApiError } + * + * + */ + public List getAdApiErrors() { + if (adApiErrors == null) { + adApiErrors = new ArrayList(); + } + return this.adApiErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtension.java new file mode 100644 index 0000000000..ec7786fbf0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtension.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdExtension complex type. + * + *

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

+ * <complexType name="ArrayOfAdExtension">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtension" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtension" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdExtension", propOrder = { + "adExtensions" +}) +public class ArrayOfAdExtension { + + @XmlElement(name = "AdExtension", nillable = true) + protected List adExtensions; + + /** + * Gets the value of the adExtensions 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 JAXB object. + * This is why there is not a set method for the adExtensions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdExtension } + * + * + */ + public List getAdExtensions() { + if (adExtensions == null) { + adExtensions = new ArrayList(); + } + return this.adExtensions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociation.java new file mode 100644 index 0000000000..a3427b9df7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdExtensionAssociation complex type. + * + *

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

+ * <complexType name="ArrayOfAdExtensionAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionAssociation" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionAssociation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdExtensionAssociation", propOrder = { + "adExtensionAssociations" +}) +public class ArrayOfAdExtensionAssociation { + + @XmlElement(name = "AdExtensionAssociation", nillable = true) + protected List adExtensionAssociations; + + /** + * Gets the value of the adExtensionAssociations 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 JAXB object. + * This is why there is not a set method for the adExtensionAssociations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdExtensionAssociation } + * + * + */ + public List getAdExtensionAssociations() { + if (adExtensionAssociations == null) { + adExtensionAssociations = new ArrayList(); + } + return this.adExtensionAssociations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociationCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociationCollection.java new file mode 100644 index 0000000000..4f2821052d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionAssociationCollection.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdExtensionAssociationCollection complex type. + * + *

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

+ * <complexType name="ArrayOfAdExtensionAssociationCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionAssociationCollection" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionAssociationCollection" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdExtensionAssociationCollection", propOrder = { + "adExtensionAssociationCollections" +}) +public class ArrayOfAdExtensionAssociationCollection { + + @XmlElement(name = "AdExtensionAssociationCollection", nillable = true) + protected List adExtensionAssociationCollections; + + /** + * Gets the value of the adExtensionAssociationCollections 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 JAXB object. + * This is why there is not a set method for the adExtensionAssociationCollections property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdExtensionAssociationCollection } + * + * + */ + public List getAdExtensionAssociationCollections() { + if (adExtensionAssociationCollections == null) { + adExtensionAssociationCollections = new ArrayList(); + } + return this.adExtensionAssociationCollections; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReason.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReason.java new file mode 100644 index 0000000000..049dcc9b15 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReason.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdExtensionEditorialReason complex type. + * + *

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

+ * <complexType name="ArrayOfAdExtensionEditorialReason">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionEditorialReason" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionEditorialReason" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdExtensionEditorialReason", propOrder = { + "adExtensionEditorialReasons" +}) +public class ArrayOfAdExtensionEditorialReason { + + @XmlElement(name = "AdExtensionEditorialReason", nillable = true) + protected List adExtensionEditorialReasons; + + /** + * Gets the value of the adExtensionEditorialReasons 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 JAXB object. + * This is why there is not a set method for the adExtensionEditorialReasons property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdExtensionEditorialReason } + * + * + */ + public List getAdExtensionEditorialReasons() { + if (adExtensionEditorialReasons == null) { + adExtensionEditorialReasons = new ArrayList(); + } + return this.adExtensionEditorialReasons; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReasonCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReasonCollection.java new file mode 100644 index 0000000000..c9ab9ae0d3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionEditorialReasonCollection.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdExtensionEditorialReasonCollection complex type. + * + *

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

+ * <complexType name="ArrayOfAdExtensionEditorialReasonCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionEditorialReasonCollection" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionEditorialReasonCollection" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdExtensionEditorialReasonCollection", propOrder = { + "adExtensionEditorialReasonCollections" +}) +public class ArrayOfAdExtensionEditorialReasonCollection { + + @XmlElement(name = "AdExtensionEditorialReasonCollection", nillable = true) + protected List adExtensionEditorialReasonCollections; + + /** + * Gets the value of the adExtensionEditorialReasonCollections 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 JAXB object. + * This is why there is not a set method for the adExtensionEditorialReasonCollections property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdExtensionEditorialReasonCollection } + * + * + */ + public List getAdExtensionEditorialReasonCollections() { + if (adExtensionEditorialReasonCollections == null) { + adExtensionEditorialReasonCollections = new ArrayList(); + } + return this.adExtensionEditorialReasonCollections; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdToEntityIdAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdToEntityIdAssociation.java new file mode 100644 index 0000000000..968a76e960 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdToEntityIdAssociation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdExtensionIdToEntityIdAssociation complex type. + * + *

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

+ * <complexType name="ArrayOfAdExtensionIdToEntityIdAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionIdToEntityIdAssociation" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionIdToEntityIdAssociation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdExtensionIdToEntityIdAssociation", propOrder = { + "adExtensionIdToEntityIdAssociations" +}) +public class ArrayOfAdExtensionIdToEntityIdAssociation { + + @XmlElement(name = "AdExtensionIdToEntityIdAssociation", nillable = true) + protected List adExtensionIdToEntityIdAssociations; + + /** + * Gets the value of the adExtensionIdToEntityIdAssociations 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 JAXB object. + * This is why there is not a set method for the adExtensionIdToEntityIdAssociations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdExtensionIdToEntityIdAssociation } + * + * + */ + public List getAdExtensionIdToEntityIdAssociations() { + if (adExtensionIdToEntityIdAssociations == null) { + adExtensionIdToEntityIdAssociations = new ArrayList(); + } + return this.adExtensionIdToEntityIdAssociations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdentity.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdentity.java new file mode 100644 index 0000000000..37bbeabf04 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdExtensionIdentity.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdExtensionIdentity complex type. + * + *

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

+ * <complexType name="ArrayOfAdExtensionIdentity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionIdentity" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionIdentity" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdExtensionIdentity", propOrder = { + "adExtensionIdentities" +}) +public class ArrayOfAdExtensionIdentity { + + @XmlElement(name = "AdExtensionIdentity", nillable = true) + protected List adExtensionIdentities; + + /** + * Gets the value of the adExtensionIdentities 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 JAXB object. + * This is why there is not a set method for the adExtensionIdentities property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdExtensionIdentity } + * + * + */ + public List getAdExtensionIdentities() { + if (adExtensionIdentities == null) { + adExtensionIdentities = new ArrayList(); + } + return this.adExtensionIdentities; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroup.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroup.java new file mode 100644 index 0000000000..8f1b09beac --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroup.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdGroup complex type. + * + *

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

+ * <complexType name="ArrayOfAdGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroup" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroup" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdGroup", propOrder = { + "adGroups" +}) +public class ArrayOfAdGroup { + + @XmlElement(name = "AdGroup", nillable = true) + protected List adGroups; + + /** + * Gets the value of the adGroups 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 JAXB object. + * This is why there is not a set method for the adGroups property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdGroup } + * + * + */ + public List getAdGroups() { + if (adGroups == null) { + adGroups = new ArrayList(); + } + return this.adGroups; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterion.java new file mode 100644 index 0000000000..18aa1fe939 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterion.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdGroupCriterion complex type. + * + *

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

+ * <complexType name="ArrayOfAdGroupCriterion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupCriterion" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupCriterion" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdGroupCriterion", propOrder = { + "adGroupCriterions" +}) +public class ArrayOfAdGroupCriterion { + + @XmlElement(name = "AdGroupCriterion", nillable = true) + protected List adGroupCriterions; + + /** + * Gets the value of the adGroupCriterions 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 JAXB object. + * This is why there is not a set method for the adGroupCriterions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdGroupCriterion } + * + * + */ + public List getAdGroupCriterions() { + if (adGroupCriterions == null) { + adGroupCriterions = new ArrayList(); + } + return this.adGroupCriterions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterionAction.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterionAction.java new file mode 100644 index 0000000000..d52f3f8ccc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupCriterionAction.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdGroupCriterionAction complex type. + * + *

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

+ * <complexType name="ArrayOfAdGroupCriterionAction">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupCriterionAction" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupCriterionAction" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdGroupCriterionAction", propOrder = { + "adGroupCriterionActions" +}) +public class ArrayOfAdGroupCriterionAction { + + @XmlElement(name = "AdGroupCriterionAction", nillable = true) + protected List adGroupCriterionActions; + + /** + * Gets the value of the adGroupCriterionActions 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 JAXB object. + * This is why there is not a set method for the adGroupCriterionActions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdGroupCriterionAction } + * + * + */ + public List getAdGroupCriterionActions() { + if (adGroupCriterionActions == null) { + adGroupCriterionActions = new ArrayList(); + } + return this.adGroupCriterionActions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupNegativeSites.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupNegativeSites.java new file mode 100644 index 0000000000..2abe825f9f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAdGroupNegativeSites.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAdGroupNegativeSites complex type. + * + *

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

+ * <complexType name="ArrayOfAdGroupNegativeSites">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupNegativeSites" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupNegativeSites" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAdGroupNegativeSites", propOrder = { + "adGroupNegativeSites" +}) +public class ArrayOfAdGroupNegativeSites { + + @XmlElement(name = "AdGroupNegativeSites", nillable = true) + protected List adGroupNegativeSites; + + /** + * Gets the value of the adGroupNegativeSites 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 JAXB object. + * This is why there is not a set method for the adGroupNegativeSites property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AdGroupNegativeSites } + * + * + */ + public List getAdGroupNegativeSites() { + if (adGroupNegativeSites == null) { + adGroupNegativeSites = new ArrayList(); + } + return this.adGroupNegativeSites; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAgeTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAgeTargetBid.java new file mode 100644 index 0000000000..fb47a903b6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAgeTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAgeTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfAgeTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AgeTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}AgeTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAgeTargetBid", propOrder = { + "ageTargetBids" +}) +public class ArrayOfAgeTargetBid { + + @XmlElement(name = "AgeTargetBid", nillable = true) + protected List ageTargetBids; + + /** + * Gets the value of the ageTargetBids 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 JAXB object. + * This is why there is not a set method for the ageTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AgeTargetBid } + * + * + */ + public List getAgeTargetBids() { + if (ageTargetBids == null) { + ageTargetBids = new ArrayList(); + } + return this.ageTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAppUrl.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAppUrl.java new file mode 100644 index 0000000000..8b1bde4951 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfAppUrl.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAppUrl complex type. + * + *

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

+ * <complexType name="ArrayOfAppUrl">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AppUrl" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}AppUrl" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAppUrl", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", propOrder = { + "appUrls" +}) +public class ArrayOfAppUrl { + + @XmlElement(name = "AppUrl", nillable = true) + protected List appUrls; + + /** + * Gets the value of the appUrls 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 JAXB object. + * This is why there is not a set method for the appUrls property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AppUrl } + * + * + */ + public List getAppUrls() { + if (appUrls == null) { + appUrls = new ArrayList(); + } + return this.appUrls; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfMediaAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfMediaAssociation.java new file mode 100644 index 0000000000..c83ce74898 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfMediaAssociation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfArrayOfMediaAssociation complex type. + * + *

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

+ * <complexType name="ArrayOfArrayOfMediaAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ArrayOfMediaAssociation" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMediaAssociation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfArrayOfMediaAssociation", propOrder = { + "arrayOfMediaAssociations" +}) +public class ArrayOfArrayOfMediaAssociation { + + @XmlElement(name = "ArrayOfMediaAssociation", nillable = true) + protected List arrayOfMediaAssociations; + + /** + * Gets the value of the arrayOfMediaAssociations 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 JAXB object. + * This is why there is not a set method for the arrayOfMediaAssociations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ArrayOfMediaAssociation } + * + * + */ + public List getArrayOfMediaAssociations() { + if (arrayOfMediaAssociations == null) { + arrayOfMediaAssociations = new ArrayList(); + } + return this.arrayOfMediaAssociations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfPlacementDetail.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfPlacementDetail.java new file mode 100644 index 0000000000..35a527ff11 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfArrayOfPlacementDetail.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfArrayOfPlacementDetail complex type. + * + *

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

+ * <complexType name="ArrayOfArrayOfPlacementDetail">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ArrayOfPlacementDetail" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfPlacementDetail" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfArrayOfPlacementDetail", propOrder = { + "arrayOfPlacementDetails" +}) +public class ArrayOfArrayOfPlacementDetail { + + @XmlElement(name = "ArrayOfPlacementDetail", nillable = true) + protected List arrayOfPlacementDetails; + + /** + * Gets the value of the arrayOfPlacementDetails 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 JAXB object. + * This is why there is not a set method for the arrayOfPlacementDetails property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ArrayOfPlacementDetail } + * + * + */ + public List getArrayOfPlacementDetails() { + if (arrayOfPlacementDetails == null) { + arrayOfPlacementDetails = new ArrayList(); + } + return this.arrayOfPlacementDetails; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBMCStore.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBMCStore.java new file mode 100644 index 0000000000..454de674a8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBMCStore.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBMCStore complex type. + * + *

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

+ * <complexType name="ArrayOfBMCStore">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BMCStore" type="{https://bingads.microsoft.com/CampaignManagement/v10}BMCStore" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBMCStore", propOrder = { + "bmcStores" +}) +public class ArrayOfBMCStore { + + @XmlElement(name = "BMCStore", nillable = true) + protected List bmcStores; + + /** + * Gets the value of the bmcStores 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 JAXB object. + * This is why there is not a set method for the bmcStores property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BMCStore } + * + * + */ + public List getBMCStores() { + if (bmcStores == null) { + bmcStores = new ArrayList(); + } + return this.bmcStores; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchError.java new file mode 100644 index 0000000000..00da0f53a6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBatchError complex type. + * + *

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

+ * <complexType name="ArrayOfBatchError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BatchError" type="{https://bingads.microsoft.com/CampaignManagement/v10}BatchError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBatchError", propOrder = { + "batchErrors" +}) +public class ArrayOfBatchError { + + @XmlElement(name = "BatchError", nillable = true) + protected List batchErrors; + + /** + * Gets the value of the batchErrors 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 JAXB object. + * This is why there is not a set method for the batchErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BatchError } + * + * + */ + public List getBatchErrors() { + if (batchErrors == null) { + batchErrors = new ArrayList(); + } + return this.batchErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchErrorCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchErrorCollection.java new file mode 100644 index 0000000000..7d9673c140 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfBatchErrorCollection.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfBatchErrorCollection complex type. + * + *

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

+ * <complexType name="ArrayOfBatchErrorCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BatchErrorCollection" type="{https://bingads.microsoft.com/CampaignManagement/v10}BatchErrorCollection" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfBatchErrorCollection", propOrder = { + "batchErrorCollections" +}) +public class ArrayOfBatchErrorCollection { + + @XmlElement(name = "BatchErrorCollection", nillable = true) + protected List batchErrorCollections; + + /** + * Gets the value of the batchErrorCollections 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 JAXB object. + * This is why there is not a set method for the batchErrorCollections property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link BatchErrorCollection } + * + * + */ + public List getBatchErrorCollections() { + if (batchErrorCollections == null) { + batchErrorCollections = new ArrayList(); + } + return this.batchErrorCollections; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaign.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaign.java new file mode 100644 index 0000000000..c3080b6501 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaign.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCampaign complex type. + * + *

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

+ * <complexType name="ArrayOfCampaign">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Campaign" type="{https://bingads.microsoft.com/CampaignManagement/v10}Campaign" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCampaign", propOrder = { + "campaigns" +}) +public class ArrayOfCampaign { + + @XmlElement(name = "Campaign", nillable = true) + protected List campaigns; + + /** + * Gets the value of the campaigns 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 JAXB object. + * This is why there is not a set method for the campaigns property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Campaign } + * + * + */ + public List getCampaigns() { + if (campaigns == null) { + campaigns = new ArrayList(); + } + return this.campaigns; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignCriterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignCriterion.java new file mode 100644 index 0000000000..03f3f9d960 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignCriterion.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCampaignCriterion complex type. + * + *

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

+ * <complexType name="ArrayOfCampaignCriterion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignCriterion" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignCriterion" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCampaignCriterion", propOrder = { + "campaignCriterions" +}) +public class ArrayOfCampaignCriterion { + + @XmlElement(name = "CampaignCriterion", nillable = true) + protected List campaignCriterions; + + /** + * Gets the value of the campaignCriterions 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 JAXB object. + * This is why there is not a set method for the campaignCriterions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CampaignCriterion } + * + * + */ + public List getCampaignCriterions() { + if (campaignCriterions == null) { + campaignCriterions = new ArrayList(); + } + return this.campaignCriterions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignNegativeSites.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignNegativeSites.java new file mode 100644 index 0000000000..5acd32b6b6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignNegativeSites.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCampaignNegativeSites complex type. + * + *

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

+ * <complexType name="ArrayOfCampaignNegativeSites">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignNegativeSites" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignNegativeSites" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCampaignNegativeSites", propOrder = { + "campaignNegativeSites" +}) +public class ArrayOfCampaignNegativeSites { + + @XmlElement(name = "CampaignNegativeSites", nillable = true) + protected List campaignNegativeSites; + + /** + * Gets the value of the campaignNegativeSites 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 JAXB object. + * This is why there is not a set method for the campaignNegativeSites property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CampaignNegativeSites } + * + * + */ + public List getCampaignNegativeSites() { + if (campaignNegativeSites == null) { + campaignNegativeSites = new ArrayList(); + } + return this.campaignNegativeSites; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignSize.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignSize.java new file mode 100644 index 0000000000..537ca09135 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCampaignSize.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCampaignSize complex type. + * + *

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

+ * <complexType name="ArrayOfCampaignSize">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignSize" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignSize" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCampaignSize", propOrder = { + "campaignSizes" +}) +public class ArrayOfCampaignSize { + + @XmlElement(name = "CampaignSize", nillable = true) + protected List campaignSizes; + + /** + * Gets the value of the campaignSizes 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 JAXB object. + * This is why there is not a set method for the campaignSizes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CampaignSize } + * + * + */ + public List getCampaignSizes() { + if (campaignSizes == null) { + campaignSizes = new ArrayList(); + } + return this.campaignSizes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCityTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCityTargetBid.java new file mode 100644 index 0000000000..27f0e3ded1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCityTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCityTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfCityTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CityTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}CityTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCityTargetBid", propOrder = { + "cityTargetBids" +}) +public class ArrayOfCityTargetBid { + + @XmlElement(name = "CityTargetBid", nillable = true) + protected List cityTargetBids; + + /** + * Gets the value of the cityTargetBids 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 JAXB object. + * This is why there is not a set method for the cityTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CityTargetBid } + * + * + */ + public List getCityTargetBids() { + if (cityTargetBids == null) { + cityTargetBids = new ArrayList(); + } + return this.cityTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCountryTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCountryTargetBid.java new file mode 100644 index 0000000000..eb55c76ad3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCountryTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCountryTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfCountryTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CountryTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}CountryTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCountryTargetBid", propOrder = { + "countryTargetBids" +}) +public class ArrayOfCountryTargetBid { + + @XmlElement(name = "CountryTargetBid", nillable = true) + protected List countryTargetBids; + + /** + * Gets the value of the countryTargetBids 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 JAXB object. + * This is why there is not a set method for the countryTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CountryTargetBid } + * + * + */ + public List getCountryTargetBids() { + if (countryTargetBids == null) { + countryTargetBids = new ArrayList(); + } + return this.countryTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCustomParameter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCustomParameter.java new file mode 100644 index 0000000000..75f262525d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfCustomParameter.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfCustomParameter complex type. + * + *

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

+ * <complexType name="ArrayOfCustomParameter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CustomParameter" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameter" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfCustomParameter", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", propOrder = { + "customParameters" +}) +public class ArrayOfCustomParameter { + + @XmlElement(name = "CustomParameter", nillable = true) + protected List customParameters; + + /** + * Gets the value of the customParameters 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 JAXB object. + * This is why there is not a set method for the customParameters property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CustomParameter } + * + * + */ + public List getCustomParameters() { + if (customParameters == null) { + customParameters = new ArrayList(); + } + return this.customParameters; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDayTimeTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDayTimeTargetBid.java new file mode 100644 index 0000000000..7a2d0ecb9e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDayTimeTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfDayTimeTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfDayTimeTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DayTimeTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}DayTimeTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfDayTimeTargetBid", propOrder = { + "dayTimeTargetBids" +}) +public class ArrayOfDayTimeTargetBid { + + @XmlElement(name = "DayTimeTargetBid", nillable = true) + protected List dayTimeTargetBids; + + /** + * Gets the value of the dayTimeTargetBids 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 JAXB object. + * This is why there is not a set method for the dayTimeTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DayTimeTargetBid } + * + * + */ + public List getDayTimeTargetBids() { + if (dayTimeTargetBids == null) { + dayTimeTargetBids = new ArrayList(); + } + return this.dayTimeTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDeviceOSTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDeviceOSTargetBid.java new file mode 100644 index 0000000000..fb7dbe9105 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDeviceOSTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfDeviceOSTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfDeviceOSTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DeviceOSTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}DeviceOSTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfDeviceOSTargetBid", propOrder = { + "deviceOSTargetBids" +}) +public class ArrayOfDeviceOSTargetBid { + + @XmlElement(name = "DeviceOSTargetBid", nillable = true) + protected List deviceOSTargetBids; + + /** + * Gets the value of the deviceOSTargetBids 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 JAXB object. + * This is why there is not a set method for the deviceOSTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DeviceOSTargetBid } + * + * + */ + public List getDeviceOSTargetBids() { + if (deviceOSTargetBids == null) { + deviceOSTargetBids = new ArrayList(); + } + return this.deviceOSTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDimension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDimension.java new file mode 100644 index 0000000000..d7c4c55066 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfDimension.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfDimension complex type. + * + *

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

+ * <complexType name="ArrayOfDimension">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Dimension" type="{https://bingads.microsoft.com/CampaignManagement/v10}Dimension" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfDimension", propOrder = { + "dimensions" +}) +public class ArrayOfDimension { + + @XmlElement(name = "Dimension", nillable = true) + protected List dimensions; + + /** + * Gets the value of the dimensions 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 JAXB object. + * This is why there is not a set method for the dimensions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Dimension } + * + * + */ + public List getDimensions() { + if (dimensions == null) { + dimensions = new ArrayList(); + } + return this.dimensions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialError.java new file mode 100644 index 0000000000..bd06c1400d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfEditorialError complex type. + * + *

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

+ * <complexType name="ArrayOfEditorialError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EditorialError" type="{https://bingads.microsoft.com/CampaignManagement/v10}EditorialError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfEditorialError", propOrder = { + "editorialErrors" +}) +public class ArrayOfEditorialError { + + @XmlElement(name = "EditorialError", nillable = true) + protected List editorialErrors; + + /** + * Gets the value of the editorialErrors 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 JAXB object. + * This is why there is not a set method for the editorialErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EditorialError } + * + * + */ + public List getEditorialErrors() { + if (editorialErrors == null) { + editorialErrors = new ArrayList(); + } + return this.editorialErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReason.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReason.java new file mode 100644 index 0000000000..bcdfb2d0c5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReason.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfEditorialReason complex type. + * + *

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

+ * <complexType name="ArrayOfEditorialReason">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EditorialReason" type="{https://bingads.microsoft.com/CampaignManagement/v10}EditorialReason" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfEditorialReason", propOrder = { + "editorialReasons" +}) +public class ArrayOfEditorialReason { + + @XmlElement(name = "EditorialReason", nillable = true) + protected List editorialReasons; + + /** + * Gets the value of the editorialReasons 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 JAXB object. + * This is why there is not a set method for the editorialReasons property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EditorialReason } + * + * + */ + public List getEditorialReasons() { + if (editorialReasons == null) { + editorialReasons = new ArrayList(); + } + return this.editorialReasons; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReasonCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReasonCollection.java new file mode 100644 index 0000000000..b6347207c9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEditorialReasonCollection.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfEditorialReasonCollection complex type. + * + *

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

+ * <complexType name="ArrayOfEditorialReasonCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EditorialReasonCollection" type="{https://bingads.microsoft.com/CampaignManagement/v10}EditorialReasonCollection" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfEditorialReasonCollection", propOrder = { + "editorialReasonCollections" +}) +public class ArrayOfEditorialReasonCollection { + + @XmlElement(name = "EditorialReasonCollection", nillable = true) + protected List editorialReasonCollections; + + /** + * Gets the value of the editorialReasonCollections 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 JAXB object. + * This is why there is not a set method for the editorialReasonCollections property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EditorialReasonCollection } + * + * + */ + public List getEditorialReasonCollections() { + if (editorialReasonCollections == null) { + editorialReasonCollections = new ArrayList(); + } + return this.editorialReasonCollections; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityIdToParentIdAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityIdToParentIdAssociation.java new file mode 100644 index 0000000000..6fcedaaecb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityIdToParentIdAssociation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfEntityIdToParentIdAssociation complex type. + * + *

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

+ * <complexType name="ArrayOfEntityIdToParentIdAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityIdToParentIdAssociation" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}EntityIdToParentIdAssociation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfEntityIdToParentIdAssociation", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", propOrder = { + "entityIdToParentIdAssociations" +}) +public class ArrayOfEntityIdToParentIdAssociation { + + @XmlElement(name = "EntityIdToParentIdAssociation", nillable = true) + protected List entityIdToParentIdAssociations; + + /** + * Gets the value of the entityIdToParentIdAssociations 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 JAXB object. + * This is why there is not a set method for the entityIdToParentIdAssociations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EntityIdToParentIdAssociation } + * + * + */ + public List getEntityIdToParentIdAssociations() { + if (entityIdToParentIdAssociations == null) { + entityIdToParentIdAssociations = new ArrayList(); + } + return this.entityIdToParentIdAssociations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityNegativeKeyword.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityNegativeKeyword.java new file mode 100644 index 0000000000..a46c4da888 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfEntityNegativeKeyword.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfEntityNegativeKeyword complex type. + * + *

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

+ * <complexType name="ArrayOfEntityNegativeKeyword">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityNegativeKeyword" type="{https://bingads.microsoft.com/CampaignManagement/v10}EntityNegativeKeyword" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfEntityNegativeKeyword", propOrder = { + "entityNegativeKeywords" +}) +public class ArrayOfEntityNegativeKeyword { + + @XmlElement(name = "EntityNegativeKeyword", nillable = true) + protected List entityNegativeKeywords; + + /** + * Gets the value of the entityNegativeKeywords 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 JAXB object. + * This is why there is not a set method for the entityNegativeKeywords property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link EntityNegativeKeyword } + * + * + */ + public List getEntityNegativeKeywords() { + if (entityNegativeKeywords == null) { + entityNegativeKeywords = new ArrayList(); + } + return this.entityNegativeKeywords; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfGenderTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfGenderTargetBid.java new file mode 100644 index 0000000000..04e2b5d3d4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfGenderTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfGenderTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfGenderTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="GenderTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}GenderTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfGenderTargetBid", propOrder = { + "genderTargetBids" +}) +public class ArrayOfGenderTargetBid { + + @XmlElement(name = "GenderTargetBid", nillable = true) + protected List genderTargetBids; + + /** + * Gets the value of the genderTargetBids 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 JAXB object. + * This is why there is not a set method for the genderTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link GenderTargetBid } + * + * + */ + public List getGenderTargetBids() { + if (genderTargetBids == null) { + genderTargetBids = new ArrayList(); + } + return this.genderTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfIdCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfIdCollection.java new file mode 100644 index 0000000000..3f822a7fe2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfIdCollection.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfIdCollection complex type. + * + *

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

+ * <complexType name="ArrayOfIdCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="IdCollection" type="{https://bingads.microsoft.com/CampaignManagement/v10}IdCollection" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfIdCollection", propOrder = { + "idCollections" +}) +public class ArrayOfIdCollection { + + @XmlElement(name = "IdCollection", nillable = true) + protected List idCollections; + + /** + * Gets the value of the idCollections 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 JAXB object. + * This is why there is not a set method for the idCollections property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link IdCollection } + * + * + */ + public List getIdCollections() { + if (idCollections == null) { + idCollections = new ArrayList(); + } + return this.idCollections; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyValuePairOfstringstring.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyValuePairOfstringstring.java new file mode 100644 index 0000000000..73b778fb6f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyValuePairOfstringstring.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeyValuePairOfstringstring complex type. + * + *

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

+ * <complexType name="ArrayOfKeyValuePairOfstringstring">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="KeyValuePairOfstringstring" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}KeyValuePairOfstringstring" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeyValuePairOfstringstring", namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", propOrder = { + "keyValuePairOfstringstrings" +}) +public class ArrayOfKeyValuePairOfstringstring { + + @XmlElement(name = "KeyValuePairOfstringstring") + protected List keyValuePairOfstringstrings; + + /** + * Gets the value of the keyValuePairOfstringstrings 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 JAXB object. + * This is why there is not a set method for the keyValuePairOfstringstrings property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link KeyValuePairOfstringstring } + * + * + */ + public List getKeyValuePairOfstringstrings() { + if (keyValuePairOfstringstrings == null) { + keyValuePairOfstringstrings = new ArrayList(); + } + return this.keyValuePairOfstringstrings; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyword.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyword.java new file mode 100644 index 0000000000..3381a37513 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfKeyword.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfKeyword complex type. + * + *

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

+ * <complexType name="ArrayOfKeyword">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keyword" type="{https://bingads.microsoft.com/CampaignManagement/v10}Keyword" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfKeyword", propOrder = { + "keywords" +}) +public class ArrayOfKeyword { + + @XmlElement(name = "Keyword", nillable = true) + protected List keywords; + + /** + * Gets the value of the keywords 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 JAXB object. + * This is why there is not a set method for the keywords property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Keyword } + * + * + */ + public List getKeywords() { + if (keywords == null) { + keywords = new ArrayList(); + } + return this.keywords; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMedia.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMedia.java new file mode 100644 index 0000000000..bd179642fc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMedia.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMedia complex type. + * + *

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

+ * <complexType name="ArrayOfMedia">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Media" type="{https://bingads.microsoft.com/CampaignManagement/v10}Media" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMedia", propOrder = { + "medias" +}) +public class ArrayOfMedia { + + @XmlElement(name = "Media", nillable = true) + protected List medias; + + /** + * Gets the value of the medias 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 JAXB object. + * This is why there is not a set method for the medias property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Media } + * + * + */ + public List getMedias() { + if (medias == null) { + medias = new ArrayList(); + } + return this.medias; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaAssociation.java new file mode 100644 index 0000000000..22196ad77d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaAssociation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMediaAssociation complex type. + * + *

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

+ * <complexType name="ArrayOfMediaAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaAssociation" type="{https://bingads.microsoft.com/CampaignManagement/v10}MediaAssociation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMediaAssociation", propOrder = { + "mediaAssociations" +}) +public class ArrayOfMediaAssociation { + + @XmlElement(name = "MediaAssociation", nillable = true) + protected List mediaAssociations; + + /** + * Gets the value of the mediaAssociations 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 JAXB object. + * This is why there is not a set method for the mediaAssociations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link MediaAssociation } + * + * + */ + public List getMediaAssociations() { + if (mediaAssociations == null) { + mediaAssociations = new ArrayList(); + } + return this.mediaAssociations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaMetaData.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaMetaData.java new file mode 100644 index 0000000000..535c59742e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaMetaData.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMediaMetaData complex type. + * + *

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

+ * <complexType name="ArrayOfMediaMetaData">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaMetaData" type="{https://bingads.microsoft.com/CampaignManagement/v10}MediaMetaData" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMediaMetaData", propOrder = { + "mediaMetaDatas" +}) +public class ArrayOfMediaMetaData { + + @XmlElement(name = "MediaMetaData", nillable = true) + protected List mediaMetaDatas; + + /** + * Gets the value of the mediaMetaDatas 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 JAXB object. + * This is why there is not a set method for the mediaMetaDatas property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link MediaMetaData } + * + * + */ + public List getMediaMetaDatas() { + if (mediaMetaDatas == null) { + mediaMetaDatas = new ArrayList(); + } + return this.mediaMetaDatas; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaRepresentation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaRepresentation.java new file mode 100644 index 0000000000..07e7942822 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaRepresentation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMediaRepresentation complex type. + * + *

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

+ * <complexType name="ArrayOfMediaRepresentation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaRepresentation" type="{https://bingads.microsoft.com/CampaignManagement/v10}MediaRepresentation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMediaRepresentation", propOrder = { + "mediaRepresentations" +}) +public class ArrayOfMediaRepresentation { + + @XmlElement(name = "MediaRepresentation", nillable = true) + protected List mediaRepresentations; + + /** + * Gets the value of the mediaRepresentations 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 JAXB object. + * This is why there is not a set method for the mediaRepresentations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link MediaRepresentation } + * + * + */ + public List getMediaRepresentations() { + if (mediaRepresentations == null) { + mediaRepresentations = new ArrayList(); + } + return this.mediaRepresentations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaType.java new file mode 100644 index 0000000000..b77e9f97da --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaType.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMediaType complex type. + * + *

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

+ * <complexType name="ArrayOfMediaType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaType" type="{https://bingads.microsoft.com/CampaignManagement/v10}MediaType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMediaType", propOrder = { + "mediaTypes" +}) +public class ArrayOfMediaType { + + @XmlElement(name = "MediaType", nillable = true) + protected List mediaTypes; + + /** + * Gets the value of the mediaTypes 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 JAXB object. + * This is why there is not a set method for the mediaTypes property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link MediaType } + * + * + */ + public List getMediaTypes() { + if (mediaTypes == null) { + mediaTypes = new ArrayList(); + } + return this.mediaTypes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMetroAreaTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMetroAreaTargetBid.java new file mode 100644 index 0000000000..84ce46b55a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMetroAreaTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMetroAreaTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfMetroAreaTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MetroAreaTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}MetroAreaTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMetroAreaTargetBid", propOrder = { + "metroAreaTargetBids" +}) +public class ArrayOfMetroAreaTargetBid { + + @XmlElement(name = "MetroAreaTargetBid", nillable = true) + protected List metroAreaTargetBids; + + /** + * Gets the value of the metroAreaTargetBids 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 JAXB object. + * This is why there is not a set method for the metroAreaTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link MetroAreaTargetBid } + * + * + */ + public List getMetroAreaTargetBids() { + if (metroAreaTargetBids == null) { + metroAreaTargetBids = new ArrayList(); + } + return this.metroAreaTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMigrationStatusInfo.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMigrationStatusInfo.java new file mode 100644 index 0000000000..5e67260526 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMigrationStatusInfo.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfMigrationStatusInfo complex type. + * + *

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

+ * <complexType name="ArrayOfMigrationStatusInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MigrationStatusInfo" type="{https://bingads.microsoft.com/CampaignManagement/v10}MigrationStatusInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfMigrationStatusInfo", propOrder = { + "migrationStatusInfos" +}) +public class ArrayOfMigrationStatusInfo { + + @XmlElement(name = "MigrationStatusInfo", nillable = true) + protected List migrationStatusInfos; + + /** + * Gets the value of the migrationStatusInfos 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 JAXB object. + * This is why there is not a set method for the migrationStatusInfos property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link MigrationStatusInfo } + * + * + */ + public List getMigrationStatusInfos() { + if (migrationStatusInfos == null) { + migrationStatusInfos = new ArrayList(); + } + return this.migrationStatusInfos; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNegativeKeyword.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNegativeKeyword.java new file mode 100644 index 0000000000..8991ba159a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNegativeKeyword.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfNegativeKeyword complex type. + * + *

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

+ * <complexType name="ArrayOfNegativeKeyword">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="NegativeKeyword" type="{https://bingads.microsoft.com/CampaignManagement/v10}NegativeKeyword" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfNegativeKeyword", propOrder = { + "negativeKeywords" +}) +public class ArrayOfNegativeKeyword { + + @XmlElement(name = "NegativeKeyword", nillable = true) + protected List negativeKeywords; + + /** + * Gets the value of the negativeKeywords 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 JAXB object. + * This is why there is not a set method for the negativeKeywords property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link NegativeKeyword } + * + * + */ + public List getNegativeKeywords() { + if (negativeKeywords == null) { + negativeKeywords = new ArrayList(); + } + return this.negativeKeywords; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNullableOflong.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNullableOflong.java new file mode 100644 index 0000000000..9e3570cb69 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfNullableOflong.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfNullableOflong complex type. + * + *

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

+ * <complexType name="ArrayOfNullableOflong">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="long" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfNullableOflong", namespace = "http://schemas.datacontract.org/2004/07/System", propOrder = { + "longs" +}) +public class ArrayOfNullableOflong { + + @XmlElement(name = "long", nillable = true) + protected List longs; + + /** + * Gets the value of the longs 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 JAXB object. + * This is why there is not a set method for the longs property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Long } + * + * + */ + public List getLongs() { + if (longs == null) { + longs = new ArrayList(); + } + return this.longs; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfOperationError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfOperationError.java new file mode 100644 index 0000000000..ebc820f98a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfOperationError.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfOperationError complex type. + * + *

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

+ * <complexType name="ArrayOfOperationError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="OperationError" type="{https://bingads.microsoft.com/CampaignManagement/v10}OperationError" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfOperationError", propOrder = { + "operationErrors" +}) +public class ArrayOfOperationError { + + @XmlElement(name = "OperationError", nillable = true) + protected List operationErrors; + + /** + * Gets the value of the operationErrors 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 JAXB object. + * This is why there is not a set method for the operationErrors property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link OperationError } + * + * + */ + public List getOperationErrors() { + if (operationErrors == null) { + operationErrors = new ArrayList(); + } + return this.operationErrors; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPlacementDetail.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPlacementDetail.java new file mode 100644 index 0000000000..75c63cc89e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPlacementDetail.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfPlacementDetail complex type. + * + *

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

+ * <complexType name="ArrayOfPlacementDetail">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PlacementDetail" type="{https://bingads.microsoft.com/CampaignManagement/v10}PlacementDetail" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfPlacementDetail", propOrder = { + "placementDetails" +}) +public class ArrayOfPlacementDetail { + + @XmlElement(name = "PlacementDetail", nillable = true) + protected List placementDetails; + + /** + * Gets the value of the placementDetails 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 JAXB object. + * This is why there is not a set method for the placementDetails property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link PlacementDetail } + * + * + */ + public List getPlacementDetails() { + if (placementDetails == null) { + placementDetails = new ArrayList(); + } + return this.placementDetails; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPostalCodeTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPostalCodeTargetBid.java new file mode 100644 index 0000000000..ac7f33f2ca --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfPostalCodeTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfPostalCodeTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfPostalCodeTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PostalCodeTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}PostalCodeTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfPostalCodeTargetBid", propOrder = { + "postalCodeTargetBids" +}) +public class ArrayOfPostalCodeTargetBid { + + @XmlElement(name = "PostalCodeTargetBid", nillable = true) + protected List postalCodeTargetBids; + + /** + * Gets the value of the postalCodeTargetBids 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 JAXB object. + * This is why there is not a set method for the postalCodeTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link PostalCodeTargetBid } + * + * + */ + public List getPostalCodeTargetBids() { + if (postalCodeTargetBids == null) { + postalCodeTargetBids = new ArrayList(); + } + return this.postalCodeTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfProductCondition.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfProductCondition.java new file mode 100644 index 0000000000..091062c76c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfProductCondition.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfProductCondition complex type. + * + *

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

+ * <complexType name="ArrayOfProductCondition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ProductCondition" type="{https://bingads.microsoft.com/CampaignManagement/v10}ProductCondition" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfProductCondition", propOrder = { + "productConditions" +}) +public class ArrayOfProductCondition { + + @XmlElement(name = "ProductCondition", nillable = true) + protected List productConditions; + + /** + * Gets the value of the productConditions 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 JAXB object. + * This is why there is not a set method for the productConditions property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ProductCondition } + * + * + */ + public List getProductConditions() { + if (productConditions == null) { + productConditions = new ArrayList(); + } + return this.productConditions; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfRadiusTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfRadiusTargetBid.java new file mode 100644 index 0000000000..001401d3b8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfRadiusTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfRadiusTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfRadiusTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="RadiusTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}RadiusTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfRadiusTargetBid", propOrder = { + "radiusTargetBids" +}) +public class ArrayOfRadiusTargetBid { + + @XmlElement(name = "RadiusTargetBid", nillable = true) + protected List radiusTargetBids; + + /** + * Gets the value of the radiusTargetBids 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 JAXB object. + * This is why there is not a set method for the radiusTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link RadiusTargetBid } + * + * + */ + public List getRadiusTargetBids() { + if (radiusTargetBids == null) { + radiusTargetBids = new ArrayList(); + } + return this.radiusTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSetting.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSetting.java new file mode 100644 index 0000000000..f47bd9ebaa --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSetting.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfSetting complex type. + * + *

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

+ * <complexType name="ArrayOfSetting">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Setting" type="{https://bingads.microsoft.com/CampaignManagement/v10}Setting" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSetting", propOrder = { + "settings" +}) +public class ArrayOfSetting { + + @XmlElement(name = "Setting", nillable = true) + protected List settings; + + /** + * Gets the value of the settings 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 JAXB object. + * This is why there is not a set method for the settings property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Setting } + * + * + */ + public List getSettings() { + if (settings == null) { + settings = new ArrayList(); + } + return this.settings; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntity.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntity.java new file mode 100644 index 0000000000..8e15b83a04 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntity.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfSharedEntity complex type. + * + *

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

+ * <complexType name="ArrayOfSharedEntity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedEntity" type="{https://bingads.microsoft.com/CampaignManagement/v10}SharedEntity" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSharedEntity", propOrder = { + "sharedEntities" +}) +public class ArrayOfSharedEntity { + + @XmlElement(name = "SharedEntity", nillable = true) + protected List sharedEntities; + + /** + * Gets the value of the sharedEntities 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 JAXB object. + * This is why there is not a set method for the sharedEntities property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SharedEntity } + * + * + */ + public List getSharedEntities() { + if (sharedEntities == null) { + sharedEntities = new ArrayList(); + } + return this.sharedEntities; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntityAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntityAssociation.java new file mode 100644 index 0000000000..c368301e2f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedEntityAssociation.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfSharedEntityAssociation complex type. + * + *

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

+ * <complexType name="ArrayOfSharedEntityAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedEntityAssociation" type="{https://bingads.microsoft.com/CampaignManagement/v10}SharedEntityAssociation" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSharedEntityAssociation", propOrder = { + "sharedEntityAssociations" +}) +public class ArrayOfSharedEntityAssociation { + + @XmlElement(name = "SharedEntityAssociation", nillable = true) + protected List sharedEntityAssociations; + + /** + * Gets the value of the sharedEntityAssociations 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 JAXB object. + * This is why there is not a set method for the sharedEntityAssociations property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SharedEntityAssociation } + * + * + */ + public List getSharedEntityAssociations() { + if (sharedEntityAssociations == null) { + sharedEntityAssociations = new ArrayList(); + } + return this.sharedEntityAssociations; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedListItem.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedListItem.java new file mode 100644 index 0000000000..bdccc46b48 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSharedListItem.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfSharedListItem complex type. + * + *

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

+ * <complexType name="ArrayOfSharedListItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedListItem" type="{https://bingads.microsoft.com/CampaignManagement/v10}SharedListItem" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSharedListItem", propOrder = { + "sharedListItems" +}) +public class ArrayOfSharedListItem { + + @XmlElement(name = "SharedListItem", nillable = true) + protected List sharedListItems; + + /** + * Gets the value of the sharedListItems 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 JAXB object. + * This is why there is not a set method for the sharedListItems property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SharedListItem } + * + * + */ + public List getSharedListItems() { + if (sharedListItems == null) { + sharedListItems = new ArrayList(); + } + return this.sharedListItems; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSiteLink.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSiteLink.java new file mode 100644 index 0000000000..f130225fd2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSiteLink.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfSiteLink complex type. + * + *

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

+ * <complexType name="ArrayOfSiteLink">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SiteLink" type="{https://bingads.microsoft.com/CampaignManagement/v10}SiteLink" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSiteLink", propOrder = { + "siteLinks" +}) +public class ArrayOfSiteLink { + + @XmlElement(name = "SiteLink", nillable = true) + protected List siteLinks; + + /** + * Gets the value of the siteLinks 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 JAXB object. + * This is why there is not a set method for the siteLinks property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SiteLink } + * + * + */ + public List getSiteLinks() { + if (siteLinks == null) { + siteLinks = new ArrayList(); + } + return this.siteLinks; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSitePlacement.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSitePlacement.java new file mode 100644 index 0000000000..122236fd3d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfSitePlacement.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfSitePlacement complex type. + * + *

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

+ * <complexType name="ArrayOfSitePlacement">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SitePlacement" type="{https://bingads.microsoft.com/CampaignManagement/v10}SitePlacement" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfSitePlacement", propOrder = { + "sitePlacements" +}) +public class ArrayOfSitePlacement { + + @XmlElement(name = "SitePlacement", nillable = true) + protected List sitePlacements; + + /** + * Gets the value of the sitePlacements 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 JAXB object. + * This is why there is not a set method for the sitePlacements property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SitePlacement } + * + * + */ + public List getSitePlacements() { + if (sitePlacements == null) { + sitePlacements = new ArrayList(); + } + return this.sitePlacements; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfStateTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfStateTargetBid.java new file mode 100644 index 0000000000..3e081633f8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfStateTargetBid.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfStateTargetBid complex type. + * + *

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

+ * <complexType name="ArrayOfStateTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="StateTargetBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}StateTargetBid" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfStateTargetBid", propOrder = { + "stateTargetBids" +}) +public class ArrayOfStateTargetBid { + + @XmlElement(name = "StateTargetBid", nillable = true) + protected List stateTargetBids; + + /** + * Gets the value of the stateTargetBids 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 JAXB object. + * This is why there is not a set method for the stateTargetBids property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link StateTargetBid } + * + * + */ + public List getStateTargetBids() { + if (stateTargetBids == null) { + stateTargetBids = new ArrayList(); + } + return this.stateTargetBids; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTarget.java new file mode 100644 index 0000000000..1e73c786e8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTarget.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfTarget complex type. + * + *

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

+ * <complexType name="ArrayOfTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Target" type="{https://bingads.microsoft.com/CampaignManagement/v10}Target" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfTarget", propOrder = { + "targets" +}) +public class ArrayOfTarget { + + @XmlElement(name = "Target", nillable = true) + protected List targets; + + /** + * Gets the value of the targets 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 JAXB object. + * This is why there is not a set method for the targets property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Target } + * + * + */ + public List getTargets() { + if (targets == null) { + targets = new ArrayList(); + } + return this.targets; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTargetInfo.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTargetInfo.java new file mode 100644 index 0000000000..ac0dbe5fce --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfTargetInfo.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfTargetInfo complex type. + * + *

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

+ * <complexType name="ArrayOfTargetInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TargetInfo" type="{https://bingads.microsoft.com/CampaignManagement/v10}TargetInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfTargetInfo", propOrder = { + "targetInfos" +}) +public class ArrayOfTargetInfo { + + @XmlElement(name = "TargetInfo", nillable = true) + protected List targetInfos; + + /** + * Gets the value of the targetInfos 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 JAXB object. + * This is why there is not a set method for the targetInfos property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link TargetInfo } + * + * + */ + public List getTargetInfos() { + if (targetInfos == null) { + targetInfos = new ArrayList(); + } + return this.targetInfos; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOflong.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOflong.java new file mode 100644 index 0000000000..c253780ea5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOflong.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOflong complex type. + * + *

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

+ * <complexType name="ArrayOflong">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="long" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOflong", namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", propOrder = { + "longs" +}) +public class ArrayOflong { + + @XmlElement(name = "long", type = Long.class) + protected List longs; + + /** + * Gets the value of the longs 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 JAXB object. + * This is why there is not a set method for the longs property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Long } + * + * + */ + public List getLongs() { + if (longs == null) { + longs = new ArrayList(); + } + return this.longs; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfstring.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfstring.java new file mode 100644 index 0000000000..1e6c7139fb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfstring.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfstring complex type. + * + *

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

+ * <complexType name="ArrayOfstring">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="string" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfstring", namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", propOrder = { + "strings" +}) +public class ArrayOfstring { + + @XmlElement(name = "string", nillable = true) + protected List strings; + + /** + * Gets the value of the strings 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 JAXB object. + * This is why there is not a set method for the strings property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getStrings() { + if (strings == null) { + strings = new ArrayList(); + } + return this.strings; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AssociationType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AssociationType.java new file mode 100644 index 0000000000..6a99f5ba25 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AssociationType.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AssociationType. + * + *

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

+ *

+ * <simpleType name="AssociationType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Campaign"/>
+ *     <enumeration value="AdGroup"/>
+ *     <enumeration value="Account"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AssociationType") +@XmlEnum +public enum AssociationType { + + @XmlEnumValue("Campaign") + CAMPAIGN("Campaign"), + @XmlEnumValue("AdGroup") + AD_GROUP("AdGroup"), + @XmlEnumValue("Account") + ACCOUNT("Account"); + private final String value; + + AssociationType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AssociationType fromValue(String v) { + for (AssociationType c: AssociationType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/BMCStore.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/BMCStore.java new file mode 100644 index 0000000000..95c90139e1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/BMCStore.java @@ -0,0 +1,174 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BMCStore complex type. + * + *

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

+ * <complexType name="BMCStore">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="HasCatalog" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="IsActive" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="IsProductAdsEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BMCStore", propOrder = { + "hasCatalog", + "id", + "isActive", + "isProductAdsEnabled", + "name" +}) +public class BMCStore { + + @XmlElement(name = "HasCatalog") + protected Boolean hasCatalog; + @XmlElement(name = "Id") + protected Long id; + @XmlElement(name = "IsActive") + protected Boolean isActive; + @XmlElement(name = "IsProductAdsEnabled") + protected Boolean isProductAdsEnabled; + @XmlElement(name = "Name", nillable = true) + protected String name; + + /** + * Gets the value of the hasCatalog property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getHasCatalog() { + return hasCatalog; + } + + /** + * Sets the value of the hasCatalog property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHasCatalog(Boolean value) { + this.hasCatalog = 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 isActive property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIsActive() { + return isActive; + } + + /** + * Sets the value of the isActive property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsActive(Boolean value) { + this.isActive = value; + } + + /** + * Gets the value of the isProductAdsEnabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIsProductAdsEnabled() { + return isProductAdsEnabled; + } + + /** + * Sets the value of the isProductAdsEnabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsProductAdsEnabled(Boolean value) { + this.isProductAdsEnabled = 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/BatchError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/BatchError.java new file mode 100644 index 0000000000..0b028cd680 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/BatchError.java @@ -0,0 +1,262 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BatchError complex type. + * + *

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

+ * <complexType name="BatchError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="FieldPath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Index" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BatchError", propOrder = { + "code", + "details", + "errorCode", + "fieldPath", + "forwardCompatibilityMap", + "index", + "message", + "type" +}) +@XmlSeeAlso({ + EditorialError.class +}) +public class BatchError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Details", nillable = true) + protected String details; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "FieldPath", nillable = true) + protected String fieldPath; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Index") + protected Integer index; + @XmlElement(name = "Message", nillable = true) + protected String message; + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the fieldPath property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFieldPath() { + return fieldPath; + } + + /** + * Sets the value of the fieldPath property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFieldPath(String value) { + this.fieldPath = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/BatchErrorCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/BatchErrorCollection.java new file mode 100644 index 0000000000..458c79f8e6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/BatchErrorCollection.java @@ -0,0 +1,286 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BatchErrorCollection complex type. + * + *

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

+ * <complexType name="BatchErrorCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BatchErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="FieldPath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Index" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BatchErrorCollection", propOrder = { + "batchErrors", + "code", + "details", + "errorCode", + "fieldPath", + "forwardCompatibilityMap", + "index", + "message", + "type" +}) +public class BatchErrorCollection { + + @XmlElement(name = "BatchErrors", nillable = true) + protected ArrayOfBatchError batchErrors; + @XmlElement(name = "Code", nillable = true) + protected Integer code; + @XmlElement(name = "Details", nillable = true) + protected String details; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "FieldPath", nillable = true) + protected String fieldPath; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Index") + protected Integer index; + @XmlElement(name = "Message", nillable = true) + protected String message; + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the batchErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getBatchErrors() { + return batchErrors; + } + + /** + * Sets the value of the batchErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setBatchErrors(ArrayOfBatchError value) { + this.batchErrors = value; + } + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the fieldPath property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFieldPath() { + return fieldPath; + } + + /** + * Sets the value of the fieldPath property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFieldPath(String value) { + this.fieldPath = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Bid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Bid.java new file mode 100644 index 0000000000..81339cdc15 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Bid.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Bid complex type. + * + *

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

+ * <complexType name="Bid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Amount" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Bid", propOrder = { + "amount" +}) +public class Bid { + + @XmlElement(name = "Amount", nillable = true) + protected Double amount; + + /** + * Gets the value of the amount property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAmount() { + return amount; + } + + /** + * Sets the value of the amount property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAmount(Double value) { + this.amount = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/BiddableAdGroupCriterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/BiddableAdGroupCriterion.java new file mode 100644 index 0000000000..ce8bdf4243 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/BiddableAdGroupCriterion.java @@ -0,0 +1,262 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BiddableAdGroupCriterion complex type. + * + *

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

+ * <complexType name="BiddableAdGroupCriterion">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupCriterion">
+ *       <sequence>
+ *         <element name="CriterionBid" type="{https://bingads.microsoft.com/CampaignManagement/v10}CriterionBid" minOccurs="0"/>
+ *         <element name="DestinationUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="EditorialStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupCriterionEditorialStatus" minOccurs="0"/>
+ *         <element name="FinalAppUrls" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfAppUrl" minOccurs="0"/>
+ *         <element name="FinalMobileUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="FinalUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "BiddableAdGroupCriterion", propOrder = { + "criterionBid", + "destinationUrl", + "editorialStatus", + "finalAppUrls", + "finalMobileUrls", + "finalUrls", + "trackingUrlTemplate", + "urlCustomParameters" +}) +public class BiddableAdGroupCriterion + extends AdGroupCriterion +{ + + @XmlElement(name = "CriterionBid", nillable = true) + protected CriterionBid criterionBid; + @XmlElement(name = "DestinationUrl", nillable = true) + protected String destinationUrl; + @XmlElement(name = "EditorialStatus", nillable = true) + @XmlSchemaType(name = "string") + protected AdGroupCriterionEditorialStatus editorialStatus; + @XmlElement(name = "FinalAppUrls", nillable = true) + protected ArrayOfAppUrl finalAppUrls; + @XmlElement(name = "FinalMobileUrls", nillable = true) + protected ArrayOfstring finalMobileUrls; + @XmlElement(name = "FinalUrls", nillable = true) + protected ArrayOfstring finalUrls; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + + /** + * Gets the value of the criterionBid property. + * + * @return + * possible object is + * {@link CriterionBid } + * + */ + public CriterionBid getCriterionBid() { + return criterionBid; + } + + /** + * Sets the value of the criterionBid property. + * + * @param value + * allowed object is + * {@link CriterionBid } + * + */ + public void setCriterionBid(CriterionBid value) { + this.criterionBid = value; + } + + /** + * Gets the value of the destinationUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationUrl() { + return destinationUrl; + } + + /** + * Sets the value of the destinationUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationUrl(String value) { + this.destinationUrl = value; + } + + /** + * Gets the value of the editorialStatus property. + * + * @return + * possible object is + * {@link AdGroupCriterionEditorialStatus } + * + */ + public AdGroupCriterionEditorialStatus getEditorialStatus() { + return editorialStatus; + } + + /** + * Sets the value of the editorialStatus property. + * + * @param value + * allowed object is + * {@link AdGroupCriterionEditorialStatus } + * + */ + public void setEditorialStatus(AdGroupCriterionEditorialStatus value) { + this.editorialStatus = value; + } + + /** + * Gets the value of the finalAppUrls property. + * + * @return + * possible object is + * {@link ArrayOfAppUrl } + * + */ + public ArrayOfAppUrl getFinalAppUrls() { + return finalAppUrls; + } + + /** + * Sets the value of the finalAppUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfAppUrl } + * + */ + public void setFinalAppUrls(ArrayOfAppUrl value) { + this.finalAppUrls = value; + } + + /** + * Gets the value of the finalMobileUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalMobileUrls() { + return finalMobileUrls; + } + + /** + * Sets the value of the finalMobileUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalMobileUrls(ArrayOfstring value) { + this.finalMobileUrls = value; + } + + /** + * Gets the value of the finalUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalUrls() { + return finalUrls; + } + + /** + * Sets the value of the finalUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalUrls(ArrayOfstring value) { + this.finalUrls = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/BiddingModel.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/BiddingModel.java new file mode 100644 index 0000000000..45b88ec747 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/BiddingModel.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BiddingModel. + * + *

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

+ *

+ * <simpleType name="BiddingModel">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Keyword"/>
+ *     <enumeration value="SitePlacement"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "BiddingModel") +@XmlEnum +public enum BiddingModel { + + @XmlEnumValue("Keyword") + KEYWORD("Keyword"), + @XmlEnumValue("SitePlacement") + SITE_PLACEMENT("SitePlacement"); + private final String value; + + BiddingModel(String v) { + value = v; + } + + public String value() { + return value; + } + + public static BiddingModel fromValue(String v) { + for (BiddingModel c: BiddingModel.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/BudgetLimitType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/BudgetLimitType.java new file mode 100644 index 0000000000..46e7403792 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/BudgetLimitType.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BudgetLimitType. + * + *

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

+ *

+ * <simpleType name="BudgetLimitType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="MonthlyBudgetSpendUntilDepleted"/>
+ *     <enumeration value="DailyBudgetAccelerated"/>
+ *     <enumeration value="DailyBudgetStandard"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "BudgetLimitType") +@XmlEnum +public enum BudgetLimitType { + + @XmlEnumValue("MonthlyBudgetSpendUntilDepleted") + MONTHLY_BUDGET_SPEND_UNTIL_DEPLETED("MonthlyBudgetSpendUntilDepleted"), + @XmlEnumValue("DailyBudgetAccelerated") + DAILY_BUDGET_ACCELERATED("DailyBudgetAccelerated"), + @XmlEnumValue("DailyBudgetStandard") + DAILY_BUDGET_STANDARD("DailyBudgetStandard"); + private final String value; + + BudgetLimitType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static BudgetLimitType fromValue(String v) { + for (BudgetLimitType c: BudgetLimitType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/BusinessGeoCodeStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/BusinessGeoCodeStatus.java new file mode 100644 index 0000000000..4b9a7e7d82 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/BusinessGeoCodeStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for BusinessGeoCodeStatus. + * + *

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

+ *

+ * <simpleType name="BusinessGeoCodeStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Pending"/>
+ *     <enumeration value="Complete"/>
+ *     <enumeration value="Invalid"/>
+ *     <enumeration value="Failed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "BusinessGeoCodeStatus") +@XmlEnum +public enum BusinessGeoCodeStatus { + + @XmlEnumValue("Pending") + PENDING("Pending"), + @XmlEnumValue("Complete") + COMPLETE("Complete"), + @XmlEnumValue("Invalid") + INVALID("Invalid"), + @XmlEnumValue("Failed") + FAILED("Failed"); + private final String value; + + BusinessGeoCodeStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static BusinessGeoCodeStatus fromValue(String v) { + for (BusinessGeoCodeStatus c: BusinessGeoCodeStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CallAdExtension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CallAdExtension.java new file mode 100644 index 0000000000..765da9ac39 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CallAdExtension.java @@ -0,0 +1,204 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CallAdExtension complex type. + * + *

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

+ * <complexType name="CallAdExtension">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtension">
+ *       <sequence>
+ *         <element name="CountryCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="DevicePreference" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="IsCallOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="IsCallTrackingEnabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="PhoneNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="RequireTollFreeTrackingNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CallAdExtension", propOrder = { + "countryCode", + "devicePreference", + "isCallOnly", + "isCallTrackingEnabled", + "phoneNumber", + "requireTollFreeTrackingNumber" +}) +public class CallAdExtension + extends AdExtension +{ + + @XmlElement(name = "CountryCode", required = true, nillable = true) + protected String countryCode; + @XmlElement(name = "DevicePreference", nillable = true) + protected Long devicePreference; + @XmlElement(name = "IsCallOnly", nillable = true) + protected Boolean isCallOnly; + @XmlElement(name = "IsCallTrackingEnabled", nillable = true) + protected Boolean isCallTrackingEnabled; + @XmlElement(name = "PhoneNumber", required = true, nillable = true) + protected String phoneNumber; + @XmlElement(name = "RequireTollFreeTrackingNumber", nillable = true) + protected Boolean requireTollFreeTrackingNumber; + + /** + * Gets the value of the countryCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCountryCode() { + return countryCode; + } + + /** + * Sets the value of the countryCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCountryCode(String value) { + this.countryCode = value; + } + + /** + * Gets the value of the devicePreference property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDevicePreference() { + return devicePreference; + } + + /** + * Sets the value of the devicePreference property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDevicePreference(Long value) { + this.devicePreference = value; + } + + /** + * Gets the value of the isCallOnly property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIsCallOnly() { + return isCallOnly; + } + + /** + * Sets the value of the isCallOnly property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsCallOnly(Boolean value) { + this.isCallOnly = value; + } + + /** + * Gets the value of the isCallTrackingEnabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIsCallTrackingEnabled() { + return isCallTrackingEnabled; + } + + /** + * Sets the value of the isCallTrackingEnabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsCallTrackingEnabled(Boolean value) { + this.isCallTrackingEnabled = value; + } + + /** + * Gets the value of the phoneNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPhoneNumber() { + return phoneNumber; + } + + /** + * Sets the value of the phoneNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPhoneNumber(String value) { + this.phoneNumber = value; + } + + /** + * Gets the value of the requireTollFreeTrackingNumber property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getRequireTollFreeTrackingNumber() { + return requireTollFreeTrackingNumber; + } + + /** + * Sets the value of the requireTollFreeTrackingNumber property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRequireTollFreeTrackingNumber(Boolean value) { + this.requireTollFreeTrackingNumber = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Campaign.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Campaign.java new file mode 100644 index 0000000000..31ab18a9cd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Campaign.java @@ -0,0 +1,461 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for Campaign complex type. + * + *

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

+ * <complexType name="Campaign">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BudgetType" type="{https://bingads.microsoft.com/CampaignManagement/v10}BudgetLimitType" minOccurs="0"/>
+ *         <element name="DailyBudget" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="DaylightSaving" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MonthlyBudget" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="NativeBidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignStatus" minOccurs="0"/>
+ *         <element name="TimeZone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *         <element name="CampaignType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignType" minOccurs="0"/>
+ *         <element name="Settings" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSetting" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Campaign", propOrder = { + "budgetType", + "dailyBudget", + "daylightSaving", + "description", + "forwardCompatibilityMap", + "id", + "monthlyBudget", + "name", + "nativeBidAdjustment", + "status", + "timeZone", + "trackingUrlTemplate", + "urlCustomParameters", + "campaignType", + "settings" +}) +public class Campaign { + + @XmlElement(name = "BudgetType", nillable = true) + @XmlSchemaType(name = "string") + protected BudgetLimitType budgetType; + @XmlElement(name = "DailyBudget", nillable = true) + protected Double dailyBudget; + @XmlElement(name = "DaylightSaving", nillable = true) + protected Boolean daylightSaving; + @XmlElement(name = "Description", nillable = true) + protected String description; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "MonthlyBudget", nillable = true) + protected Double monthlyBudget; + @XmlElement(name = "Name", nillable = true) + protected String name; + @XmlElement(name = "NativeBidAdjustment", nillable = true) + protected Integer nativeBidAdjustment; + @XmlElement(name = "Status", nillable = true) + @XmlSchemaType(name = "string") + protected CampaignStatus status; + @XmlElement(name = "TimeZone", nillable = true) + protected String timeZone; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + @XmlElement(name = "CampaignType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter3 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection campaignType; + @XmlElement(name = "Settings", nillable = true) + protected ArrayOfSetting settings; + + /** + * 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 dailyBudget property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getDailyBudget() { + return dailyBudget; + } + + /** + * Sets the value of the dailyBudget property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setDailyBudget(Double value) { + this.dailyBudget = value; + } + + /** + * Gets the value of the daylightSaving property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getDaylightSaving() { + return daylightSaving; + } + + /** + * Sets the value of the daylightSaving property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDaylightSaving(Boolean value) { + this.daylightSaving = 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 forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = 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 monthlyBudget property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMonthlyBudget() { + return monthlyBudget; + } + + /** + * Sets the value of the monthlyBudget property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMonthlyBudget(Double value) { + this.monthlyBudget = 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 nativeBidAdjustment property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getNativeBidAdjustment() { + return nativeBidAdjustment; + } + + /** + * Sets the value of the nativeBidAdjustment property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNativeBidAdjustment(Integer value) { + this.nativeBidAdjustment = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link CampaignStatus } + * + */ + public CampaignStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link CampaignStatus } + * + */ + public void setStatus(CampaignStatus value) { + this.status = value; + } + + /** + * Gets the value of the timeZone property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTimeZone() { + return timeZone; + } + + /** + * Sets the value of the timeZone property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTimeZone(String value) { + this.timeZone = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + + /** + * Gets the value of the campaignType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCampaignType() { + return campaignType; + } + + /** + * Sets the value of the campaignType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCampaignType(Collection value) { + this.campaignType = value; + } + + /** + * Gets the value of the settings property. + * + * @return + * possible object is + * {@link ArrayOfSetting } + * + */ + public ArrayOfSetting getSettings() { + return settings; + } + + /** + * Sets the value of the settings property. + * + * @param value + * allowed object is + * {@link ArrayOfSetting } + * + */ + public void setSettings(ArrayOfSetting value) { + this.settings = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterion.java new file mode 100644 index 0000000000..8b2d0c6e39 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterion.java @@ -0,0 +1,198 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CampaignCriterion complex type. + * + *

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

+ * <complexType name="CampaignCriterion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="Criterion" type="{https://bingads.microsoft.com/CampaignManagement/v10}Criterion" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CampaignCriterion", propOrder = { + "bidAdjustment", + "campaignId", + "criterion", + "forwardCompatibilityMap", + "id", + "type" +}) +@XmlSeeAlso({ + NegativeCampaignCriterion.class +}) +public class CampaignCriterion { + + @XmlElement(name = "BidAdjustment", nillable = true) + protected Integer bidAdjustment; + @XmlElement(name = "CampaignId") + protected long campaignId; + @XmlElement(name = "Criterion", nillable = true) + protected Criterion criterion; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Id", required = true, type = Long.class, nillable = true) + protected Long id; + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the bidAdjustment property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setBidAdjustment(Integer value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the campaignId property. + * + */ + public long getCampaignId() { + return campaignId; + } + + /** + * Sets the value of the campaignId property. + * + */ + public void setCampaignId(long value) { + this.campaignId = value; + } + + /** + * Gets the value of the criterion property. + * + * @return + * possible object is + * {@link Criterion } + * + */ + public Criterion getCriterion() { + return criterion; + } + + /** + * Sets the value of the criterion property. + * + * @param value + * allowed object is + * {@link Criterion } + * + */ + public void setCriterion(Criterion value) { + this.criterion = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = 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 type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterionType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterionType.java new file mode 100644 index 0000000000..cedd45b61a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterionType.java @@ -0,0 +1,28 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +/** + * Enum class for CampaignCriterionType. + */ +public enum CampaignCriterionType { + + PRODUCT_SCOPE("ProductScope"); + + private final String value; + + CampaignCriterionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CampaignCriterionType fromValue(String v) { + for (CampaignCriterionType c : CampaignCriterionType.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/v10/campaignmanagement/CampaignCriterionTypeConverter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterionTypeConverter.java new file mode 100644 index 0000000000..2246883eda --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignCriterionTypeConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class CampaignCriterionTypeConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(CampaignCriterionType.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (CampaignCriterionType 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/v10/campaignmanagement/CampaignManagementService.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignManagementService.java new file mode 100644 index 0000000000..1dcd0e73c7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignManagementService.java @@ -0,0 +1,78 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceException; +import javax.xml.ws.WebServiceFeature; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebServiceClient(name = "CampaignManagementService", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", wsdlLocation = "https://campaign.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/CampaignManagementService.svc?wsdl") +public class CampaignManagementService + extends Service +{ + + private final static URL CAMPAIGNMANAGEMENTSERVICE_WSDL_LOCATION; + private final static WebServiceException CAMPAIGNMANAGEMENTSERVICE_EXCEPTION; + private final static QName CAMPAIGNMANAGEMENTSERVICE_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignManagementService"); + + static { + URL url = null; + WebServiceException e = null; + try { + url = new URL("https://campaign.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/CampaignManagementService.svc?wsdl"); + } catch (MalformedURLException ex) { + e = new WebServiceException(ex); + } + CAMPAIGNMANAGEMENTSERVICE_WSDL_LOCATION = url; + CAMPAIGNMANAGEMENTSERVICE_EXCEPTION = e; + } + + public CampaignManagementService() { + super(__getWsdlLocation(), CAMPAIGNMANAGEMENTSERVICE_QNAME); + } + + public CampaignManagementService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + /** + * + * @return + * returns ICampaignManagementService + */ + @WebEndpoint(name = "BasicHttpBinding_ICampaignManagementService") + public ICampaignManagementService getBasicHttpBindingICampaignManagementService() { + return super.getPort(new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BasicHttpBinding_ICampaignManagementService"), ICampaignManagementService.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns ICampaignManagementService + */ + @WebEndpoint(name = "BasicHttpBinding_ICampaignManagementService") + public ICampaignManagementService getBasicHttpBindingICampaignManagementService(WebServiceFeature... features) { + return super.getPort(new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BasicHttpBinding_ICampaignManagementService"), ICampaignManagementService.class, features); + } + + private static URL __getWsdlLocation() { + if (CAMPAIGNMANAGEMENTSERVICE_EXCEPTION!= null) { + throw CAMPAIGNMANAGEMENTSERVICE_EXCEPTION; + } + return CAMPAIGNMANAGEMENTSERVICE_WSDL_LOCATION; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignNegativeSites.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignNegativeSites.java new file mode 100644 index 0000000000..8fcc96dc18 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignNegativeSites.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CampaignNegativeSites complex type. + * + *

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

+ * <complexType name="CampaignNegativeSites">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="NegativeSites" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CampaignNegativeSites", propOrder = { + "campaignId", + "negativeSites" +}) +public class CampaignNegativeSites { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "NegativeSites", nillable = true) + protected ArrayOfstring negativeSites; + + /** + * 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 negativeSites property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getNegativeSites() { + return negativeSites; + } + + /** + * Sets the value of the negativeSites property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setNegativeSites(ArrayOfstring value) { + this.negativeSites = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignSize.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignSize.java new file mode 100644 index 0000000000..4fc3a2c278 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignSize.java @@ -0,0 +1,82 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CampaignSize complex type. + * + *

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

+ * <complexType name="CampaignSize">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="Size" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CampaignSize", propOrder = { + "campaignId", + "size" +}) +public class CampaignSize { + + @XmlElement(name = "CampaignId") + protected long campaignId; + @XmlElement(name = "Size") + protected Long size; + + /** + * Gets the value of the campaignId property. + * + */ + public long getCampaignId() { + return campaignId; + } + + /** + * Sets the value of the campaignId property. + * + */ + public void setCampaignId(long value) { + this.campaignId = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSize(Long value) { + this.size = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignStatus.java new file mode 100644 index 0000000000..fbc725a877 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignStatus.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CampaignStatus. + * + *

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

+ *

+ * <simpleType name="CampaignStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Paused"/>
+ *     <enumeration value="BudgetPaused"/>
+ *     <enumeration value="BudgetAndManualPaused"/>
+ *     <enumeration value="Deleted"/>
+ *     <enumeration value="Suspended"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "CampaignStatus") +@XmlEnum +public enum CampaignStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Paused") + PAUSED("Paused"), + @XmlEnumValue("BudgetPaused") + BUDGET_PAUSED("BudgetPaused"), + @XmlEnumValue("BudgetAndManualPaused") + BUDGET_AND_MANUAL_PAUSED("BudgetAndManualPaused"), + @XmlEnumValue("Deleted") + DELETED("Deleted"), + @XmlEnumValue("Suspended") + SUSPENDED("Suspended"); + private final String value; + + CampaignStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CampaignStatus fromValue(String v) { + for (CampaignStatus c: CampaignStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignType.java new file mode 100644 index 0000000000..bc40065409 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignType.java @@ -0,0 +1,29 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +/** + * Enum class for CampaignType. + */ +public enum CampaignType { + + SEARCH_AND_CONTENT("SearchAndContent"), + SHOPPING("Shopping"); + + private final String value; + + CampaignType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CampaignType fromValue(String v) { + for (CampaignType c : CampaignType.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/v10/campaignmanagement/CampaignTypeConverter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignTypeConverter.java new file mode 100644 index 0000000000..fc18d8c8e0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CampaignTypeConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class CampaignTypeConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(CampaignType.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (CampaignType 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/v10/campaignmanagement/Char.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Char.java new file mode 100644 index 0000000000..a181adc171 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Char.java @@ -0,0 +1,49 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for char simple type. + * + *

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

+ * <simpleType name="char">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}int">
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "char", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Char { + + @XmlValue + protected int value; + + /** + * Gets the value of the value property. + * + */ + public int getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(int value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CityTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CityTarget.java new file mode 100644 index 0000000000..c1df1787eb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CityTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CityTarget complex type. + * + *

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

+ * <complexType name="CityTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCityTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CityTarget", propOrder = { + "bids" +}) +public class CityTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfCityTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfCityTargetBid } + * + */ + public ArrayOfCityTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfCityTargetBid } + * + */ + public void setBids(ArrayOfCityTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CityTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CityTargetBid.java new file mode 100644 index 0000000000..f431ba4f00 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CityTargetBid.java @@ -0,0 +1,102 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CityTargetBid complex type. + * + *

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

+ * <complexType name="CityTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="City" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="IsExcluded" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CityTargetBid", propOrder = { + "bidAdjustment", + "city", + "isExcluded" +}) +public class CityTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "City", required = true, nillable = true) + protected String city; + @XmlElement(name = "IsExcluded") + protected boolean isExcluded; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the city property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCity() { + return city; + } + + /** + * Sets the value of the city property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCity(String value) { + this.city = value; + } + + /** + * Gets the value of the isExcluded property. + * + */ + public boolean isIsExcluded() { + return isExcluded; + } + + /** + * Sets the value of the isExcluded property. + * + */ + public void setIsExcluded(boolean value) { + this.isExcluded = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTarget.java new file mode 100644 index 0000000000..8e8377707c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CountryTarget complex type. + * + *

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

+ * <complexType name="CountryTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCountryTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CountryTarget", propOrder = { + "bids" +}) +public class CountryTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfCountryTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfCountryTargetBid } + * + */ + public ArrayOfCountryTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfCountryTargetBid } + * + */ + public void setBids(ArrayOfCountryTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTargetBid.java new file mode 100644 index 0000000000..b8d2ea8a38 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CountryTargetBid.java @@ -0,0 +1,102 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CountryTargetBid complex type. + * + *

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

+ * <complexType name="CountryTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="CountryAndRegion" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="IsExcluded" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CountryTargetBid", propOrder = { + "bidAdjustment", + "countryAndRegion", + "isExcluded" +}) +public class CountryTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "CountryAndRegion", required = true, nillable = true) + protected String countryAndRegion; + @XmlElement(name = "IsExcluded") + protected boolean isExcluded; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the countryAndRegion property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCountryAndRegion() { + return countryAndRegion; + } + + /** + * Sets the value of the countryAndRegion property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCountryAndRegion(String value) { + this.countryAndRegion = value; + } + + /** + * Gets the value of the isExcluded property. + * + */ + public boolean isIsExcluded() { + return isExcluded; + } + + /** + * Sets the value of the isExcluded property. + * + */ + public void setIsExcluded(boolean value) { + this.isExcluded = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Criterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Criterion.java new file mode 100644 index 0000000000..e232439b3e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Criterion.java @@ -0,0 +1,67 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Criterion complex type. + * + *

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

+ * <complexType name="Criterion">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Criterion", propOrder = { + "type" +}) +@XmlSeeAlso({ + ProductScope.class, + ProductPartition.class +}) +public class Criterion { + + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionBid.java new file mode 100644 index 0000000000..19c60db69d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionBid.java @@ -0,0 +1,66 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CriterionBid complex type. + * + *

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

+ * <complexType name="CriterionBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CriterionBid", propOrder = { + "type" +}) +@XmlSeeAlso({ + FixedBid.class +}) +public class CriterionBid { + + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionType.java new file mode 100644 index 0000000000..fe266bd610 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionType.java @@ -0,0 +1,28 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +/** + * Enum class for CriterionType. + */ +public enum CriterionType { + + PRODUCT_PARTITION("ProductPartition"); + + private final String value; + + CriterionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CriterionType fromValue(String v) { + for (CriterionType c : CriterionType.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/v10/campaignmanagement/CriterionTypeConverter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionTypeConverter.java new file mode 100644 index 0000000000..7e550dbbdc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CriterionTypeConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class CriterionTypeConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(CriterionType.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (CriterionType 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/v10/campaignmanagement/CustomParameter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CustomParameter.java new file mode 100644 index 0000000000..bbb2aa1db0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CustomParameter.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CustomParameter complex type. + * + *

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

+ * <complexType name="CustomParameter">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Key" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="Value" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CustomParameter", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", propOrder = { + "key", + "value" +}) +public class CustomParameter { + + @XmlElement(name = "Key", required = true, nillable = true) + protected String key; + @XmlElement(name = "Value", required = true, nillable = true) + protected String value; + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/CustomParameters.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/CustomParameters.java new file mode 100644 index 0000000000..54052855c5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/CustomParameters.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CustomParameters complex type. + * + *

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

+ * <complexType name="CustomParameters">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Parameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfCustomParameter"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CustomParameters", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", propOrder = { + "parameters" +}) +public class CustomParameters { + + @XmlElement(name = "Parameters", required = true, nillable = true) + protected ArrayOfCustomParameter parameters; + + /** + * Gets the value of the parameters property. + * + * @return + * possible object is + * {@link ArrayOfCustomParameter } + * + */ + public ArrayOfCustomParameter getParameters() { + return parameters; + } + + /** + * Sets the value of the parameters property. + * + * @param value + * allowed object is + * {@link ArrayOfCustomParameter } + * + */ + public void setParameters(ArrayOfCustomParameter value) { + this.parameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Date.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Date.java new file mode 100644 index 0000000000..0b2850f7d3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Date.java @@ -0,0 +1,94 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Date complex type. + * + *

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

+ * <complexType name="Date">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Day" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="Month" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="Year" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Date", propOrder = { + "day", + "month", + "year" +}) +public class Date { + + @XmlElement(name = "Day") + protected int day; + @XmlElement(name = "Month") + protected int month; + @XmlElement(name = "Year") + protected int year; + + /** + * Gets the value of the day property. + * + */ + public int getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + */ + public void setDay(int value) { + this.day = value; + } + + /** + * Gets the value of the month property. + * + */ + public int getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + */ + public void setMonth(int value) { + this.month = value; + } + + /** + * Gets the value of the year property. + * + */ + public int getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + */ + public void setYear(int value) { + this.year = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Day.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Day.java new file mode 100644 index 0000000000..5f7e2a8d9e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Day.java @@ -0,0 +1,66 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Day. + * + *

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

+ *

+ * <simpleType name="Day">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Sunday"/>
+ *     <enumeration value="Monday"/>
+ *     <enumeration value="Tuesday"/>
+ *     <enumeration value="Wednesday"/>
+ *     <enumeration value="Thursday"/>
+ *     <enumeration value="Friday"/>
+ *     <enumeration value="Saturday"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "Day") +@XmlEnum +public enum Day { + + @XmlEnumValue("Sunday") + SUNDAY("Sunday"), + @XmlEnumValue("Monday") + MONDAY("Monday"), + @XmlEnumValue("Tuesday") + TUESDAY("Tuesday"), + @XmlEnumValue("Wednesday") + WEDNESDAY("Wednesday"), + @XmlEnumValue("Thursday") + THURSDAY("Thursday"), + @XmlEnumValue("Friday") + FRIDAY("Friday"), + @XmlEnumValue("Saturday") + SATURDAY("Saturday"); + private final String value; + + Day(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Day fromValue(String v) { + for (Day c: Day.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTarget.java new file mode 100644 index 0000000000..6c00339cbb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DayTimeTarget complex type. + * + *

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

+ * <complexType name="DayTimeTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfDayTimeTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DayTimeTarget", propOrder = { + "bids" +}) +public class DayTimeTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfDayTimeTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfDayTimeTargetBid } + * + */ + public ArrayOfDayTimeTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfDayTimeTargetBid } + * + */ + public void setBids(ArrayOfDayTimeTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTargetBid.java new file mode 100644 index 0000000000..47435ec029 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DayTimeTargetBid.java @@ -0,0 +1,182 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DayTimeTargetBid complex type. + * + *

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

+ * <complexType name="DayTimeTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="Day" type="{https://bingads.microsoft.com/CampaignManagement/v10}Day"/>
+ *         <element name="FromHour" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="FromMinute" type="{https://bingads.microsoft.com/CampaignManagement/v10}Minute"/>
+ *         <element name="ToHour" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="ToMinute" type="{https://bingads.microsoft.com/CampaignManagement/v10}Minute"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DayTimeTargetBid", propOrder = { + "bidAdjustment", + "day", + "fromHour", + "fromMinute", + "toHour", + "toMinute" +}) +public class DayTimeTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "Day", required = true) + @XmlSchemaType(name = "string") + protected Day day; + @XmlElement(name = "FromHour") + protected int fromHour; + @XmlElement(name = "FromMinute", required = true) + @XmlSchemaType(name = "string") + protected Minute fromMinute; + @XmlElement(name = "ToHour") + protected int toHour; + @XmlElement(name = "ToMinute", required = true) + @XmlSchemaType(name = "string") + protected Minute toMinute; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link Day } + * + */ + public Day getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link Day } + * + */ + public void setDay(Day value) { + this.day = value; + } + + /** + * Gets the value of the fromHour property. + * + */ + public int getFromHour() { + return fromHour; + } + + /** + * Sets the value of the fromHour property. + * + */ + public void setFromHour(int value) { + this.fromHour = value; + } + + /** + * Gets the value of the fromMinute property. + * + * @return + * possible object is + * {@link Minute } + * + */ + public Minute getFromMinute() { + return fromMinute; + } + + /** + * Sets the value of the fromMinute property. + * + * @param value + * allowed object is + * {@link Minute } + * + */ + public void setFromMinute(Minute value) { + this.fromMinute = value; + } + + /** + * Gets the value of the toHour property. + * + */ + public int getToHour() { + return toHour; + } + + /** + * Sets the value of the toHour property. + * + */ + public void setToHour(int value) { + this.toHour = value; + } + + /** + * Gets the value of the toMinute property. + * + * @return + * possible object is + * {@link Minute } + * + */ + public Minute getToMinute() { + return toMinute; + } + + /** + * Sets the value of the toMinute property. + * + * @param value + * allowed object is + * {@link Minute } + * + */ + public void setToMinute(Minute value) { + this.toMinute = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsRequest.java new file mode 100644 index 0000000000..faed6dc97d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsRequest.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensionIdToEntityIdAssociations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionIdToEntityIdAssociation" minOccurs="0"/>
+ *         <element name="AssociationType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AssociationType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensionIdToEntityIdAssociations", + "associationType" +}) +@XmlRootElement(name = "DeleteAdExtensionsAssociationsRequest") +public class DeleteAdExtensionsAssociationsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensionIdToEntityIdAssociations", nillable = true) + protected ArrayOfAdExtensionIdToEntityIdAssociation adExtensionIdToEntityIdAssociations; + @XmlElement(name = "AssociationType") + @XmlSchemaType(name = "string") + protected AssociationType associationType; + + /** + * 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 adExtensionIdToEntityIdAssociations property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionIdToEntityIdAssociation } + * + */ + public ArrayOfAdExtensionIdToEntityIdAssociation getAdExtensionIdToEntityIdAssociations() { + return adExtensionIdToEntityIdAssociations; + } + + /** + * Sets the value of the adExtensionIdToEntityIdAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionIdToEntityIdAssociation } + * + */ + public void setAdExtensionIdToEntityIdAssociations(ArrayOfAdExtensionIdToEntityIdAssociation value) { + this.adExtensionIdToEntityIdAssociations = value; + } + + /** + * Gets the value of the associationType property. + * + * @return + * possible object is + * {@link AssociationType } + * + */ + public AssociationType getAssociationType() { + return associationType; + } + + /** + * Sets the value of the associationType property. + * + * @param value + * allowed object is + * {@link AssociationType } + * + */ + public void setAssociationType(AssociationType value) { + this.associationType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsResponse.java new file mode 100644 index 0000000000..ba30b01b6c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsAssociationsResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DeleteAdExtensionsAssociationsResponse") +public class DeleteAdExtensionsAssociationsResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsRequest.java new file mode 100644 index 0000000000..f814794e38 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensionIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensionIds" +}) +@XmlRootElement(name = "DeleteAdExtensionsRequest") +public class DeleteAdExtensionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensionIds", nillable = true) + protected ArrayOflong adExtensionIds; + + /** + * 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 adExtensionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdExtensionIds() { + return adExtensionIds; + } + + /** + * Sets the value of the adExtensionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdExtensionIds(ArrayOflong value) { + this.adExtensionIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsResponse.java new file mode 100644 index 0000000000..1b74d475fd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdExtensionsResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DeleteAdExtensionsResponse") +public class DeleteAdExtensionsResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsRequest.java new file mode 100644 index 0000000000..c12f88cbfe --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsRequest.java @@ -0,0 +1,153 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupCriterionIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adGroupCriterionIds", + "adGroupId", + "criterionType" +}) +@XmlRootElement(name = "DeleteAdGroupCriterionsRequest") +public class DeleteAdGroupCriterionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdGroupCriterionIds", nillable = true) + protected ArrayOflong adGroupCriterionIds; + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "CriterionType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter7 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * 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 adGroupCriterionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdGroupCriterionIds() { + return adGroupCriterionIds; + } + + /** + * Sets the value of the adGroupCriterionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdGroupCriterionIds(ArrayOflong value) { + this.adGroupCriterionIds = 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 criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsResponse.java new file mode 100644 index 0000000000..89ad74e6d8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupCriterionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteAdGroupCriterionsResponse") +public class DeleteAdGroupCriterionsResponse { + + @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/v10/campaignmanagement/DeleteAdGroupsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupsRequest.java new file mode 100644 index 0000000000..97fa126c93 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId", + "adGroupIds" +}) +@XmlRootElement(name = "DeleteAdGroupsRequest") +public class DeleteAdGroupsRequest { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "AdGroupIds", nillable = true) + protected ArrayOflong adGroupIds; + + /** + * 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 adGroupIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdGroupIds() { + return adGroupIds; + } + + /** + * Sets the value of the adGroupIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdGroupIds(ArrayOflong value) { + this.adGroupIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupsResponse.java new file mode 100644 index 0000000000..6ed7e74705 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdGroupsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteAdGroupsResponse") +public class DeleteAdGroupsResponse { + + @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/v10/campaignmanagement/DeleteAdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdsRequest.java new file mode 100644 index 0000000000..d90cfbae7a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "adIds" +}) +@XmlRootElement(name = "DeleteAdsRequest") +public class DeleteAdsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "AdIds", nillable = true) + protected ArrayOflong adIds; + + /** + * 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 adIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdIds() { + return adIds; + } + + /** + * Sets the value of the adIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdIds(ArrayOflong value) { + this.adIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdsResponse.java new file mode 100644 index 0000000000..b6cdb8531d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteAdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteAdsResponse") +public class DeleteAdsResponse { + + @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/v10/campaignmanagement/DeleteCampaignCriterionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignCriterionsRequest.java new file mode 100644 index 0000000000..f72abdd88e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignCriterionsRequest.java @@ -0,0 +1,97 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignCriterionIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignCriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignCriterionIds", + "criterionType" +}) +@XmlRootElement(name = "DeleteCampaignCriterionsRequest") +public class DeleteCampaignCriterionsRequest { + + @XmlElement(name = "CampaignCriterionIds", nillable = true) + protected ArrayOflong campaignCriterionIds; + @XmlElement(name = "CriterionType", type = String.class) + @XmlJavaTypeAdapter(Adapter2 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * Gets the value of the campaignCriterionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getCampaignCriterionIds() { + return campaignCriterionIds; + } + + /** + * Sets the value of the campaignCriterionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setCampaignCriterionIds(ArrayOflong value) { + this.campaignCriterionIds = value; + } + + /** + * Gets the value of the criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignCriterionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignCriterionsResponse.java new file mode 100644 index 0000000000..2d9842dd8b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignCriterionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteCampaignCriterionsResponse") +public class DeleteCampaignCriterionsResponse { + + @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/v10/campaignmanagement/DeleteCampaignsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignsRequest.java new file mode 100644 index 0000000000..1955fb8968 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaignIds" +}) +@XmlRootElement(name = "DeleteCampaignsRequest") +public class DeleteCampaignsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "CampaignIds", nillable = true) + protected ArrayOflong campaignIds; + + /** + * 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 campaignIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getCampaignIds() { + return campaignIds; + } + + /** + * Sets the value of the campaignIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setCampaignIds(ArrayOflong value) { + this.campaignIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignsResponse.java new file mode 100644 index 0000000000..0f421758b5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteCampaignsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteCampaignsResponse") +public class DeleteCampaignsResponse { + + @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/v10/campaignmanagement/DeleteKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteKeywordsRequest.java new file mode 100644 index 0000000000..2f56bd5111 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteKeywordsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="KeywordIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "keywordIds" +}) +@XmlRootElement(name = "DeleteKeywordsRequest") +public class DeleteKeywordsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "KeywordIds", nillable = true) + protected ArrayOflong keywordIds; + + /** + * 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 keywordIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getKeywordIds() { + return keywordIds; + } + + /** + * Sets the value of the keywordIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setKeywordIds(ArrayOflong value) { + this.keywordIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteKeywordsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteKeywordsResponse.java new file mode 100644 index 0000000000..f719602953 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteKeywordsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteKeywordsResponse") +public class DeleteKeywordsResponse { + + @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/v10/campaignmanagement/DeleteListItemsFromSharedListRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteListItemsFromSharedListRequest.java new file mode 100644 index 0000000000..8a22968e77 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteListItemsFromSharedListRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ListItemIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="SharedList" type="{https://bingads.microsoft.com/CampaignManagement/v10}SharedList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "listItemIds", + "sharedList" +}) +@XmlRootElement(name = "DeleteListItemsFromSharedListRequest") +public class DeleteListItemsFromSharedListRequest { + + @XmlElement(name = "ListItemIds", nillable = true) + protected ArrayOflong listItemIds; + @XmlElement(name = "SharedList", nillable = true) + protected SharedList sharedList; + + /** + * Gets the value of the listItemIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getListItemIds() { + return listItemIds; + } + + /** + * Sets the value of the listItemIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setListItemIds(ArrayOflong value) { + this.listItemIds = value; + } + + /** + * Gets the value of the sharedList property. + * + * @return + * possible object is + * {@link SharedList } + * + */ + public SharedList getSharedList() { + return sharedList; + } + + /** + * Sets the value of the sharedList property. + * + * @param value + * allowed object is + * {@link SharedList } + * + */ + public void setSharedList(SharedList value) { + this.sharedList = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteListItemsFromSharedListResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteListItemsFromSharedListResponse.java new file mode 100644 index 0000000000..b85b4e8bd2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteListItemsFromSharedListResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteListItemsFromSharedListResponse") +public class DeleteListItemsFromSharedListResponse { + + @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/v10/campaignmanagement/DeleteMediaRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteMediaRequest.java new file mode 100644 index 0000000000..91ad084973 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteMediaRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MediaIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "mediaIds" +}) +@XmlRootElement(name = "DeleteMediaRequest") +public class DeleteMediaRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "MediaIds", nillable = true) + protected ArrayOflong mediaIds; + + /** + * 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 mediaIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getMediaIds() { + return mediaIds; + } + + /** + * Sets the value of the mediaIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setMediaIds(ArrayOflong value) { + this.mediaIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteMediaResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteMediaResponse.java new file mode 100644 index 0000000000..3c2105f0fd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteMediaResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteMediaResponse") +public class DeleteMediaResponse { + + @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/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesRequest.java new file mode 100644 index 0000000000..7eee43ce0e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityNegativeKeywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfEntityNegativeKeyword" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entityNegativeKeywords" +}) +@XmlRootElement(name = "DeleteNegativeKeywordsFromEntitiesRequest") +public class DeleteNegativeKeywordsFromEntitiesRequest { + + @XmlElement(name = "EntityNegativeKeywords", nillable = true) + protected ArrayOfEntityNegativeKeyword entityNegativeKeywords; + + /** + * Gets the value of the entityNegativeKeywords property. + * + * @return + * possible object is + * {@link ArrayOfEntityNegativeKeyword } + * + */ + public ArrayOfEntityNegativeKeyword getEntityNegativeKeywords() { + return entityNegativeKeywords; + } + + /** + * Sets the value of the entityNegativeKeywords property. + * + * @param value + * allowed object is + * {@link ArrayOfEntityNegativeKeyword } + * + */ + public void setEntityNegativeKeywords(ArrayOfEntityNegativeKeyword value) { + this.entityNegativeKeywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesResponse.java new file mode 100644 index 0000000000..cc4bbaba94 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteNegativeKeywordsFromEntitiesResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="NestedPartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchErrorCollection" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "nestedPartialErrors" +}) +@XmlRootElement(name = "DeleteNegativeKeywordsFromEntitiesResponse") +public class DeleteNegativeKeywordsFromEntitiesResponse { + + @XmlElement(name = "NestedPartialErrors", nillable = true) + protected ArrayOfBatchErrorCollection nestedPartialErrors; + + /** + * Gets the value of the nestedPartialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public ArrayOfBatchErrorCollection getNestedPartialErrors() { + return nestedPartialErrors; + } + + /** + * Sets the value of the nestedPartialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public void setNestedPartialErrors(ArrayOfBatchErrorCollection value) { + this.nestedPartialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesRequest.java new file mode 100644 index 0000000000..8ebf463d0c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedEntities" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedEntity" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sharedEntities" +}) +@XmlRootElement(name = "DeleteSharedEntitiesRequest") +public class DeleteSharedEntitiesRequest { + + @XmlElement(name = "SharedEntities", nillable = true) + protected ArrayOfSharedEntity sharedEntities; + + /** + * Gets the value of the sharedEntities property. + * + * @return + * possible object is + * {@link ArrayOfSharedEntity } + * + */ + public ArrayOfSharedEntity getSharedEntities() { + return sharedEntities; + } + + /** + * Sets the value of the sharedEntities property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedEntity } + * + */ + public void setSharedEntities(ArrayOfSharedEntity value) { + this.sharedEntities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesResponse.java new file mode 100644 index 0000000000..2fddc32027 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntitiesResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteSharedEntitiesResponse") +public class DeleteSharedEntitiesResponse { + + @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/v10/campaignmanagement/DeleteSharedEntityAssociationsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntityAssociationsRequest.java new file mode 100644 index 0000000000..dccca609a4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntityAssociationsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Associations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedEntityAssociation" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "associations" +}) +@XmlRootElement(name = "DeleteSharedEntityAssociationsRequest") +public class DeleteSharedEntityAssociationsRequest { + + @XmlElement(name = "Associations", nillable = true) + protected ArrayOfSharedEntityAssociation associations; + + /** + * Gets the value of the associations property. + * + * @return + * possible object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public ArrayOfSharedEntityAssociation getAssociations() { + return associations; + } + + /** + * Sets the value of the associations property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public void setAssociations(ArrayOfSharedEntityAssociation value) { + this.associations = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntityAssociationsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntityAssociationsResponse.java new file mode 100644 index 0000000000..e9a20f3dc1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSharedEntityAssociationsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "DeleteSharedEntityAssociationsResponse") +public class DeleteSharedEntityAssociationsResponse { + + @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/v10/campaignmanagement/DeleteSitePlacementsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSitePlacementsRequest.java new file mode 100644 index 0000000000..63b09fdc1e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSitePlacementsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SitePlacementIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "sitePlacementIds" +}) +@XmlRootElement(name = "DeleteSitePlacementsRequest") +public class DeleteSitePlacementsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "SitePlacementIds", nillable = true) + protected ArrayOflong sitePlacementIds; + + /** + * 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 sitePlacementIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getSitePlacementIds() { + return sitePlacementIds; + } + + /** + * Sets the value of the sitePlacementIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setSitePlacementIds(ArrayOflong value) { + this.sitePlacementIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSitePlacementsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSitePlacementsResponse.java new file mode 100644 index 0000000000..1d723de410 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteSitePlacementsResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DeleteSitePlacementsResponse") +public class DeleteSitePlacementsResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupRequest.java new file mode 100644 index 0000000000..d35c41d4b7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId" +}) +@XmlRootElement(name = "DeleteTargetFromAdGroupRequest") +public class DeleteTargetFromAdGroupRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + + /** + * 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupResponse.java new file mode 100644 index 0000000000..925c493829 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromAdGroupResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DeleteTargetFromAdGroupResponse") +public class DeleteTargetFromAdGroupResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromCampaignRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromCampaignRequest.java new file mode 100644 index 0000000000..2de7570391 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromCampaignRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId" +}) +@XmlRootElement(name = "DeleteTargetFromCampaignRequest") +public class DeleteTargetFromCampaignRequest { + + @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/v10/campaignmanagement/DeleteTargetFromCampaignResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromCampaignResponse.java new file mode 100644 index 0000000000..9443071fa7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetFromCampaignResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DeleteTargetFromCampaignResponse") +public class DeleteTargetFromCampaignResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryRequest.java new file mode 100644 index 0000000000..1b909dbecb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TargetIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "targetIds" +}) +@XmlRootElement(name = "DeleteTargetsFromLibraryRequest") +public class DeleteTargetsFromLibraryRequest { + + @XmlElement(name = "TargetIds", nillable = true) + protected ArrayOflong targetIds; + + /** + * Gets the value of the targetIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getTargetIds() { + return targetIds; + } + + /** + * Sets the value of the targetIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setTargetIds(ArrayOflong value) { + this.targetIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryResponse.java new file mode 100644 index 0000000000..9d9acb378b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeleteTargetsFromLibraryResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "DeleteTargetsFromLibraryResponse") +public class DeleteTargetsFromLibraryResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTarget.java new file mode 100644 index 0000000000..c0421cb170 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DeviceOSTarget complex type. + * + *

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

+ * <complexType name="DeviceOSTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfDeviceOSTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DeviceOSTarget", propOrder = { + "bids" +}) +public class DeviceOSTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfDeviceOSTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfDeviceOSTargetBid } + * + */ + public ArrayOfDeviceOSTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfDeviceOSTargetBid } + * + */ + public void setBids(ArrayOfDeviceOSTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTargetBid.java new file mode 100644 index 0000000000..8782651e93 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DeviceOSTargetBid.java @@ -0,0 +1,110 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DeviceOSTargetBid complex type. + * + *

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

+ * <complexType name="DeviceOSTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="DeviceName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="OSNames" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DeviceOSTargetBid", propOrder = { + "bidAdjustment", + "deviceName", + "osNames" +}) +public class DeviceOSTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "DeviceName", required = true, nillable = true) + protected String deviceName; + @XmlElement(name = "OSNames", required = true, nillable = true) + protected ArrayOfstring osNames; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the deviceName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDeviceName() { + return deviceName; + } + + /** + * Sets the value of the deviceName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDeviceName(String value) { + this.deviceName = value; + } + + /** + * Gets the value of the osNames property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getOSNames() { + return osNames; + } + + /** + * Sets the value of the osNames property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setOSNames(ArrayOfstring value) { + this.osNames = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Dimension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Dimension.java new file mode 100644 index 0000000000..db8db7dcf9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Dimension.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Dimension complex type. + * + *

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

+ * <complexType name="Dimension">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Height" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Width" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Dimension", propOrder = { + "height", + "width" +}) +public class Dimension { + + @XmlElement(name = "Height") + protected Integer height; + @XmlElement(name = "Width") + protected Integer width; + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHeight(Integer value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setWidth(Integer value) { + this.width = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/DistanceUnit.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/DistanceUnit.java new file mode 100644 index 0000000000..c6c5e604ee --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/DistanceUnit.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DistanceUnit. + * + *

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

+ *

+ * <simpleType name="DistanceUnit">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Miles"/>
+ *     <enumeration value="Kilometers"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "DistanceUnit") +@XmlEnum +public enum DistanceUnit { + + @XmlEnumValue("Miles") + MILES("Miles"), + @XmlEnumValue("Kilometers") + KILOMETERS("Kilometers"); + private final String value; + + DistanceUnit(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DistanceUnit fromValue(String v) { + for (DistanceUnit c: DistanceUnit.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Duration.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Duration.java new file mode 100644 index 0000000000..118c122b3b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Duration.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for duration simple type. + * + *

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

+ * <simpleType name="duration">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}duration">
+ *     <pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
+ *     <minInclusive value="-P10675199DT2H48M5.4775808S"/>
+ *     <maxInclusive value="P10675199DT2H48M5.4775807S"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "duration", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Duration { + + @XmlValue + protected javax.xml.datatype.Duration value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link javax.xml.datatype.Duration } + * + */ + public javax.xml.datatype.Duration getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link javax.xml.datatype.Duration } + * + */ + public void setValue(javax.xml.datatype.Duration value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITIES.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITIES.java new file mode 100644 index 0000000000..666f8aeab6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITIES.java @@ -0,0 +1,70 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for ENTITIES simple type. + * + *

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

+ * <simpleType name="ENTITIES">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}ENTITY" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ENTITIES", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class ENTITIES { + + @XmlValue + @XmlSchemaType(name = "ENTITIES") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ENTITY } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITY.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITY.java new file mode 100644 index 0000000000..50544f86e6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ENTITY.java @@ -0,0 +1,59 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for ENTITY simple type. + * + *

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

+ * <simpleType name="ENTITY">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}NCName">
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ENTITY", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class ENTITY { + + @XmlValue + @XmlSchemaType(name = "ENTITY") + protected NCName value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NCName } + * + */ + public NCName getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NCName } + * + */ + public void setValue(NCName value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail.java new file mode 100644 index 0000000000..1af5d17a4e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EditorialApiFaultDetail complex type. + * + *

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

+ * <complexType name="EditorialApiFaultDetail">
+ *   <complexContent>
+ *     <extension base="{https://adapi.microsoft.com}ApplicationFault">
+ *       <sequence>
+ *         <element name="BatchErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="EditorialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfEditorialError" minOccurs="0"/>
+ *         <element name="OperationErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfOperationError" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EditorialApiFaultDetail", propOrder = { + "batchErrors", + "editorialErrors", + "operationErrors" +}) +public class EditorialApiFaultDetail + extends ApplicationFault +{ + + @XmlElement(name = "BatchErrors", nillable = true) + protected ArrayOfBatchError batchErrors; + @XmlElement(name = "EditorialErrors", nillable = true) + protected ArrayOfEditorialError editorialErrors; + @XmlElement(name = "OperationErrors", nillable = true) + protected ArrayOfOperationError operationErrors; + + /** + * Gets the value of the batchErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError getBatchErrors() { + return batchErrors; + } + + /** + * Sets the value of the batchErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchError } + * + */ + public void setBatchErrors(ArrayOfBatchError value) { + this.batchErrors = value; + } + + /** + * Gets the value of the editorialErrors property. + * + * @return + * possible object is + * {@link ArrayOfEditorialError } + * + */ + public ArrayOfEditorialError getEditorialErrors() { + return editorialErrors; + } + + /** + * Sets the value of the editorialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfEditorialError } + * + */ + public void setEditorialErrors(ArrayOfEditorialError value) { + this.editorialErrors = value; + } + + /** + * Gets the value of the operationErrors property. + * + * @return + * possible object is + * {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError getOperationErrors() { + return operationErrors; + } + + /** + * Sets the value of the operationErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfOperationError } + * + */ + public void setOperationErrors(ArrayOfOperationError value) { + this.operationErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail_Exception.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail_Exception.java new file mode 100644 index 0000000000..6c05accd1c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialApiFaultDetail_Exception.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.ws.WebFault; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebFault(name = "EditorialApiFaultDetail", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10") +public class EditorialApiFaultDetail_Exception + extends Exception +{ + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private EditorialApiFaultDetail faultInfo; + + /** + * + * @param faultInfo + * @param message + */ + public EditorialApiFaultDetail_Exception(String message, EditorialApiFaultDetail faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param faultInfo + * @param cause + * @param message + */ + public EditorialApiFaultDetail_Exception(String message, EditorialApiFaultDetail faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return + * returns fault bean: com.microsoft.bingads.v10.campaignmanagement.EditorialApiFaultDetail + */ + public EditorialApiFaultDetail getFaultInfo() { + return faultInfo; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialError.java new file mode 100644 index 0000000000..e82b5f502b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialError.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EditorialError complex type. + * + *

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

+ * <complexType name="EditorialError">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}BatchError">
+ *       <sequence>
+ *         <element name="Appealable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="DisapprovedText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Location" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountry" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ReasonCode" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EditorialError", propOrder = { + "appealable", + "disapprovedText", + "location", + "publisherCountry", + "reasonCode" +}) +public class EditorialError + extends BatchError +{ + + @XmlElement(name = "Appealable", nillable = true) + protected Boolean appealable; + @XmlElement(name = "DisapprovedText", nillable = true) + protected String disapprovedText; + @XmlElement(name = "Location", nillable = true) + protected String location; + @XmlElement(name = "PublisherCountry", nillable = true) + protected String publisherCountry; + @XmlElement(name = "ReasonCode") + protected Integer reasonCode; + + /** + * Gets the value of the appealable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getAppealable() { + return appealable; + } + + /** + * Sets the value of the appealable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAppealable(Boolean value) { + this.appealable = value; + } + + /** + * Gets the value of the disapprovedText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisapprovedText() { + return disapprovedText; + } + + /** + * Sets the value of the disapprovedText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisapprovedText(String value) { + this.disapprovedText = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the publisherCountry property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisherCountry() { + return publisherCountry; + } + + /** + * Sets the value of the publisherCountry property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisherCountry(String value) { + this.publisherCountry = value; + } + + /** + * Gets the value of the reasonCode property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getReasonCode() { + return reasonCode; + } + + /** + * Sets the value of the reasonCode property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setReasonCode(Integer value) { + this.reasonCode = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReason.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReason.java new file mode 100644 index 0000000000..e53248e56e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReason.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EditorialReason complex type. + * + *

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

+ * <complexType name="EditorialReason">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Location" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="ReasonCode" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Term" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EditorialReason", propOrder = { + "location", + "publisherCountries", + "reasonCode", + "term" +}) +public class EditorialReason { + + @XmlElement(name = "Location", nillable = true) + protected String location; + @XmlElement(name = "PublisherCountries", nillable = true) + protected ArrayOfstring publisherCountries; + @XmlElement(name = "ReasonCode") + protected Integer reasonCode; + @XmlElement(name = "Term", nillable = true) + protected String term; + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the publisherCountries property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getPublisherCountries() { + return publisherCountries; + } + + /** + * Sets the value of the publisherCountries property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setPublisherCountries(ArrayOfstring value) { + this.publisherCountries = value; + } + + /** + * Gets the value of the reasonCode property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getReasonCode() { + return reasonCode; + } + + /** + * Sets the value of the reasonCode property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setReasonCode(Integer value) { + this.reasonCode = value; + } + + /** + * Gets the value of the term property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTerm() { + return term; + } + + /** + * Sets the value of the term property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTerm(String value) { + this.term = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReasonCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReasonCollection.java new file mode 100644 index 0000000000..30968d6b8d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EditorialReasonCollection.java @@ -0,0 +1,148 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EditorialReasonCollection complex type. + * + *

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

+ * <complexType name="EditorialReasonCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdOrKeywordId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AppealStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}AppealStatus" minOccurs="0"/>
+ *         <element name="Reasons" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfEditorialReason" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EditorialReasonCollection", propOrder = { + "adGroupId", + "adOrKeywordId", + "appealStatus", + "reasons" +}) +public class EditorialReasonCollection { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "AdOrKeywordId") + protected Long adOrKeywordId; + @XmlElement(name = "AppealStatus") + @XmlSchemaType(name = "string") + protected AppealStatus appealStatus; + @XmlElement(name = "Reasons", nillable = true) + protected ArrayOfEditorialReason reasons; + + /** + * 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 adOrKeywordId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getAdOrKeywordId() { + return adOrKeywordId; + } + + /** + * Sets the value of the adOrKeywordId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setAdOrKeywordId(Long value) { + this.adOrKeywordId = value; + } + + /** + * Gets the value of the appealStatus property. + * + * @return + * possible object is + * {@link AppealStatus } + * + */ + public AppealStatus getAppealStatus() { + return appealStatus; + } + + /** + * Sets the value of the appealStatus property. + * + * @param value + * allowed object is + * {@link AppealStatus } + * + */ + public void setAppealStatus(AppealStatus value) { + this.appealStatus = value; + } + + /** + * Gets the value of the reasons property. + * + * @return + * possible object is + * {@link ArrayOfEditorialReason } + * + */ + public ArrayOfEditorialReason getReasons() { + return reasons; + } + + /** + * Sets the value of the reasons property. + * + * @param value + * allowed object is + * {@link ArrayOfEditorialReason } + * + */ + public void setReasons(ArrayOfEditorialReason value) { + this.reasons = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityIdToParentIdAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityIdToParentIdAssociation.java new file mode 100644 index 0000000000..febef4d5b9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityIdToParentIdAssociation.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EntityIdToParentIdAssociation complex type. + * + *

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

+ * <complexType name="EntityIdToParentIdAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ParentId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EntityIdToParentIdAssociation", namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", propOrder = { + "entityId", + "parentId" +}) +public class EntityIdToParentIdAssociation { + + @XmlElement(name = "EntityId") + protected Long entityId; + @XmlElement(name = "ParentId") + protected Long parentId; + + /** + * Gets the value of the entityId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getEntityId() { + return entityId; + } + + /** + * Sets the value of the entityId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setEntityId(Long value) { + this.entityId = value; + } + + /** + * Gets the value of the parentId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getParentId() { + return parentId; + } + + /** + * Sets the value of the parentId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setParentId(Long value) { + this.parentId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityNegativeKeyword.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityNegativeKeyword.java new file mode 100644 index 0000000000..fc0255a9cc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityNegativeKeyword.java @@ -0,0 +1,110 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EntityNegativeKeyword complex type. + * + *

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

+ * <complexType name="EntityNegativeKeyword">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="EntityType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="NegativeKeywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfNegativeKeyword"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "EntityNegativeKeyword", propOrder = { + "entityId", + "entityType", + "negativeKeywords" +}) +public class EntityNegativeKeyword { + + @XmlElement(name = "EntityId") + protected long entityId; + @XmlElement(name = "EntityType", required = true, nillable = true) + protected String entityType; + @XmlElement(name = "NegativeKeywords", required = true, nillable = true) + protected ArrayOfNegativeKeyword negativeKeywords; + + /** + * Gets the value of the entityId property. + * + */ + public long getEntityId() { + return entityId; + } + + /** + * Sets the value of the entityId property. + * + */ + public void setEntityId(long value) { + this.entityId = value; + } + + /** + * Gets the value of the entityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntityType() { + return entityType; + } + + /** + * Sets the value of the entityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntityType(String value) { + this.entityType = value; + } + + /** + * Gets the value of the negativeKeywords property. + * + * @return + * possible object is + * {@link ArrayOfNegativeKeyword } + * + */ + public ArrayOfNegativeKeyword getNegativeKeywords() { + return negativeKeywords; + } + + /** + * Sets the value of the negativeKeywords property. + * + * @param value + * allowed object is + * {@link ArrayOfNegativeKeyword } + * + */ + public void setNegativeKeywords(ArrayOfNegativeKeyword value) { + this.negativeKeywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityType.java new file mode 100644 index 0000000000..6721d5d2ac --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/EntityType.java @@ -0,0 +1,66 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for EntityType. + * + *

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

+ *

+ * <simpleType name="EntityType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Campaign"/>
+ *     <enumeration value="AdGroup"/>
+ *     <enumeration value="Target"/>
+ *     <enumeration value="Ad"/>
+ *     <enumeration value="Keyword"/>
+ *     <enumeration value="AdExtension"/>
+ *     <enumeration value="AdGroupCriterion"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "EntityType") +@XmlEnum +public enum EntityType { + + @XmlEnumValue("Campaign") + CAMPAIGN("Campaign"), + @XmlEnumValue("AdGroup") + AD_GROUP("AdGroup"), + @XmlEnumValue("Target") + TARGET("Target"), + @XmlEnumValue("Ad") + AD("Ad"), + @XmlEnumValue("Keyword") + KEYWORD("Keyword"), + @XmlEnumValue("AdExtension") + AD_EXTENSION("AdExtension"), + @XmlEnumValue("AdGroupCriterion") + AD_GROUP_CRITERION("AdGroupCriterion"); + private final String value; + + EntityType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EntityType fromValue(String v) { + for (EntityType c: EntityType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/FixedBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/FixedBid.java new file mode 100644 index 0000000000..f55b7e018d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/FixedBid.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for FixedBid complex type. + * + *

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

+ * <complexType name="FixedBid">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}CriterionBid">
+ *       <sequence>
+ *         <element name="Bid" type="{https://bingads.microsoft.com/CampaignManagement/v10}Bid" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "FixedBid", propOrder = { + "bid" +}) +public class FixedBid + extends CriterionBid +{ + + @XmlElement(name = "Bid", nillable = true) + protected Bid bid; + + /** + * Gets the value of the bid property. + * + * @return + * possible object is + * {@link Bid } + * + */ + public Bid getBid() { + return bid; + } + + /** + * Sets the value of the bid property. + * + * @param value + * allowed object is + * {@link Bid } + * + */ + public void setBid(Bid value) { + this.bid = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTarget.java new file mode 100644 index 0000000000..7d119f2e26 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GenderTarget complex type. + * + *

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

+ * <complexType name="GenderTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfGenderTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GenderTarget", propOrder = { + "bids" +}) +public class GenderTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfGenderTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfGenderTargetBid } + * + */ + public ArrayOfGenderTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfGenderTargetBid } + * + */ + public void setBids(ArrayOfGenderTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTargetBid.java new file mode 100644 index 0000000000..de7d1d2fd3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderTargetBid.java @@ -0,0 +1,84 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GenderTargetBid complex type. + * + *

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

+ * <complexType name="GenderTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="Gender" type="{https://bingads.microsoft.com/CampaignManagement/v10}GenderType"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GenderTargetBid", propOrder = { + "bidAdjustment", + "gender" +}) +public class GenderTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "Gender", required = true) + @XmlSchemaType(name = "string") + protected GenderType gender; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the gender property. + * + * @return + * possible object is + * {@link GenderType } + * + */ + public GenderType getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value + * allowed object is + * {@link GenderType } + * + */ + public void setGender(GenderType value) { + this.gender = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderType.java new file mode 100644 index 0000000000..1571f6e291 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GenderType.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GenderType. + * + *

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

+ *

+ * <simpleType name="GenderType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Male"/>
+ *     <enumeration value="Female"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "GenderType") +@XmlEnum +public enum GenderType { + + @XmlEnumValue("Male") + MALE("Male"), + @XmlEnumValue("Female") + FEMALE("Female"); + private final String value; + + GenderType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static GenderType fromValue(String v) { + for (GenderType c: GenderType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GeoPoint.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GeoPoint.java new file mode 100644 index 0000000000..18d4d8526c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GeoPoint.java @@ -0,0 +1,74 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for GeoPoint complex type. + * + *

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

+ * <complexType name="GeoPoint">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="LatitudeInMicroDegrees" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="LongitudeInMicroDegrees" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "GeoPoint", propOrder = { + "latitudeInMicroDegrees", + "longitudeInMicroDegrees" +}) +public class GeoPoint { + + @XmlElement(name = "LatitudeInMicroDegrees") + protected int latitudeInMicroDegrees; + @XmlElement(name = "LongitudeInMicroDegrees") + protected int longitudeInMicroDegrees; + + /** + * Gets the value of the latitudeInMicroDegrees property. + * + */ + public int getLatitudeInMicroDegrees() { + return latitudeInMicroDegrees; + } + + /** + * Sets the value of the latitudeInMicroDegrees property. + * + */ + public void setLatitudeInMicroDegrees(int value) { + this.latitudeInMicroDegrees = value; + } + + /** + * Gets the value of the longitudeInMicroDegrees property. + * + */ + public int getLongitudeInMicroDegrees() { + return longitudeInMicroDegrees; + } + + /** + * Sets the value of the longitudeInMicroDegrees property. + * + */ + public void setLongitudeInMicroDegrees(int value) { + this.longitudeInMicroDegrees = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdRequest.java new file mode 100644 index 0000000000..e7bccb7d9e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdRequest.java @@ -0,0 +1,126 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionsTypeFilter" minOccurs="0"/>
+ *         <element name="AssociationType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AssociationType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensionType", + "associationType" +}) +@XmlRootElement(name = "GetAdExtensionIdsByAccountIdRequest") +public class GetAdExtensionIdsByAccountIdRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensionType", type = String.class) + @XmlJavaTypeAdapter(Adapter4 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection adExtensionType; + @XmlElement(name = "AssociationType", nillable = true) + @XmlSchemaType(name = "string") + protected AssociationType associationType; + + /** + * 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 adExtensionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getAdExtensionType() { + return adExtensionType; + } + + /** + * Sets the value of the adExtensionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdExtensionType(Collection value) { + this.adExtensionType = value; + } + + /** + * Gets the value of the associationType property. + * + * @return + * possible object is + * {@link AssociationType } + * + */ + public AssociationType getAssociationType() { + return associationType; + } + + /** + * Sets the value of the associationType property. + * + * @param value + * allowed object is + * {@link AssociationType } + * + */ + public void setAssociationType(AssociationType value) { + this.associationType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdResponse.java new file mode 100644 index 0000000000..21747fc12e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionIdsByAccountIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adExtensionIds" +}) +@XmlRootElement(name = "GetAdExtensionIdsByAccountIdResponse") +public class GetAdExtensionIdsByAccountIdResponse { + + @XmlElement(name = "AdExtensionIds", nillable = true) + protected ArrayOflong adExtensionIds; + + /** + * Gets the value of the adExtensionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdExtensionIds() { + return adExtensionIds; + } + + /** + * Sets the value of the adExtensionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdExtensionIds(ArrayOflong value) { + this.adExtensionIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsRequest.java new file mode 100644 index 0000000000..5b222b0a8e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsRequest.java @@ -0,0 +1,154 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionsTypeFilter" minOccurs="0"/>
+ *         <element name="AssociationType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AssociationType" minOccurs="0"/>
+ *         <element name="EntityIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensionType", + "associationType", + "entityIds" +}) +@XmlRootElement(name = "GetAdExtensionsAssociationsRequest") +public class GetAdExtensionsAssociationsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensionType", type = String.class) + @XmlJavaTypeAdapter(Adapter4 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection adExtensionType; + @XmlElement(name = "AssociationType") + @XmlSchemaType(name = "string") + protected AssociationType associationType; + @XmlElement(name = "EntityIds", nillable = true) + protected ArrayOflong entityIds; + + /** + * 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 adExtensionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getAdExtensionType() { + return adExtensionType; + } + + /** + * Sets the value of the adExtensionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdExtensionType(Collection value) { + this.adExtensionType = value; + } + + /** + * Gets the value of the associationType property. + * + * @return + * possible object is + * {@link AssociationType } + * + */ + public AssociationType getAssociationType() { + return associationType; + } + + /** + * Sets the value of the associationType property. + * + * @param value + * allowed object is + * {@link AssociationType } + * + */ + public void setAssociationType(AssociationType value) { + this.associationType = value; + } + + /** + * Gets the value of the entityIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getEntityIds() { + return entityIds; + } + + /** + * Sets the value of the entityIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setEntityIds(ArrayOflong value) { + this.entityIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsResponse.java new file mode 100644 index 0000000000..ae4874be6e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsAssociationsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensionAssociationCollection" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionAssociationCollection" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adExtensionAssociationCollection", + "partialErrors" +}) +@XmlRootElement(name = "GetAdExtensionsAssociationsResponse") +public class GetAdExtensionsAssociationsResponse { + + @XmlElement(name = "AdExtensionAssociationCollection", nillable = true) + protected ArrayOfAdExtensionAssociationCollection adExtensionAssociationCollection; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the adExtensionAssociationCollection property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionAssociationCollection } + * + */ + public ArrayOfAdExtensionAssociationCollection getAdExtensionAssociationCollection() { + return adExtensionAssociationCollection; + } + + /** + * Sets the value of the adExtensionAssociationCollection property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionAssociationCollection } + * + */ + public void setAdExtensionAssociationCollection(ArrayOfAdExtensionAssociationCollection value) { + this.adExtensionAssociationCollection = 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/v10/campaignmanagement/GetAdExtensionsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsByIdsRequest.java new file mode 100644 index 0000000000..29b5d4bbb7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsByIdsRequest.java @@ -0,0 +1,125 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensionIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="AdExtensionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtensionsTypeFilter" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensionIds", + "adExtensionType" +}) +@XmlRootElement(name = "GetAdExtensionsByIdsRequest") +public class GetAdExtensionsByIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensionIds", nillable = true) + protected ArrayOflong adExtensionIds; + @XmlElement(name = "AdExtensionType", type = String.class) + @XmlJavaTypeAdapter(Adapter4 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection adExtensionType; + + /** + * 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 adExtensionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdExtensionIds() { + return adExtensionIds; + } + + /** + * Sets the value of the adExtensionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdExtensionIds(ArrayOflong value) { + this.adExtensionIds = value; + } + + /** + * Gets the value of the adExtensionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getAdExtensionType() { + return adExtensionType; + } + + /** + * Sets the value of the adExtensionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdExtensionType(Collection value) { + this.adExtensionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsByIdsResponse.java new file mode 100644 index 0000000000..7cfef55f19 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsByIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdExtensions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtension" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adExtensions" +}) +@XmlRootElement(name = "GetAdExtensionsByIdsResponse") +public class GetAdExtensionsByIdsResponse { + + @XmlElement(name = "AdExtensions", nillable = true) + protected ArrayOfAdExtension adExtensions; + + /** + * Gets the value of the adExtensions property. + * + * @return + * possible object is + * {@link ArrayOfAdExtension } + * + */ + public ArrayOfAdExtension getAdExtensions() { + return adExtensions; + } + + /** + * Sets the value of the adExtensions property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtension } + * + */ + public void setAdExtensions(ArrayOfAdExtension value) { + this.adExtensions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsRequest.java new file mode 100644 index 0000000000..7e0e064c34 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsRequest.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensionIdToEntityIdAssociations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionIdToEntityIdAssociation" minOccurs="0"/>
+ *         <element name="AssociationType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AssociationType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensionIdToEntityIdAssociations", + "associationType" +}) +@XmlRootElement(name = "GetAdExtensionsEditorialReasonsRequest") +public class GetAdExtensionsEditorialReasonsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensionIdToEntityIdAssociations", nillable = true) + protected ArrayOfAdExtensionIdToEntityIdAssociation adExtensionIdToEntityIdAssociations; + @XmlElement(name = "AssociationType") + @XmlSchemaType(name = "string") + protected AssociationType associationType; + + /** + * 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 adExtensionIdToEntityIdAssociations property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionIdToEntityIdAssociation } + * + */ + public ArrayOfAdExtensionIdToEntityIdAssociation getAdExtensionIdToEntityIdAssociations() { + return adExtensionIdToEntityIdAssociations; + } + + /** + * Sets the value of the adExtensionIdToEntityIdAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionIdToEntityIdAssociation } + * + */ + public void setAdExtensionIdToEntityIdAssociations(ArrayOfAdExtensionIdToEntityIdAssociation value) { + this.adExtensionIdToEntityIdAssociations = value; + } + + /** + * Gets the value of the associationType property. + * + * @return + * possible object is + * {@link AssociationType } + * + */ + public AssociationType getAssociationType() { + return associationType; + } + + /** + * Sets the value of the associationType property. + * + * @param value + * allowed object is + * {@link AssociationType } + * + */ + public void setAssociationType(AssociationType value) { + this.associationType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsResponse.java new file mode 100644 index 0000000000..f79cb3476d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdExtensionsEditorialReasonsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EditorialReasons" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionEditorialReasonCollection" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "editorialReasons" +}) +@XmlRootElement(name = "GetAdExtensionsEditorialReasonsResponse") +public class GetAdExtensionsEditorialReasonsResponse { + + @XmlElement(name = "EditorialReasons", nillable = true) + protected ArrayOfAdExtensionEditorialReasonCollection editorialReasons; + + /** + * Gets the value of the editorialReasons property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionEditorialReasonCollection } + * + */ + public ArrayOfAdExtensionEditorialReasonCollection getEditorialReasons() { + return editorialReasons; + } + + /** + * Sets the value of the editorialReasons property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionEditorialReasonCollection } + * + */ + public void setEditorialReasons(ArrayOfAdExtensionEditorialReasonCollection value) { + this.editorialReasons = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsRequest.java new file mode 100644 index 0000000000..18103a8856 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsRequest.java @@ -0,0 +1,153 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupCriterionIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adGroupCriterionIds", + "adGroupId", + "criterionType" +}) +@XmlRootElement(name = "GetAdGroupCriterionsByIdsRequest") +public class GetAdGroupCriterionsByIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdGroupCriterionIds", nillable = true) + protected ArrayOflong adGroupCriterionIds; + @XmlElement(name = "AdGroupId", nillable = true) + protected Long adGroupId; + @XmlElement(name = "CriterionType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter7 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * 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 adGroupCriterionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdGroupCriterionIds() { + return adGroupCriterionIds; + } + + /** + * Sets the value of the adGroupCriterionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdGroupCriterionIds(ArrayOflong value) { + this.adGroupCriterionIds = 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 criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsResponse.java new file mode 100644 index 0000000000..a649539b02 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupCriterionsByIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupCriterions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroupCriterion" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupCriterions" +}) +@XmlRootElement(name = "GetAdGroupCriterionsByIdsResponse") +public class GetAdGroupCriterionsByIdsResponse { + + @XmlElement(name = "AdGroupCriterions", nillable = true) + protected ArrayOfAdGroupCriterion adGroupCriterions; + + /** + * Gets the value of the adGroupCriterions property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupCriterion } + * + */ + public ArrayOfAdGroupCriterion getAdGroupCriterions() { + return adGroupCriterions; + } + + /** + * Sets the value of the adGroupCriterions property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupCriterion } + * + */ + public void setAdGroupCriterions(ArrayOfAdGroupCriterion value) { + this.adGroupCriterions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByCampaignIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByCampaignIdRequest.java new file mode 100644 index 0000000000..02bae7402a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByCampaignIdRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId" +}) +@XmlRootElement(name = "GetAdGroupsByCampaignIdRequest") +public class GetAdGroupsByCampaignIdRequest { + + @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/v10/campaignmanagement/GetAdGroupsByCampaignIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByCampaignIdResponse.java new file mode 100644 index 0000000000..09a677ce4e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByCampaignIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroups" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroup" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroups" +}) +@XmlRootElement(name = "GetAdGroupsByCampaignIdResponse") +public class GetAdGroupsByCampaignIdResponse { + + @XmlElement(name = "AdGroups", nillable = true) + protected ArrayOfAdGroup adGroups; + + /** + * Gets the value of the adGroups property. + * + * @return + * possible object is + * {@link ArrayOfAdGroup } + * + */ + public ArrayOfAdGroup getAdGroups() { + return adGroups; + } + + /** + * Sets the value of the adGroups property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroup } + * + */ + public void setAdGroups(ArrayOfAdGroup value) { + this.adGroups = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsRequest.java new file mode 100644 index 0000000000..03f7dc69c2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId", + "adGroupIds" +}) +@XmlRootElement(name = "GetAdGroupsByIdsRequest") +public class GetAdGroupsByIdsRequest { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "AdGroupIds", nillable = true) + protected ArrayOflong adGroupIds; + + /** + * 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 adGroupIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdGroupIds() { + return adGroupIds; + } + + /** + * Sets the value of the adGroupIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdGroupIds(ArrayOflong value) { + this.adGroupIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsResponse.java new file mode 100644 index 0000000000..24c6b1689c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdGroupsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroups" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroup" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroups", + "partialErrors" +}) +@XmlRootElement(name = "GetAdGroupsByIdsResponse") +public class GetAdGroupsByIdsResponse { + + @XmlElement(name = "AdGroups", nillable = true) + protected ArrayOfAdGroup adGroups; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the adGroups property. + * + * @return + * possible object is + * {@link ArrayOfAdGroup } + * + */ + public ArrayOfAdGroup getAdGroups() { + return adGroups; + } + + /** + * Sets the value of the adGroups property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroup } + * + */ + public void setAdGroups(ArrayOfAdGroup value) { + this.adGroups = 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/v10/campaignmanagement/GetAdsByAdGroupIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByAdGroupIdRequest.java new file mode 100644 index 0000000000..452140b0ee --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByAdGroupIdRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId" +}) +@XmlRootElement(name = "GetAdsByAdGroupIdRequest") +public class GetAdsByAdGroupIdRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + + /** + * 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByAdGroupIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByAdGroupIdResponse.java new file mode 100644 index 0000000000..d283317abf --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByAdGroupIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Ads" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAd" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "ads" +}) +@XmlRootElement(name = "GetAdsByAdGroupIdResponse") +public class GetAdsByAdGroupIdResponse { + + @XmlElement(name = "Ads", nillable = true) + protected ArrayOfAd ads; + + /** + * Gets the value of the ads property. + * + * @return + * possible object is + * {@link ArrayOfAd } + * + */ + public ArrayOfAd getAds() { + return ads; + } + + /** + * Sets the value of the ads property. + * + * @param value + * allowed object is + * {@link ArrayOfAd } + * + */ + public void setAds(ArrayOfAd value) { + this.ads = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusRequest.java new file mode 100644 index 0000000000..d1e5fa4b30 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusRequest.java @@ -0,0 +1,94 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="EditorialStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}AdEditorialStatus" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "editorialStatus" +}) +@XmlRootElement(name = "GetAdsByEditorialStatusRequest") +public class GetAdsByEditorialStatusRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "EditorialStatus") + @XmlSchemaType(name = "string") + protected AdEditorialStatus editorialStatus; + + /** + * 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 editorialStatus property. + * + * @return + * possible object is + * {@link AdEditorialStatus } + * + */ + public AdEditorialStatus getEditorialStatus() { + return editorialStatus; + } + + /** + * Sets the value of the editorialStatus property. + * + * @param value + * allowed object is + * {@link AdEditorialStatus } + * + */ + public void setEditorialStatus(AdEditorialStatus value) { + this.editorialStatus = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusResponse.java new file mode 100644 index 0000000000..69eb39af04 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByEditorialStatusResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Ads" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAd" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "ads" +}) +@XmlRootElement(name = "GetAdsByEditorialStatusResponse") +public class GetAdsByEditorialStatusResponse { + + @XmlElement(name = "Ads", nillable = true) + protected ArrayOfAd ads; + + /** + * Gets the value of the ads property. + * + * @return + * possible object is + * {@link ArrayOfAd } + * + */ + public ArrayOfAd getAds() { + return ads; + } + + /** + * Sets the value of the ads property. + * + * @param value + * allowed object is + * {@link ArrayOfAd } + * + */ + public void setAds(ArrayOfAd value) { + this.ads = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsRequest.java new file mode 100644 index 0000000000..0da6f45f69 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "adIds" +}) +@XmlRootElement(name = "GetAdsByIdsRequest") +public class GetAdsByIdsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "AdIds", nillable = true) + protected ArrayOflong adIds; + + /** + * 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 adIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdIds() { + return adIds; + } + + /** + * Sets the value of the adIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdIds(ArrayOflong value) { + this.adIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsResponse.java new file mode 100644 index 0000000000..4c3368599b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetAdsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Ads" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAd" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "ads", + "partialErrors" +}) +@XmlRootElement(name = "GetAdsByIdsResponse") +public class GetAdsByIdsResponse { + + @XmlElement(name = "Ads", nillable = true) + protected ArrayOfAd ads; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the ads property. + * + * @return + * possible object is + * {@link ArrayOfAd } + * + */ + public ArrayOfAd getAds() { + return ads; + } + + /** + * Sets the value of the ads property. + * + * @param value + * allowed object is + * {@link ArrayOfAd } + * + */ + public void setAds(ArrayOfAd value) { + this.ads = 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/v10/campaignmanagement/GetBMCStoresByCustomerIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetBMCStoresByCustomerIdRequest.java new file mode 100644 index 0000000000..8fabd9053f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetBMCStoresByCustomerIdRequest.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "GetBMCStoresByCustomerIdRequest") +public class GetBMCStoresByCustomerIdRequest { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetBMCStoresByCustomerIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetBMCStoresByCustomerIdResponse.java new file mode 100644 index 0000000000..49be3fce13 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetBMCStoresByCustomerIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BMCStores" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBMCStore" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "bmcStores" +}) +@XmlRootElement(name = "GetBMCStoresByCustomerIdResponse") +public class GetBMCStoresByCustomerIdResponse { + + @XmlElement(name = "BMCStores", nillable = true) + protected ArrayOfBMCStore bmcStores; + + /** + * Gets the value of the bmcStores property. + * + * @return + * possible object is + * {@link ArrayOfBMCStore } + * + */ + public ArrayOfBMCStore getBMCStores() { + return bmcStores; + } + + /** + * Sets the value of the bmcStores property. + * + * @param value + * allowed object is + * {@link ArrayOfBMCStore } + * + */ + public void setBMCStores(ArrayOfBMCStore value) { + this.bmcStores = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsRequest.java new file mode 100644 index 0000000000..681a69d6c0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsRequest.java @@ -0,0 +1,125 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignCriterionIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignCriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignCriterionIds", + "campaignId", + "criterionType" +}) +@XmlRootElement(name = "GetCampaignCriterionsByIdsRequest") +public class GetCampaignCriterionsByIdsRequest { + + @XmlElement(name = "CampaignCriterionIds", nillable = true) + protected ArrayOflong campaignCriterionIds; + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "CriterionType", type = String.class) + @XmlJavaTypeAdapter(Adapter2 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * Gets the value of the campaignCriterionIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getCampaignCriterionIds() { + return campaignCriterionIds; + } + + /** + * Sets the value of the campaignCriterionIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setCampaignCriterionIds(ArrayOflong value) { + this.campaignCriterionIds = 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 criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsResponse.java new file mode 100644 index 0000000000..a1a2d258bb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignCriterionsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignCriterions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaignCriterion" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignCriterions", + "partialErrors" +}) +@XmlRootElement(name = "GetCampaignCriterionsByIdsResponse") +public class GetCampaignCriterionsByIdsResponse { + + @XmlElement(name = "CampaignCriterions", nillable = true) + protected ArrayOfCampaignCriterion campaignCriterions; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the campaignCriterions property. + * + * @return + * possible object is + * {@link ArrayOfCampaignCriterion } + * + */ + public ArrayOfCampaignCriterion getCampaignCriterions() { + return campaignCriterions; + } + + /** + * Sets the value of the campaignCriterions property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignCriterion } + * + */ + public void setCampaignCriterions(ArrayOfCampaignCriterion value) { + this.campaignCriterions = 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/v10/campaignmanagement/GetCampaignSizesByAccountIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignSizesByAccountIdRequest.java new file mode 100644 index 0000000000..916455e19c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignSizesByAccountIdRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaignIds" +}) +@XmlRootElement(name = "GetCampaignSizesByAccountIdRequest") +public class GetCampaignSizesByAccountIdRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "CampaignIds", nillable = true) + protected ArrayOflong campaignIds; + + /** + * 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 campaignIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getCampaignIds() { + return campaignIds; + } + + /** + * Sets the value of the campaignIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setCampaignIds(ArrayOflong value) { + this.campaignIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignSizesByAccountIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignSizesByAccountIdResponse.java new file mode 100644 index 0000000000..ad032319ff --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignSizesByAccountIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignSizes" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaignSize" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignSizes" +}) +@XmlRootElement(name = "GetCampaignSizesByAccountIdResponse") +public class GetCampaignSizesByAccountIdResponse { + + @XmlElement(name = "CampaignSizes", nillable = true) + protected ArrayOfCampaignSize campaignSizes; + + /** + * Gets the value of the campaignSizes property. + * + * @return + * possible object is + * {@link ArrayOfCampaignSize } + * + */ + public ArrayOfCampaignSize getCampaignSizes() { + return campaignSizes; + } + + /** + * Sets the value of the campaignSizes property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignSize } + * + */ + public void setCampaignSizes(ArrayOfCampaignSize value) { + this.campaignSizes = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdRequest.java new file mode 100644 index 0000000000..97f0149e63 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdRequest.java @@ -0,0 +1,97 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaignType" +}) +@XmlRootElement(name = "GetCampaignsByAccountIdRequest") +public class GetCampaignsByAccountIdRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "CampaignType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter3 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection campaignType; + + /** + * 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 campaignType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCampaignType() { + return campaignType; + } + + /** + * Sets the value of the campaignType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCampaignType(Collection value) { + this.campaignType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdResponse.java new file mode 100644 index 0000000000..d6195f9418 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByAccountIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Campaigns" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaign" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaigns" +}) +@XmlRootElement(name = "GetCampaignsByAccountIdResponse") +public class GetCampaignsByAccountIdResponse { + + @XmlElement(name = "Campaigns", nillable = true) + protected ArrayOfCampaign campaigns; + + /** + * Gets the value of the campaigns property. + * + * @return + * possible object is + * {@link ArrayOfCampaign } + * + */ + public ArrayOfCampaign getCampaigns() { + return campaigns; + } + + /** + * Sets the value of the campaigns property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaign } + * + */ + public void setCampaigns(ArrayOfCampaign value) { + this.campaigns = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsRequest.java new file mode 100644 index 0000000000..c65f1a33c1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsRequest.java @@ -0,0 +1,125 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="CampaignType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaignIds", + "campaignType" +}) +@XmlRootElement(name = "GetCampaignsByIdsRequest") +public class GetCampaignsByIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "CampaignIds", nillable = true) + protected ArrayOflong campaignIds; + @XmlElement(name = "CampaignType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter3 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection campaignType; + + /** + * 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 campaignIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getCampaignIds() { + return campaignIds; + } + + /** + * Sets the value of the campaignIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setCampaignIds(ArrayOflong value) { + this.campaignIds = value; + } + + /** + * Gets the value of the campaignType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCampaignType() { + return campaignType; + } + + /** + * Sets the value of the campaignType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCampaignType(Collection value) { + this.campaignType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsResponse.java new file mode 100644 index 0000000000..e4ca8f4625 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetCampaignsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Campaigns" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaign" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaigns", + "partialErrors" +}) +@XmlRootElement(name = "GetCampaignsByIdsResponse") +public class GetCampaignsByIdsResponse { + + @XmlElement(name = "Campaigns", nillable = true) + protected ArrayOfCampaign campaigns; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the campaigns property. + * + * @return + * possible object is + * {@link ArrayOfCampaign } + * + */ + public ArrayOfCampaign getCampaigns() { + return campaigns; + } + + /** + * Sets the value of the campaigns property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaign } + * + */ + public void setCampaigns(ArrayOfCampaign value) { + this.campaigns = 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/v10/campaignmanagement/GetEditorialReasonsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetEditorialReasonsByIdsRequest.java new file mode 100644 index 0000000000..b9373bd8b0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetEditorialReasonsByIdsRequest.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="EntityIdToParentIdAssociations" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfEntityIdToParentIdAssociation" minOccurs="0"/>
+ *         <element name="EntityType" type="{https://bingads.microsoft.com/CampaignManagement/v10}EntityType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "entityIdToParentIdAssociations", + "entityType" +}) +@XmlRootElement(name = "GetEditorialReasonsByIdsRequest") +public class GetEditorialReasonsByIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "EntityIdToParentIdAssociations", nillable = true) + protected ArrayOfEntityIdToParentIdAssociation entityIdToParentIdAssociations; + @XmlElement(name = "EntityType") + @XmlSchemaType(name = "string") + protected EntityType entityType; + + /** + * 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 entityIdToParentIdAssociations property. + * + * @return + * possible object is + * {@link ArrayOfEntityIdToParentIdAssociation } + * + */ + public ArrayOfEntityIdToParentIdAssociation getEntityIdToParentIdAssociations() { + return entityIdToParentIdAssociations; + } + + /** + * Sets the value of the entityIdToParentIdAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfEntityIdToParentIdAssociation } + * + */ + public void setEntityIdToParentIdAssociations(ArrayOfEntityIdToParentIdAssociation value) { + this.entityIdToParentIdAssociations = value; + } + + /** + * Gets the value of the entityType property. + * + * @return + * possible object is + * {@link EntityType } + * + */ + public EntityType getEntityType() { + return entityType; + } + + /** + * Sets the value of the entityType property. + * + * @param value + * allowed object is + * {@link EntityType } + * + */ + public void setEntityType(EntityType value) { + this.entityType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetEditorialReasonsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetEditorialReasonsByIdsResponse.java new file mode 100644 index 0000000000..dd696024b4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetEditorialReasonsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EditorialReasons" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfEditorialReasonCollection" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "editorialReasons", + "partialErrors" +}) +@XmlRootElement(name = "GetEditorialReasonsByIdsResponse") +public class GetEditorialReasonsByIdsResponse { + + @XmlElement(name = "EditorialReasons", nillable = true) + protected ArrayOfEditorialReasonCollection editorialReasons; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the editorialReasons property. + * + * @return + * possible object is + * {@link ArrayOfEditorialReasonCollection } + * + */ + public ArrayOfEditorialReasonCollection getEditorialReasons() { + return editorialReasons; + } + + /** + * Sets the value of the editorialReasons property. + * + * @param value + * allowed object is + * {@link ArrayOfEditorialReasonCollection } + * + */ + public void setEditorialReasons(ArrayOfEditorialReasonCollection value) { + this.editorialReasons = 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/v10/campaignmanagement/GetKeywordsByAdGroupIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByAdGroupIdRequest.java new file mode 100644 index 0000000000..6e4042f7ca --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByAdGroupIdRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId" +}) +@XmlRootElement(name = "GetKeywordsByAdGroupIdRequest") +public class GetKeywordsByAdGroupIdRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + + /** + * 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByAdGroupIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByAdGroupIdResponse.java new file mode 100644 index 0000000000..3252794cad --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByAdGroupIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfKeyword" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords" +}) +@XmlRootElement(name = "GetKeywordsByAdGroupIdResponse") +public class GetKeywordsByAdGroupIdResponse { + + @XmlElement(name = "Keywords", nillable = true) + protected ArrayOfKeyword keywords; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfKeyword } + * + */ + public ArrayOfKeyword getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyword } + * + */ + public void setKeywords(ArrayOfKeyword value) { + this.keywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusRequest.java new file mode 100644 index 0000000000..1f7ce9b0ca --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusRequest.java @@ -0,0 +1,94 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="EditorialStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}KeywordEditorialStatus" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "editorialStatus" +}) +@XmlRootElement(name = "GetKeywordsByEditorialStatusRequest") +public class GetKeywordsByEditorialStatusRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "EditorialStatus") + @XmlSchemaType(name = "string") + protected KeywordEditorialStatus editorialStatus; + + /** + * 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 editorialStatus property. + * + * @return + * possible object is + * {@link KeywordEditorialStatus } + * + */ + public KeywordEditorialStatus getEditorialStatus() { + return editorialStatus; + } + + /** + * Sets the value of the editorialStatus property. + * + * @param value + * allowed object is + * {@link KeywordEditorialStatus } + * + */ + public void setEditorialStatus(KeywordEditorialStatus value) { + this.editorialStatus = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusResponse.java new file mode 100644 index 0000000000..c5d6342cc9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByEditorialStatusResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfKeyword" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords" +}) +@XmlRootElement(name = "GetKeywordsByEditorialStatusResponse") +public class GetKeywordsByEditorialStatusResponse { + + @XmlElement(name = "Keywords", nillable = true) + protected ArrayOfKeyword keywords; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfKeyword } + * + */ + public ArrayOfKeyword getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyword } + * + */ + public void setKeywords(ArrayOfKeyword value) { + this.keywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsRequest.java new file mode 100644 index 0000000000..7e256e6cd6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="KeywordIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "keywordIds" +}) +@XmlRootElement(name = "GetKeywordsByIdsRequest") +public class GetKeywordsByIdsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "KeywordIds", nillable = true) + protected ArrayOflong keywordIds; + + /** + * 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 keywordIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getKeywordIds() { + return keywordIds; + } + + /** + * Sets the value of the keywordIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setKeywordIds(ArrayOflong value) { + this.keywordIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsResponse.java new file mode 100644 index 0000000000..c0b688cb7a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetKeywordsByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Keywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfKeyword" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keywords", + "partialErrors" +}) +@XmlRootElement(name = "GetKeywordsByIdsResponse") +public class GetKeywordsByIdsResponse { + + @XmlElement(name = "Keywords", nillable = true) + protected ArrayOfKeyword keywords; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link ArrayOfKeyword } + * + */ + public ArrayOfKeyword getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyword } + * + */ + public void setKeywords(ArrayOfKeyword value) { + this.keywords = 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/v10/campaignmanagement/GetListItemsBySharedListRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetListItemsBySharedListRequest.java new file mode 100644 index 0000000000..53c44d3cad --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetListItemsBySharedListRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedList" type="{https://bingads.microsoft.com/CampaignManagement/v10}SharedList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sharedList" +}) +@XmlRootElement(name = "GetListItemsBySharedListRequest") +public class GetListItemsBySharedListRequest { + + @XmlElement(name = "SharedList", nillable = true) + protected SharedList sharedList; + + /** + * Gets the value of the sharedList property. + * + * @return + * possible object is + * {@link SharedList } + * + */ + public SharedList getSharedList() { + return sharedList; + } + + /** + * Sets the value of the sharedList property. + * + * @param value + * allowed object is + * {@link SharedList } + * + */ + public void setSharedList(SharedList value) { + this.sharedList = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetListItemsBySharedListResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetListItemsBySharedListResponse.java new file mode 100644 index 0000000000..6a31dd85eb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetListItemsBySharedListResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ListItems" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedListItem" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "listItems" +}) +@XmlRootElement(name = "GetListItemsBySharedListResponse") +public class GetListItemsBySharedListResponse { + + @XmlElement(name = "ListItems", nillable = true) + protected ArrayOfSharedListItem listItems; + + /** + * Gets the value of the listItems property. + * + * @return + * possible object is + * {@link ArrayOfSharedListItem } + * + */ + public ArrayOfSharedListItem getListItems() { + return listItems; + } + + /** + * Sets the value of the listItems property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedListItem } + * + */ + public void setListItems(ArrayOfSharedListItem value) { + this.listItems = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsRequest.java new file mode 100644 index 0000000000..cf3d3604da --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsRequest.java @@ -0,0 +1,97 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaEnabledEntities" type="{https://bingads.microsoft.com/CampaignManagement/v10}MediaEnabledEntityFilter" minOccurs="0"/>
+ *         <element name="MediaIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaEnabledEntities", + "mediaIds" +}) +@XmlRootElement(name = "GetMediaAssociationsRequest") +public class GetMediaAssociationsRequest { + + @XmlElement(name = "MediaEnabledEntities", type = String.class) + @XmlJavaTypeAdapter(Adapter6 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection mediaEnabledEntities; + @XmlElement(name = "MediaIds", nillable = true) + protected ArrayOflong mediaIds; + + /** + * Gets the value of the mediaEnabledEntities property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getMediaEnabledEntities() { + return mediaEnabledEntities; + } + + /** + * Sets the value of the mediaEnabledEntities property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaEnabledEntities(Collection value) { + this.mediaEnabledEntities = value; + } + + /** + * Gets the value of the mediaIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getMediaIds() { + return mediaIds; + } + + /** + * Sets the value of the mediaIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setMediaIds(ArrayOflong value) { + this.mediaIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsResponse.java new file mode 100644 index 0000000000..da2dcc3154 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaAssociationsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaAssociations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfArrayOfMediaAssociation" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaAssociations", + "partialErrors" +}) +@XmlRootElement(name = "GetMediaAssociationsResponse") +public class GetMediaAssociationsResponse { + + @XmlElement(name = "MediaAssociations", nillable = true) + protected ArrayOfArrayOfMediaAssociation mediaAssociations; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the mediaAssociations property. + * + * @return + * possible object is + * {@link ArrayOfArrayOfMediaAssociation } + * + */ + public ArrayOfArrayOfMediaAssociation getMediaAssociations() { + return mediaAssociations; + } + + /** + * Sets the value of the mediaAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfArrayOfMediaAssociation } + * + */ + public void setMediaAssociations(ArrayOfArrayOfMediaAssociation value) { + this.mediaAssociations = 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/v10/campaignmanagement/GetMediaByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaByIdsRequest.java new file mode 100644 index 0000000000..6179922deb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaByIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MediaIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "mediaIds" +}) +@XmlRootElement(name = "GetMediaByIdsRequest") +public class GetMediaByIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "MediaIds", nillable = true) + protected ArrayOflong mediaIds; + + /** + * 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 mediaIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getMediaIds() { + return mediaIds; + } + + /** + * Sets the value of the mediaIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setMediaIds(ArrayOflong value) { + this.mediaIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaByIdsResponse.java new file mode 100644 index 0000000000..54d086a787 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaByIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Media" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMedia" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "GetMediaByIdsResponse") +public class GetMediaByIdsResponse { + + @XmlElement(name = "Media", nillable = true) + protected ArrayOfMedia media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link ArrayOfMedia } + * + */ + public ArrayOfMedia getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link ArrayOfMedia } + * + */ + public void setMedia(ArrayOfMedia value) { + this.media = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdRequest.java new file mode 100644 index 0000000000..9069fbce99 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdRequest.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaEnabledEntities" type="{https://bingads.microsoft.com/CampaignManagement/v10}MediaEnabledEntityFilter" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaEnabledEntities" +}) +@XmlRootElement(name = "GetMediaMetaDataByAccountIdRequest") +public class GetMediaMetaDataByAccountIdRequest { + + @XmlElement(name = "MediaEnabledEntities", type = String.class) + @XmlJavaTypeAdapter(Adapter6 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection mediaEnabledEntities; + + /** + * Gets the value of the mediaEnabledEntities property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getMediaEnabledEntities() { + return mediaEnabledEntities; + } + + /** + * Sets the value of the mediaEnabledEntities property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaEnabledEntities(Collection value) { + this.mediaEnabledEntities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdResponse.java new file mode 100644 index 0000000000..d341bfe99b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByAccountIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaMetaData" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMediaMetaData" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaMetaData" +}) +@XmlRootElement(name = "GetMediaMetaDataByAccountIdResponse") +public class GetMediaMetaDataByAccountIdResponse { + + @XmlElement(name = "MediaMetaData", nillable = true) + protected ArrayOfMediaMetaData mediaMetaData; + + /** + * Gets the value of the mediaMetaData property. + * + * @return + * possible object is + * {@link ArrayOfMediaMetaData } + * + */ + public ArrayOfMediaMetaData getMediaMetaData() { + return mediaMetaData; + } + + /** + * Sets the value of the mediaMetaData property. + * + * @param value + * allowed object is + * {@link ArrayOfMediaMetaData } + * + */ + public void setMediaMetaData(ArrayOfMediaMetaData value) { + this.mediaMetaData = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsRequest.java new file mode 100644 index 0000000000..eb0d69c071 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaIds" +}) +@XmlRootElement(name = "GetMediaMetaDataByIdsRequest") +public class GetMediaMetaDataByIdsRequest { + + @XmlElement(name = "MediaIds", nillable = true) + protected ArrayOflong mediaIds; + + /** + * Gets the value of the mediaIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getMediaIds() { + return mediaIds; + } + + /** + * Sets the value of the mediaIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setMediaIds(ArrayOflong value) { + this.mediaIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsResponse.java new file mode 100644 index 0000000000..95d4f0abba --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetMediaMetaDataByIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MediaMetaData" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMediaMetaData" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaMetaData", + "partialErrors" +}) +@XmlRootElement(name = "GetMediaMetaDataByIdsResponse") +public class GetMediaMetaDataByIdsResponse { + + @XmlElement(name = "MediaMetaData", nillable = true) + protected ArrayOfMediaMetaData mediaMetaData; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the mediaMetaData property. + * + * @return + * possible object is + * {@link ArrayOfMediaMetaData } + * + */ + public ArrayOfMediaMetaData getMediaMetaData() { + return mediaMetaData; + } + + /** + * Sets the value of the mediaMetaData property. + * + * @param value + * allowed object is + * {@link ArrayOfMediaMetaData } + * + */ + public void setMediaMetaData(ArrayOfMediaMetaData value) { + this.mediaMetaData = 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/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsRequest.java new file mode 100644 index 0000000000..99b5c9b697 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsRequest.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="EntityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ParentEntityId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entityIds", + "entityType", + "parentEntityId" +}) +@XmlRootElement(name = "GetNegativeKeywordsByEntityIdsRequest") +public class GetNegativeKeywordsByEntityIdsRequest { + + @XmlElement(name = "EntityIds", nillable = true) + protected ArrayOflong entityIds; + @XmlElement(name = "EntityType", nillable = true) + protected String entityType; + @XmlElement(name = "ParentEntityId", nillable = true) + protected Long parentEntityId; + + /** + * Gets the value of the entityIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getEntityIds() { + return entityIds; + } + + /** + * Sets the value of the entityIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setEntityIds(ArrayOflong value) { + this.entityIds = value; + } + + /** + * Gets the value of the entityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntityType() { + return entityType; + } + + /** + * Sets the value of the entityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntityType(String value) { + this.entityType = value; + } + + /** + * Gets the value of the parentEntityId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getParentEntityId() { + return parentEntityId; + } + + /** + * Sets the value of the parentEntityId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setParentEntityId(Long value) { + this.parentEntityId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsResponse.java new file mode 100644 index 0000000000..7806681a06 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeKeywordsByEntityIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityNegativeKeywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfEntityNegativeKeyword" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entityNegativeKeywords", + "partialErrors" +}) +@XmlRootElement(name = "GetNegativeKeywordsByEntityIdsResponse") +public class GetNegativeKeywordsByEntityIdsResponse { + + @XmlElement(name = "EntityNegativeKeywords", nillable = true) + protected ArrayOfEntityNegativeKeyword entityNegativeKeywords; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the entityNegativeKeywords property. + * + * @return + * possible object is + * {@link ArrayOfEntityNegativeKeyword } + * + */ + public ArrayOfEntityNegativeKeyword getEntityNegativeKeywords() { + return entityNegativeKeywords; + } + + /** + * Sets the value of the entityNegativeKeywords property. + * + * @param value + * allowed object is + * {@link ArrayOfEntityNegativeKeyword } + * + */ + public void setEntityNegativeKeywords(ArrayOfEntityNegativeKeyword value) { + this.entityNegativeKeywords = 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/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsRequest.java new file mode 100644 index 0000000000..bc8aab0559 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId", + "adGroupIds" +}) +@XmlRootElement(name = "GetNegativeSitesByAdGroupIdsRequest") +public class GetNegativeSitesByAdGroupIdsRequest { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "AdGroupIds", nillable = true) + protected ArrayOflong adGroupIds; + + /** + * 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 adGroupIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdGroupIds() { + return adGroupIds; + } + + /** + * Sets the value of the adGroupIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdGroupIds(ArrayOflong value) { + this.adGroupIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsResponse.java new file mode 100644 index 0000000000..a308e45f51 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByAdGroupIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupNegativeSites" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroupNegativeSites" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupNegativeSites", + "partialErrors" +}) +@XmlRootElement(name = "GetNegativeSitesByAdGroupIdsResponse") +public class GetNegativeSitesByAdGroupIdsResponse { + + @XmlElement(name = "AdGroupNegativeSites", nillable = true) + protected ArrayOfAdGroupNegativeSites adGroupNegativeSites; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the adGroupNegativeSites property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupNegativeSites } + * + */ + public ArrayOfAdGroupNegativeSites getAdGroupNegativeSites() { + return adGroupNegativeSites; + } + + /** + * Sets the value of the adGroupNegativeSites property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupNegativeSites } + * + */ + public void setAdGroupNegativeSites(ArrayOfAdGroupNegativeSites value) { + this.adGroupNegativeSites = 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/v10/campaignmanagement/GetNegativeSitesByCampaignIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByCampaignIdsRequest.java new file mode 100644 index 0000000000..54ae92dd00 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByCampaignIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaignIds" +}) +@XmlRootElement(name = "GetNegativeSitesByCampaignIdsRequest") +public class GetNegativeSitesByCampaignIdsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "CampaignIds", nillable = true) + protected ArrayOflong campaignIds; + + /** + * 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 campaignIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getCampaignIds() { + return campaignIds; + } + + /** + * Sets the value of the campaignIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setCampaignIds(ArrayOflong value) { + this.campaignIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByCampaignIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByCampaignIdsResponse.java new file mode 100644 index 0000000000..b48467f5f4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetNegativeSitesByCampaignIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignNegativeSites" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaignNegativeSites" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignNegativeSites", + "partialErrors" +}) +@XmlRootElement(name = "GetNegativeSitesByCampaignIdsResponse") +public class GetNegativeSitesByCampaignIdsResponse { + + @XmlElement(name = "CampaignNegativeSites", nillable = true) + protected ArrayOfCampaignNegativeSites campaignNegativeSites; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the campaignNegativeSites property. + * + * @return + * possible object is + * {@link ArrayOfCampaignNegativeSites } + * + */ + public ArrayOfCampaignNegativeSites getCampaignNegativeSites() { + return campaignNegativeSites; + } + + /** + * Sets the value of the campaignNegativeSites property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignNegativeSites } + * + */ + public void setCampaignNegativeSites(ArrayOfCampaignNegativeSites value) { + this.campaignNegativeSites = 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/v10/campaignmanagement/GetPlacementDetailsForUrlsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetPlacementDetailsForUrlsRequest.java new file mode 100644 index 0000000000..6a483ddd7f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetPlacementDetailsForUrlsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Urls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "urls" +}) +@XmlRootElement(name = "GetPlacementDetailsForUrlsRequest") +public class GetPlacementDetailsForUrlsRequest { + + @XmlElement(name = "Urls", nillable = true) + protected ArrayOfstring urls; + + /** + * Gets the value of the urls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getUrls() { + return urls; + } + + /** + * Sets the value of the urls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setUrls(ArrayOfstring value) { + this.urls = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetPlacementDetailsForUrlsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetPlacementDetailsForUrlsResponse.java new file mode 100644 index 0000000000..fbc156087d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetPlacementDetailsForUrlsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PlacementDetails" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfArrayOfPlacementDetail" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "placementDetails" +}) +@XmlRootElement(name = "GetPlacementDetailsForUrlsResponse") +public class GetPlacementDetailsForUrlsResponse { + + @XmlElement(name = "PlacementDetails", nillable = true) + protected ArrayOfArrayOfPlacementDetail placementDetails; + + /** + * Gets the value of the placementDetails property. + * + * @return + * possible object is + * {@link ArrayOfArrayOfPlacementDetail } + * + */ + public ArrayOfArrayOfPlacementDetail getPlacementDetails() { + return placementDetails; + } + + /** + * Sets the value of the placementDetails property. + * + * @param value + * allowed object is + * {@link ArrayOfArrayOfPlacementDetail } + * + */ + public void setPlacementDetails(ArrayOfArrayOfPlacementDetail value) { + this.placementDetails = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdRequest.java new file mode 100644 index 0000000000..f7262a7aff --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedEntityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sharedEntityType" +}) +@XmlRootElement(name = "GetSharedEntitiesByAccountIdRequest") +public class GetSharedEntitiesByAccountIdRequest { + + @XmlElement(name = "SharedEntityType", nillable = true) + protected String sharedEntityType; + + /** + * Gets the value of the sharedEntityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSharedEntityType() { + return sharedEntityType; + } + + /** + * Sets the value of the sharedEntityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSharedEntityType(String value) { + this.sharedEntityType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdResponse.java new file mode 100644 index 0000000000..2a5c5a3087 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntitiesByAccountIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedEntities" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedEntity" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sharedEntities" +}) +@XmlRootElement(name = "GetSharedEntitiesByAccountIdResponse") +public class GetSharedEntitiesByAccountIdResponse { + + @XmlElement(name = "SharedEntities", nillable = true) + protected ArrayOfSharedEntity sharedEntities; + + /** + * Gets the value of the sharedEntities property. + * + * @return + * possible object is + * {@link ArrayOfSharedEntity } + * + */ + public ArrayOfSharedEntity getSharedEntities() { + return sharedEntities; + } + + /** + * Sets the value of the sharedEntities property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedEntity } + * + */ + public void setSharedEntities(ArrayOfSharedEntity value) { + this.sharedEntities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsRequest.java new file mode 100644 index 0000000000..f82e6030af --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsRequest.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="EntityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="SharedEntityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entityIds", + "entityType", + "sharedEntityType" +}) +@XmlRootElement(name = "GetSharedEntityAssociationsByEntityIdsRequest") +public class GetSharedEntityAssociationsByEntityIdsRequest { + + @XmlElement(name = "EntityIds", nillable = true) + protected ArrayOflong entityIds; + @XmlElement(name = "EntityType", nillable = true) + protected String entityType; + @XmlElement(name = "SharedEntityType", nillable = true) + protected String sharedEntityType; + + /** + * Gets the value of the entityIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getEntityIds() { + return entityIds; + } + + /** + * Sets the value of the entityIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setEntityIds(ArrayOflong value) { + this.entityIds = value; + } + + /** + * Gets the value of the entityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntityType() { + return entityType; + } + + /** + * Sets the value of the entityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntityType(String value) { + this.entityType = value; + } + + /** + * Gets the value of the sharedEntityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSharedEntityType() { + return sharedEntityType; + } + + /** + * Sets the value of the sharedEntityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSharedEntityType(String value) { + this.sharedEntityType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsResponse.java new file mode 100644 index 0000000000..4f3214bfe2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsByEntityIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Associations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedEntityAssociation" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "associations", + "partialErrors" +}) +@XmlRootElement(name = "GetSharedEntityAssociationsByEntityIdsResponse") +public class GetSharedEntityAssociationsByEntityIdsResponse { + + @XmlElement(name = "Associations", nillable = true) + protected ArrayOfSharedEntityAssociation associations; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the associations property. + * + * @return + * possible object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public ArrayOfSharedEntityAssociation getAssociations() { + return associations; + } + + /** + * Sets the value of the associations property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public void setAssociations(ArrayOfSharedEntityAssociation value) { + this.associations = 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/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsRequest.java new file mode 100644 index 0000000000..d6a1731244 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsRequest.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="SharedEntityIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *         <element name="SharedEntityType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entityType", + "sharedEntityIds", + "sharedEntityType" +}) +@XmlRootElement(name = "GetSharedEntityAssociationsBySharedEntityIdsRequest") +public class GetSharedEntityAssociationsBySharedEntityIdsRequest { + + @XmlElement(name = "EntityType", nillable = true) + protected String entityType; + @XmlElement(name = "SharedEntityIds", nillable = true) + protected ArrayOflong sharedEntityIds; + @XmlElement(name = "SharedEntityType", nillable = true) + protected String sharedEntityType; + + /** + * Gets the value of the entityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntityType() { + return entityType; + } + + /** + * Sets the value of the entityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntityType(String value) { + this.entityType = value; + } + + /** + * Gets the value of the sharedEntityIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getSharedEntityIds() { + return sharedEntityIds; + } + + /** + * Sets the value of the sharedEntityIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setSharedEntityIds(ArrayOflong value) { + this.sharedEntityIds = value; + } + + /** + * Gets the value of the sharedEntityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSharedEntityType() { + return sharedEntityType; + } + + /** + * Sets the value of the sharedEntityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSharedEntityType(String value) { + this.sharedEntityType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsResponse.java new file mode 100644 index 0000000000..cc3234e078 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSharedEntityAssociationsBySharedEntityIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Associations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedEntityAssociation" minOccurs="0"/>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "associations", + "partialErrors" +}) +@XmlRootElement(name = "GetSharedEntityAssociationsBySharedEntityIdsResponse") +public class GetSharedEntityAssociationsBySharedEntityIdsResponse { + + @XmlElement(name = "Associations", nillable = true) + protected ArrayOfSharedEntityAssociation associations; + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + + /** + * Gets the value of the associations property. + * + * @return + * possible object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public ArrayOfSharedEntityAssociation getAssociations() { + return associations; + } + + /** + * Sets the value of the associations property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public void setAssociations(ArrayOfSharedEntityAssociation value) { + this.associations = 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/v10/campaignmanagement/GetSitePlacementsByAdGroupIdRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByAdGroupIdRequest.java new file mode 100644 index 0000000000..754b45e108 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByAdGroupIdRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId" +}) +@XmlRootElement(name = "GetSitePlacementsByAdGroupIdRequest") +public class GetSitePlacementsByAdGroupIdRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + + /** + * 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByAdGroupIdResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByAdGroupIdResponse.java new file mode 100644 index 0000000000..e654773b44 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByAdGroupIdResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SitePlacements" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSitePlacement" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sitePlacements" +}) +@XmlRootElement(name = "GetSitePlacementsByAdGroupIdResponse") +public class GetSitePlacementsByAdGroupIdResponse { + + @XmlElement(name = "SitePlacements", nillable = true) + protected ArrayOfSitePlacement sitePlacements; + + /** + * Gets the value of the sitePlacements property. + * + * @return + * possible object is + * {@link ArrayOfSitePlacement } + * + */ + public ArrayOfSitePlacement getSitePlacements() { + return sitePlacements; + } + + /** + * Sets the value of the sitePlacements property. + * + * @param value + * allowed object is + * {@link ArrayOfSitePlacement } + * + */ + public void setSitePlacements(ArrayOfSitePlacement value) { + this.sitePlacements = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsRequest.java new file mode 100644 index 0000000000..f1fab72e8e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SitePlacementIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "sitePlacementIds" +}) +@XmlRootElement(name = "GetSitePlacementsByIdsRequest") +public class GetSitePlacementsByIdsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "SitePlacementIds", nillable = true) + protected ArrayOflong sitePlacementIds; + + /** + * 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 sitePlacementIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getSitePlacementIds() { + return sitePlacementIds; + } + + /** + * Sets the value of the sitePlacementIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setSitePlacementIds(ArrayOflong value) { + this.sitePlacementIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsResponse.java new file mode 100644 index 0000000000..a9905c7517 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetSitePlacementsByIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SitePlacements" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSitePlacement" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sitePlacements" +}) +@XmlRootElement(name = "GetSitePlacementsByIdsResponse") +public class GetSitePlacementsByIdsResponse { + + @XmlElement(name = "SitePlacements", nillable = true) + protected ArrayOfSitePlacement sitePlacements; + + /** + * Gets the value of the sitePlacements property. + * + * @return + * possible object is + * {@link ArrayOfSitePlacement } + * + */ + public ArrayOfSitePlacement getSitePlacements() { + return sitePlacements; + } + + /** + * Sets the value of the sitePlacements property. + * + * @param value + * allowed object is + * {@link ArrayOfSitePlacement } + * + */ + public void setSitePlacements(ArrayOfSitePlacement value) { + this.sitePlacements = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsRequest.java new file mode 100644 index 0000000000..d5538cf5c5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupIds" +}) +@XmlRootElement(name = "GetTargetsByAdGroupIdsRequest") +public class GetTargetsByAdGroupIdsRequest { + + @XmlElement(name = "AdGroupIds", nillable = true) + protected ArrayOflong adGroupIds; + + /** + * Gets the value of the adGroupIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getAdGroupIds() { + return adGroupIds; + } + + /** + * Sets the value of the adGroupIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setAdGroupIds(ArrayOflong value) { + this.adGroupIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsResponse.java new file mode 100644 index 0000000000..74aad43d8d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByAdGroupIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="Targets" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfTarget" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors", + "targets" +}) +@XmlRootElement(name = "GetTargetsByAdGroupIdsResponse") +public class GetTargetsByAdGroupIdsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + @XmlElement(name = "Targets", nillable = true) + protected ArrayOfTarget targets; + + /** + * 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; + } + + /** + * Gets the value of the targets property. + * + * @return + * possible object is + * {@link ArrayOfTarget } + * + */ + public ArrayOfTarget getTargets() { + return targets; + } + + /** + * Sets the value of the targets property. + * + * @param value + * allowed object is + * {@link ArrayOfTarget } + * + */ + public void setTargets(ArrayOfTarget value) { + this.targets = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsRequest.java new file mode 100644 index 0000000000..31824d8bbf --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignIds" +}) +@XmlRootElement(name = "GetTargetsByCampaignIdsRequest") +public class GetTargetsByCampaignIdsRequest { + + @XmlElement(name = "CampaignIds", nillable = true) + protected ArrayOflong campaignIds; + + /** + * Gets the value of the campaignIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getCampaignIds() { + return campaignIds; + } + + /** + * Sets the value of the campaignIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setCampaignIds(ArrayOflong value) { + this.campaignIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsResponse.java new file mode 100644 index 0000000000..bb416fbc14 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByCampaignIdsResponse.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *         <element name="Targets" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfTarget" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors", + "targets" +}) +@XmlRootElement(name = "GetTargetsByCampaignIdsResponse") +public class GetTargetsByCampaignIdsResponse { + + @XmlElement(name = "PartialErrors", nillable = true) + protected ArrayOfBatchError partialErrors; + @XmlElement(name = "Targets", nillable = true) + protected ArrayOfTarget targets; + + /** + * 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; + } + + /** + * Gets the value of the targets property. + * + * @return + * possible object is + * {@link ArrayOfTarget } + * + */ + public ArrayOfTarget getTargets() { + return targets; + } + + /** + * Sets the value of the targets property. + * + * @param value + * allowed object is + * {@link ArrayOfTarget } + * + */ + public void setTargets(ArrayOfTarget value) { + this.targets = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsRequest.java new file mode 100644 index 0000000000..07f88cd890 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TargetIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "targetIds" +}) +@XmlRootElement(name = "GetTargetsByIdsRequest") +public class GetTargetsByIdsRequest { + + @XmlElement(name = "TargetIds", nillable = true) + protected ArrayOflong targetIds; + + /** + * Gets the value of the targetIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getTargetIds() { + return targetIds; + } + + /** + * Sets the value of the targetIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setTargetIds(ArrayOflong value) { + this.targetIds = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsResponse.java new file mode 100644 index 0000000000..53552c4cfe --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsByIdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Targets" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfTarget" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "targets" +}) +@XmlRootElement(name = "GetTargetsByIdsResponse") +public class GetTargetsByIdsResponse { + + @XmlElement(name = "Targets", nillable = true) + protected ArrayOfTarget targets; + + /** + * Gets the value of the targets property. + * + * @return + * possible object is + * {@link ArrayOfTarget } + * + */ + public ArrayOfTarget getTargets() { + return targets; + } + + /** + * Sets the value of the targets property. + * + * @param value + * allowed object is + * {@link ArrayOfTarget } + * + */ + public void setTargets(ArrayOfTarget value) { + this.targets = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryRequest.java new file mode 100644 index 0000000000..82fc0fc494 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryRequest.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "GetTargetsInfoFromLibraryRequest") +public class GetTargetsInfoFromLibraryRequest { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryResponse.java new file mode 100644 index 0000000000..8423bfa0a7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetTargetsInfoFromLibraryResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

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

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TargetsInfo" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfTargetInfo" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "targetsInfo" +}) +@XmlRootElement(name = "GetTargetsInfoFromLibraryResponse") +public class GetTargetsInfoFromLibraryResponse { + + @XmlElement(name = "TargetsInfo", nillable = true) + protected ArrayOfTargetInfo targetsInfo; + + /** + * Gets the value of the targetsInfo property. + * + * @return + * possible object is + * {@link ArrayOfTargetInfo } + * + */ + public ArrayOfTargetInfo getTargetsInfo() { + return targetsInfo; + } + + /** + * Sets the value of the targetsInfo property. + * + * @param value + * allowed object is + * {@link ArrayOfTargetInfo } + * + */ + public void setTargetsInfo(ArrayOfTargetInfo value) { + this.targetsInfo = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Guid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Guid.java new file mode 100644 index 0000000000..6bcebcc8ba --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Guid.java @@ -0,0 +1,58 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for guid simple type. + * + *

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

+ * <simpleType name="guid">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "guid", namespace = "http://schemas.microsoft.com/2003/10/Serialization/", propOrder = { + "value" +}) +public class Guid { + + @XmlValue + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java new file mode 100644 index 0000000000..4470db4eb6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java @@ -0,0 +1,3514 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.concurrent.Future; +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; + + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.2.9-b130926.1035 + * Generated source version: 2.1 + * + */ +@WebService(name = "ICampaignManagementService", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10") +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +@XmlSeeAlso({ + ObjectFactory.class +}) +public interface ICampaignManagementService { + + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddCampaigns", action = "AddCampaigns") + public Response addCampaignsAsync( + @WebParam(name = "AddCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddCampaignsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddCampaigns", action = "AddCampaigns") + public Future addCampaignsAsync( + @WebParam(name = "AddCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddCampaignsRequest parameters, + @WebParam(name = "AddCampaignsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddCampaignsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddCampaigns", action = "AddCampaigns") + @WebResult(name = "AddCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddCampaignsResponse addCampaigns( + @WebParam(name = "AddCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddCampaignsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetCampaignsByAccountId", action = "GetCampaignsByAccountId") + public Response getCampaignsByAccountIdAsync( + @WebParam(name = "GetCampaignsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignsByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetCampaignsByAccountId", action = "GetCampaignsByAccountId") + public Future getCampaignsByAccountIdAsync( + @WebParam(name = "GetCampaignsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignsByAccountIdRequest parameters, + @WebParam(name = "GetCampaignsByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignsByAccountIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetCampaignsByAccountId", action = "GetCampaignsByAccountId") + @WebResult(name = "GetCampaignsByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetCampaignsByAccountIdResponse getCampaignsByAccountId( + @WebParam(name = "GetCampaignsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignsByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetCampaignsByIds", action = "GetCampaignsByIds") + public Response getCampaignsByIdsAsync( + @WebParam(name = "GetCampaignsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetCampaignsByIds", action = "GetCampaignsByIds") + public Future getCampaignsByIdsAsync( + @WebParam(name = "GetCampaignsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignsByIdsRequest parameters, + @WebParam(name = "GetCampaignsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetCampaignsByIds", action = "GetCampaignsByIds") + @WebResult(name = "GetCampaignsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetCampaignsByIdsResponse getCampaignsByIds( + @WebParam(name = "GetCampaignsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteCampaigns", action = "DeleteCampaigns") + public Response deleteCampaignsAsync( + @WebParam(name = "DeleteCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteCampaignsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteCampaigns", action = "DeleteCampaigns") + public Future deleteCampaignsAsync( + @WebParam(name = "DeleteCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteCampaignsRequest parameters, + @WebParam(name = "DeleteCampaignsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteCampaignsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteCampaigns", action = "DeleteCampaigns") + @WebResult(name = "DeleteCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteCampaignsResponse deleteCampaigns( + @WebParam(name = "DeleteCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteCampaignsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateCampaigns", action = "UpdateCampaigns") + public Response updateCampaignsAsync( + @WebParam(name = "UpdateCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateCampaignsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateCampaigns", action = "UpdateCampaigns") + public Future updateCampaignsAsync( + @WebParam(name = "UpdateCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateCampaignsRequest parameters, + @WebParam(name = "UpdateCampaignsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateCampaignsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateCampaigns", action = "UpdateCampaigns") + @WebResult(name = "UpdateCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateCampaignsResponse updateCampaigns( + @WebParam(name = "UpdateCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateCampaignsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetNegativeSitesByCampaignIds", action = "GetNegativeSitesByCampaignIds") + public Response getNegativeSitesByCampaignIdsAsync( + @WebParam(name = "GetNegativeSitesByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeSitesByCampaignIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetNegativeSitesByCampaignIds", action = "GetNegativeSitesByCampaignIds") + public Future getNegativeSitesByCampaignIdsAsync( + @WebParam(name = "GetNegativeSitesByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeSitesByCampaignIdsRequest parameters, + @WebParam(name = "GetNegativeSitesByCampaignIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetNegativeSitesByCampaignIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetNegativeSitesByCampaignIds", action = "GetNegativeSitesByCampaignIds") + @WebResult(name = "GetNegativeSitesByCampaignIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetNegativeSitesByCampaignIdsResponse getNegativeSitesByCampaignIds( + @WebParam(name = "GetNegativeSitesByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeSitesByCampaignIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SetNegativeSitesToCampaigns", action = "SetNegativeSitesToCampaigns") + public Response setNegativeSitesToCampaignsAsync( + @WebParam(name = "SetNegativeSitesToCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetNegativeSitesToCampaignsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SetNegativeSitesToCampaigns", action = "SetNegativeSitesToCampaigns") + public Future setNegativeSitesToCampaignsAsync( + @WebParam(name = "SetNegativeSitesToCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetNegativeSitesToCampaignsRequest parameters, + @WebParam(name = "SetNegativeSitesToCampaignsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.SetNegativeSitesToCampaignsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "SetNegativeSitesToCampaigns", action = "SetNegativeSitesToCampaigns") + @WebResult(name = "SetNegativeSitesToCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public SetNegativeSitesToCampaignsResponse setNegativeSitesToCampaigns( + @WebParam(name = "SetNegativeSitesToCampaignsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetNegativeSitesToCampaignsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddAdGroups", action = "AddAdGroups") + public Response addAdGroupsAsync( + @WebParam(name = "AddAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdGroupsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddAdGroups", action = "AddAdGroups") + public Future addAdGroupsAsync( + @WebParam(name = "AddAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdGroupsRequest parameters, + @WebParam(name = "AddAdGroupsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddAdGroupsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddAdGroups", action = "AddAdGroups") + @WebResult(name = "AddAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddAdGroupsResponse addAdGroups( + @WebParam(name = "AddAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdGroupsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteAdGroups", action = "DeleteAdGroups") + public Response deleteAdGroupsAsync( + @WebParam(name = "DeleteAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdGroupsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteAdGroups", action = "DeleteAdGroups") + public Future deleteAdGroupsAsync( + @WebParam(name = "DeleteAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdGroupsRequest parameters, + @WebParam(name = "DeleteAdGroupsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdGroupsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteAdGroups", action = "DeleteAdGroups") + @WebResult(name = "DeleteAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteAdGroupsResponse deleteAdGroups( + @WebParam(name = "DeleteAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdGroupsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdGroupsByIds", action = "GetAdGroupsByIds") + public Response getAdGroupsByIdsAsync( + @WebParam(name = "GetAdGroupsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdGroupsByIds", action = "GetAdGroupsByIds") + public Future getAdGroupsByIdsAsync( + @WebParam(name = "GetAdGroupsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupsByIdsRequest parameters, + @WebParam(name = "GetAdGroupsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdGroupsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdGroupsByIds", action = "GetAdGroupsByIds") + @WebResult(name = "GetAdGroupsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdGroupsByIdsResponse getAdGroupsByIds( + @WebParam(name = "GetAdGroupsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdGroupsByCampaignId", action = "GetAdGroupsByCampaignId") + public Response getAdGroupsByCampaignIdAsync( + @WebParam(name = "GetAdGroupsByCampaignIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupsByCampaignIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdGroupsByCampaignId", action = "GetAdGroupsByCampaignId") + public Future getAdGroupsByCampaignIdAsync( + @WebParam(name = "GetAdGroupsByCampaignIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupsByCampaignIdRequest parameters, + @WebParam(name = "GetAdGroupsByCampaignIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdGroupsByCampaignIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdGroupsByCampaignId", action = "GetAdGroupsByCampaignId") + @WebResult(name = "GetAdGroupsByCampaignIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdGroupsByCampaignIdResponse getAdGroupsByCampaignId( + @WebParam(name = "GetAdGroupsByCampaignIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupsByCampaignIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateAdGroups", action = "UpdateAdGroups") + public Response updateAdGroupsAsync( + @WebParam(name = "UpdateAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdGroupsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateAdGroups", action = "UpdateAdGroups") + public Future updateAdGroupsAsync( + @WebParam(name = "UpdateAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdGroupsRequest parameters, + @WebParam(name = "UpdateAdGroupsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdGroupsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateAdGroups", action = "UpdateAdGroups") + @WebResult(name = "UpdateAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateAdGroupsResponse updateAdGroups( + @WebParam(name = "UpdateAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdGroupsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetNegativeSitesByAdGroupIds", action = "GetNegativeSitesByAdGroupIds") + public Response getNegativeSitesByAdGroupIdsAsync( + @WebParam(name = "GetNegativeSitesByAdGroupIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeSitesByAdGroupIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetNegativeSitesByAdGroupIds", action = "GetNegativeSitesByAdGroupIds") + public Future getNegativeSitesByAdGroupIdsAsync( + @WebParam(name = "GetNegativeSitesByAdGroupIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeSitesByAdGroupIdsRequest parameters, + @WebParam(name = "GetNegativeSitesByAdGroupIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetNegativeSitesByAdGroupIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetNegativeSitesByAdGroupIds", action = "GetNegativeSitesByAdGroupIds") + @WebResult(name = "GetNegativeSitesByAdGroupIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetNegativeSitesByAdGroupIdsResponse getNegativeSitesByAdGroupIds( + @WebParam(name = "GetNegativeSitesByAdGroupIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeSitesByAdGroupIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SetNegativeSitesToAdGroups", action = "SetNegativeSitesToAdGroups") + public Response setNegativeSitesToAdGroupsAsync( + @WebParam(name = "SetNegativeSitesToAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetNegativeSitesToAdGroupsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SetNegativeSitesToAdGroups", action = "SetNegativeSitesToAdGroups") + public Future setNegativeSitesToAdGroupsAsync( + @WebParam(name = "SetNegativeSitesToAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetNegativeSitesToAdGroupsRequest parameters, + @WebParam(name = "SetNegativeSitesToAdGroupsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.SetNegativeSitesToAdGroupsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "SetNegativeSitesToAdGroups", action = "SetNegativeSitesToAdGroups") + @WebResult(name = "SetNegativeSitesToAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public SetNegativeSitesToAdGroupsResponse setNegativeSitesToAdGroups( + @WebParam(name = "SetNegativeSitesToAdGroupsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetNegativeSitesToAdGroupsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteTargetsFromLibrary", action = "DeleteTargetsFromLibrary") + public Response deleteTargetsFromLibraryAsync( + @WebParam(name = "DeleteTargetsFromLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetsFromLibraryRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteTargetsFromLibrary", action = "DeleteTargetsFromLibrary") + public Future deleteTargetsFromLibraryAsync( + @WebParam(name = "DeleteTargetsFromLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetsFromLibraryRequest parameters, + @WebParam(name = "DeleteTargetsFromLibraryResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteTargetsFromLibraryResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteTargetsFromLibrary", action = "DeleteTargetsFromLibrary") + @WebResult(name = "DeleteTargetsFromLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteTargetsFromLibraryResponse deleteTargetsFromLibrary( + @WebParam(name = "DeleteTargetsFromLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetsFromLibraryRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetTargetsInfoFromLibrary", action = "GetTargetsInfoFromLibrary") + public Response getTargetsInfoFromLibraryAsync( + @WebParam(name = "GetTargetsInfoFromLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsInfoFromLibraryRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetTargetsInfoFromLibrary", action = "GetTargetsInfoFromLibrary") + public Future getTargetsInfoFromLibraryAsync( + @WebParam(name = "GetTargetsInfoFromLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsInfoFromLibraryRequest parameters, + @WebParam(name = "GetTargetsInfoFromLibraryResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsInfoFromLibraryResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetTargetsInfoFromLibrary", action = "GetTargetsInfoFromLibrary") + @WebResult(name = "GetTargetsInfoFromLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetTargetsInfoFromLibraryResponse getTargetsInfoFromLibrary( + @WebParam(name = "GetTargetsInfoFromLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsInfoFromLibraryRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SetTargetToAdGroup", action = "SetTargetToAdGroup") + public Response setTargetToAdGroupAsync( + @WebParam(name = "SetTargetToAdGroupRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetTargetToAdGroupRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SetTargetToAdGroup", action = "SetTargetToAdGroup") + public Future setTargetToAdGroupAsync( + @WebParam(name = "SetTargetToAdGroupRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetTargetToAdGroupRequest parameters, + @WebParam(name = "SetTargetToAdGroupResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.SetTargetToAdGroupResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "SetTargetToAdGroup", action = "SetTargetToAdGroup") + @WebResult(name = "SetTargetToAdGroupResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public SetTargetToAdGroupResponse setTargetToAdGroup( + @WebParam(name = "SetTargetToAdGroupRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetTargetToAdGroupRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteTargetFromAdGroup", action = "DeleteTargetFromAdGroup") + public Response deleteTargetFromAdGroupAsync( + @WebParam(name = "DeleteTargetFromAdGroupRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetFromAdGroupRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteTargetFromAdGroup", action = "DeleteTargetFromAdGroup") + public Future deleteTargetFromAdGroupAsync( + @WebParam(name = "DeleteTargetFromAdGroupRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetFromAdGroupRequest parameters, + @WebParam(name = "DeleteTargetFromAdGroupResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteTargetFromAdGroupResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteTargetFromAdGroup", action = "DeleteTargetFromAdGroup") + @WebResult(name = "DeleteTargetFromAdGroupResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteTargetFromAdGroupResponse deleteTargetFromAdGroup( + @WebParam(name = "DeleteTargetFromAdGroupRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetFromAdGroupRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SetTargetToCampaign", action = "SetTargetToCampaign") + public Response setTargetToCampaignAsync( + @WebParam(name = "SetTargetToCampaignRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetTargetToCampaignRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SetTargetToCampaign", action = "SetTargetToCampaign") + public Future setTargetToCampaignAsync( + @WebParam(name = "SetTargetToCampaignRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetTargetToCampaignRequest parameters, + @WebParam(name = "SetTargetToCampaignResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.SetTargetToCampaignResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "SetTargetToCampaign", action = "SetTargetToCampaign") + @WebResult(name = "SetTargetToCampaignResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public SetTargetToCampaignResponse setTargetToCampaign( + @WebParam(name = "SetTargetToCampaignRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetTargetToCampaignRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteTargetFromCampaign", action = "DeleteTargetFromCampaign") + public Response deleteTargetFromCampaignAsync( + @WebParam(name = "DeleteTargetFromCampaignRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetFromCampaignRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteTargetFromCampaign", action = "DeleteTargetFromCampaign") + public Future deleteTargetFromCampaignAsync( + @WebParam(name = "DeleteTargetFromCampaignRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetFromCampaignRequest parameters, + @WebParam(name = "DeleteTargetFromCampaignResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteTargetFromCampaignResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteTargetFromCampaign", action = "DeleteTargetFromCampaign") + @WebResult(name = "DeleteTargetFromCampaignResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteTargetFromCampaignResponse deleteTargetFromCampaign( + @WebParam(name = "DeleteTargetFromCampaignRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteTargetFromCampaignRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddTargetsToLibrary", action = "AddTargetsToLibrary") + public Response addTargetsToLibraryAsync( + @WebParam(name = "AddTargetsToLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddTargetsToLibraryRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddTargetsToLibrary", action = "AddTargetsToLibrary") + public Future addTargetsToLibraryAsync( + @WebParam(name = "AddTargetsToLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddTargetsToLibraryRequest parameters, + @WebParam(name = "AddTargetsToLibraryResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddTargetsToLibraryResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddTargetsToLibrary", action = "AddTargetsToLibrary") + @WebResult(name = "AddTargetsToLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddTargetsToLibraryResponse addTargetsToLibrary( + @WebParam(name = "AddTargetsToLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddTargetsToLibraryRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateTargetsInLibrary", action = "UpdateTargetsInLibrary") + public Response updateTargetsInLibraryAsync( + @WebParam(name = "UpdateTargetsInLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateTargetsInLibraryRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateTargetsInLibrary", action = "UpdateTargetsInLibrary") + public Future updateTargetsInLibraryAsync( + @WebParam(name = "UpdateTargetsInLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateTargetsInLibraryRequest parameters, + @WebParam(name = "UpdateTargetsInLibraryResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateTargetsInLibraryResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateTargetsInLibrary", action = "UpdateTargetsInLibrary") + @WebResult(name = "UpdateTargetsInLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateTargetsInLibraryResponse updateTargetsInLibrary( + @WebParam(name = "UpdateTargetsInLibraryRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateTargetsInLibraryRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetTargetsByIds", action = "GetTargetsByIds") + public Response getTargetsByIdsAsync( + @WebParam(name = "GetTargetsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetTargetsByIds", action = "GetTargetsByIds") + public Future getTargetsByIdsAsync( + @WebParam(name = "GetTargetsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByIdsRequest parameters, + @WebParam(name = "GetTargetsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetTargetsByIds", action = "GetTargetsByIds") + @WebResult(name = "GetTargetsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetTargetsByIdsResponse getTargetsByIds( + @WebParam(name = "GetTargetsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetTargetsByAdGroupIds", action = "GetTargetsByAdGroupIds") + public Response getTargetsByAdGroupIdsAsync( + @WebParam(name = "GetTargetsByAdGroupIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByAdGroupIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetTargetsByAdGroupIds", action = "GetTargetsByAdGroupIds") + public Future getTargetsByAdGroupIdsAsync( + @WebParam(name = "GetTargetsByAdGroupIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByAdGroupIdsRequest parameters, + @WebParam(name = "GetTargetsByAdGroupIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsByAdGroupIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetTargetsByAdGroupIds", action = "GetTargetsByAdGroupIds") + @WebResult(name = "GetTargetsByAdGroupIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetTargetsByAdGroupIdsResponse getTargetsByAdGroupIds( + @WebParam(name = "GetTargetsByAdGroupIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByAdGroupIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetTargetsByCampaignIds", action = "GetTargetsByCampaignIds") + public Response getTargetsByCampaignIdsAsync( + @WebParam(name = "GetTargetsByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByCampaignIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetTargetsByCampaignIds", action = "GetTargetsByCampaignIds") + public Future getTargetsByCampaignIdsAsync( + @WebParam(name = "GetTargetsByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByCampaignIdsRequest parameters, + @WebParam(name = "GetTargetsByCampaignIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsByCampaignIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetTargetsByCampaignIds", action = "GetTargetsByCampaignIds") + @WebResult(name = "GetTargetsByCampaignIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetTargetsByCampaignIdsResponse getTargetsByCampaignIds( + @WebParam(name = "GetTargetsByCampaignIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetTargetsByCampaignIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddAds", action = "AddAds") + public Response addAdsAsync( + @WebParam(name = "AddAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddAds", action = "AddAds") + public Future addAdsAsync( + @WebParam(name = "AddAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdsRequest parameters, + @WebParam(name = "AddAdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddAdsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddAds", action = "AddAds") + @WebResult(name = "AddAdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddAdsResponse addAds( + @WebParam(name = "AddAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteAds", action = "DeleteAds") + public Response deleteAdsAsync( + @WebParam(name = "DeleteAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteAds", action = "DeleteAds") + public Future deleteAdsAsync( + @WebParam(name = "DeleteAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdsRequest parameters, + @WebParam(name = "DeleteAdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteAds", action = "DeleteAds") + @WebResult(name = "DeleteAdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteAdsResponse deleteAds( + @WebParam(name = "DeleteAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdsByEditorialStatus", action = "GetAdsByEditorialStatus") + public Response getAdsByEditorialStatusAsync( + @WebParam(name = "GetAdsByEditorialStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByEditorialStatusRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdsByEditorialStatus", action = "GetAdsByEditorialStatus") + public Future getAdsByEditorialStatusAsync( + @WebParam(name = "GetAdsByEditorialStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByEditorialStatusRequest parameters, + @WebParam(name = "GetAdsByEditorialStatusResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdsByEditorialStatusResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdsByEditorialStatus", action = "GetAdsByEditorialStatus") + @WebResult(name = "GetAdsByEditorialStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdsByEditorialStatusResponse getAdsByEditorialStatus( + @WebParam(name = "GetAdsByEditorialStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByEditorialStatusRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdsByIds", action = "GetAdsByIds") + public Response getAdsByIdsAsync( + @WebParam(name = "GetAdsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdsByIds", action = "GetAdsByIds") + public Future getAdsByIdsAsync( + @WebParam(name = "GetAdsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByIdsRequest parameters, + @WebParam(name = "GetAdsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdsByIds", action = "GetAdsByIds") + @WebResult(name = "GetAdsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdsByIdsResponse getAdsByIds( + @WebParam(name = "GetAdsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdsByAdGroupId", action = "GetAdsByAdGroupId") + public Response getAdsByAdGroupIdAsync( + @WebParam(name = "GetAdsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByAdGroupIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdsByAdGroupId", action = "GetAdsByAdGroupId") + public Future getAdsByAdGroupIdAsync( + @WebParam(name = "GetAdsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByAdGroupIdRequest parameters, + @WebParam(name = "GetAdsByAdGroupIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdsByAdGroupIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdsByAdGroupId", action = "GetAdsByAdGroupId") + @WebResult(name = "GetAdsByAdGroupIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdsByAdGroupIdResponse getAdsByAdGroupId( + @WebParam(name = "GetAdsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdsByAdGroupIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateAds", action = "UpdateAds") + public Response updateAdsAsync( + @WebParam(name = "UpdateAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateAds", action = "UpdateAds") + public Future updateAdsAsync( + @WebParam(name = "UpdateAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdsRequest parameters, + @WebParam(name = "UpdateAdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateAds", action = "UpdateAds") + @WebResult(name = "UpdateAdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateAdsResponse updateAds( + @WebParam(name = "UpdateAdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddKeywords", action = "AddKeywords") + public Response addKeywordsAsync( + @WebParam(name = "AddKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddKeywordsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddKeywords", action = "AddKeywords") + public Future addKeywordsAsync( + @WebParam(name = "AddKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddKeywordsRequest parameters, + @WebParam(name = "AddKeywordsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddKeywordsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddKeywords", action = "AddKeywords") + @WebResult(name = "AddKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddKeywordsResponse addKeywords( + @WebParam(name = "AddKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddKeywordsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteKeywords", action = "DeleteKeywords") + public Response deleteKeywordsAsync( + @WebParam(name = "DeleteKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteKeywordsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteKeywords", action = "DeleteKeywords") + public Future deleteKeywordsAsync( + @WebParam(name = "DeleteKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteKeywordsRequest parameters, + @WebParam(name = "DeleteKeywordsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteKeywordsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteKeywords", action = "DeleteKeywords") + @WebResult(name = "DeleteKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteKeywordsResponse deleteKeywords( + @WebParam(name = "DeleteKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteKeywordsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetKeywordsByEditorialStatus", action = "GetKeywordsByEditorialStatus") + public Response getKeywordsByEditorialStatusAsync( + @WebParam(name = "GetKeywordsByEditorialStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByEditorialStatusRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetKeywordsByEditorialStatus", action = "GetKeywordsByEditorialStatus") + public Future getKeywordsByEditorialStatusAsync( + @WebParam(name = "GetKeywordsByEditorialStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByEditorialStatusRequest parameters, + @WebParam(name = "GetKeywordsByEditorialStatusResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetKeywordsByEditorialStatusResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetKeywordsByEditorialStatus", action = "GetKeywordsByEditorialStatus") + @WebResult(name = "GetKeywordsByEditorialStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetKeywordsByEditorialStatusResponse getKeywordsByEditorialStatus( + @WebParam(name = "GetKeywordsByEditorialStatusRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByEditorialStatusRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetKeywordsByIds", action = "GetKeywordsByIds") + public Response getKeywordsByIdsAsync( + @WebParam(name = "GetKeywordsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetKeywordsByIds", action = "GetKeywordsByIds") + public Future getKeywordsByIdsAsync( + @WebParam(name = "GetKeywordsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByIdsRequest parameters, + @WebParam(name = "GetKeywordsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetKeywordsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetKeywordsByIds", action = "GetKeywordsByIds") + @WebResult(name = "GetKeywordsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetKeywordsByIdsResponse getKeywordsByIds( + @WebParam(name = "GetKeywordsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetKeywordsByAdGroupId", action = "GetKeywordsByAdGroupId") + public Response getKeywordsByAdGroupIdAsync( + @WebParam(name = "GetKeywordsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByAdGroupIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetKeywordsByAdGroupId", action = "GetKeywordsByAdGroupId") + public Future getKeywordsByAdGroupIdAsync( + @WebParam(name = "GetKeywordsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByAdGroupIdRequest parameters, + @WebParam(name = "GetKeywordsByAdGroupIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetKeywordsByAdGroupIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetKeywordsByAdGroupId", action = "GetKeywordsByAdGroupId") + @WebResult(name = "GetKeywordsByAdGroupIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetKeywordsByAdGroupIdResponse getKeywordsByAdGroupId( + @WebParam(name = "GetKeywordsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetKeywordsByAdGroupIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateKeywords", action = "UpdateKeywords") + public Response updateKeywordsAsync( + @WebParam(name = "UpdateKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateKeywordsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateKeywords", action = "UpdateKeywords") + public Future updateKeywordsAsync( + @WebParam(name = "UpdateKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateKeywordsRequest parameters, + @WebParam(name = "UpdateKeywordsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateKeywordsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateKeywords", action = "UpdateKeywords") + @WebResult(name = "UpdateKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateKeywordsResponse updateKeywords( + @WebParam(name = "UpdateKeywordsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateKeywordsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AppealEditorialRejections", action = "AppealEditorialRejections") + public Response appealEditorialRejectionsAsync( + @WebParam(name = "AppealEditorialRejectionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AppealEditorialRejectionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AppealEditorialRejections", action = "AppealEditorialRejections") + public Future appealEditorialRejectionsAsync( + @WebParam(name = "AppealEditorialRejectionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AppealEditorialRejectionsRequest parameters, + @WebParam(name = "AppealEditorialRejectionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AppealEditorialRejectionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AppealEditorialRejections", action = "AppealEditorialRejections") + @WebResult(name = "AppealEditorialRejectionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AppealEditorialRejectionsResponse appealEditorialRejections( + @WebParam(name = "AppealEditorialRejectionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AppealEditorialRejectionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddSitePlacements", action = "AddSitePlacements") + public Response addSitePlacementsAsync( + @WebParam(name = "AddSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddSitePlacementsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddSitePlacements", action = "AddSitePlacements") + public Future addSitePlacementsAsync( + @WebParam(name = "AddSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddSitePlacementsRequest parameters, + @WebParam(name = "AddSitePlacementsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddSitePlacementsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddSitePlacements", action = "AddSitePlacements") + @WebResult(name = "AddSitePlacementsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddSitePlacementsResponse addSitePlacements( + @WebParam(name = "AddSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddSitePlacementsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteSitePlacements", action = "DeleteSitePlacements") + public Response deleteSitePlacementsAsync( + @WebParam(name = "DeleteSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSitePlacementsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteSitePlacements", action = "DeleteSitePlacements") + public Future deleteSitePlacementsAsync( + @WebParam(name = "DeleteSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSitePlacementsRequest parameters, + @WebParam(name = "DeleteSitePlacementsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteSitePlacementsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteSitePlacements", action = "DeleteSitePlacements") + @WebResult(name = "DeleteSitePlacementsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteSitePlacementsResponse deleteSitePlacements( + @WebParam(name = "DeleteSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSitePlacementsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetSitePlacementsByIds", action = "GetSitePlacementsByIds") + public Response getSitePlacementsByIdsAsync( + @WebParam(name = "GetSitePlacementsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSitePlacementsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetSitePlacementsByIds", action = "GetSitePlacementsByIds") + public Future getSitePlacementsByIdsAsync( + @WebParam(name = "GetSitePlacementsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSitePlacementsByIdsRequest parameters, + @WebParam(name = "GetSitePlacementsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetSitePlacementsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetSitePlacementsByIds", action = "GetSitePlacementsByIds") + @WebResult(name = "GetSitePlacementsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetSitePlacementsByIdsResponse getSitePlacementsByIds( + @WebParam(name = "GetSitePlacementsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSitePlacementsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetSitePlacementsByAdGroupId", action = "GetSitePlacementsByAdGroupId") + public Response getSitePlacementsByAdGroupIdAsync( + @WebParam(name = "GetSitePlacementsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSitePlacementsByAdGroupIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetSitePlacementsByAdGroupId", action = "GetSitePlacementsByAdGroupId") + public Future getSitePlacementsByAdGroupIdAsync( + @WebParam(name = "GetSitePlacementsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSitePlacementsByAdGroupIdRequest parameters, + @WebParam(name = "GetSitePlacementsByAdGroupIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetSitePlacementsByAdGroupIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetSitePlacementsByAdGroupId", action = "GetSitePlacementsByAdGroupId") + @WebResult(name = "GetSitePlacementsByAdGroupIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetSitePlacementsByAdGroupIdResponse getSitePlacementsByAdGroupId( + @WebParam(name = "GetSitePlacementsByAdGroupIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSitePlacementsByAdGroupIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateSitePlacements", action = "UpdateSitePlacements") + public Response updateSitePlacementsAsync( + @WebParam(name = "UpdateSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateSitePlacementsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateSitePlacements", action = "UpdateSitePlacements") + public Future updateSitePlacementsAsync( + @WebParam(name = "UpdateSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateSitePlacementsRequest parameters, + @WebParam(name = "UpdateSitePlacementsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateSitePlacementsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateSitePlacements", action = "UpdateSitePlacements") + @WebResult(name = "UpdateSitePlacementsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateSitePlacementsResponse updateSitePlacements( + @WebParam(name = "UpdateSitePlacementsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateSitePlacementsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetPlacementDetailsForUrls", action = "GetPlacementDetailsForUrls") + public Response getPlacementDetailsForUrlsAsync( + @WebParam(name = "GetPlacementDetailsForUrlsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetPlacementDetailsForUrlsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetPlacementDetailsForUrls", action = "GetPlacementDetailsForUrls") + public Future getPlacementDetailsForUrlsAsync( + @WebParam(name = "GetPlacementDetailsForUrlsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetPlacementDetailsForUrlsRequest parameters, + @WebParam(name = "GetPlacementDetailsForUrlsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetPlacementDetailsForUrlsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetPlacementDetailsForUrls", action = "GetPlacementDetailsForUrls") + @WebResult(name = "GetPlacementDetailsForUrlsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetPlacementDetailsForUrlsResponse getPlacementDetailsForUrls( + @WebParam(name = "GetPlacementDetailsForUrlsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetPlacementDetailsForUrlsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetEditorialReasonsByIds", action = "GetEditorialReasonsByIds") + public Response getEditorialReasonsByIdsAsync( + @WebParam(name = "GetEditorialReasonsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetEditorialReasonsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetEditorialReasonsByIds", action = "GetEditorialReasonsByIds") + public Future getEditorialReasonsByIdsAsync( + @WebParam(name = "GetEditorialReasonsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetEditorialReasonsByIdsRequest parameters, + @WebParam(name = "GetEditorialReasonsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetEditorialReasonsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetEditorialReasonsByIds", action = "GetEditorialReasonsByIds") + @WebResult(name = "GetEditorialReasonsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetEditorialReasonsByIdsResponse getEditorialReasonsByIds( + @WebParam(name = "GetEditorialReasonsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetEditorialReasonsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddAdExtensions", action = "AddAdExtensions") + public Response addAdExtensionsAsync( + @WebParam(name = "AddAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdExtensionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddAdExtensions", action = "AddAdExtensions") + public Future addAdExtensionsAsync( + @WebParam(name = "AddAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdExtensionsRequest parameters, + @WebParam(name = "AddAdExtensionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddAdExtensionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddAdExtensions", action = "AddAdExtensions") + @WebResult(name = "AddAdExtensionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddAdExtensionsResponse addAdExtensions( + @WebParam(name = "AddAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdExtensionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdExtensionsByIds", action = "GetAdExtensionsByIds") + public Response getAdExtensionsByIdsAsync( + @WebParam(name = "GetAdExtensionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdExtensionsByIds", action = "GetAdExtensionsByIds") + public Future getAdExtensionsByIdsAsync( + @WebParam(name = "GetAdExtensionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsByIdsRequest parameters, + @WebParam(name = "GetAdExtensionsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdExtensionsByIds", action = "GetAdExtensionsByIds") + @WebResult(name = "GetAdExtensionsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdExtensionsByIdsResponse getAdExtensionsByIds( + @WebParam(name = "GetAdExtensionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateAdExtensions", action = "UpdateAdExtensions") + public Response updateAdExtensionsAsync( + @WebParam(name = "UpdateAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdExtensionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateAdExtensions", action = "UpdateAdExtensions") + public Future updateAdExtensionsAsync( + @WebParam(name = "UpdateAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdExtensionsRequest parameters, + @WebParam(name = "UpdateAdExtensionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdExtensionsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateAdExtensions", action = "UpdateAdExtensions") + @WebResult(name = "UpdateAdExtensionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateAdExtensionsResponse updateAdExtensions( + @WebParam(name = "UpdateAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdExtensionsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteAdExtensions", action = "DeleteAdExtensions") + public Response deleteAdExtensionsAsync( + @WebParam(name = "DeleteAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdExtensionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteAdExtensions", action = "DeleteAdExtensions") + public Future deleteAdExtensionsAsync( + @WebParam(name = "DeleteAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdExtensionsRequest parameters, + @WebParam(name = "DeleteAdExtensionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdExtensionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteAdExtensions", action = "DeleteAdExtensions") + @WebResult(name = "DeleteAdExtensionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteAdExtensionsResponse deleteAdExtensions( + @WebParam(name = "DeleteAdExtensionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdExtensionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdExtensionsEditorialReasons", action = "GetAdExtensionsEditorialReasons") + public Response getAdExtensionsEditorialReasonsAsync( + @WebParam(name = "GetAdExtensionsEditorialReasonsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsEditorialReasonsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdExtensionsEditorialReasons", action = "GetAdExtensionsEditorialReasons") + public Future getAdExtensionsEditorialReasonsAsync( + @WebParam(name = "GetAdExtensionsEditorialReasonsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsEditorialReasonsRequest parameters, + @WebParam(name = "GetAdExtensionsEditorialReasonsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionsEditorialReasonsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdExtensionsEditorialReasons", action = "GetAdExtensionsEditorialReasons") + @WebResult(name = "GetAdExtensionsEditorialReasonsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdExtensionsEditorialReasonsResponse getAdExtensionsEditorialReasons( + @WebParam(name = "GetAdExtensionsEditorialReasonsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsEditorialReasonsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SetAdExtensionsAssociations", action = "SetAdExtensionsAssociations") + public Response setAdExtensionsAssociationsAsync( + @WebParam(name = "SetAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetAdExtensionsAssociationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SetAdExtensionsAssociations", action = "SetAdExtensionsAssociations") + public Future setAdExtensionsAssociationsAsync( + @WebParam(name = "SetAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetAdExtensionsAssociationsRequest parameters, + @WebParam(name = "SetAdExtensionsAssociationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.SetAdExtensionsAssociationsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "SetAdExtensionsAssociations", action = "SetAdExtensionsAssociations") + @WebResult(name = "SetAdExtensionsAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public SetAdExtensionsAssociationsResponse setAdExtensionsAssociations( + @WebParam(name = "SetAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetAdExtensionsAssociationsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdExtensionsAssociations", action = "GetAdExtensionsAssociations") + public Response getAdExtensionsAssociationsAsync( + @WebParam(name = "GetAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsAssociationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdExtensionsAssociations", action = "GetAdExtensionsAssociations") + public Future getAdExtensionsAssociationsAsync( + @WebParam(name = "GetAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsAssociationsRequest parameters, + @WebParam(name = "GetAdExtensionsAssociationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionsAssociationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdExtensionsAssociations", action = "GetAdExtensionsAssociations") + @WebResult(name = "GetAdExtensionsAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdExtensionsAssociationsResponse getAdExtensionsAssociations( + @WebParam(name = "GetAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionsAssociationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteAdExtensionsAssociations", action = "DeleteAdExtensionsAssociations") + public Response deleteAdExtensionsAssociationsAsync( + @WebParam(name = "DeleteAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdExtensionsAssociationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteAdExtensionsAssociations", action = "DeleteAdExtensionsAssociations") + public Future deleteAdExtensionsAssociationsAsync( + @WebParam(name = "DeleteAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdExtensionsAssociationsRequest parameters, + @WebParam(name = "DeleteAdExtensionsAssociationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdExtensionsAssociationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteAdExtensionsAssociations", action = "DeleteAdExtensionsAssociations") + @WebResult(name = "DeleteAdExtensionsAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteAdExtensionsAssociationsResponse deleteAdExtensionsAssociations( + @WebParam(name = "DeleteAdExtensionsAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdExtensionsAssociationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdExtensionIdsByAccountId", action = "GetAdExtensionIdsByAccountId") + public Response getAdExtensionIdsByAccountIdAsync( + @WebParam(name = "GetAdExtensionIdsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionIdsByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdExtensionIdsByAccountId", action = "GetAdExtensionIdsByAccountId") + public Future getAdExtensionIdsByAccountIdAsync( + @WebParam(name = "GetAdExtensionIdsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionIdsByAccountIdRequest parameters, + @WebParam(name = "GetAdExtensionIdsByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionIdsByAccountIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdExtensionIdsByAccountId", action = "GetAdExtensionIdsByAccountId") + @WebResult(name = "GetAdExtensionIdsByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdExtensionIdsByAccountIdResponse getAdExtensionIdsByAccountId( + @WebParam(name = "GetAdExtensionIdsByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdExtensionIdsByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddMedia", action = "AddMedia") + public Response addMediaAsync( + @WebParam(name = "AddMediaRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddMediaRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddMedia", action = "AddMedia") + public Future addMediaAsync( + @WebParam(name = "AddMediaRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddMediaRequest parameters, + @WebParam(name = "AddMediaResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddMediaResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddMedia", action = "AddMedia") + @WebResult(name = "AddMediaResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddMediaResponse addMedia( + @WebParam(name = "AddMediaRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddMediaRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteMedia", action = "DeleteMedia") + public Response deleteMediaAsync( + @WebParam(name = "DeleteMediaRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteMediaRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteMedia", action = "DeleteMedia") + public Future deleteMediaAsync( + @WebParam(name = "DeleteMediaRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteMediaRequest parameters, + @WebParam(name = "DeleteMediaResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteMediaResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteMedia", action = "DeleteMedia") + @WebResult(name = "DeleteMediaResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteMediaResponse deleteMedia( + @WebParam(name = "DeleteMediaRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteMediaRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetMediaByIds", action = "GetMediaByIds") + public Response getMediaByIdsAsync( + @WebParam(name = "GetMediaByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetMediaByIds", action = "GetMediaByIds") + public Future getMediaByIdsAsync( + @WebParam(name = "GetMediaByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaByIdsRequest parameters, + @WebParam(name = "GetMediaByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetMediaByIds", action = "GetMediaByIds") + @WebResult(name = "GetMediaByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetMediaByIdsResponse getMediaByIds( + @WebParam(name = "GetMediaByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetMediaMetaDataByAccountId", action = "GetMediaMetaDataByAccountId") + public Response getMediaMetaDataByAccountIdAsync( + @WebParam(name = "GetMediaMetaDataByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaMetaDataByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetMediaMetaDataByAccountId", action = "GetMediaMetaDataByAccountId") + public Future getMediaMetaDataByAccountIdAsync( + @WebParam(name = "GetMediaMetaDataByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaMetaDataByAccountIdRequest parameters, + @WebParam(name = "GetMediaMetaDataByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaMetaDataByAccountIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetMediaMetaDataByAccountId", action = "GetMediaMetaDataByAccountId") + @WebResult(name = "GetMediaMetaDataByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetMediaMetaDataByAccountIdResponse getMediaMetaDataByAccountId( + @WebParam(name = "GetMediaMetaDataByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaMetaDataByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetMediaMetaDataByIds", action = "GetMediaMetaDataByIds") + public Response getMediaMetaDataByIdsAsync( + @WebParam(name = "GetMediaMetaDataByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaMetaDataByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetMediaMetaDataByIds", action = "GetMediaMetaDataByIds") + public Future getMediaMetaDataByIdsAsync( + @WebParam(name = "GetMediaMetaDataByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaMetaDataByIdsRequest parameters, + @WebParam(name = "GetMediaMetaDataByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaMetaDataByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetMediaMetaDataByIds", action = "GetMediaMetaDataByIds") + @WebResult(name = "GetMediaMetaDataByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetMediaMetaDataByIdsResponse getMediaMetaDataByIds( + @WebParam(name = "GetMediaMetaDataByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaMetaDataByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetMediaAssociations", action = "GetMediaAssociations") + public Response getMediaAssociationsAsync( + @WebParam(name = "GetMediaAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaAssociationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetMediaAssociations", action = "GetMediaAssociations") + public Future getMediaAssociationsAsync( + @WebParam(name = "GetMediaAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaAssociationsRequest parameters, + @WebParam(name = "GetMediaAssociationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaAssociationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetMediaAssociations", action = "GetMediaAssociations") + @WebResult(name = "GetMediaAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetMediaAssociationsResponse getMediaAssociations( + @WebParam(name = "GetMediaAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetMediaAssociationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetAdGroupCriterionsByIds", action = "GetAdGroupCriterionsByIds") + public Response getAdGroupCriterionsByIdsAsync( + @WebParam(name = "GetAdGroupCriterionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupCriterionsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetAdGroupCriterionsByIds", action = "GetAdGroupCriterionsByIds") + public Future getAdGroupCriterionsByIdsAsync( + @WebParam(name = "GetAdGroupCriterionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupCriterionsByIdsRequest parameters, + @WebParam(name = "GetAdGroupCriterionsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetAdGroupCriterionsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetAdGroupCriterionsByIds", action = "GetAdGroupCriterionsByIds") + @WebResult(name = "GetAdGroupCriterionsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetAdGroupCriterionsByIdsResponse getAdGroupCriterionsByIds( + @WebParam(name = "GetAdGroupCriterionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetAdGroupCriterionsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddAdGroupCriterions", action = "AddAdGroupCriterions") + public Response addAdGroupCriterionsAsync( + @WebParam(name = "AddAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdGroupCriterionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddAdGroupCriterions", action = "AddAdGroupCriterions") + public Future addAdGroupCriterionsAsync( + @WebParam(name = "AddAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdGroupCriterionsRequest parameters, + @WebParam(name = "AddAdGroupCriterionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddAdGroupCriterionsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddAdGroupCriterions", action = "AddAdGroupCriterions") + @WebResult(name = "AddAdGroupCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddAdGroupCriterionsResponse addAdGroupCriterions( + @WebParam(name = "AddAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddAdGroupCriterionsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateAdGroupCriterions", action = "UpdateAdGroupCriterions") + public Response updateAdGroupCriterionsAsync( + @WebParam(name = "UpdateAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdGroupCriterionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateAdGroupCriterions", action = "UpdateAdGroupCriterions") + public Future updateAdGroupCriterionsAsync( + @WebParam(name = "UpdateAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdGroupCriterionsRequest parameters, + @WebParam(name = "UpdateAdGroupCriterionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdGroupCriterionsResponse + * @throws EditorialApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateAdGroupCriterions", action = "UpdateAdGroupCriterions") + @WebResult(name = "UpdateAdGroupCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateAdGroupCriterionsResponse updateAdGroupCriterions( + @WebParam(name = "UpdateAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateAdGroupCriterionsRequest parameters) + throws AdApiFaultDetail_Exception, EditorialApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteAdGroupCriterions", action = "DeleteAdGroupCriterions") + public Response deleteAdGroupCriterionsAsync( + @WebParam(name = "DeleteAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdGroupCriterionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteAdGroupCriterions", action = "DeleteAdGroupCriterions") + public Future deleteAdGroupCriterionsAsync( + @WebParam(name = "DeleteAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdGroupCriterionsRequest parameters, + @WebParam(name = "DeleteAdGroupCriterionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdGroupCriterionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteAdGroupCriterions", action = "DeleteAdGroupCriterions") + @WebResult(name = "DeleteAdGroupCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteAdGroupCriterionsResponse deleteAdGroupCriterions( + @WebParam(name = "DeleteAdGroupCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteAdGroupCriterionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "ApplyProductPartitionActions", action = "ApplyProductPartitionActions") + public Response applyProductPartitionActionsAsync( + @WebParam(name = "ApplyProductPartitionActionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + ApplyProductPartitionActionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "ApplyProductPartitionActions", action = "ApplyProductPartitionActions") + public Future applyProductPartitionActionsAsync( + @WebParam(name = "ApplyProductPartitionActionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + ApplyProductPartitionActionsRequest parameters, + @WebParam(name = "ApplyProductPartitionActionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.ApplyProductPartitionActionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "ApplyProductPartitionActions", action = "ApplyProductPartitionActions") + @WebResult(name = "ApplyProductPartitionActionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public ApplyProductPartitionActionsResponse applyProductPartitionActions( + @WebParam(name = "ApplyProductPartitionActionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + ApplyProductPartitionActionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetBMCStoresByCustomerId", action = "GetBMCStoresByCustomerId") + public Response getBMCStoresByCustomerIdAsync( + @WebParam(name = "GetBMCStoresByCustomerIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBMCStoresByCustomerIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetBMCStoresByCustomerId", action = "GetBMCStoresByCustomerId") + public Future getBMCStoresByCustomerIdAsync( + @WebParam(name = "GetBMCStoresByCustomerIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBMCStoresByCustomerIdRequest parameters, + @WebParam(name = "GetBMCStoresByCustomerIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetBMCStoresByCustomerIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetBMCStoresByCustomerId", action = "GetBMCStoresByCustomerId") + @WebResult(name = "GetBMCStoresByCustomerIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetBMCStoresByCustomerIdResponse getBMCStoresByCustomerId( + @WebParam(name = "GetBMCStoresByCustomerIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetBMCStoresByCustomerIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddNegativeKeywordsToEntities", action = "AddNegativeKeywordsToEntities") + public Response addNegativeKeywordsToEntitiesAsync( + @WebParam(name = "AddNegativeKeywordsToEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddNegativeKeywordsToEntitiesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddNegativeKeywordsToEntities", action = "AddNegativeKeywordsToEntities") + public Future addNegativeKeywordsToEntitiesAsync( + @WebParam(name = "AddNegativeKeywordsToEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddNegativeKeywordsToEntitiesRequest parameters, + @WebParam(name = "AddNegativeKeywordsToEntitiesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddNegativeKeywordsToEntitiesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddNegativeKeywordsToEntities", action = "AddNegativeKeywordsToEntities") + @WebResult(name = "AddNegativeKeywordsToEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddNegativeKeywordsToEntitiesResponse addNegativeKeywordsToEntities( + @WebParam(name = "AddNegativeKeywordsToEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddNegativeKeywordsToEntitiesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetNegativeKeywordsByEntityIds", action = "GetNegativeKeywordsByEntityIds") + public Response getNegativeKeywordsByEntityIdsAsync( + @WebParam(name = "GetNegativeKeywordsByEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeKeywordsByEntityIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetNegativeKeywordsByEntityIds", action = "GetNegativeKeywordsByEntityIds") + public Future getNegativeKeywordsByEntityIdsAsync( + @WebParam(name = "GetNegativeKeywordsByEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeKeywordsByEntityIdsRequest parameters, + @WebParam(name = "GetNegativeKeywordsByEntityIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetNegativeKeywordsByEntityIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetNegativeKeywordsByEntityIds", action = "GetNegativeKeywordsByEntityIds") + @WebResult(name = "GetNegativeKeywordsByEntityIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetNegativeKeywordsByEntityIdsResponse getNegativeKeywordsByEntityIds( + @WebParam(name = "GetNegativeKeywordsByEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetNegativeKeywordsByEntityIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteNegativeKeywordsFromEntities", action = "DeleteNegativeKeywordsFromEntities") + public Response deleteNegativeKeywordsFromEntitiesAsync( + @WebParam(name = "DeleteNegativeKeywordsFromEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteNegativeKeywordsFromEntitiesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteNegativeKeywordsFromEntities", action = "DeleteNegativeKeywordsFromEntities") + public Future deleteNegativeKeywordsFromEntitiesAsync( + @WebParam(name = "DeleteNegativeKeywordsFromEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteNegativeKeywordsFromEntitiesRequest parameters, + @WebParam(name = "DeleteNegativeKeywordsFromEntitiesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteNegativeKeywordsFromEntitiesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteNegativeKeywordsFromEntities", action = "DeleteNegativeKeywordsFromEntities") + @WebResult(name = "DeleteNegativeKeywordsFromEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteNegativeKeywordsFromEntitiesResponse deleteNegativeKeywordsFromEntities( + @WebParam(name = "DeleteNegativeKeywordsFromEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteNegativeKeywordsFromEntitiesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetSharedEntitiesByAccountId", action = "GetSharedEntitiesByAccountId") + public Response getSharedEntitiesByAccountIdAsync( + @WebParam(name = "GetSharedEntitiesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntitiesByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetSharedEntitiesByAccountId", action = "GetSharedEntitiesByAccountId") + public Future getSharedEntitiesByAccountIdAsync( + @WebParam(name = "GetSharedEntitiesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntitiesByAccountIdRequest parameters, + @WebParam(name = "GetSharedEntitiesByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetSharedEntitiesByAccountIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetSharedEntitiesByAccountId", action = "GetSharedEntitiesByAccountId") + @WebResult(name = "GetSharedEntitiesByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetSharedEntitiesByAccountIdResponse getSharedEntitiesByAccountId( + @WebParam(name = "GetSharedEntitiesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntitiesByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddSharedEntity", action = "AddSharedEntity") + public Response addSharedEntityAsync( + @WebParam(name = "AddSharedEntityRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddSharedEntityRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddSharedEntity", action = "AddSharedEntity") + public Future addSharedEntityAsync( + @WebParam(name = "AddSharedEntityRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddSharedEntityRequest parameters, + @WebParam(name = "AddSharedEntityResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddSharedEntityResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddSharedEntity", action = "AddSharedEntity") + @WebResult(name = "AddSharedEntityResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddSharedEntityResponse addSharedEntity( + @WebParam(name = "AddSharedEntityRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddSharedEntityRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetListItemsBySharedList", action = "GetListItemsBySharedList") + public Response getListItemsBySharedListAsync( + @WebParam(name = "GetListItemsBySharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetListItemsBySharedListRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetListItemsBySharedList", action = "GetListItemsBySharedList") + public Future getListItemsBySharedListAsync( + @WebParam(name = "GetListItemsBySharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetListItemsBySharedListRequest parameters, + @WebParam(name = "GetListItemsBySharedListResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetListItemsBySharedListResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetListItemsBySharedList", action = "GetListItemsBySharedList") + @WebResult(name = "GetListItemsBySharedListResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetListItemsBySharedListResponse getListItemsBySharedList( + @WebParam(name = "GetListItemsBySharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetListItemsBySharedListRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddListItemsToSharedList", action = "AddListItemsToSharedList") + public Response addListItemsToSharedListAsync( + @WebParam(name = "AddListItemsToSharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddListItemsToSharedListRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddListItemsToSharedList", action = "AddListItemsToSharedList") + public Future addListItemsToSharedListAsync( + @WebParam(name = "AddListItemsToSharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddListItemsToSharedListRequest parameters, + @WebParam(name = "AddListItemsToSharedListResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddListItemsToSharedListResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddListItemsToSharedList", action = "AddListItemsToSharedList") + @WebResult(name = "AddListItemsToSharedListResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddListItemsToSharedListResponse addListItemsToSharedList( + @WebParam(name = "AddListItemsToSharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddListItemsToSharedListRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateSharedEntities", action = "UpdateSharedEntities") + public Response updateSharedEntitiesAsync( + @WebParam(name = "UpdateSharedEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateSharedEntitiesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateSharedEntities", action = "UpdateSharedEntities") + public Future updateSharedEntitiesAsync( + @WebParam(name = "UpdateSharedEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateSharedEntitiesRequest parameters, + @WebParam(name = "UpdateSharedEntitiesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateSharedEntitiesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateSharedEntities", action = "UpdateSharedEntities") + @WebResult(name = "UpdateSharedEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateSharedEntitiesResponse updateSharedEntities( + @WebParam(name = "UpdateSharedEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateSharedEntitiesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteListItemsFromSharedList", action = "DeleteListItemsFromSharedList") + public Response deleteListItemsFromSharedListAsync( + @WebParam(name = "DeleteListItemsFromSharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteListItemsFromSharedListRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteListItemsFromSharedList", action = "DeleteListItemsFromSharedList") + public Future deleteListItemsFromSharedListAsync( + @WebParam(name = "DeleteListItemsFromSharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteListItemsFromSharedListRequest parameters, + @WebParam(name = "DeleteListItemsFromSharedListResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteListItemsFromSharedListResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteListItemsFromSharedList", action = "DeleteListItemsFromSharedList") + @WebResult(name = "DeleteListItemsFromSharedListResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteListItemsFromSharedListResponse deleteListItemsFromSharedList( + @WebParam(name = "DeleteListItemsFromSharedListRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteListItemsFromSharedListRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "SetSharedEntityAssociations", action = "SetSharedEntityAssociations") + public Response setSharedEntityAssociationsAsync( + @WebParam(name = "SetSharedEntityAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetSharedEntityAssociationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "SetSharedEntityAssociations", action = "SetSharedEntityAssociations") + public Future setSharedEntityAssociationsAsync( + @WebParam(name = "SetSharedEntityAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetSharedEntityAssociationsRequest parameters, + @WebParam(name = "SetSharedEntityAssociationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.SetSharedEntityAssociationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "SetSharedEntityAssociations", action = "SetSharedEntityAssociations") + @WebResult(name = "SetSharedEntityAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public SetSharedEntityAssociationsResponse setSharedEntityAssociations( + @WebParam(name = "SetSharedEntityAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + SetSharedEntityAssociationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteSharedEntityAssociations", action = "DeleteSharedEntityAssociations") + public Response deleteSharedEntityAssociationsAsync( + @WebParam(name = "DeleteSharedEntityAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSharedEntityAssociationsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteSharedEntityAssociations", action = "DeleteSharedEntityAssociations") + public Future deleteSharedEntityAssociationsAsync( + @WebParam(name = "DeleteSharedEntityAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSharedEntityAssociationsRequest parameters, + @WebParam(name = "DeleteSharedEntityAssociationsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteSharedEntityAssociationsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteSharedEntityAssociations", action = "DeleteSharedEntityAssociations") + @WebResult(name = "DeleteSharedEntityAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteSharedEntityAssociationsResponse deleteSharedEntityAssociations( + @WebParam(name = "DeleteSharedEntityAssociationsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSharedEntityAssociationsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetSharedEntityAssociationsBySharedEntityIds", action = "GetSharedEntityAssociationsBySharedEntityIds") + public Response getSharedEntityAssociationsBySharedEntityIdsAsync( + @WebParam(name = "GetSharedEntityAssociationsBySharedEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntityAssociationsBySharedEntityIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetSharedEntityAssociationsBySharedEntityIds", action = "GetSharedEntityAssociationsBySharedEntityIds") + public Future getSharedEntityAssociationsBySharedEntityIdsAsync( + @WebParam(name = "GetSharedEntityAssociationsBySharedEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntityAssociationsBySharedEntityIdsRequest parameters, + @WebParam(name = "GetSharedEntityAssociationsBySharedEntityIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetSharedEntityAssociationsBySharedEntityIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetSharedEntityAssociationsBySharedEntityIds", action = "GetSharedEntityAssociationsBySharedEntityIds") + @WebResult(name = "GetSharedEntityAssociationsBySharedEntityIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetSharedEntityAssociationsBySharedEntityIdsResponse getSharedEntityAssociationsBySharedEntityIds( + @WebParam(name = "GetSharedEntityAssociationsBySharedEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntityAssociationsBySharedEntityIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetSharedEntityAssociationsByEntityIds", action = "GetSharedEntityAssociationsByEntityIds") + public Response getSharedEntityAssociationsByEntityIdsAsync( + @WebParam(name = "GetSharedEntityAssociationsByEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntityAssociationsByEntityIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetSharedEntityAssociationsByEntityIds", action = "GetSharedEntityAssociationsByEntityIds") + public Future getSharedEntityAssociationsByEntityIdsAsync( + @WebParam(name = "GetSharedEntityAssociationsByEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntityAssociationsByEntityIdsRequest parameters, + @WebParam(name = "GetSharedEntityAssociationsByEntityIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetSharedEntityAssociationsByEntityIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetSharedEntityAssociationsByEntityIds", action = "GetSharedEntityAssociationsByEntityIds") + @WebResult(name = "GetSharedEntityAssociationsByEntityIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetSharedEntityAssociationsByEntityIdsResponse getSharedEntityAssociationsByEntityIds( + @WebParam(name = "GetSharedEntityAssociationsByEntityIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetSharedEntityAssociationsByEntityIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteSharedEntities", action = "DeleteSharedEntities") + public Response deleteSharedEntitiesAsync( + @WebParam(name = "DeleteSharedEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSharedEntitiesRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteSharedEntities", action = "DeleteSharedEntities") + public Future deleteSharedEntitiesAsync( + @WebParam(name = "DeleteSharedEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSharedEntitiesRequest parameters, + @WebParam(name = "DeleteSharedEntitiesResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteSharedEntitiesResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteSharedEntities", action = "DeleteSharedEntities") + @WebResult(name = "DeleteSharedEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteSharedEntitiesResponse deleteSharedEntities( + @WebParam(name = "DeleteSharedEntitiesRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteSharedEntitiesRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") + public Response getCampaignSizesByAccountIdAsync( + @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignSizesByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") + public Future getCampaignSizesByAccountIdAsync( + @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignSizesByAccountIdRequest parameters, + @WebParam(name = "GetCampaignSizesByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignSizesByAccountIdResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") + @WebResult(name = "GetCampaignSizesByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetCampaignSizesByAccountIdResponse getCampaignSizesByAccountId( + @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignSizesByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "AddCampaignCriterions", action = "AddCampaignCriterions") + public Response addCampaignCriterionsAsync( + @WebParam(name = "AddCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddCampaignCriterionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "AddCampaignCriterions", action = "AddCampaignCriterions") + public Future addCampaignCriterionsAsync( + @WebParam(name = "AddCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddCampaignCriterionsRequest parameters, + @WebParam(name = "AddCampaignCriterionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.AddCampaignCriterionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "AddCampaignCriterions", action = "AddCampaignCriterions") + @WebResult(name = "AddCampaignCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public AddCampaignCriterionsResponse addCampaignCriterions( + @WebParam(name = "AddCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + AddCampaignCriterionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "UpdateCampaignCriterions", action = "UpdateCampaignCriterions") + public Response updateCampaignCriterionsAsync( + @WebParam(name = "UpdateCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateCampaignCriterionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "UpdateCampaignCriterions", action = "UpdateCampaignCriterions") + public Future updateCampaignCriterionsAsync( + @WebParam(name = "UpdateCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateCampaignCriterionsRequest parameters, + @WebParam(name = "UpdateCampaignCriterionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.UpdateCampaignCriterionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "UpdateCampaignCriterions", action = "UpdateCampaignCriterions") + @WebResult(name = "UpdateCampaignCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public UpdateCampaignCriterionsResponse updateCampaignCriterions( + @WebParam(name = "UpdateCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + UpdateCampaignCriterionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "DeleteCampaignCriterions", action = "DeleteCampaignCriterions") + public Response deleteCampaignCriterionsAsync( + @WebParam(name = "DeleteCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteCampaignCriterionsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "DeleteCampaignCriterions", action = "DeleteCampaignCriterions") + public Future deleteCampaignCriterionsAsync( + @WebParam(name = "DeleteCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteCampaignCriterionsRequest parameters, + @WebParam(name = "DeleteCampaignCriterionsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.DeleteCampaignCriterionsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "DeleteCampaignCriterions", action = "DeleteCampaignCriterions") + @WebResult(name = "DeleteCampaignCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public DeleteCampaignCriterionsResponse deleteCampaignCriterions( + @WebParam(name = "DeleteCampaignCriterionsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + DeleteCampaignCriterionsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetCampaignCriterionsByIds", action = "GetCampaignCriterionsByIds") + public Response getCampaignCriterionsByIdsAsync( + @WebParam(name = "GetCampaignCriterionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignCriterionsByIdsRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetCampaignCriterionsByIds", action = "GetCampaignCriterionsByIds") + public Future getCampaignCriterionsByIdsAsync( + @WebParam(name = "GetCampaignCriterionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignCriterionsByIdsRequest parameters, + @WebParam(name = "GetCampaignCriterionsByIdsResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignCriterionsByIdsResponse + * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetCampaignCriterionsByIds", action = "GetCampaignCriterionsByIds") + @WebResult(name = "GetCampaignCriterionsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetCampaignCriterionsByIdsResponse getCampaignCriterionsByIds( + @WebParam(name = "GetCampaignCriterionsByIdsRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetCampaignCriterionsByIdsRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/IDREFS.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/IDREFS.java new file mode 100644 index 0000000000..5846c31b6a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/IDREFS.java @@ -0,0 +1,72 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlIDREF; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for IDREFS simple type. + * + *

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

+ * <simpleType name="IDREFS">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}IDREF" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "IDREFS", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class IDREFS { + + @XmlValue + @XmlIDREF + @XmlSchemaType(name = "IDREFS") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/IdCollection.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/IdCollection.java new file mode 100644 index 0000000000..d055486eb5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/IdCollection.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for IdCollection complex type. + * + *

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

+ * <complexType name="IdCollection">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Ids" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "IdCollection", propOrder = { + "ids" +}) +public class IdCollection { + + @XmlElement(name = "Ids", nillable = true) + protected ArrayOflong ids; + + /** + * Gets the value of the ids property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getIds() { + return ids; + } + + /** + * Sets the value of the ids property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setIds(ArrayOflong value) { + this.ids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Image.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Image.java new file mode 100644 index 0000000000..ca82d28457 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Image.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Image complex type. + * + *

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

+ * <complexType name="Image">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}Media">
+ *       <sequence>
+ *         <element name="Data" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Image", propOrder = { + "data" +}) +public class Image + extends Media +{ + + @XmlElement(name = "Data", required = true, nillable = true) + protected String data; + + /** + * Gets the value of the data property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getData() { + return data; + } + + /** + * Sets the value of the data property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setData(String value) { + this.data = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ImageAdExtension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ImageAdExtension.java new file mode 100644 index 0000000000..35e358de64 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ImageAdExtension.java @@ -0,0 +1,288 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ImageAdExtension complex type. + * + *

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

+ * <complexType name="ImageAdExtension">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtension">
+ *       <sequence>
+ *         <element name="AlternativeText" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="DestinationUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="FinalAppUrls" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfAppUrl" minOccurs="0"/>
+ *         <element name="FinalMobileUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="FinalUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="ImageMediaIds" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ImageAdExtension", propOrder = { + "alternativeText", + "description", + "destinationUrl", + "finalAppUrls", + "finalMobileUrls", + "finalUrls", + "imageMediaIds", + "trackingUrlTemplate", + "urlCustomParameters" +}) +public class ImageAdExtension + extends AdExtension +{ + + @XmlElement(name = "AlternativeText", required = true, nillable = true) + protected String alternativeText; + @XmlElement(name = "Description", nillable = true) + protected String description; + @XmlElement(name = "DestinationUrl", nillable = true) + protected String destinationUrl; + @XmlElement(name = "FinalAppUrls", nillable = true) + protected ArrayOfAppUrl finalAppUrls; + @XmlElement(name = "FinalMobileUrls", nillable = true) + protected ArrayOfstring finalMobileUrls; + @XmlElement(name = "FinalUrls", nillable = true) + protected ArrayOfstring finalUrls; + @XmlElement(name = "ImageMediaIds", required = true, nillable = true) + protected ArrayOflong imageMediaIds; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + + /** + * Gets the value of the alternativeText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlternativeText() { + return alternativeText; + } + + /** + * Sets the value of the alternativeText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlternativeText(String value) { + this.alternativeText = 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 destinationUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationUrl() { + return destinationUrl; + } + + /** + * Sets the value of the destinationUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationUrl(String value) { + this.destinationUrl = value; + } + + /** + * Gets the value of the finalAppUrls property. + * + * @return + * possible object is + * {@link ArrayOfAppUrl } + * + */ + public ArrayOfAppUrl getFinalAppUrls() { + return finalAppUrls; + } + + /** + * Sets the value of the finalAppUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfAppUrl } + * + */ + public void setFinalAppUrls(ArrayOfAppUrl value) { + this.finalAppUrls = value; + } + + /** + * Gets the value of the finalMobileUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalMobileUrls() { + return finalMobileUrls; + } + + /** + * Sets the value of the finalMobileUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalMobileUrls(ArrayOfstring value) { + this.finalMobileUrls = value; + } + + /** + * Gets the value of the finalUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalUrls() { + return finalUrls; + } + + /** + * Sets the value of the finalUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalUrls(ArrayOfstring value) { + this.finalUrls = value; + } + + /** + * Gets the value of the imageMediaIds property. + * + * @return + * possible object is + * {@link ArrayOflong } + * + */ + public ArrayOflong getImageMediaIds() { + return imageMediaIds; + } + + /** + * Sets the value of the imageMediaIds property. + * + * @param value + * allowed object is + * {@link ArrayOflong } + * + */ + public void setImageMediaIds(ArrayOflong value) { + this.imageMediaIds = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ImageMediaRepresentation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ImageMediaRepresentation.java new file mode 100644 index 0000000000..f1dc069b28 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ImageMediaRepresentation.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ImageMediaRepresentation complex type. + * + *

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

+ * <complexType name="ImageMediaRepresentation">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}MediaRepresentation">
+ *       <sequence>
+ *         <element name="Height" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Width" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ImageMediaRepresentation", propOrder = { + "height", + "width" +}) +public class ImageMediaRepresentation + extends MediaRepresentation +{ + + @XmlElement(name = "Height") + protected Integer height; + @XmlElement(name = "Width") + protected Integer width; + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHeight(Integer value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setWidth(Integer value) { + this.width = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ImpressionsPerDayRange.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ImpressionsPerDayRange.java new file mode 100644 index 0000000000..3c244c4ca8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ImpressionsPerDayRange.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ImpressionsPerDayRange complex type. + * + *

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

+ * <complexType name="ImpressionsPerDayRange">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Maximum" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Minimum" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ImpressionsPerDayRange", propOrder = { + "maximum", + "minimum" +}) +public class ImpressionsPerDayRange { + + @XmlElement(name = "Maximum", nillable = true) + protected Integer maximum; + @XmlElement(name = "Minimum", nillable = true) + protected Integer minimum; + + /** + * Gets the value of the maximum property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMaximum() { + return maximum; + } + + /** + * Sets the value of the maximum property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMaximum(Integer value) { + this.maximum = value; + } + + /** + * Gets the value of the minimum property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMinimum() { + return minimum; + } + + /** + * Sets the value of the minimum property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMinimum(Integer value) { + this.minimum = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/IntentOption.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/IntentOption.java new file mode 100644 index 0000000000..45758ab822 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/IntentOption.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for IntentOption. + * + *

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

+ *

+ * <simpleType name="IntentOption">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="PeopleInOrSearchingForOrViewingPages"/>
+ *     <enumeration value="PeopleIn"/>
+ *     <enumeration value="PeopleSearchingForOrViewingPages"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "IntentOption") +@XmlEnum +public enum IntentOption { + + @XmlEnumValue("PeopleInOrSearchingForOrViewingPages") + PEOPLE_IN_OR_SEARCHING_FOR_OR_VIEWING_PAGES("PeopleInOrSearchingForOrViewingPages"), + @XmlEnumValue("PeopleIn") + PEOPLE_IN("PeopleIn"), + @XmlEnumValue("PeopleSearchingForOrViewingPages") + PEOPLE_SEARCHING_FOR_OR_VIEWING_PAGES("PeopleSearchingForOrViewingPages"); + private final String value; + + IntentOption(String v) { + value = v; + } + + public String value() { + return value; + } + + public static IntentOption fromValue(String v) { + for (IntentOption c: IntentOption.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ItemAction.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ItemAction.java new file mode 100644 index 0000000000..a5f17c4f2d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ItemAction.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ItemAction. + * + *

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

+ *

+ * <simpleType name="ItemAction">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Add"/>
+ *     <enumeration value="Delete"/>
+ *     <enumeration value="Update"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ItemAction") +@XmlEnum +public enum ItemAction { + + @XmlEnumValue("Add") + ADD("Add"), + @XmlEnumValue("Delete") + DELETE("Delete"), + @XmlEnumValue("Update") + UPDATE("Update"); + private final String value; + + ItemAction(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ItemAction fromValue(String v) { + for (ItemAction c: ItemAction.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/KeyValuePairOfstringstring.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/KeyValuePairOfstringstring.java new file mode 100644 index 0000000000..cf380727a0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/KeyValuePairOfstringstring.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeyValuePairOfstringstring complex type. + * + *

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

+ * <complexType name="KeyValuePairOfstringstring">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="key" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "KeyValuePairOfstringstring", namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", propOrder = { + "key", + "value" +}) +public class KeyValuePairOfstringstring { + + @XmlElement(required = true, nillable = true) + protected String key; + @XmlElement(required = true, nillable = true) + protected String value; + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Keyword.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Keyword.java new file mode 100644 index 0000000000..db98695abb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Keyword.java @@ -0,0 +1,486 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Keyword complex type. + * + *

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

+ * <complexType name="Keyword">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bid" type="{https://bingads.microsoft.com/CampaignManagement/v10}Bid" minOccurs="0"/>
+ *         <element name="DestinationUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="EditorialStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}KeywordEditorialStatus" minOccurs="0"/>
+ *         <element name="FinalAppUrls" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfAppUrl" minOccurs="0"/>
+ *         <element name="FinalMobileUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="FinalUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MatchType" type="{https://bingads.microsoft.com/CampaignManagement/v10}MatchType" minOccurs="0"/>
+ *         <element name="Param1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Param2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Param3" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}KeywordStatus" minOccurs="0"/>
+ *         <element name="Text" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Keyword", propOrder = { + "bid", + "destinationUrl", + "editorialStatus", + "finalAppUrls", + "finalMobileUrls", + "finalUrls", + "forwardCompatibilityMap", + "id", + "matchType", + "param1", + "param2", + "param3", + "status", + "text", + "trackingUrlTemplate", + "urlCustomParameters" +}) +public class Keyword { + + @XmlElement(name = "Bid", nillable = true) + protected Bid bid; + @XmlElement(name = "DestinationUrl", nillable = true) + protected String destinationUrl; + @XmlElement(name = "EditorialStatus", nillable = true) + @XmlSchemaType(name = "string") + protected KeywordEditorialStatus editorialStatus; + @XmlElement(name = "FinalAppUrls", nillable = true) + protected ArrayOfAppUrl finalAppUrls; + @XmlElement(name = "FinalMobileUrls", nillable = true) + protected ArrayOfstring finalMobileUrls; + @XmlElement(name = "FinalUrls", nillable = true) + protected ArrayOfstring finalUrls; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "MatchType", nillable = true) + @XmlSchemaType(name = "string") + protected MatchType matchType; + @XmlElement(name = "Param1", nillable = true) + protected String param1; + @XmlElement(name = "Param2", nillable = true) + protected String param2; + @XmlElement(name = "Param3", nillable = true) + protected String param3; + @XmlElement(name = "Status", nillable = true) + @XmlSchemaType(name = "string") + protected KeywordStatus status; + @XmlElement(name = "Text", nillable = true) + protected String text; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + + /** + * Gets the value of the bid property. + * + * @return + * possible object is + * {@link Bid } + * + */ + public Bid getBid() { + return bid; + } + + /** + * Sets the value of the bid property. + * + * @param value + * allowed object is + * {@link Bid } + * + */ + public void setBid(Bid value) { + this.bid = value; + } + + /** + * Gets the value of the destinationUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationUrl() { + return destinationUrl; + } + + /** + * Sets the value of the destinationUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationUrl(String value) { + this.destinationUrl = value; + } + + /** + * Gets the value of the editorialStatus property. + * + * @return + * possible object is + * {@link KeywordEditorialStatus } + * + */ + public KeywordEditorialStatus getEditorialStatus() { + return editorialStatus; + } + + /** + * Sets the value of the editorialStatus property. + * + * @param value + * allowed object is + * {@link KeywordEditorialStatus } + * + */ + public void setEditorialStatus(KeywordEditorialStatus value) { + this.editorialStatus = value; + } + + /** + * Gets the value of the finalAppUrls property. + * + * @return + * possible object is + * {@link ArrayOfAppUrl } + * + */ + public ArrayOfAppUrl getFinalAppUrls() { + return finalAppUrls; + } + + /** + * Sets the value of the finalAppUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfAppUrl } + * + */ + public void setFinalAppUrls(ArrayOfAppUrl value) { + this.finalAppUrls = value; + } + + /** + * Gets the value of the finalMobileUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalMobileUrls() { + return finalMobileUrls; + } + + /** + * Sets the value of the finalMobileUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalMobileUrls(ArrayOfstring value) { + this.finalMobileUrls = value; + } + + /** + * Gets the value of the finalUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalUrls() { + return finalUrls; + } + + /** + * Sets the value of the finalUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalUrls(ArrayOfstring value) { + this.finalUrls = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = 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 matchType property. + * + * @return + * possible object is + * {@link MatchType } + * + */ + public MatchType getMatchType() { + return matchType; + } + + /** + * Sets the value of the matchType property. + * + * @param value + * allowed object is + * {@link MatchType } + * + */ + public void setMatchType(MatchType value) { + this.matchType = value; + } + + /** + * Gets the value of the param1 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParam1() { + return param1; + } + + /** + * Sets the value of the param1 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParam1(String value) { + this.param1 = value; + } + + /** + * Gets the value of the param2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParam2() { + return param2; + } + + /** + * Sets the value of the param2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParam2(String value) { + this.param2 = value; + } + + /** + * Gets the value of the param3 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getParam3() { + return param3; + } + + /** + * Sets the value of the param3 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setParam3(String value) { + this.param3 = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link KeywordStatus } + * + */ + public KeywordStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link KeywordStatus } + * + */ + public void setStatus(KeywordStatus value) { + this.status = value; + } + + /** + * Gets the value of the text property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setText(String value) { + this.text = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordEditorialStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordEditorialStatus.java new file mode 100644 index 0000000000..7e78f909b4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordEditorialStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordEditorialStatus. + * + *

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

+ *

+ * <simpleType name="KeywordEditorialStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Disapproved"/>
+ *     <enumeration value="Inactive"/>
+ *     <enumeration value="ActiveLimited"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "KeywordEditorialStatus") +@XmlEnum +public enum KeywordEditorialStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Disapproved") + DISAPPROVED("Disapproved"), + @XmlEnumValue("Inactive") + INACTIVE("Inactive"), + @XmlEnumValue("ActiveLimited") + ACTIVE_LIMITED("ActiveLimited"); + private final String value; + + KeywordEditorialStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static KeywordEditorialStatus fromValue(String v) { + for (KeywordEditorialStatus c: KeywordEditorialStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordStatus.java new file mode 100644 index 0000000000..78e7f84c39 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/KeywordStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for KeywordStatus. + * + *

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

+ *

+ * <simpleType name="KeywordStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Paused"/>
+ *     <enumeration value="Deleted"/>
+ *     <enumeration value="Inactive"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "KeywordStatus") +@XmlEnum +public enum KeywordStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Paused") + PAUSED("Paused"), + @XmlEnumValue("Deleted") + DELETED("Deleted"), + @XmlEnumValue("Inactive") + INACTIVE("Inactive"); + private final String value; + + KeywordStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static KeywordStatus fromValue(String v) { + for (KeywordStatus c: KeywordStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Language.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Language.java new file mode 100644 index 0000000000..eafb182e19 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Language.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for language simple type. + * + *

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

+ * <simpleType name="language">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "language", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class Language { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/LocationAdExtension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/LocationAdExtension.java new file mode 100644 index 0000000000..c17b99edba --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/LocationAdExtension.java @@ -0,0 +1,234 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for LocationAdExtension complex type. + * + *

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

+ * <complexType name="LocationAdExtension">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtension">
+ *       <sequence>
+ *         <element name="Address" type="{https://bingads.microsoft.com/CampaignManagement/v10}Address"/>
+ *         <element name="CompanyName" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="GeoCodeStatus" type="{https://bingads.microsoft.com/CampaignManagement/v10}BusinessGeoCodeStatus" minOccurs="0"/>
+ *         <element name="GeoPoint" type="{https://bingads.microsoft.com/CampaignManagement/v10}GeoPoint" minOccurs="0"/>
+ *         <element name="IconMediaId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ImageMediaId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="PhoneNumber" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "LocationAdExtension", propOrder = { + "address", + "companyName", + "geoCodeStatus", + "geoPoint", + "iconMediaId", + "imageMediaId", + "phoneNumber" +}) +public class LocationAdExtension + extends AdExtension +{ + + @XmlElement(name = "Address", required = true, nillable = true) + protected Address address; + @XmlElement(name = "CompanyName", required = true, nillable = true) + protected String companyName; + @XmlElement(name = "GeoCodeStatus", nillable = true) + @XmlSchemaType(name = "string") + protected BusinessGeoCodeStatus geoCodeStatus; + @XmlElement(name = "GeoPoint", nillable = true) + protected GeoPoint geoPoint; + @XmlElement(name = "IconMediaId", nillable = true) + protected Long iconMediaId; + @XmlElement(name = "ImageMediaId", nillable = true) + protected Long imageMediaId; + @XmlElement(name = "PhoneNumber", nillable = true) + protected String phoneNumber; + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link Address } + * + */ + public Address getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link Address } + * + */ + public void setAddress(Address value) { + this.address = value; + } + + /** + * Gets the value of the companyName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompanyName() { + return companyName; + } + + /** + * Sets the value of the companyName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompanyName(String value) { + this.companyName = value; + } + + /** + * Gets the value of the geoCodeStatus property. + * + * @return + * possible object is + * {@link BusinessGeoCodeStatus } + * + */ + public BusinessGeoCodeStatus getGeoCodeStatus() { + return geoCodeStatus; + } + + /** + * Sets the value of the geoCodeStatus property. + * + * @param value + * allowed object is + * {@link BusinessGeoCodeStatus } + * + */ + public void setGeoCodeStatus(BusinessGeoCodeStatus value) { + this.geoCodeStatus = value; + } + + /** + * Gets the value of the geoPoint property. + * + * @return + * possible object is + * {@link GeoPoint } + * + */ + public GeoPoint getGeoPoint() { + return geoPoint; + } + + /** + * Sets the value of the geoPoint property. + * + * @param value + * allowed object is + * {@link GeoPoint } + * + */ + public void setGeoPoint(GeoPoint value) { + this.geoPoint = value; + } + + /** + * Gets the value of the iconMediaId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getIconMediaId() { + return iconMediaId; + } + + /** + * Sets the value of the iconMediaId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setIconMediaId(Long value) { + this.iconMediaId = value; + } + + /** + * Gets the value of the imageMediaId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getImageMediaId() { + return imageMediaId; + } + + /** + * Sets the value of the imageMediaId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setImageMediaId(Long value) { + this.imageMediaId = value; + } + + /** + * Gets the value of the phoneNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPhoneNumber() { + return phoneNumber; + } + + /** + * Sets the value of the phoneNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPhoneNumber(String value) { + this.phoneNumber = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/LocationTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/LocationTarget.java new file mode 100644 index 0000000000..f10328dc05 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/LocationTarget.java @@ -0,0 +1,232 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for LocationTarget complex type. + * + *

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

+ * <complexType name="LocationTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CityTarget" type="{https://bingads.microsoft.com/CampaignManagement/v10}CityTarget" minOccurs="0"/>
+ *         <element name="CountryTarget" type="{https://bingads.microsoft.com/CampaignManagement/v10}CountryTarget" minOccurs="0"/>
+ *         <element name="IntentOption" type="{https://bingads.microsoft.com/CampaignManagement/v10}IntentOption" minOccurs="0"/>
+ *         <element name="MetroAreaTarget" type="{https://bingads.microsoft.com/CampaignManagement/v10}MetroAreaTarget" minOccurs="0"/>
+ *         <element name="PostalCodeTarget" type="{https://bingads.microsoft.com/CampaignManagement/v10}PostalCodeTarget" minOccurs="0"/>
+ *         <element name="RadiusTarget" type="{https://bingads.microsoft.com/CampaignManagement/v10}RadiusTarget" minOccurs="0"/>
+ *         <element name="StateTarget" type="{https://bingads.microsoft.com/CampaignManagement/v10}StateTarget" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "LocationTarget", propOrder = { + "cityTarget", + "countryTarget", + "intentOption", + "metroAreaTarget", + "postalCodeTarget", + "radiusTarget", + "stateTarget" +}) +public class LocationTarget { + + @XmlElement(name = "CityTarget", nillable = true) + protected CityTarget cityTarget; + @XmlElement(name = "CountryTarget", nillable = true) + protected CountryTarget countryTarget; + @XmlElement(name = "IntentOption", nillable = true) + @XmlSchemaType(name = "string") + protected IntentOption intentOption; + @XmlElement(name = "MetroAreaTarget", nillable = true) + protected MetroAreaTarget metroAreaTarget; + @XmlElement(name = "PostalCodeTarget", nillable = true) + protected PostalCodeTarget postalCodeTarget; + @XmlElement(name = "RadiusTarget", nillable = true) + protected RadiusTarget radiusTarget; + @XmlElement(name = "StateTarget", nillable = true) + protected StateTarget stateTarget; + + /** + * Gets the value of the cityTarget property. + * + * @return + * possible object is + * {@link CityTarget } + * + */ + public CityTarget getCityTarget() { + return cityTarget; + } + + /** + * Sets the value of the cityTarget property. + * + * @param value + * allowed object is + * {@link CityTarget } + * + */ + public void setCityTarget(CityTarget value) { + this.cityTarget = value; + } + + /** + * Gets the value of the countryTarget property. + * + * @return + * possible object is + * {@link CountryTarget } + * + */ + public CountryTarget getCountryTarget() { + return countryTarget; + } + + /** + * Sets the value of the countryTarget property. + * + * @param value + * allowed object is + * {@link CountryTarget } + * + */ + public void setCountryTarget(CountryTarget value) { + this.countryTarget = value; + } + + /** + * Gets the value of the intentOption property. + * + * @return + * possible object is + * {@link IntentOption } + * + */ + public IntentOption getIntentOption() { + return intentOption; + } + + /** + * Sets the value of the intentOption property. + * + * @param value + * allowed object is + * {@link IntentOption } + * + */ + public void setIntentOption(IntentOption value) { + this.intentOption = value; + } + + /** + * Gets the value of the metroAreaTarget property. + * + * @return + * possible object is + * {@link MetroAreaTarget } + * + */ + public MetroAreaTarget getMetroAreaTarget() { + return metroAreaTarget; + } + + /** + * Sets the value of the metroAreaTarget property. + * + * @param value + * allowed object is + * {@link MetroAreaTarget } + * + */ + public void setMetroAreaTarget(MetroAreaTarget value) { + this.metroAreaTarget = value; + } + + /** + * Gets the value of the postalCodeTarget property. + * + * @return + * possible object is + * {@link PostalCodeTarget } + * + */ + public PostalCodeTarget getPostalCodeTarget() { + return postalCodeTarget; + } + + /** + * Sets the value of the postalCodeTarget property. + * + * @param value + * allowed object is + * {@link PostalCodeTarget } + * + */ + public void setPostalCodeTarget(PostalCodeTarget value) { + this.postalCodeTarget = value; + } + + /** + * Gets the value of the radiusTarget property. + * + * @return + * possible object is + * {@link RadiusTarget } + * + */ + public RadiusTarget getRadiusTarget() { + return radiusTarget; + } + + /** + * Sets the value of the radiusTarget property. + * + * @param value + * allowed object is + * {@link RadiusTarget } + * + */ + public void setRadiusTarget(RadiusTarget value) { + this.radiusTarget = value; + } + + /** + * Gets the value of the stateTarget property. + * + * @return + * possible object is + * {@link StateTarget } + * + */ + public StateTarget getStateTarget() { + return stateTarget; + } + + /** + * Sets the value of the stateTarget property. + * + * @param value + * allowed object is + * {@link StateTarget } + * + */ + public void setStateTarget(StateTarget value) { + this.stateTarget = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MatchType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MatchType.java new file mode 100644 index 0000000000..8d074f2795 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MatchType.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MatchType. + * + *

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

+ *

+ * <simpleType name="MatchType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Exact"/>
+ *     <enumeration value="Phrase"/>
+ *     <enumeration value="Broad"/>
+ *     <enumeration value="Content"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "MatchType") +@XmlEnum +public enum MatchType { + + @XmlEnumValue("Exact") + EXACT("Exact"), + @XmlEnumValue("Phrase") + PHRASE("Phrase"), + @XmlEnumValue("Broad") + BROAD("Broad"), + @XmlEnumValue("Content") + CONTENT("Content"); + private final String value; + + MatchType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MatchType fromValue(String v) { + for (MatchType c: MatchType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Media.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Media.java new file mode 100644 index 0000000000..20cdd2fbcb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Media.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Media complex type. + * + *

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

+ * <complexType name="Media">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MediaType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Media", propOrder = { + "id", + "mediaType", + "type" +}) +@XmlSeeAlso({ + Image.class +}) +public class Media { + + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "MediaType", nillable = true) + protected String mediaType; + @XmlElement(name = "Type", required = true, nillable = true) + protected String type; + + /** + * 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 mediaType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaType(String value) { + this.mediaType = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaAssociation.java new file mode 100644 index 0000000000..7e55b328e2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaAssociation.java @@ -0,0 +1,123 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for MediaAssociation complex type. + * + *

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

+ * <complexType name="MediaAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="MediaEnabledEntity" type="{https://bingads.microsoft.com/CampaignManagement/v10}MediaEnabledEntityFilter" minOccurs="0"/>
+ *         <element name="MediaId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MediaAssociation", propOrder = { + "entityId", + "mediaEnabledEntity", + "mediaId" +}) +public class MediaAssociation { + + @XmlElement(name = "EntityId") + protected Long entityId; + @XmlElement(name = "MediaEnabledEntity", type = String.class) + @XmlJavaTypeAdapter(Adapter6 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection mediaEnabledEntity; + @XmlElement(name = "MediaId") + protected Long mediaId; + + /** + * Gets the value of the entityId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getEntityId() { + return entityId; + } + + /** + * Sets the value of the entityId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setEntityId(Long value) { + this.entityId = value; + } + + /** + * Gets the value of the mediaEnabledEntity property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getMediaEnabledEntity() { + return mediaEnabledEntity; + } + + /** + * Sets the value of the mediaEnabledEntity property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaEnabledEntity(Collection value) { + this.mediaEnabledEntity = value; + } + + /** + * Gets the value of the mediaId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getMediaId() { + return mediaId; + } + + /** + * Sets the value of the mediaId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setMediaId(Long value) { + this.mediaId = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaEnabledEntityFilter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaEnabledEntityFilter.java new file mode 100644 index 0000000000..7e3bd54aff --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaEnabledEntityFilter.java @@ -0,0 +1,28 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +/** + * Enum class for MediaEnabledEntityFilter. + */ +public enum MediaEnabledEntityFilter { + + IMAGE_AD_EXTENSION("ImageAdExtension"); + + private final String value; + + MediaEnabledEntityFilter(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MediaEnabledEntityFilter fromValue(String v) { + for (MediaEnabledEntityFilter c : MediaEnabledEntityFilter.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/v10/campaignmanagement/MediaEnabledEntityFilterConverter.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaEnabledEntityFilterConverter.java new file mode 100644 index 0000000000..8570d5a306 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaEnabledEntityFilterConverter.java @@ -0,0 +1,34 @@ +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.Collection; + +/** + * Reserved for internal use. + */ +public class MediaEnabledEntityFilterConverter { + + public static Collection convertToList(String enums) { + String[] values = enums.split(" "); + + Collection result = new ArrayList(); + + for (String value : values) { + result.add(MediaEnabledEntityFilter.fromValue(value)); + } + + return result; + } + + public static String convertToString(Collection enums) { + String result = ""; + + for (MediaEnabledEntityFilter 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/v10/campaignmanagement/MediaMetaData.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaMetaData.java new file mode 100644 index 0000000000..3f9860ceb2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaMetaData.java @@ -0,0 +1,138 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MediaMetaData complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="MediaMetaData">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="MediaType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Representations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMediaRepresentation" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MediaMetaData", propOrder = { + "id", + "mediaType", + "representations", + "type" +}) +public class MediaMetaData { + + @XmlElement(name = "Id") + protected long id; + @XmlElement(name = "MediaType", nillable = true) + protected String mediaType; + @XmlElement(name = "Representations", nillable = true) + protected ArrayOfMediaRepresentation representations; + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the mediaType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaType(String value) { + this.mediaType = value; + } + + /** + * Gets the value of the representations property. + * + * @return + * possible object is + * {@link ArrayOfMediaRepresentation } + * + */ + public ArrayOfMediaRepresentation getRepresentations() { + return representations; + } + + /** + * Sets the value of the representations property. + * + * @param value + * allowed object is + * {@link ArrayOfMediaRepresentation } + * + */ + public void setRepresentations(ArrayOfMediaRepresentation value) { + this.representations = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaRepresentation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaRepresentation.java new file mode 100644 index 0000000000..3353c4f1fc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaRepresentation.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MediaRepresentation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="MediaRepresentation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MediaRepresentation", propOrder = { + "name", + "type", + "url" +}) +@XmlSeeAlso({ + ImageMediaRepresentation.class +}) +public class MediaRepresentation { + + @XmlElement(name = "Name", nillable = true) + protected String name; + @XmlElement(name = "Type", nillable = true) + protected String type; + @XmlElement(name = "Url", nillable = true) + protected String url; + + /** + * 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 type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaType.java new file mode 100644 index 0000000000..39aaed3931 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MediaType.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MediaType complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="MediaType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Dimensions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfDimension" minOccurs="0"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MediaType", propOrder = { + "dimensions", + "name" +}) +public class MediaType { + + @XmlElement(name = "Dimensions", nillable = true) + protected ArrayOfDimension dimensions; + @XmlElement(name = "Name", nillable = true) + protected String name; + + /** + * Gets the value of the dimensions property. + * + * @return + * possible object is + * {@link ArrayOfDimension } + * + */ + public ArrayOfDimension getDimensions() { + return dimensions; + } + + /** + * Sets the value of the dimensions property. + * + * @param value + * allowed object is + * {@link ArrayOfDimension } + * + */ + public void setDimensions(ArrayOfDimension value) { + this.dimensions = 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTarget.java new file mode 100644 index 0000000000..4f7ac0df76 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MetroAreaTarget complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="MetroAreaTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMetroAreaTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MetroAreaTarget", propOrder = { + "bids" +}) +public class MetroAreaTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfMetroAreaTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfMetroAreaTargetBid } + * + */ + public ArrayOfMetroAreaTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfMetroAreaTargetBid } + * + */ + public void setBids(ArrayOfMetroAreaTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTargetBid.java new file mode 100644 index 0000000000..126bf8b07d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MetroAreaTargetBid.java @@ -0,0 +1,102 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MetroAreaTargetBid complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="MetroAreaTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="IsExcluded" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="MetroArea" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MetroAreaTargetBid", propOrder = { + "bidAdjustment", + "isExcluded", + "metroArea" +}) +public class MetroAreaTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "IsExcluded") + protected boolean isExcluded; + @XmlElement(name = "MetroArea", required = true, nillable = true) + protected String metroArea; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the isExcluded property. + * + */ + public boolean isIsExcluded() { + return isExcluded; + } + + /** + * Sets the value of the isExcluded property. + * + */ + public void setIsExcluded(boolean value) { + this.isExcluded = value; + } + + /** + * Gets the value of the metroArea property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMetroArea() { + return metroArea; + } + + /** + * Sets the value of the metroArea property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMetroArea(String value) { + this.metroArea = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatus.java new file mode 100644 index 0000000000..9c64734838 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for MigrationStatus. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="MigrationStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="NotInPilot"/>
+ *     <enumeration value="NotStarted"/>
+ *     <enumeration value="InProgress"/>
+ *     <enumeration value="Completed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "MigrationStatus") +@XmlEnum +public enum MigrationStatus { + + @XmlEnumValue("NotInPilot") + NOT_IN_PILOT("NotInPilot"), + @XmlEnumValue("NotStarted") + NOT_STARTED("NotStarted"), + @XmlEnumValue("InProgress") + IN_PROGRESS("InProgress"), + @XmlEnumValue("Completed") + COMPLETED("Completed"); + private final String value; + + MigrationStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MigrationStatus fromValue(String v) { + for (MigrationStatus c: MigrationStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatusInfo.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatusInfo.java new file mode 100644 index 0000000000..f5d2ffc897 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/MigrationStatusInfo.java @@ -0,0 +1,124 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Calendar; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for MigrationStatusInfo complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="MigrationStatusInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MigrationType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="StartTimeInUtc" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}MigrationStatus"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MigrationStatusInfo", propOrder = { + "migrationType", + "startTimeInUtc", + "status" +}) +public class MigrationStatusInfo { + + @XmlElement(name = "MigrationType", required = true, nillable = true) + protected String migrationType; + @XmlElement(name = "StartTimeInUtc", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter1 .class) + @XmlSchemaType(name = "dateTime") + protected Calendar startTimeInUtc; + @XmlElement(name = "Status", required = true) + @XmlSchemaType(name = "string") + protected MigrationStatus status; + + /** + * Gets the value of the migrationType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMigrationType() { + return migrationType; + } + + /** + * Sets the value of the migrationType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMigrationType(String value) { + this.migrationType = value; + } + + /** + * Gets the value of the startTimeInUtc property. + * + * @return + * possible object is + * {@link String } + * + */ + public Calendar getStartTimeInUtc() { + return startTimeInUtc; + } + + /** + * Sets the value of the startTimeInUtc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartTimeInUtc(Calendar value) { + this.startTimeInUtc = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link MigrationStatus } + * + */ + public MigrationStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link MigrationStatus } + * + */ + public void setStatus(MigrationStatus value) { + this.status = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Minute.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Minute.java new file mode 100644 index 0000000000..d38ec5116e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Minute.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Minute. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="Minute">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Zero"/>
+ *     <enumeration value="Fifteen"/>
+ *     <enumeration value="Thirty"/>
+ *     <enumeration value="FortyFive"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "Minute") +@XmlEnum +public enum Minute { + + @XmlEnumValue("Zero") + ZERO("Zero"), + @XmlEnumValue("Fifteen") + FIFTEEN("Fifteen"), + @XmlEnumValue("Thirty") + THIRTY("Thirty"), + @XmlEnumValue("FortyFive") + FORTY_FIVE("FortyFive"); + private final String value; + + Minute(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Minute fromValue(String v) { + for (Minute c: Minute.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NCName.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NCName.java new file mode 100644 index 0000000000..8ff8a55cba --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NCName.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for NCName simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="NCName">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}Name">
+ *     <pattern value="[\i-[:]][\c-[:]]*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NCName", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NCName { + + @XmlValue + @XmlSchemaType(name = "NCName") + protected Name value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link Name } + * + */ + public Name getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link Name } + * + */ + public void setValue(Name value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKEN.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKEN.java new file mode 100644 index 0000000000..af466254dd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKEN.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for NMTOKEN simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="NMTOKEN">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="\c+"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NMTOKEN", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NMTOKEN { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "NMTOKEN") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKENS.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKENS.java new file mode 100644 index 0000000000..7fccc685ad --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NMTOKENS.java @@ -0,0 +1,70 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for NMTOKENS simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="NMTOKENS">
+ *   <restriction>
+ *     <simpleType>
+ *       <list itemType="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *     </simpleType>
+ *     <minLength value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NMTOKENS", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "values" +}) +public class NMTOKENS { + + @XmlValue + @XmlSchemaType(name = "NMTOKENS") + protected List values; + + /** + * Gets the value of the values 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 JAXB object. + * This is why there is not a set method for the values property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getValues().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link NMTOKEN } + * + * + */ + public List getValues() { + if (values == null) { + values = new ArrayList(); + } + return this.values; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Name.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Name.java new file mode 100644 index 0000000000..13f934be78 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Name.java @@ -0,0 +1,63 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for Name simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="Name">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <pattern value="\i\c*"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Name", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class Name { + + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "Name") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeAdGroupCriterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeAdGroupCriterion.java new file mode 100644 index 0000000000..be7620837f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeAdGroupCriterion.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for NegativeAdGroupCriterion complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="NegativeAdGroupCriterion">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}AdGroupCriterion">
+ *       <sequence>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NegativeAdGroupCriterion") +public class NegativeAdGroupCriterion + extends AdGroupCriterion +{ + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeCampaignCriterion.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeCampaignCriterion.java new file mode 100644 index 0000000000..2aaf04bd9e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeCampaignCriterion.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for NegativeCampaignCriterion complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="NegativeCampaignCriterion">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignCriterion">
+ *       <sequence>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NegativeCampaignCriterion") +public class NegativeCampaignCriterion + extends CampaignCriterion +{ + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeInteger.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeInteger.java new file mode 100644 index 0000000000..cbc93af599 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeInteger.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for negativeInteger simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="negativeInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonPositiveInteger">
+ *     <maxInclusive value="-1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "negativeInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NegativeInteger { + + @XmlValue + @XmlSchemaType(name = "negativeInteger") + protected NonPositiveInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonPositiveInteger } + * + */ + public NonPositiveInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonPositiveInteger } + * + */ + public void setValue(NonPositiveInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeyword.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeyword.java new file mode 100644 index 0000000000..a2fa260fb1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeyword.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for NegativeKeyword complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="NegativeKeyword">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}SharedListItem">
+ *       <sequence>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="MatchType" type="{https://bingads.microsoft.com/CampaignManagement/v10}MatchType"/>
+ *         <element name="Text" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NegativeKeyword", propOrder = { + "id", + "matchType", + "text" +}) +public class NegativeKeyword + extends SharedListItem +{ + + @XmlElement(name = "Id", required = true, type = Long.class, nillable = true) + protected Long id; + @XmlElement(name = "MatchType", required = true) + @XmlSchemaType(name = "string") + protected MatchType matchType; + @XmlElement(name = "Text", required = true, nillable = true) + protected String text; + + /** + * 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 matchType property. + * + * @return + * possible object is + * {@link MatchType } + * + */ + public MatchType getMatchType() { + return matchType; + } + + /** + * Sets the value of the matchType property. + * + * @param value + * allowed object is + * {@link MatchType } + * + */ + public void setMatchType(MatchType value) { + this.matchType = value; + } + + /** + * Gets the value of the text property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setText(String value) { + this.text = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeywordList.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeywordList.java new file mode 100644 index 0000000000..e3b08ba95a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NegativeKeywordList.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for NegativeKeywordList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="NegativeKeywordList">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}SharedList">
+ *       <sequence>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "NegativeKeywordList") +public class NegativeKeywordList + extends SharedList +{ + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Network.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Network.java new file mode 100644 index 0000000000..e4d7864278 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Network.java @@ -0,0 +1,54 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Network. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="Network">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="OwnedAndOperatedAndSyndicatedSearch"/>
+ *     <enumeration value="OwnedAndOperatedOnly"/>
+ *     <enumeration value="SyndicatedSearchOnly"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "Network") +@XmlEnum +public enum Network { + + @XmlEnumValue("OwnedAndOperatedAndSyndicatedSearch") + OWNED_AND_OPERATED_AND_SYNDICATED_SEARCH("OwnedAndOperatedAndSyndicatedSearch"), + @XmlEnumValue("OwnedAndOperatedOnly") + OWNED_AND_OPERATED_ONLY("OwnedAndOperatedOnly"), + @XmlEnumValue("SyndicatedSearchOnly") + SYNDICATED_SEARCH_ONLY("SyndicatedSearchOnly"); + private final String value; + + Network(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Network fromValue(String v) { + for (Network c: Network.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NonNegativeInteger.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NonNegativeInteger.java new file mode 100644 index 0000000000..5a16a16837 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NonNegativeInteger.java @@ -0,0 +1,61 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for nonNegativeInteger simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="nonNegativeInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *     <minInclusive value="0"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "nonNegativeInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NonNegativeInteger { + + @XmlValue + @XmlSchemaType(name = "nonNegativeInteger") + protected BigInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/NonPositiveInteger.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/NonPositiveInteger.java new file mode 100644 index 0000000000..6f33a1b24f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/NonPositiveInteger.java @@ -0,0 +1,61 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for nonPositiveInteger simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="nonPositiveInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *     <maxInclusive value="0"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "nonPositiveInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class NonPositiveInteger { + + @XmlValue + @XmlSchemaType(name = "nonPositiveInteger") + protected BigInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setValue(BigInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java new file mode 100644 index 0000000000..8ebbb38a9b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java @@ -0,0 +1,5200 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.math.BigDecimal; +import java.util.Calendar; +import java.util.Collection; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.microsoft.bingads.v10.campaignmanagement package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _ApiFaultDetail_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ApiFaultDetail"); + private final static QName _ArrayOfEntityNegativeKeyword_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfEntityNegativeKeyword"); + private final static QName _AdGroupNegativeSites_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdGroupNegativeSites"); + private final static QName _CustomParameter_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", "CustomParameter"); + private final static QName _CityTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CityTarget"); + private final static QName _AssociationType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AssociationType"); + private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); + private final static QName _AdExtensionsTypeFilter_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionsTypeFilter"); + private final static QName _Date_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Date"); + private final static QName _MediaMetaData_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MediaMetaData"); + private final static QName _ArrayOfStateTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfStateTargetBid"); + private final static QName _ArrayOfEditorialReason_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfEditorialReason"); + private final static QName _NegativeKeyword_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "NegativeKeyword"); + private final static QName _AgeTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AgeTarget"); + private final static QName _EntityIdToParentIdAssociation_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", "EntityIdToParentIdAssociation"); + private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); + private final static QName _ArrayOfBatchError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfBatchError"); + private final static QName _DistanceUnit_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DistanceUnit"); + private final static QName _AccountMigrationStatusesInfo_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AccountMigrationStatusesInfo"); + private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); + private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); + private final static QName _GenderTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "GenderTarget"); + private final static QName _ArrayOfCityTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfCityTargetBid"); + private final static QName _ArrayOfSharedEntityAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfSharedEntityAssociation"); + private final static QName _ImpressionsPerDayRange_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ImpressionsPerDayRange"); + private final static QName _MigrationStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MigrationStatus"); + private final static QName _ArrayOfAdExtension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdExtension"); + private final static QName _ArrayOfSiteLink_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfSiteLink"); + private final static QName _NegativeCampaignCriterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "NegativeCampaignCriterion"); + private final static QName _ArrayOfAdGroupNegativeSites_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdGroupNegativeSites"); + private final static QName _ArrayOfOperationError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfOperationError"); + private final static QName _CountryTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CountryTarget"); + private final static QName _KeyValuePairOfstringstring_QNAME = new QName("http://schemas.datacontract.org/2004/07/System.Collections.Generic", "KeyValuePairOfstringstring"); + private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); + private final static QName _NegativeAdGroupCriterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "NegativeAdGroupCriterion"); + private final static QName _ArrayOfSharedListItem_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfSharedListItem"); + private final static QName _EntityType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "EntityType"); + private final static QName _AdExtensionEditorialReasonCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionEditorialReasonCollection"); + private final static QName _MigrationStatusInfo_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MigrationStatusInfo"); + private final static QName _ArrayOfIdCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfIdCollection"); + private final static QName _ArrayOfSharedEntity_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfSharedEntity"); + private final static QName _RadiusTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "RadiusTargetBid"); + private final static QName _Media_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Media"); + private final static QName _PlacementDetail_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "PlacementDetail"); + private final static QName _ArrayOfMigrationStatusInfo_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfMigrationStatusInfo"); + private final static QName _Setting_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Setting"); + private final static QName _ArrayOfCampaignCriterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfCampaignCriterion"); + private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); + private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); + private final static QName _ArrayOfAdGroupCriterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdGroupCriterion"); + private final static QName _AdGroupCriterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdGroupCriterion"); + private final static QName _ApplicationToken_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ApplicationToken"); + private final static QName _EntityNegativeKeyword_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "EntityNegativeKeyword"); + private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); + private final static QName _ProductAd_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ProductAd"); + private final static QName _AdExtensionStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionStatus"); + private final static QName _ArrayOfPlacementDetail_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfPlacementDetail"); + private final static QName _BusinessGeoCodeStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BusinessGeoCodeStatus"); + private final static QName _FixedBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "FixedBid"); + private final static QName _ArrayOfArrayOfMediaAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfArrayOfMediaAssociation"); + private final static QName _ArrayOfArrayOfPlacementDetail_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfArrayOfPlacementDetail"); + private final static QName _EditorialReasonCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "EditorialReasonCollection"); + private final static QName _DayTimeTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DayTimeTargetBid"); + private final static QName _Day_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Day"); + private final static QName _AdExtensionAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionAssociation"); + private final static QName _ArrayOfAdExtensionIdentity_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdExtensionIdentity"); + private final static QName _BiddableAdGroupCriterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BiddableAdGroupCriterion"); + private final static QName _ArrayOflong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOflong"); + private final static QName _GenderType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "GenderType"); + private final static QName _ProductPartition_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ProductPartition"); + private final static QName _ArrayOfstring_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOfstring"); + private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); + private final static QName _Dimension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Dimension"); + private final static QName _EditorialApiFaultDetail_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "EditorialApiFaultDetail"); + private final static QName _Keyword_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Keyword"); + private final static QName _CampaignCriterionType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignCriterionType"); + private final static QName _AdEditorialStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdEditorialStatus"); + private final static QName _AdGroupCriterionEditorialStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdGroupCriterionEditorialStatus"); + private final static QName _SharedEntity_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SharedEntity"); + private final static QName _Minute_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Minute"); + private final static QName _ProductScope_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ProductScope"); + private final static QName _Target_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Target"); + private final static QName _PricingModel_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "PricingModel"); + private final static QName _TextAd_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "TextAd"); + private final static QName _MediaAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MediaAssociation"); + private final static QName _CampaignSize_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignSize"); + private final static QName _CampaignStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignStatus"); + private final static QName _SiteLinksAdExtension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SiteLinksAdExtension"); + private final static QName _AdExtensionAssociationCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionAssociationCollection"); + private final static QName _CityTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CityTargetBid"); + private final static QName _ItemAction_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ItemAction"); + private final static QName _CustomerId_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CustomerId"); + private final static QName _AdExtensionIdentity_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionIdentity"); + private final static QName _AdExtensionIdToEntityIdAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionIdToEntityIdAssociation"); + private final static QName _ArrayOfAdExtensionEditorialReason_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdExtensionEditorialReason"); + private final static QName _ArrayOfEntityIdToParentIdAssociation_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", "ArrayOfEntityIdToParentIdAssociation"); + private final static QName _ArrayOfAdExtensionAssociationCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdExtensionAssociationCollection"); + private final static QName _ArrayOfAdGroupCriterionAction_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdGroupCriterionAction"); + private final static QName _Network_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Network"); + private final static QName _ArrayOfAdExtensionEditorialReasonCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdExtensionEditorialReasonCollection"); + private final static QName _BiddingModel_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BiddingModel"); + private final static QName _Image_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Image"); + private final static QName _LocationTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "LocationTarget"); + private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); + private final static QName _CountryTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CountryTargetBid"); + private final static QName _PostalCodeTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "PostalCodeTargetBid"); + private final static QName _Address_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Address"); + private final static QName _ArrayOfPostalCodeTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfPostalCodeTargetBid"); + private final static QName _ArrayOfAccountMigrationStatusesInfo_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAccountMigrationStatusesInfo"); + private final static QName _AdExtensionEditorialReason_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionEditorialReason"); + private final static QName _ArrayOfCustomParameter_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", "ArrayOfCustomParameter"); + private final static QName _ArrayOfAdExtensionIdToEntityIdAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdExtensionIdToEntityIdAssociation"); + private final static QName _ArrayOfDeviceOSTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfDeviceOSTargetBid"); + private final static QName _CriterionBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CriterionBid"); + private final static QName _ArrayOfMetroAreaTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfMetroAreaTargetBid"); + private final static QName _ArrayOfAdApiError_QNAME = new QName("https://adapi.microsoft.com", "ArrayOfAdApiError"); + private final static QName _UserName_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "UserName"); + private final static QName _ArrayOfEditorialError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfEditorialError"); + private final static QName _ArrayOfSitePlacement_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfSitePlacement"); + private final static QName _Bid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Bid"); + private final static QName _Password_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Password"); + private final static QName _ArrayOfGenderTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfGenderTargetBid"); + private final static QName _Criterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Criterion"); + private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); + private final static QName _CustomerAccountId_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CustomerAccountId"); + private final static QName _MediaRepresentation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MediaRepresentation"); + private final static QName _ArrayOfSetting_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfSetting"); + private final static QName _KeywordStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "KeywordStatus"); + private final static QName _ArrayOfMediaType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfMediaType"); + private final static QName _ArrayOfCampaignSize_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfCampaignSize"); + private final static QName _ArrayOfRadiusTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfRadiusTargetBid"); + private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); + private final static QName _AdGroup_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdGroup"); + private final static QName _ArrayOfBMCStore_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfBMCStore"); + private final static QName _EditorialReason_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "EditorialReason"); + private final static QName _CampaignCriterion_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignCriterion"); + private final static QName _AdExtensionEditorialStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtensionEditorialStatus"); + private final static QName _DeviceOSTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DeviceOSTarget"); + private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); + private final static QName _ArrayOfMediaRepresentation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfMediaRepresentation"); + private final static QName _SharedList_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SharedList"); + private final static QName _Campaign_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Campaign"); + private final static QName _ArrayOfAd_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAd"); + private final static QName _ImageAdExtension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ImageAdExtension"); + private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); + private final static QName _ArrayOfBatchErrorCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfBatchErrorCollection"); + private final static QName _ProductCondition_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ProductCondition"); + private final static QName _AdApiError_QNAME = new QName("https://adapi.microsoft.com", "AdApiError"); + private final static QName _CallAdExtension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CallAdExtension"); + private final static QName _DayTimeTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DayTimeTarget"); + private final static QName _ArrayOfDayTimeTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfDayTimeTargetBid"); + private final static QName _CampaignType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignType"); + private final static QName _SharedEntityAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SharedEntityAssociation"); + private final static QName _CriterionType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CriterionType"); + private final static QName _AppAdExtension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AppAdExtension"); + private final static QName _GeoPoint_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "GeoPoint"); + private final static QName _ImageMediaRepresentation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ImageMediaRepresentation"); + private final static QName _MediaEnabledEntityFilter_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MediaEnabledEntityFilter"); + private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary"); + private final static QName _ArrayOfCampaign_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfCampaign"); + private final static QName _AdExtension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdExtension"); + private final static QName _ArrayOfNullableOflong_QNAME = new QName("http://schemas.datacontract.org/2004/07/System", "ArrayOfNullableOflong"); + private final static QName _AdType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdType"); + private final static QName _ArrayOfProductCondition_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfProductCondition"); + private final static QName _ArrayOfNegativeKeyword_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfNegativeKeyword"); + private final static QName _AppUrl_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", "AppUrl"); + private final static QName _SitePlacement_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SitePlacement"); + private final static QName _ArrayOfKeyword_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfKeyword"); + private final static QName _SharedListItem_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SharedListItem"); + private final static QName _StateTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "StateTarget"); + private final static QName _DeveloperToken_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DeveloperToken"); + private final static QName _CampaignNegativeSites_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "CampaignNegativeSites"); + private final static QName _AdDistribution_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdDistribution"); + private final static QName _MatchType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MatchType"); + private final static QName _ArrayOfDimension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfDimension"); + private final static QName _AppealStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AppealStatus"); + private final static QName _ArrayOfTargetInfo_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfTargetInfo"); + private final static QName _OperationError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "OperationError"); + private final static QName _ArrayOfMediaMetaData_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfMediaMetaData"); + private final static QName _MetroAreaTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MetroAreaTarget"); + private final static QName _ArrayOfCountryTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfCountryTargetBid"); + private final static QName _RadiusTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "RadiusTarget"); + private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); + private final static QName _BatchError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BatchError"); + private final static QName _NegativeKeywordList_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "NegativeKeywordList"); + private final static QName _AdRotationType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdRotationType"); + private final static QName _AgeTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AgeTargetBid"); + private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); + private final static QName _ArrayOfMedia_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfMedia"); + private final static QName _ArrayOfKeyValuePairOfstringstring_QNAME = new QName("http://schemas.datacontract.org/2004/07/System.Collections.Generic", "ArrayOfKeyValuePairOfstringstring"); + private final static QName _AdStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdStatus"); + private final static QName _DeviceOSTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "DeviceOSTargetBid"); + private final static QName _AgeRange_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AgeRange"); + private final static QName _Ad_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "Ad"); + private final static QName _AdGroupStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdGroupStatus"); + private final static QName _LocationAdExtension_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "LocationAdExtension"); + private final static QName _StateTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "StateTargetBid"); + private final static QName _ArrayOfAdGroup_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdGroup"); + private final static QName _IdCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "IdCollection"); + private final static QName _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong"); + private final static QName _PostalCodeTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "PostalCodeTarget"); + private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort"); + private final static QName _CustomParameters_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", "CustomParameters"); + private final static QName _AdRotation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdRotation"); + private final static QName _BatchErrorCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BatchErrorCollection"); + private final static QName _BudgetLimitType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BudgetLimitType"); + private final static QName _TargetInfo_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "TargetInfo"); + private final static QName _TrackingId_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "TrackingId"); + private final static QName _ProductPartitionType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ProductPartitionType"); + private final static QName _ArrayOfMediaAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfMediaAssociation"); + private final static QName _ArrayOfAdExtensionAssociation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAdExtensionAssociation"); + private final static QName _AdGroupCriterionAction_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdGroupCriterionAction"); + private final static QName _IntentOption_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "IntentOption"); + private final static QName _ArrayOfTarget_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfTarget"); + private final static QName _KeywordEditorialStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "KeywordEditorialStatus"); + private final static QName _ShoppingSetting_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ShoppingSetting"); + private final static QName _ArrayOfEditorialReasonCollection_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfEditorialReasonCollection"); + private final static QName _ArrayOfAppUrl_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", "ArrayOfAppUrl"); + private final static QName _AdApiFaultDetail_QNAME = new QName("https://adapi.microsoft.com", "AdApiFaultDetail"); + private final static QName _MediaType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MediaType"); + private final static QName _GenderTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "GenderTargetBid"); + private final static QName _ApplicationFault_QNAME = new QName("https://adapi.microsoft.com", "ApplicationFault"); + private final static QName _SiteLink_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SiteLink"); + private final static QName _ArrayOfAgeTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfAgeTargetBid"); + private final static QName _ArrayOfCampaignNegativeSites_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "ArrayOfCampaignNegativeSites"); + private final static QName _AdGroupCriterionStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AdGroupCriterionStatus"); + private final static QName _SitePlacementStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "SitePlacementStatus"); + private final static QName _EditorialError_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "EditorialError"); + private final static QName _MetroAreaTargetBid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "MetroAreaTargetBid"); + private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); + private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); + private final static QName _AuthenticationToken_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "AuthenticationToken"); + private final static QName _BMCStore_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v10", "BMCStore"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.microsoft.bingads.v10.campaignmanagement + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Language } + * + */ + public Language createLanguage() { + return new Language(); + } + + /** + * Create an instance of {@link NonNegativeInteger } + * + */ + public NonNegativeInteger createNonNegativeInteger() { + return new NonNegativeInteger(); + } + + /** + * Create an instance of {@link Name } + * + */ + public Name createName() { + return new Name(); + } + + /** + * Create an instance of {@link NCName } + * + */ + public NCName createNCName() { + return new NCName(); + } + + /** + * Create an instance of {@link ENTITY } + * + */ + public ENTITY createENTITY() { + return new ENTITY(); + } + + /** + * Create an instance of {@link NegativeInteger } + * + */ + public NegativeInteger createNegativeInteger() { + return new NegativeInteger(); + } + + /** + * Create an instance of {@link ENTITIES } + * + */ + public ENTITIES createENTITIES() { + return new ENTITIES(); + } + + /** + * Create an instance of {@link UnsignedLong } + * + */ + public UnsignedLong createUnsignedLong() { + return new UnsignedLong(); + } + + /** + * Create an instance of {@link IDREFS } + * + */ + public IDREFS createIDREFS() { + return new IDREFS(); + } + + /** + * Create an instance of {@link NonPositiveInteger } + * + */ + public NonPositiveInteger createNonPositiveInteger() { + return new NonPositiveInteger(); + } + + /** + * Create an instance of {@link NMTOKEN } + * + */ + public NMTOKEN createNMTOKEN() { + return new NMTOKEN(); + } + + /** + * Create an instance of {@link NMTOKENS } + * + */ + public NMTOKENS createNMTOKENS() { + return new NMTOKENS(); + } + + /** + * Create an instance of {@link PositiveInteger } + * + */ + public PositiveInteger createPositiveInteger() { + return new PositiveInteger(); + } + + /** + * Create an instance of {@link BMCStore } + * + */ + public BMCStore createBMCStore() { + return new BMCStore(); + } + + /** + * Create an instance of {@link GetTargetsInfoFromLibraryResponse } + * + */ + public GetTargetsInfoFromLibraryResponse createGetTargetsInfoFromLibraryResponse() { + return new GetTargetsInfoFromLibraryResponse(); + } + + /** + * Create an instance of {@link ArrayOfTargetInfo } + * + */ + public ArrayOfTargetInfo createArrayOfTargetInfo() { + return new ArrayOfTargetInfo(); + } + + /** + * Create an instance of {@link DeleteAdsResponse } + * + */ + public DeleteAdsResponse createDeleteAdsResponse() { + return new DeleteAdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfBatchError } + * + */ + public ArrayOfBatchError createArrayOfBatchError() { + return new ArrayOfBatchError(); + } + + /** + * Create an instance of {@link GetAdGroupsByIdsRequest } + * + */ + public GetAdGroupsByIdsRequest createGetAdGroupsByIdsRequest() { + return new GetAdGroupsByIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOflong } + * + */ + public ArrayOflong createArrayOflong() { + return new ArrayOflong(); + } + + /** + * Create an instance of {@link MetroAreaTargetBid } + * + */ + public MetroAreaTargetBid createMetroAreaTargetBid() { + return new MetroAreaTargetBid(); + } + + /** + * Create an instance of {@link GetCampaignCriterionsByIdsResponse } + * + */ + public GetCampaignCriterionsByIdsResponse createGetCampaignCriterionsByIdsResponse() { + return new GetCampaignCriterionsByIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfCampaignCriterion } + * + */ + public ArrayOfCampaignCriterion createArrayOfCampaignCriterion() { + return new ArrayOfCampaignCriterion(); + } + + /** + * Create an instance of {@link GetMediaMetaDataByIdsResponse } + * + */ + public GetMediaMetaDataByIdsResponse createGetMediaMetaDataByIdsResponse() { + return new GetMediaMetaDataByIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfMediaMetaData } + * + */ + public ArrayOfMediaMetaData createArrayOfMediaMetaData() { + return new ArrayOfMediaMetaData(); + } + + /** + * Create an instance of {@link EditorialError } + * + */ + public EditorialError createEditorialError() { + return new EditorialError(); + } + + /** + * Create an instance of {@link AddCampaignCriterionsRequest } + * + */ + public AddCampaignCriterionsRequest createAddCampaignCriterionsRequest() { + return new AddCampaignCriterionsRequest(); + } + + /** + * Create an instance of {@link GetSharedEntitiesByAccountIdRequest } + * + */ + public GetSharedEntitiesByAccountIdRequest createGetSharedEntitiesByAccountIdRequest() { + return new GetSharedEntitiesByAccountIdRequest(); + } + + /** + * Create an instance of {@link GetCampaignsByIdsResponse } + * + */ + public GetCampaignsByIdsResponse createGetCampaignsByIdsResponse() { + return new GetCampaignsByIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfCampaign } + * + */ + public ArrayOfCampaign createArrayOfCampaign() { + return new ArrayOfCampaign(); + } + + /** + * Create an instance of {@link ArrayOfAgeTargetBid } + * + */ + public ArrayOfAgeTargetBid createArrayOfAgeTargetBid() { + return new ArrayOfAgeTargetBid(); + } + + /** + * Create an instance of {@link ArrayOfCampaignNegativeSites } + * + */ + public ArrayOfCampaignNegativeSites createArrayOfCampaignNegativeSites() { + return new ArrayOfCampaignNegativeSites(); + } + + /** + * Create an instance of {@link UpdateCampaignCriterionsResponse } + * + */ + public UpdateCampaignCriterionsResponse createUpdateCampaignCriterionsResponse() { + return new UpdateCampaignCriterionsResponse(); + } + + /** + * Create an instance of {@link ArrayOfBatchErrorCollection } + * + */ + public ArrayOfBatchErrorCollection createArrayOfBatchErrorCollection() { + return new ArrayOfBatchErrorCollection(); + } + + /** + * Create an instance of {@link UpdateAdsResponse } + * + */ + public UpdateAdsResponse createUpdateAdsResponse() { + return new UpdateAdsResponse(); + } + + /** + * Create an instance of {@link SiteLink } + * + */ + public SiteLink createSiteLink() { + return new SiteLink(); + } + + /** + * Create an instance of {@link AddTargetsToLibraryResponse } + * + */ + public AddTargetsToLibraryResponse createAddTargetsToLibraryResponse() { + return new AddTargetsToLibraryResponse(); + } + + /** + * Create an instance of {@link MediaType } + * + */ + public MediaType createMediaType() { + return new MediaType(); + } + + /** + * Create an instance of {@link GenderTargetBid } + * + */ + public GenderTargetBid createGenderTargetBid() { + return new GenderTargetBid(); + } + + /** + * Create an instance of {@link ArrayOfEditorialReasonCollection } + * + */ + public ArrayOfEditorialReasonCollection createArrayOfEditorialReasonCollection() { + return new ArrayOfEditorialReasonCollection(); + } + + /** + * Create an instance of {@link ArrayOfTarget } + * + */ + public ArrayOfTarget createArrayOfTarget() { + return new ArrayOfTarget(); + } + + /** + * Create an instance of {@link DeleteAdExtensionsResponse } + * + */ + public DeleteAdExtensionsResponse createDeleteAdExtensionsResponse() { + return new DeleteAdExtensionsResponse(); + } + + /** + * Create an instance of {@link DeleteMediaRequest } + * + */ + public DeleteMediaRequest createDeleteMediaRequest() { + return new DeleteMediaRequest(); + } + + /** + * Create an instance of {@link GetCampaignCriterionsByIdsRequest } + * + */ + public GetCampaignCriterionsByIdsRequest createGetCampaignCriterionsByIdsRequest() { + return new GetCampaignCriterionsByIdsRequest(); + } + + /** + * Create an instance of {@link ShoppingSetting } + * + */ + public ShoppingSetting createShoppingSetting() { + return new ShoppingSetting(); + } + + /** + * Create an instance of {@link GetCampaignsByAccountIdRequest } + * + */ + public GetCampaignsByAccountIdRequest createGetCampaignsByAccountIdRequest() { + return new GetCampaignsByAccountIdRequest(); + } + + /** + * Create an instance of {@link GetKeywordsByAdGroupIdRequest } + * + */ + public GetKeywordsByAdGroupIdRequest createGetKeywordsByAdGroupIdRequest() { + return new GetKeywordsByAdGroupIdRequest(); + } + + /** + * Create an instance of {@link AddNegativeKeywordsToEntitiesRequest } + * + */ + public AddNegativeKeywordsToEntitiesRequest createAddNegativeKeywordsToEntitiesRequest() { + return new AddNegativeKeywordsToEntitiesRequest(); + } + + /** + * Create an instance of {@link ArrayOfEntityNegativeKeyword } + * + */ + public ArrayOfEntityNegativeKeyword createArrayOfEntityNegativeKeyword() { + return new ArrayOfEntityNegativeKeyword(); + } + + /** + * Create an instance of {@link DeleteSitePlacementsResponse } + * + */ + public DeleteSitePlacementsResponse createDeleteSitePlacementsResponse() { + return new DeleteSitePlacementsResponse(); + } + + /** + * Create an instance of {@link AdGroupCriterionAction } + * + */ + public AdGroupCriterionAction createAdGroupCriterionAction() { + return new AdGroupCriterionAction(); + } + + /** + * Create an instance of {@link ArrayOfAdExtensionAssociation } + * + */ + public ArrayOfAdExtensionAssociation createArrayOfAdExtensionAssociation() { + return new ArrayOfAdExtensionAssociation(); + } + + /** + * Create an instance of {@link AddKeywordsResponse } + * + */ + public AddKeywordsResponse createAddKeywordsResponse() { + return new AddKeywordsResponse(); + } + + /** + * Create an instance of {@link ArrayOfNullableOflong } + * + */ + public ArrayOfNullableOflong createArrayOfNullableOflong() { + return new ArrayOfNullableOflong(); + } + + /** + * Create an instance of {@link UpdateAdGroupCriterionsResponse } + * + */ + public UpdateAdGroupCriterionsResponse createUpdateAdGroupCriterionsResponse() { + return new UpdateAdGroupCriterionsResponse(); + } + + /** + * Create an instance of {@link ArrayOfMediaAssociation } + * + */ + public ArrayOfMediaAssociation createArrayOfMediaAssociation() { + return new ArrayOfMediaAssociation(); + } + + /** + * Create an instance of {@link AddSharedEntityResponse } + * + */ + public AddSharedEntityResponse createAddSharedEntityResponse() { + return new AddSharedEntityResponse(); + } + + /** + * Create an instance of {@link SetSharedEntityAssociationsResponse } + * + */ + public SetSharedEntityAssociationsResponse createSetSharedEntityAssociationsResponse() { + return new SetSharedEntityAssociationsResponse(); + } + + /** + * Create an instance of {@link TargetInfo } + * + */ + public TargetInfo createTargetInfo() { + return new TargetInfo(); + } + + /** + * Create an instance of {@link GetMediaMetaDataByAccountIdResponse } + * + */ + public GetMediaMetaDataByAccountIdResponse createGetMediaMetaDataByAccountIdResponse() { + return new GetMediaMetaDataByAccountIdResponse(); + } + + /** + * Create an instance of {@link AdRotation } + * + */ + public AdRotation createAdRotation() { + return new AdRotation(); + } + + /** + * Create an instance of {@link AddKeywordsRequest } + * + */ + public AddKeywordsRequest createAddKeywordsRequest() { + return new AddKeywordsRequest(); + } + + /** + * Create an instance of {@link ArrayOfKeyword } + * + */ + public ArrayOfKeyword createArrayOfKeyword() { + return new ArrayOfKeyword(); + } + + /** + * Create an instance of {@link DeleteAdGroupsResponse } + * + */ + public DeleteAdGroupsResponse createDeleteAdGroupsResponse() { + return new DeleteAdGroupsResponse(); + } + + /** + * Create an instance of {@link BatchErrorCollection } + * + */ + public BatchErrorCollection createBatchErrorCollection() { + return new BatchErrorCollection(); + } + + /** + * Create an instance of {@link ArrayOfAdGroup } + * + */ + public ArrayOfAdGroup createArrayOfAdGroup() { + return new ArrayOfAdGroup(); + } + + /** + * Create an instance of {@link IdCollection } + * + */ + public IdCollection createIdCollection() { + return new IdCollection(); + } + + /** + * Create an instance of {@link StateTargetBid } + * + */ + public StateTargetBid createStateTargetBid() { + return new StateTargetBid(); + } + + /** + * Create an instance of {@link PostalCodeTarget } + * + */ + public PostalCodeTarget createPostalCodeTarget() { + return new PostalCodeTarget(); + } + + /** + * Create an instance of {@link GetNegativeSitesByAdGroupIdsRequest } + * + */ + public GetNegativeSitesByAdGroupIdsRequest createGetNegativeSitesByAdGroupIdsRequest() { + return new GetNegativeSitesByAdGroupIdsRequest(); + } + + /** + * Create an instance of {@link SetNegativeSitesToAdGroupsResponse } + * + */ + public SetNegativeSitesToAdGroupsResponse createSetNegativeSitesToAdGroupsResponse() { + return new SetNegativeSitesToAdGroupsResponse(); + } + + /** + * Create an instance of {@link LocationAdExtension } + * + */ + public LocationAdExtension createLocationAdExtension() { + return new LocationAdExtension(); + } + + /** + * Create an instance of {@link Ad } + * + */ + public Ad createAd() { + return new Ad(); + } + + /** + * Create an instance of {@link DeviceOSTargetBid } + * + */ + public DeviceOSTargetBid createDeviceOSTargetBid() { + return new DeviceOSTargetBid(); + } + + /** + * Create an instance of {@link UpdateSitePlacementsRequest } + * + */ + public UpdateSitePlacementsRequest createUpdateSitePlacementsRequest() { + return new UpdateSitePlacementsRequest(); + } + + /** + * Create an instance of {@link ArrayOfSitePlacement } + * + */ + public ArrayOfSitePlacement createArrayOfSitePlacement() { + return new ArrayOfSitePlacement(); + } + + /** + * Create an instance of {@link SetAdExtensionsAssociationsResponse } + * + */ + public SetAdExtensionsAssociationsResponse createSetAdExtensionsAssociationsResponse() { + return new SetAdExtensionsAssociationsResponse(); + } + + /** + * Create an instance of {@link GetAdExtensionsEditorialReasonsResponse } + * + */ + public GetAdExtensionsEditorialReasonsResponse createGetAdExtensionsEditorialReasonsResponse() { + return new GetAdExtensionsEditorialReasonsResponse(); + } + + /** + * Create an instance of {@link ArrayOfAdExtensionEditorialReasonCollection } + * + */ + public ArrayOfAdExtensionEditorialReasonCollection createArrayOfAdExtensionEditorialReasonCollection() { + return new ArrayOfAdExtensionEditorialReasonCollection(); + } + + /** + * Create an instance of {@link DeleteMediaResponse } + * + */ + public DeleteMediaResponse createDeleteMediaResponse() { + return new DeleteMediaResponse(); + } + + /** + * Create an instance of {@link ArrayOfMedia } + * + */ + public ArrayOfMedia createArrayOfMedia() { + return new ArrayOfMedia(); + } + + /** + * Create an instance of {@link AgeTargetBid } + * + */ + public AgeTargetBid createAgeTargetBid() { + return new AgeTargetBid(); + } + + /** + * Create an instance of {@link DeleteTargetFromAdGroupResponse } + * + */ + public DeleteTargetFromAdGroupResponse createDeleteTargetFromAdGroupResponse() { + return new DeleteTargetFromAdGroupResponse(); + } + + /** + * Create an instance of {@link GetAdExtensionsAssociationsRequest } + * + */ + public GetAdExtensionsAssociationsRequest createGetAdExtensionsAssociationsRequest() { + return new GetAdExtensionsAssociationsRequest(); + } + + /** + * Create an instance of {@link GetBMCStoresByCustomerIdResponse } + * + */ + public GetBMCStoresByCustomerIdResponse createGetBMCStoresByCustomerIdResponse() { + return new GetBMCStoresByCustomerIdResponse(); + } + + /** + * Create an instance of {@link ArrayOfBMCStore } + * + */ + public ArrayOfBMCStore createArrayOfBMCStore() { + return new ArrayOfBMCStore(); + } + + /** + * Create an instance of {@link BatchError } + * + */ + public BatchError createBatchError() { + return new BatchError(); + } + + /** + * Create an instance of {@link NegativeKeywordList } + * + */ + public NegativeKeywordList createNegativeKeywordList() { + return new NegativeKeywordList(); + } + + /** + * Create an instance of {@link ArrayOfCountryTargetBid } + * + */ + public ArrayOfCountryTargetBid createArrayOfCountryTargetBid() { + return new ArrayOfCountryTargetBid(); + } + + /** + * Create an instance of {@link RadiusTarget } + * + */ + public RadiusTarget createRadiusTarget() { + return new RadiusTarget(); + } + + /** + * Create an instance of {@link GetTargetsInfoFromLibraryRequest } + * + */ + public GetTargetsInfoFromLibraryRequest createGetTargetsInfoFromLibraryRequest() { + return new GetTargetsInfoFromLibraryRequest(); + } + + /** + * Create an instance of {@link MetroAreaTarget } + * + */ + public MetroAreaTarget createMetroAreaTarget() { + return new MetroAreaTarget(); + } + + /** + * Create an instance of {@link OperationError } + * + */ + public OperationError createOperationError() { + return new OperationError(); + } + + /** + * Create an instance of {@link GetAdExtensionsByIdsRequest } + * + */ + public GetAdExtensionsByIdsRequest createGetAdExtensionsByIdsRequest() { + return new GetAdExtensionsByIdsRequest(); + } + + /** + * Create an instance of {@link UpdateAdExtensionsResponse } + * + */ + public UpdateAdExtensionsResponse createUpdateAdExtensionsResponse() { + return new UpdateAdExtensionsResponse(); + } + + /** + * Create an instance of {@link SetTargetToCampaignRequest } + * + */ + public SetTargetToCampaignRequest createSetTargetToCampaignRequest() { + return new SetTargetToCampaignRequest(); + } + + /** + * Create an instance of {@link ArrayOfDimension } + * + */ + public ArrayOfDimension createArrayOfDimension() { + return new ArrayOfDimension(); + } + + /** + * Create an instance of {@link CampaignNegativeSites } + * + */ + public CampaignNegativeSites createCampaignNegativeSites() { + return new CampaignNegativeSites(); + } + + /** + * Create an instance of {@link SetAdExtensionsAssociationsRequest } + * + */ + public SetAdExtensionsAssociationsRequest createSetAdExtensionsAssociationsRequest() { + return new SetAdExtensionsAssociationsRequest(); + } + + /** + * Create an instance of {@link ArrayOfAdExtensionIdToEntityIdAssociation } + * + */ + public ArrayOfAdExtensionIdToEntityIdAssociation createArrayOfAdExtensionIdToEntityIdAssociation() { + return new ArrayOfAdExtensionIdToEntityIdAssociation(); + } + + /** + * Create an instance of {@link GetSitePlacementsByIdsRequest } + * + */ + public GetSitePlacementsByIdsRequest createGetSitePlacementsByIdsRequest() { + return new GetSitePlacementsByIdsRequest(); + } + + /** + * Create an instance of {@link AddListItemsToSharedListResponse } + * + */ + public AddListItemsToSharedListResponse createAddListItemsToSharedListResponse() { + return new AddListItemsToSharedListResponse(); + } + + /** + * Create an instance of {@link SitePlacement } + * + */ + public SitePlacement createSitePlacement() { + return new SitePlacement(); + } + + /** + * Create an instance of {@link StateTarget } + * + */ + public StateTarget createStateTarget() { + return new StateTarget(); + } + + /** + * Create an instance of {@link SharedListItem } + * + */ + public SharedListItem createSharedListItem() { + return new SharedListItem(); + } + + /** + * Create an instance of {@link GetAdGroupCriterionsByIdsResponse } + * + */ + public GetAdGroupCriterionsByIdsResponse createGetAdGroupCriterionsByIdsResponse() { + return new GetAdGroupCriterionsByIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfAdGroupCriterion } + * + */ + public ArrayOfAdGroupCriterion createArrayOfAdGroupCriterion() { + return new ArrayOfAdGroupCriterion(); + } + + /** + * Create an instance of {@link ArrayOfProductCondition } + * + */ + public ArrayOfProductCondition createArrayOfProductCondition() { + return new ArrayOfProductCondition(); + } + + /** + * Create an instance of {@link ArrayOfNegativeKeyword } + * + */ + public ArrayOfNegativeKeyword createArrayOfNegativeKeyword() { + return new ArrayOfNegativeKeyword(); + } + + /** + * Create an instance of {@link DeleteListItemsFromSharedListResponse } + * + */ + public DeleteListItemsFromSharedListResponse createDeleteListItemsFromSharedListResponse() { + return new DeleteListItemsFromSharedListResponse(); + } + + /** + * Create an instance of {@link GetAdsByAdGroupIdRequest } + * + */ + public GetAdsByAdGroupIdRequest createGetAdsByAdGroupIdRequest() { + return new GetAdsByAdGroupIdRequest(); + } + + /** + * Create an instance of {@link AdExtension } + * + */ + public AdExtension createAdExtension() { + return new AdExtension(); + } + + /** + * Create an instance of {@link ImageMediaRepresentation } + * + */ + public ImageMediaRepresentation createImageMediaRepresentation() { + return new ImageMediaRepresentation(); + } + + /** + * Create an instance of {@link UpdateAdGroupsResponse } + * + */ + public UpdateAdGroupsResponse createUpdateAdGroupsResponse() { + return new UpdateAdGroupsResponse(); + } + + /** + * Create an instance of {@link GeoPoint } + * + */ + public GeoPoint createGeoPoint() { + return new GeoPoint(); + } + + /** + * Create an instance of {@link AddMediaResponse } + * + */ + public AddMediaResponse createAddMediaResponse() { + return new AddMediaResponse(); + } + + /** + * Create an instance of {@link GetNegativeSitesByAdGroupIdsResponse } + * + */ + public GetNegativeSitesByAdGroupIdsResponse createGetNegativeSitesByAdGroupIdsResponse() { + return new GetNegativeSitesByAdGroupIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfAdGroupNegativeSites } + * + */ + public ArrayOfAdGroupNegativeSites createArrayOfAdGroupNegativeSites() { + return new ArrayOfAdGroupNegativeSites(); + } + + /** + * Create an instance of {@link AddSitePlacementsResponse } + * + */ + public AddSitePlacementsResponse createAddSitePlacementsResponse() { + return new AddSitePlacementsResponse(); + } + + /** + * Create an instance of {@link AppAdExtension } + * + */ + public AppAdExtension createAppAdExtension() { + return new AppAdExtension(); + } + + /** + * Create an instance of {@link SharedEntityAssociation } + * + */ + public SharedEntityAssociation createSharedEntityAssociation() { + return new SharedEntityAssociation(); + } + + /** + * Create an instance of {@link GetKeywordsByIdsResponse } + * + */ + public GetKeywordsByIdsResponse createGetKeywordsByIdsResponse() { + return new GetKeywordsByIdsResponse(); + } + + /** + * Create an instance of {@link GetSitePlacementsByAdGroupIdRequest } + * + */ + public GetSitePlacementsByAdGroupIdRequest createGetSitePlacementsByAdGroupIdRequest() { + return new GetSitePlacementsByAdGroupIdRequest(); + } + + /** + * Create an instance of {@link AddAdExtensionsRequest } + * + */ + public AddAdExtensionsRequest createAddAdExtensionsRequest() { + return new AddAdExtensionsRequest(); + } + + /** + * Create an instance of {@link ArrayOfAdExtension } + * + */ + public ArrayOfAdExtension createArrayOfAdExtension() { + return new ArrayOfAdExtension(); + } + + /** + * Create an instance of {@link CallAdExtension } + * + */ + public CallAdExtension createCallAdExtension() { + return new CallAdExtension(); + } + + /** + * Create an instance of {@link DayTimeTarget } + * + */ + public DayTimeTarget createDayTimeTarget() { + return new DayTimeTarget(); + } + + /** + * Create an instance of {@link ArrayOfDayTimeTargetBid } + * + */ + public ArrayOfDayTimeTargetBid createArrayOfDayTimeTargetBid() { + return new ArrayOfDayTimeTargetBid(); + } + + /** + * Create an instance of {@link ProductCondition } + * + */ + public ProductCondition createProductCondition() { + return new ProductCondition(); + } + + /** + * Create an instance of {@link GetAdsByEditorialStatusResponse } + * + */ + public GetAdsByEditorialStatusResponse createGetAdsByEditorialStatusResponse() { + return new GetAdsByEditorialStatusResponse(); + } + + /** + * Create an instance of {@link ArrayOfAd } + * + */ + public ArrayOfAd createArrayOfAd() { + return new ArrayOfAd(); + } + + /** + * Create an instance of {@link UpdateSharedEntitiesRequest } + * + */ + public UpdateSharedEntitiesRequest createUpdateSharedEntitiesRequest() { + return new UpdateSharedEntitiesRequest(); + } + + /** + * Create an instance of {@link ArrayOfSharedEntity } + * + */ + public ArrayOfSharedEntity createArrayOfSharedEntity() { + return new ArrayOfSharedEntity(); + } + + /** + * Create an instance of {@link GetPlacementDetailsForUrlsResponse } + * + */ + public GetPlacementDetailsForUrlsResponse createGetPlacementDetailsForUrlsResponse() { + return new GetPlacementDetailsForUrlsResponse(); + } + + /** + * Create an instance of {@link ArrayOfArrayOfPlacementDetail } + * + */ + public ArrayOfArrayOfPlacementDetail createArrayOfArrayOfPlacementDetail() { + return new ArrayOfArrayOfPlacementDetail(); + } + + /** + * Create an instance of {@link GetMediaMetaDataByAccountIdRequest } + * + */ + public GetMediaMetaDataByAccountIdRequest createGetMediaMetaDataByAccountIdRequest() { + return new GetMediaMetaDataByAccountIdRequest(); + } + + /** + * Create an instance of {@link GetMediaAssociationsResponse } + * + */ + public GetMediaAssociationsResponse createGetMediaAssociationsResponse() { + return new GetMediaAssociationsResponse(); + } + + /** + * Create an instance of {@link ArrayOfArrayOfMediaAssociation } + * + */ + public ArrayOfArrayOfMediaAssociation createArrayOfArrayOfMediaAssociation() { + return new ArrayOfArrayOfMediaAssociation(); + } + + /** + * Create an instance of {@link DeleteNegativeKeywordsFromEntitiesRequest } + * + */ + public DeleteNegativeKeywordsFromEntitiesRequest createDeleteNegativeKeywordsFromEntitiesRequest() { + return new DeleteNegativeKeywordsFromEntitiesRequest(); + } + + /** + * Create an instance of {@link ImageAdExtension } + * + */ + public ImageAdExtension createImageAdExtension() { + return new ImageAdExtension(); + } + + /** + * Create an instance of {@link GetMediaMetaDataByIdsRequest } + * + */ + public GetMediaMetaDataByIdsRequest createGetMediaMetaDataByIdsRequest() { + return new GetMediaMetaDataByIdsRequest(); + } + + /** + * Create an instance of {@link UpdateTargetsInLibraryResponse } + * + */ + public UpdateTargetsInLibraryResponse createUpdateTargetsInLibraryResponse() { + return new UpdateTargetsInLibraryResponse(); + } + + /** + * Create an instance of {@link GetMediaByIdsRequest } + * + */ + public GetMediaByIdsRequest createGetMediaByIdsRequest() { + return new GetMediaByIdsRequest(); + } + + /** + * Create an instance of {@link SharedList } + * + */ + public SharedList createSharedList() { + return new SharedList(); + } + + /** + * Create an instance of {@link GetListItemsBySharedListRequest } + * + */ + public GetListItemsBySharedListRequest createGetListItemsBySharedListRequest() { + return new GetListItemsBySharedListRequest(); + } + + /** + * Create an instance of {@link UpdateCampaignCriterionsRequest } + * + */ + public UpdateCampaignCriterionsRequest createUpdateCampaignCriterionsRequest() { + return new UpdateCampaignCriterionsRequest(); + } + + /** + * Create an instance of {@link Campaign } + * + */ + public Campaign createCampaign() { + return new Campaign(); + } + + /** + * Create an instance of {@link SetNegativeSitesToCampaignsRequest } + * + */ + public SetNegativeSitesToCampaignsRequest createSetNegativeSitesToCampaignsRequest() { + return new SetNegativeSitesToCampaignsRequest(); + } + + /** + * Create an instance of {@link GetTargetsByAdGroupIdsRequest } + * + */ + public GetTargetsByAdGroupIdsRequest createGetTargetsByAdGroupIdsRequest() { + return new GetTargetsByAdGroupIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOfMediaRepresentation } + * + */ + public ArrayOfMediaRepresentation createArrayOfMediaRepresentation() { + return new ArrayOfMediaRepresentation(); + } + + /** + * Create an instance of {@link DeviceOSTarget } + * + */ + public DeviceOSTarget createDeviceOSTarget() { + return new DeviceOSTarget(); + } + + /** + * Create an instance of {@link AddAdGroupCriterionsRequest } + * + */ + public AddAdGroupCriterionsRequest createAddAdGroupCriterionsRequest() { + return new AddAdGroupCriterionsRequest(); + } + + /** + * Create an instance of {@link EditorialReason } + * + */ + public EditorialReason createEditorialReason() { + return new EditorialReason(); + } + + /** + * Create an instance of {@link GetSharedEntityAssociationsBySharedEntityIdsResponse } + * + */ + public GetSharedEntityAssociationsBySharedEntityIdsResponse createGetSharedEntityAssociationsBySharedEntityIdsResponse() { + return new GetSharedEntityAssociationsBySharedEntityIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfSharedEntityAssociation } + * + */ + public ArrayOfSharedEntityAssociation createArrayOfSharedEntityAssociation() { + return new ArrayOfSharedEntityAssociation(); + } + + /** + * Create an instance of {@link CampaignCriterion } + * + */ + public CampaignCriterion createCampaignCriterion() { + return new CampaignCriterion(); + } + + /** + * Create an instance of {@link AdGroup } + * + */ + public AdGroup createAdGroup() { + return new AdGroup(); + } + + /** + * Create an instance of {@link ArrayOfRadiusTargetBid } + * + */ + public ArrayOfRadiusTargetBid createArrayOfRadiusTargetBid() { + return new ArrayOfRadiusTargetBid(); + } + + /** + * Create an instance of {@link ArrayOfSetting } + * + */ + public ArrayOfSetting createArrayOfSetting() { + return new ArrayOfSetting(); + } + + /** + * Create an instance of {@link SetNegativeSitesToCampaignsResponse } + * + */ + public SetNegativeSitesToCampaignsResponse createSetNegativeSitesToCampaignsResponse() { + return new SetNegativeSitesToCampaignsResponse(); + } + + /** + * Create an instance of {@link GetAdGroupsByIdsResponse } + * + */ + public GetAdGroupsByIdsResponse createGetAdGroupsByIdsResponse() { + return new GetAdGroupsByIdsResponse(); + } + + /** + * Create an instance of {@link GetNegativeKeywordsByEntityIdsResponse } + * + */ + public GetNegativeKeywordsByEntityIdsResponse createGetNegativeKeywordsByEntityIdsResponse() { + return new GetNegativeKeywordsByEntityIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfMediaType } + * + */ + public ArrayOfMediaType createArrayOfMediaType() { + return new ArrayOfMediaType(); + } + + /** + * Create an instance of {@link ArrayOfCampaignSize } + * + */ + public ArrayOfCampaignSize createArrayOfCampaignSize() { + return new ArrayOfCampaignSize(); + } + + /** + * Create an instance of {@link AddListItemsToSharedListRequest } + * + */ + public AddListItemsToSharedListRequest createAddListItemsToSharedListRequest() { + return new AddListItemsToSharedListRequest(); + } + + /** + * Create an instance of {@link ArrayOfSharedListItem } + * + */ + public ArrayOfSharedListItem createArrayOfSharedListItem() { + return new ArrayOfSharedListItem(); + } + + /** + * Create an instance of {@link GetAdGroupsByCampaignIdRequest } + * + */ + public GetAdGroupsByCampaignIdRequest createGetAdGroupsByCampaignIdRequest() { + return new GetAdGroupsByCampaignIdRequest(); + } + + /** + * Create an instance of {@link GetAdsByIdsResponse } + * + */ + public GetAdsByIdsResponse createGetAdsByIdsResponse() { + return new GetAdsByIdsResponse(); + } + + /** + * Create an instance of {@link Criterion } + * + */ + public Criterion createCriterion() { + return new Criterion(); + } + + /** + * Create an instance of {@link MediaRepresentation } + * + */ + public MediaRepresentation createMediaRepresentation() { + return new MediaRepresentation(); + } + + /** + * Create an instance of {@link AddSharedEntityRequest } + * + */ + public AddSharedEntityRequest createAddSharedEntityRequest() { + return new AddSharedEntityRequest(); + } + + /** + * Create an instance of {@link SharedEntity } + * + */ + public SharedEntity createSharedEntity() { + return new SharedEntity(); + } + + /** + * Create an instance of {@link DeleteCampaignsRequest } + * + */ + public DeleteCampaignsRequest createDeleteCampaignsRequest() { + return new DeleteCampaignsRequest(); + } + + /** + * Create an instance of {@link ArrayOfGenderTargetBid } + * + */ + public ArrayOfGenderTargetBid createArrayOfGenderTargetBid() { + return new ArrayOfGenderTargetBid(); + } + + /** + * Create an instance of {@link DeleteSharedEntityAssociationsResponse } + * + */ + public DeleteSharedEntityAssociationsResponse createDeleteSharedEntityAssociationsResponse() { + return new DeleteSharedEntityAssociationsResponse(); + } + + /** + * Create an instance of {@link DeleteSharedEntitiesResponse } + * + */ + public DeleteSharedEntitiesResponse createDeleteSharedEntitiesResponse() { + return new DeleteSharedEntitiesResponse(); + } + + /** + * Create an instance of {@link Bid } + * + */ + public Bid createBid() { + return new Bid(); + } + + /** + * Create an instance of {@link UpdateKeywordsRequest } + * + */ + public UpdateKeywordsRequest createUpdateKeywordsRequest() { + return new UpdateKeywordsRequest(); + } + + /** + * Create an instance of {@link DeleteTargetFromCampaignResponse } + * + */ + public DeleteTargetFromCampaignResponse createDeleteTargetFromCampaignResponse() { + return new DeleteTargetFromCampaignResponse(); + } + + /** + * Create an instance of {@link ArrayOfEditorialError } + * + */ + public ArrayOfEditorialError createArrayOfEditorialError() { + return new ArrayOfEditorialError(); + } + + /** + * Create an instance of {@link GetCampaignsByIdsRequest } + * + */ + public GetCampaignsByIdsRequest createGetCampaignsByIdsRequest() { + return new GetCampaignsByIdsRequest(); + } + + /** + * Create an instance of {@link AddAdGroupsResponse } + * + */ + public AddAdGroupsResponse createAddAdGroupsResponse() { + return new AddAdGroupsResponse(); + } + + /** + * Create an instance of {@link UpdateSitePlacementsResponse } + * + */ + public UpdateSitePlacementsResponse createUpdateSitePlacementsResponse() { + return new UpdateSitePlacementsResponse(); + } + + /** + * Create an instance of {@link AddSitePlacementsRequest } + * + */ + public AddSitePlacementsRequest createAddSitePlacementsRequest() { + return new AddSitePlacementsRequest(); + } + + /** + * Create an instance of {@link CriterionBid } + * + */ + public CriterionBid createCriterionBid() { + return new CriterionBid(); + } + + /** + * Create an instance of {@link ArrayOfMetroAreaTargetBid } + * + */ + public ArrayOfMetroAreaTargetBid createArrayOfMetroAreaTargetBid() { + return new ArrayOfMetroAreaTargetBid(); + } + + /** + * Create an instance of {@link GetSharedEntityAssociationsBySharedEntityIdsRequest } + * + */ + public GetSharedEntityAssociationsBySharedEntityIdsRequest createGetSharedEntityAssociationsBySharedEntityIdsRequest() { + return new GetSharedEntityAssociationsBySharedEntityIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOfDeviceOSTargetBid } + * + */ + public ArrayOfDeviceOSTargetBid createArrayOfDeviceOSTargetBid() { + return new ArrayOfDeviceOSTargetBid(); + } + + /** + * Create an instance of {@link GetKeywordsByEditorialStatusRequest } + * + */ + public GetKeywordsByEditorialStatusRequest createGetKeywordsByEditorialStatusRequest() { + return new GetKeywordsByEditorialStatusRequest(); + } + + /** + * Create an instance of {@link AdExtensionEditorialReason } + * + */ + public AdExtensionEditorialReason createAdExtensionEditorialReason() { + return new AdExtensionEditorialReason(); + } + + /** + * Create an instance of {@link GetCampaignSizesByAccountIdResponse } + * + */ + public GetCampaignSizesByAccountIdResponse createGetCampaignSizesByAccountIdResponse() { + return new GetCampaignSizesByAccountIdResponse(); + } + + /** + * Create an instance of {@link AddAdExtensionsResponse } + * + */ + public AddAdExtensionsResponse createAddAdExtensionsResponse() { + return new AddAdExtensionsResponse(); + } + + /** + * Create an instance of {@link ArrayOfAdExtensionIdentity } + * + */ + public ArrayOfAdExtensionIdentity createArrayOfAdExtensionIdentity() { + return new ArrayOfAdExtensionIdentity(); + } + + /** + * Create an instance of {@link DeleteCampaignCriterionsRequest } + * + */ + public DeleteCampaignCriterionsRequest createDeleteCampaignCriterionsRequest() { + return new DeleteCampaignCriterionsRequest(); + } + + /** + * Create an instance of {@link UpdateAdGroupCriterionsRequest } + * + */ + public UpdateAdGroupCriterionsRequest createUpdateAdGroupCriterionsRequest() { + return new UpdateAdGroupCriterionsRequest(); + } + + /** + * Create an instance of {@link ArrayOfAccountMigrationStatusesInfo } + * + */ + public ArrayOfAccountMigrationStatusesInfo createArrayOfAccountMigrationStatusesInfo() { + return new ArrayOfAccountMigrationStatusesInfo(); + } + + /** + * Create an instance of {@link Address } + * + */ + public Address createAddress() { + return new Address(); + } + + /** + * Create an instance of {@link PostalCodeTargetBid } + * + */ + public PostalCodeTargetBid createPostalCodeTargetBid() { + return new PostalCodeTargetBid(); + } + + /** + * Create an instance of {@link ArrayOfPostalCodeTargetBid } + * + */ + public ArrayOfPostalCodeTargetBid createArrayOfPostalCodeTargetBid() { + return new ArrayOfPostalCodeTargetBid(); + } + + /** + * Create an instance of {@link DeleteTargetFromCampaignRequest } + * + */ + public DeleteTargetFromCampaignRequest createDeleteTargetFromCampaignRequest() { + return new DeleteTargetFromCampaignRequest(); + } + + /** + * Create an instance of {@link LocationTarget } + * + */ + public LocationTarget createLocationTarget() { + return new LocationTarget(); + } + + /** + * Create an instance of {@link CountryTargetBid } + * + */ + public CountryTargetBid createCountryTargetBid() { + return new CountryTargetBid(); + } + + /** + * Create an instance of {@link UpdateKeywordsResponse } + * + */ + public UpdateKeywordsResponse createUpdateKeywordsResponse() { + return new UpdateKeywordsResponse(); + } + + /** + * Create an instance of {@link Image } + * + */ + public Image createImage() { + return new Image(); + } + + /** + * Create an instance of {@link UpdateTargetsInLibraryRequest } + * + */ + public UpdateTargetsInLibraryRequest createUpdateTargetsInLibraryRequest() { + return new UpdateTargetsInLibraryRequest(); + } + + /** + * Create an instance of {@link GetTargetsByIdsRequest } + * + */ + public GetTargetsByIdsRequest createGetTargetsByIdsRequest() { + return new GetTargetsByIdsRequest(); + } + + /** + * Create an instance of {@link ArrayOfAdGroupCriterionAction } + * + */ + public ArrayOfAdGroupCriterionAction createArrayOfAdGroupCriterionAction() { + return new ArrayOfAdGroupCriterionAction(); + } + + /** + * Create an instance of {@link ArrayOfAdExtensionAssociationCollection } + * + */ + public ArrayOfAdExtensionAssociationCollection createArrayOfAdExtensionAssociationCollection() { + return new ArrayOfAdExtensionAssociationCollection(); + } + + /** + * Create an instance of {@link ApplyProductPartitionActionsRequest } + * + */ + public ApplyProductPartitionActionsRequest createApplyProductPartitionActionsRequest() { + return new ApplyProductPartitionActionsRequest(); + } + + /** + * Create an instance of {@link ArrayOfAdExtensionEditorialReason } + * + */ + public ArrayOfAdExtensionEditorialReason createArrayOfAdExtensionEditorialReason() { + return new ArrayOfAdExtensionEditorialReason(); + } + + /** + * Create an instance of {@link AdExtensionIdToEntityIdAssociation } + * + */ + public AdExtensionIdToEntityIdAssociation createAdExtensionIdToEntityIdAssociation() { + return new AdExtensionIdToEntityIdAssociation(); + } + + /** + * Create an instance of {@link GetNegativeSitesByCampaignIdsRequest } + * + */ + public GetNegativeSitesByCampaignIdsRequest createGetNegativeSitesByCampaignIdsRequest() { + return new GetNegativeSitesByCampaignIdsRequest(); + } + + /** + * Create an instance of {@link GetSharedEntityAssociationsByEntityIdsRequest } + * + */ + public GetSharedEntityAssociationsByEntityIdsRequest createGetSharedEntityAssociationsByEntityIdsRequest() { + return new GetSharedEntityAssociationsByEntityIdsRequest(); + } + + /** + * Create an instance of {@link AddAdsResponse } + * + */ + public AddAdsResponse createAddAdsResponse() { + return new AddAdsResponse(); + } + + /** + * Create an instance of {@link AdExtensionIdentity } + * + */ + public AdExtensionIdentity createAdExtensionIdentity() { + return new AdExtensionIdentity(); + } + + /** + * Create an instance of {@link AddCampaignsRequest } + * + */ + public AddCampaignsRequest createAddCampaignsRequest() { + return new AddCampaignsRequest(); + } + + /** + * Create an instance of {@link GetNegativeKeywordsByEntityIdsRequest } + * + */ + public GetNegativeKeywordsByEntityIdsRequest createGetNegativeKeywordsByEntityIdsRequest() { + return new GetNegativeKeywordsByEntityIdsRequest(); + } + + /** + * Create an instance of {@link DeleteSharedEntitiesRequest } + * + */ + public DeleteSharedEntitiesRequest createDeleteSharedEntitiesRequest() { + return new DeleteSharedEntitiesRequest(); + } + + /** + * Create an instance of {@link GetSitePlacementsByAdGroupIdResponse } + * + */ + public GetSitePlacementsByAdGroupIdResponse createGetSitePlacementsByAdGroupIdResponse() { + return new GetSitePlacementsByAdGroupIdResponse(); + } + + /** + * Create an instance of {@link AddAdsRequest } + * + */ + public AddAdsRequest createAddAdsRequest() { + return new AddAdsRequest(); + } + + /** + * Create an instance of {@link GetAdsByIdsRequest } + * + */ + public GetAdsByIdsRequest createGetAdsByIdsRequest() { + return new GetAdsByIdsRequest(); + } + + /** + * Create an instance of {@link GetAdExtensionsAssociationsResponse } + * + */ + public GetAdExtensionsAssociationsResponse createGetAdExtensionsAssociationsResponse() { + return new GetAdExtensionsAssociationsResponse(); + } + + /** + * Create an instance of {@link GetNegativeSitesByCampaignIdsResponse } + * + */ + public GetNegativeSitesByCampaignIdsResponse createGetNegativeSitesByCampaignIdsResponse() { + return new GetNegativeSitesByCampaignIdsResponse(); + } + + /** + * Create an instance of {@link DeleteAdGroupCriterionsRequest } + * + */ + public DeleteAdGroupCriterionsRequest createDeleteAdGroupCriterionsRequest() { + return new DeleteAdGroupCriterionsRequest(); + } + + /** + * Create an instance of {@link CityTargetBid } + * + */ + public CityTargetBid createCityTargetBid() { + return new CityTargetBid(); + } + + /** + * Create an instance of {@link DeleteAdExtensionsAssociationsResponse } + * + */ + public DeleteAdExtensionsAssociationsResponse createDeleteAdExtensionsAssociationsResponse() { + return new DeleteAdExtensionsAssociationsResponse(); + } + + /** + * Create an instance of {@link AddTargetsToLibraryRequest } + * + */ + public AddTargetsToLibraryRequest createAddTargetsToLibraryRequest() { + return new AddTargetsToLibraryRequest(); + } + + /** + * Create an instance of {@link AdExtensionAssociationCollection } + * + */ + public AdExtensionAssociationCollection createAdExtensionAssociationCollection() { + return new AdExtensionAssociationCollection(); + } + + /** + * Create an instance of {@link DeleteKeywordsRequest } + * + */ + public DeleteKeywordsRequest createDeleteKeywordsRequest() { + return new DeleteKeywordsRequest(); + } + + /** + * Create an instance of {@link SiteLinksAdExtension } + * + */ + public SiteLinksAdExtension createSiteLinksAdExtension() { + return new SiteLinksAdExtension(); + } + + /** + * Create an instance of {@link GetBMCStoresByCustomerIdRequest } + * + */ + public GetBMCStoresByCustomerIdRequest createGetBMCStoresByCustomerIdRequest() { + return new GetBMCStoresByCustomerIdRequest(); + } + + /** + * Create an instance of {@link DeleteNegativeKeywordsFromEntitiesResponse } + * + */ + public DeleteNegativeKeywordsFromEntitiesResponse createDeleteNegativeKeywordsFromEntitiesResponse() { + return new DeleteNegativeKeywordsFromEntitiesResponse(); + } + + /** + * Create an instance of {@link SetTargetToAdGroupRequest } + * + */ + public SetTargetToAdGroupRequest createSetTargetToAdGroupRequest() { + return new SetTargetToAdGroupRequest(); + } + + /** + * Create an instance of {@link AppealEditorialRejectionsRequest } + * + */ + public AppealEditorialRejectionsRequest createAppealEditorialRejectionsRequest() { + return new AppealEditorialRejectionsRequest(); + } + + /** + * Create an instance of {@link ArrayOfEntityIdToParentIdAssociation } + * + */ + public ArrayOfEntityIdToParentIdAssociation createArrayOfEntityIdToParentIdAssociation() { + return new ArrayOfEntityIdToParentIdAssociation(); + } + + /** + * Create an instance of {@link CampaignSize } + * + */ + public CampaignSize createCampaignSize() { + return new CampaignSize(); + } + + /** + * Create an instance of {@link SetTargetToCampaignResponse } + * + */ + public SetTargetToCampaignResponse createSetTargetToCampaignResponse() { + return new SetTargetToCampaignResponse(); + } + + /** + * Create an instance of {@link GetCampaignSizesByAccountIdRequest } + * + */ + public GetCampaignSizesByAccountIdRequest createGetCampaignSizesByAccountIdRequest() { + return new GetCampaignSizesByAccountIdRequest(); + } + + /** + * Create an instance of {@link GetCampaignsByAccountIdResponse } + * + */ + public GetCampaignsByAccountIdResponse createGetCampaignsByAccountIdResponse() { + return new GetCampaignsByAccountIdResponse(); + } + + /** + * Create an instance of {@link TextAd } + * + */ + public TextAd createTextAd() { + return new TextAd(); + } + + /** + * Create an instance of {@link MediaAssociation } + * + */ + public MediaAssociation createMediaAssociation() { + return new MediaAssociation(); + } + + /** + * Create an instance of {@link SetSharedEntityAssociationsRequest } + * + */ + public SetSharedEntityAssociationsRequest createSetSharedEntityAssociationsRequest() { + return new SetSharedEntityAssociationsRequest(); + } + + /** + * Create an instance of {@link Target } + * + */ + public Target createTarget() { + return new Target(); + } + + /** + * Create an instance of {@link AddCampaignCriterionsResponse } + * + */ + public AddCampaignCriterionsResponse createAddCampaignCriterionsResponse() { + return new AddCampaignCriterionsResponse(); + } + + /** + * Create an instance of {@link ProductScope } + * + */ + public ProductScope createProductScope() { + return new ProductScope(); + } + + /** + * Create an instance of {@link GetTargetsByCampaignIdsResponse } + * + */ + public GetTargetsByCampaignIdsResponse createGetTargetsByCampaignIdsResponse() { + return new GetTargetsByCampaignIdsResponse(); + } + + /** + * Create an instance of {@link GetAdExtensionsByIdsResponse } + * + */ + public GetAdExtensionsByIdsResponse createGetAdExtensionsByIdsResponse() { + return new GetAdExtensionsByIdsResponse(); + } + + /** + * Create an instance of {@link UpdateAdExtensionsRequest } + * + */ + public UpdateAdExtensionsRequest createUpdateAdExtensionsRequest() { + return new UpdateAdExtensionsRequest(); + } + + /** + * Create an instance of {@link DeleteAdExtensionsRequest } + * + */ + public DeleteAdExtensionsRequest createDeleteAdExtensionsRequest() { + return new DeleteAdExtensionsRequest(); + } + + /** + * Create an instance of {@link DeleteCampaignCriterionsResponse } + * + */ + public DeleteCampaignCriterionsResponse createDeleteCampaignCriterionsResponse() { + return new DeleteCampaignCriterionsResponse(); + } + + /** + * Create an instance of {@link Keyword } + * + */ + public Keyword createKeyword() { + return new Keyword(); + } + + /** + * Create an instance of {@link DeleteAdGroupCriterionsResponse } + * + */ + public DeleteAdGroupCriterionsResponse createDeleteAdGroupCriterionsResponse() { + return new DeleteAdGroupCriterionsResponse(); + } + + /** + * Create an instance of {@link EditorialApiFaultDetail } + * + */ + public EditorialApiFaultDetail createEditorialApiFaultDetail() { + return new EditorialApiFaultDetail(); + } + + /** + * Create an instance of {@link Dimension } + * + */ + public Dimension createDimension() { + return new Dimension(); + } + + /** + * Create an instance of {@link ProductPartition } + * + */ + public ProductPartition createProductPartition() { + return new ProductPartition(); + } + + /** + * Create an instance of {@link DeleteTargetsFromLibraryResponse } + * + */ + public DeleteTargetsFromLibraryResponse createDeleteTargetsFromLibraryResponse() { + return new DeleteTargetsFromLibraryResponse(); + } + + /** + * Create an instance of {@link GetAdGroupCriterionsByIdsRequest } + * + */ + public GetAdGroupCriterionsByIdsRequest createGetAdGroupCriterionsByIdsRequest() { + return new GetAdGroupCriterionsByIdsRequest(); + } + + /** + * Create an instance of {@link AddAdGroupsRequest } + * + */ + public AddAdGroupsRequest createAddAdGroupsRequest() { + return new AddAdGroupsRequest(); + } + + /** + * Create an instance of {@link AddNegativeKeywordsToEntitiesResponse } + * + */ + public AddNegativeKeywordsToEntitiesResponse createAddNegativeKeywordsToEntitiesResponse() { + return new AddNegativeKeywordsToEntitiesResponse(); + } + + /** + * Create an instance of {@link ArrayOfIdCollection } + * + */ + public ArrayOfIdCollection createArrayOfIdCollection() { + return new ArrayOfIdCollection(); + } + + /** + * Create an instance of {@link BiddableAdGroupCriterion } + * + */ + public BiddableAdGroupCriterion createBiddableAdGroupCriterion() { + return new BiddableAdGroupCriterion(); + } + + /** + * Create an instance of {@link GetTargetsByCampaignIdsRequest } + * + */ + public GetTargetsByCampaignIdsRequest createGetTargetsByCampaignIdsRequest() { + return new GetTargetsByCampaignIdsRequest(); + } + + /** + * Create an instance of {@link GetAdsByEditorialStatusRequest } + * + */ + public GetAdsByEditorialStatusRequest createGetAdsByEditorialStatusRequest() { + return new GetAdsByEditorialStatusRequest(); + } + + /** + * Create an instance of {@link AddCampaignsResponse } + * + */ + public AddCampaignsResponse createAddCampaignsResponse() { + return new AddCampaignsResponse(); + } + + /** + * Create an instance of {@link AdExtensionAssociation } + * + */ + public AdExtensionAssociation createAdExtensionAssociation() { + return new AdExtensionAssociation(); + } + + /** + * Create an instance of {@link AddAdGroupCriterionsResponse } + * + */ + public AddAdGroupCriterionsResponse createAddAdGroupCriterionsResponse() { + return new AddAdGroupCriterionsResponse(); + } + + /** + * Create an instance of {@link DeleteSitePlacementsRequest } + * + */ + public DeleteSitePlacementsRequest createDeleteSitePlacementsRequest() { + return new DeleteSitePlacementsRequest(); + } + + /** + * Create an instance of {@link EditorialReasonCollection } + * + */ + public EditorialReasonCollection createEditorialReasonCollection() { + return new EditorialReasonCollection(); + } + + /** + * Create an instance of {@link GetAdExtensionIdsByAccountIdRequest } + * + */ + public GetAdExtensionIdsByAccountIdRequest createGetAdExtensionIdsByAccountIdRequest() { + return new GetAdExtensionIdsByAccountIdRequest(); + } + + /** + * Create an instance of {@link DayTimeTargetBid } + * + */ + public DayTimeTargetBid createDayTimeTargetBid() { + return new DayTimeTargetBid(); + } + + /** + * Create an instance of {@link FixedBid } + * + */ + public FixedBid createFixedBid() { + return new FixedBid(); + } + + /** + * Create an instance of {@link ArrayOfPlacementDetail } + * + */ + public ArrayOfPlacementDetail createArrayOfPlacementDetail() { + return new ArrayOfPlacementDetail(); + } + + /** + * Create an instance of {@link DeleteListItemsFromSharedListRequest } + * + */ + public DeleteListItemsFromSharedListRequest createDeleteListItemsFromSharedListRequest() { + return new DeleteListItemsFromSharedListRequest(); + } + + /** + * Create an instance of {@link ProductAd } + * + */ + public ProductAd createProductAd() { + return new ProductAd(); + } + + /** + * Create an instance of {@link GetAdGroupsByCampaignIdResponse } + * + */ + public GetAdGroupsByCampaignIdResponse createGetAdGroupsByCampaignIdResponse() { + return new GetAdGroupsByCampaignIdResponse(); + } + + /** + * Create an instance of {@link GetMediaAssociationsRequest } + * + */ + public GetMediaAssociationsRequest createGetMediaAssociationsRequest() { + return new GetMediaAssociationsRequest(); + } + + /** + * Create an instance of {@link GetKeywordsByAdGroupIdResponse } + * + */ + public GetKeywordsByAdGroupIdResponse createGetKeywordsByAdGroupIdResponse() { + return new GetKeywordsByAdGroupIdResponse(); + } + + /** + * Create an instance of {@link DeleteKeywordsResponse } + * + */ + public DeleteKeywordsResponse createDeleteKeywordsResponse() { + return new DeleteKeywordsResponse(); + } + + /** + * Create an instance of {@link AdGroupCriterion } + * + */ + public AdGroupCriterion createAdGroupCriterion() { + return new AdGroupCriterion(); + } + + /** + * Create an instance of {@link UpdateAdGroupsRequest } + * + */ + public UpdateAdGroupsRequest createUpdateAdGroupsRequest() { + return new UpdateAdGroupsRequest(); + } + + /** + * Create an instance of {@link EntityNegativeKeyword } + * + */ + public EntityNegativeKeyword createEntityNegativeKeyword() { + return new EntityNegativeKeyword(); + } + + /** + * Create an instance of {@link DeleteCampaignsResponse } + * + */ + public DeleteCampaignsResponse createDeleteCampaignsResponse() { + return new DeleteCampaignsResponse(); + } + + /** + * Create an instance of {@link GetKeywordsByIdsRequest } + * + */ + public GetKeywordsByIdsRequest createGetKeywordsByIdsRequest() { + return new GetKeywordsByIdsRequest(); + } + + /** + * Create an instance of {@link GetEditorialReasonsByIdsRequest } + * + */ + public GetEditorialReasonsByIdsRequest createGetEditorialReasonsByIdsRequest() { + return new GetEditorialReasonsByIdsRequest(); + } + + /** + * Create an instance of {@link GetAdExtensionsEditorialReasonsRequest } + * + */ + public GetAdExtensionsEditorialReasonsRequest createGetAdExtensionsEditorialReasonsRequest() { + return new GetAdExtensionsEditorialReasonsRequest(); + } + + /** + * Create an instance of {@link Setting } + * + */ + public Setting createSetting() { + return new Setting(); + } + + /** + * Create an instance of {@link Media } + * + */ + public Media createMedia() { + return new Media(); + } + + /** + * Create an instance of {@link ArrayOfMigrationStatusInfo } + * + */ + public ArrayOfMigrationStatusInfo createArrayOfMigrationStatusInfo() { + return new ArrayOfMigrationStatusInfo(); + } + + /** + * Create an instance of {@link PlacementDetail } + * + */ + public PlacementDetail createPlacementDetail() { + return new PlacementDetail(); + } + + /** + * Create an instance of {@link UpdateSharedEntitiesResponse } + * + */ + public UpdateSharedEntitiesResponse createUpdateSharedEntitiesResponse() { + return new UpdateSharedEntitiesResponse(); + } + + /** + * Create an instance of {@link MigrationStatusInfo } + * + */ + public MigrationStatusInfo createMigrationStatusInfo() { + return new MigrationStatusInfo(); + } + + /** + * Create an instance of {@link AppealEditorialRejectionsResponse } + * + */ + public AppealEditorialRejectionsResponse createAppealEditorialRejectionsResponse() { + return new AppealEditorialRejectionsResponse(); + } + + /** + * Create an instance of {@link RadiusTargetBid } + * + */ + public RadiusTargetBid createRadiusTargetBid() { + return new RadiusTargetBid(); + } + + /** + * Create an instance of {@link DeleteAdExtensionsAssociationsRequest } + * + */ + public DeleteAdExtensionsAssociationsRequest createDeleteAdExtensionsAssociationsRequest() { + return new DeleteAdExtensionsAssociationsRequest(); + } + + /** + * Create an instance of {@link DeleteAdsRequest } + * + */ + public DeleteAdsRequest createDeleteAdsRequest() { + return new DeleteAdsRequest(); + } + + /** + * Create an instance of {@link AdExtensionEditorialReasonCollection } + * + */ + public AdExtensionEditorialReasonCollection createAdExtensionEditorialReasonCollection() { + return new AdExtensionEditorialReasonCollection(); + } + + /** + * Create an instance of {@link GetPlacementDetailsForUrlsRequest } + * + */ + public GetPlacementDetailsForUrlsRequest createGetPlacementDetailsForUrlsRequest() { + return new GetPlacementDetailsForUrlsRequest(); + } + + /** + * Create an instance of {@link ArrayOfstring } + * + */ + public ArrayOfstring createArrayOfstring() { + return new ArrayOfstring(); + } + + /** + * Create an instance of {@link DeleteTargetsFromLibraryRequest } + * + */ + public DeleteTargetsFromLibraryRequest createDeleteTargetsFromLibraryRequest() { + return new DeleteTargetsFromLibraryRequest(); + } + + /** + * Create an instance of {@link UpdateCampaignsResponse } + * + */ + public UpdateCampaignsResponse createUpdateCampaignsResponse() { + return new UpdateCampaignsResponse(); + } + + /** + * Create an instance of {@link NegativeAdGroupCriterion } + * + */ + public NegativeAdGroupCriterion createNegativeAdGroupCriterion() { + return new NegativeAdGroupCriterion(); + } + + /** + * Create an instance of {@link UpdateCampaignsRequest } + * + */ + public UpdateCampaignsRequest createUpdateCampaignsRequest() { + return new UpdateCampaignsRequest(); + } + + /** + * Create an instance of {@link GetTargetsByAdGroupIdsResponse } + * + */ + public GetTargetsByAdGroupIdsResponse createGetTargetsByAdGroupIdsResponse() { + return new GetTargetsByAdGroupIdsResponse(); + } + + /** + * Create an instance of {@link SetNegativeSitesToAdGroupsRequest } + * + */ + public SetNegativeSitesToAdGroupsRequest createSetNegativeSitesToAdGroupsRequest() { + return new SetNegativeSitesToAdGroupsRequest(); + } + + /** + * Create an instance of {@link GetMediaByIdsResponse } + * + */ + public GetMediaByIdsResponse createGetMediaByIdsResponse() { + return new GetMediaByIdsResponse(); + } + + /** + * Create an instance of {@link ArrayOfOperationError } + * + */ + public ArrayOfOperationError createArrayOfOperationError() { + return new ArrayOfOperationError(); + } + + /** + * Create an instance of {@link CountryTarget } + * + */ + public CountryTarget createCountryTarget() { + return new CountryTarget(); + } + + /** + * Create an instance of {@link GetAdExtensionIdsByAccountIdResponse } + * + */ + public GetAdExtensionIdsByAccountIdResponse createGetAdExtensionIdsByAccountIdResponse() { + return new GetAdExtensionIdsByAccountIdResponse(); + } + + /** + * Create an instance of {@link GetKeywordsByEditorialStatusResponse } + * + */ + public GetKeywordsByEditorialStatusResponse createGetKeywordsByEditorialStatusResponse() { + return new GetKeywordsByEditorialStatusResponse(); + } + + /** + * Create an instance of {@link NegativeCampaignCriterion } + * + */ + public NegativeCampaignCriterion createNegativeCampaignCriterion() { + return new NegativeCampaignCriterion(); + } + + /** + * Create an instance of {@link ImpressionsPerDayRange } + * + */ + public ImpressionsPerDayRange createImpressionsPerDayRange() { + return new ImpressionsPerDayRange(); + } + + /** + * Create an instance of {@link ArrayOfSiteLink } + * + */ + public ArrayOfSiteLink createArrayOfSiteLink() { + return new ArrayOfSiteLink(); + } + + /** + * Create an instance of {@link GetListItemsBySharedListResponse } + * + */ + public GetListItemsBySharedListResponse createGetListItemsBySharedListResponse() { + return new GetListItemsBySharedListResponse(); + } + + /** + * Create an instance of {@link ArrayOfCityTargetBid } + * + */ + public ArrayOfCityTargetBid createArrayOfCityTargetBid() { + return new ArrayOfCityTargetBid(); + } + + /** + * Create an instance of {@link ApplyProductPartitionActionsResponse } + * + */ + public ApplyProductPartitionActionsResponse createApplyProductPartitionActionsResponse() { + return new ApplyProductPartitionActionsResponse(); + } + + /** + * Create an instance of {@link GenderTarget } + * + */ + public GenderTarget createGenderTarget() { + return new GenderTarget(); + } + + /** + * Create an instance of {@link GetSitePlacementsByIdsResponse } + * + */ + public GetSitePlacementsByIdsResponse createGetSitePlacementsByIdsResponse() { + return new GetSitePlacementsByIdsResponse(); + } + + /** + * Create an instance of {@link GetSharedEntitiesByAccountIdResponse } + * + */ + public GetSharedEntitiesByAccountIdResponse createGetSharedEntitiesByAccountIdResponse() { + return new GetSharedEntitiesByAccountIdResponse(); + } + + /** + * Create an instance of {@link AccountMigrationStatusesInfo } + * + */ + public AccountMigrationStatusesInfo createAccountMigrationStatusesInfo() { + return new AccountMigrationStatusesInfo(); + } + + /** + * Create an instance of {@link AgeTarget } + * + */ + public AgeTarget createAgeTarget() { + return new AgeTarget(); + } + + /** + * Create an instance of {@link ArrayOfEditorialReason } + * + */ + public ArrayOfEditorialReason createArrayOfEditorialReason() { + return new ArrayOfEditorialReason(); + } + + /** + * Create an instance of {@link ArrayOfStateTargetBid } + * + */ + public ArrayOfStateTargetBid createArrayOfStateTargetBid() { + return new ArrayOfStateTargetBid(); + } + + /** + * Create an instance of {@link NegativeKeyword } + * + */ + public NegativeKeyword createNegativeKeyword() { + return new NegativeKeyword(); + } + + /** + * Create an instance of {@link AddMediaRequest } + * + */ + public AddMediaRequest createAddMediaRequest() { + return new AddMediaRequest(); + } + + /** + * Create an instance of {@link MediaMetaData } + * + */ + public MediaMetaData createMediaMetaData() { + return new MediaMetaData(); + } + + /** + * Create an instance of {@link GetAdsByAdGroupIdResponse } + * + */ + public GetAdsByAdGroupIdResponse createGetAdsByAdGroupIdResponse() { + return new GetAdsByAdGroupIdResponse(); + } + + /** + * Create an instance of {@link GetTargetsByIdsResponse } + * + */ + public GetTargetsByIdsResponse createGetTargetsByIdsResponse() { + return new GetTargetsByIdsResponse(); + } + + /** + * Create an instance of {@link GetSharedEntityAssociationsByEntityIdsResponse } + * + */ + public GetSharedEntityAssociationsByEntityIdsResponse createGetSharedEntityAssociationsByEntityIdsResponse() { + return new GetSharedEntityAssociationsByEntityIdsResponse(); + } + + /** + * Create an instance of {@link Date } + * + */ + public Date createDate() { + return new Date(); + } + + /** + * Create an instance of {@link SetTargetToAdGroupResponse } + * + */ + public SetTargetToAdGroupResponse createSetTargetToAdGroupResponse() { + return new SetTargetToAdGroupResponse(); + } + + /** + * Create an instance of {@link GetEditorialReasonsByIdsResponse } + * + */ + public GetEditorialReasonsByIdsResponse createGetEditorialReasonsByIdsResponse() { + return new GetEditorialReasonsByIdsResponse(); + } + + /** + * Create an instance of {@link DeleteSharedEntityAssociationsRequest } + * + */ + public DeleteSharedEntityAssociationsRequest createDeleteSharedEntityAssociationsRequest() { + return new DeleteSharedEntityAssociationsRequest(); + } + + /** + * Create an instance of {@link UpdateAdsRequest } + * + */ + public UpdateAdsRequest createUpdateAdsRequest() { + return new UpdateAdsRequest(); + } + + /** + * Create an instance of {@link DeleteAdGroupsRequest } + * + */ + public DeleteAdGroupsRequest createDeleteAdGroupsRequest() { + return new DeleteAdGroupsRequest(); + } + + /** + * Create an instance of {@link AdGroupNegativeSites } + * + */ + public AdGroupNegativeSites createAdGroupNegativeSites() { + return new AdGroupNegativeSites(); + } + + /** + * Create an instance of {@link DeleteTargetFromAdGroupRequest } + * + */ + public DeleteTargetFromAdGroupRequest createDeleteTargetFromAdGroupRequest() { + return new DeleteTargetFromAdGroupRequest(); + } + + /** + * Create an instance of {@link CityTarget } + * + */ + public CityTarget createCityTarget() { + return new CityTarget(); + } + + /** + * Create an instance of {@link ApiFaultDetail } + * + */ + public ApiFaultDetail createApiFaultDetail() { + return new ApiFaultDetail(); + } + + /** + * Create an instance of {@link EntityIdToParentIdAssociation } + * + */ + public EntityIdToParentIdAssociation createEntityIdToParentIdAssociation() { + return new EntityIdToParentIdAssociation(); + } + + /** + * Create an instance of {@link AppUrl } + * + */ + public AppUrl createAppUrl() { + return new AppUrl(); + } + + /** + * Create an instance of {@link ArrayOfAppUrl } + * + */ + public ArrayOfAppUrl createArrayOfAppUrl() { + return new ArrayOfAppUrl(); + } + + /** + * Create an instance of {@link ArrayOfCustomParameter } + * + */ + public ArrayOfCustomParameter createArrayOfCustomParameter() { + return new ArrayOfCustomParameter(); + } + + /** + * Create an instance of {@link CustomParameter } + * + */ + public CustomParameter createCustomParameter() { + return new CustomParameter(); + } + + /** + * Create an instance of {@link CustomParameters } + * + */ + public CustomParameters createCustomParameters() { + return new CustomParameters(); + } + + /** + * Create an instance of {@link KeyValuePairOfstringstring } + * + */ + public KeyValuePairOfstringstring createKeyValuePairOfstringstring() { + return new KeyValuePairOfstringstring(); + } + + /** + * Create an instance of {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring createArrayOfKeyValuePairOfstringstring() { + return new ArrayOfKeyValuePairOfstringstring(); + } + + /** + * Create an instance of {@link Duration } + * + */ + public Duration createDuration() { + return new Duration(); + } + + /** + * Create an instance of {@link Char } + * + */ + public Char createChar() { + return new Char(); + } + + /** + * Create an instance of {@link Guid } + * + */ + public Guid createGuid() { + return new Guid(); + } + + /** + * Create an instance of {@link ApplicationFault } + * + */ + public ApplicationFault createApplicationFault() { + return new ApplicationFault(); + } + + /** + * Create an instance of {@link AdApiError } + * + */ + public AdApiError createAdApiError() { + return new AdApiError(); + } + + /** + * Create an instance of {@link ArrayOfAdApiError } + * + */ + public ArrayOfAdApiError createArrayOfAdApiError() { + return new ArrayOfAdApiError(); + } + + /** + * Create an instance of {@link AdApiFaultDetail } + * + */ + public AdApiFaultDetail createAdApiFaultDetail() { + return new AdApiFaultDetail(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ApiFaultDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ApiFaultDetail") + public JAXBElement createApiFaultDetail(ApiFaultDetail value) { + return new JAXBElement(_ApiFaultDetail_QNAME, ApiFaultDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfEntityNegativeKeyword }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfEntityNegativeKeyword") + public JAXBElement createArrayOfEntityNegativeKeyword(ArrayOfEntityNegativeKeyword value) { + return new JAXBElement(_ArrayOfEntityNegativeKeyword_QNAME, ArrayOfEntityNegativeKeyword.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupNegativeSites }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdGroupNegativeSites") + public JAXBElement createAdGroupNegativeSites(AdGroupNegativeSites value) { + return new JAXBElement(_AdGroupNegativeSites_QNAME, AdGroupNegativeSites.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CustomParameter }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", name = "CustomParameter") + public JAXBElement createCustomParameter(CustomParameter value) { + return new JAXBElement(_CustomParameter_QNAME, CustomParameter.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CityTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CityTarget") + public JAXBElement createCityTarget(CityTarget value) { + return new JAXBElement(_CityTarget_QNAME, CityTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AssociationType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AssociationType") + public JAXBElement createAssociationType(AssociationType value) { + return new JAXBElement(_AssociationType_QNAME, AssociationType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "duration") + public JAXBElement createDuration(Duration value) { + return new JAXBElement(_Duration_QNAME, Duration.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AdExtensionsTypeFilter }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionsTypeFilter") + @XmlJavaTypeAdapter(Adapter4 .class) + public JAXBElement> createAdExtensionsTypeFilter(Collection value) { + return new JAXBElement>(_AdExtensionsTypeFilter_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Date }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Date") + public JAXBElement createDate(Date value) { + return new JAXBElement(_Date_QNAME, Date.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MediaMetaData }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MediaMetaData") + public JAXBElement createMediaMetaData(MediaMetaData value) { + return new JAXBElement(_MediaMetaData_QNAME, MediaMetaData.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfStateTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfStateTargetBid") + public JAXBElement createArrayOfStateTargetBid(ArrayOfStateTargetBid value) { + return new JAXBElement(_ArrayOfStateTargetBid_QNAME, ArrayOfStateTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfEditorialReason }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfEditorialReason") + public JAXBElement createArrayOfEditorialReason(ArrayOfEditorialReason value) { + return new JAXBElement(_ArrayOfEditorialReason_QNAME, ArrayOfEditorialReason.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NegativeKeyword }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "NegativeKeyword") + public JAXBElement createNegativeKeyword(NegativeKeyword value) { + return new JAXBElement(_NegativeKeyword_QNAME, NegativeKeyword.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AgeTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AgeTarget") + public JAXBElement createAgeTarget(AgeTarget value) { + return new JAXBElement(_AgeTarget_QNAME, AgeTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EntityIdToParentIdAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", name = "EntityIdToParentIdAssociation") + public JAXBElement createEntityIdToParentIdAssociation(EntityIdToParentIdAssociation value) { + return new JAXBElement(_EntityIdToParentIdAssociation_QNAME, EntityIdToParentIdAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "string") + public JAXBElement createString(String value) { + return new JAXBElement(_String_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBatchError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfBatchError") + public JAXBElement createArrayOfBatchError(ArrayOfBatchError value) { + return new JAXBElement(_ArrayOfBatchError_QNAME, ArrayOfBatchError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DistanceUnit }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DistanceUnit") + public JAXBElement createDistanceUnit(DistanceUnit value) { + return new JAXBElement(_DistanceUnit_QNAME, DistanceUnit.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AccountMigrationStatusesInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AccountMigrationStatusesInfo") + public JAXBElement createAccountMigrationStatusesInfo(AccountMigrationStatusesInfo value) { + return new JAXBElement(_AccountMigrationStatusesInfo_QNAME, AccountMigrationStatusesInfo.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedInt") + public JAXBElement createUnsignedInt(Long value) { + return new JAXBElement(_UnsignedInt_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "short") + public JAXBElement createShort(Short value) { + return new JAXBElement(_Short_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GenderTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "GenderTarget") + public JAXBElement createGenderTarget(GenderTarget value) { + return new JAXBElement(_GenderTarget_QNAME, GenderTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCityTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfCityTargetBid") + public JAXBElement createArrayOfCityTargetBid(ArrayOfCityTargetBid value) { + return new JAXBElement(_ArrayOfCityTargetBid_QNAME, ArrayOfCityTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSharedEntityAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfSharedEntityAssociation") + public JAXBElement createArrayOfSharedEntityAssociation(ArrayOfSharedEntityAssociation value) { + return new JAXBElement(_ArrayOfSharedEntityAssociation_QNAME, ArrayOfSharedEntityAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ImpressionsPerDayRange }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ImpressionsPerDayRange") + public JAXBElement createImpressionsPerDayRange(ImpressionsPerDayRange value) { + return new JAXBElement(_ImpressionsPerDayRange_QNAME, ImpressionsPerDayRange.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MigrationStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MigrationStatus") + public JAXBElement createMigrationStatus(MigrationStatus value) { + return new JAXBElement(_MigrationStatus_QNAME, MigrationStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdExtension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdExtension") + public JAXBElement createArrayOfAdExtension(ArrayOfAdExtension value) { + return new JAXBElement(_ArrayOfAdExtension_QNAME, ArrayOfAdExtension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSiteLink }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfSiteLink") + public JAXBElement createArrayOfSiteLink(ArrayOfSiteLink value) { + return new JAXBElement(_ArrayOfSiteLink_QNAME, ArrayOfSiteLink.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NegativeCampaignCriterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "NegativeCampaignCriterion") + public JAXBElement createNegativeCampaignCriterion(NegativeCampaignCriterion value) { + return new JAXBElement(_NegativeCampaignCriterion_QNAME, NegativeCampaignCriterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupNegativeSites }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdGroupNegativeSites") + public JAXBElement createArrayOfAdGroupNegativeSites(ArrayOfAdGroupNegativeSites value) { + return new JAXBElement(_ArrayOfAdGroupNegativeSites_QNAME, ArrayOfAdGroupNegativeSites.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfOperationError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfOperationError") + public JAXBElement createArrayOfOperationError(ArrayOfOperationError value) { + return new JAXBElement(_ArrayOfOperationError_QNAME, ArrayOfOperationError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CountryTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CountryTarget") + public JAXBElement createCountryTarget(CountryTarget value) { + return new JAXBElement(_CountryTarget_QNAME, CountryTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeyValuePairOfstringstring }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", name = "KeyValuePairOfstringstring") + public JAXBElement createKeyValuePairOfstringstring(KeyValuePairOfstringstring value) { + return new JAXBElement(_KeyValuePairOfstringstring_QNAME, KeyValuePairOfstringstring.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "QName") + public JAXBElement createQName(QName value) { + return new JAXBElement(_QName_QNAME, QName.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NegativeAdGroupCriterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "NegativeAdGroupCriterion") + public JAXBElement createNegativeAdGroupCriterion(NegativeAdGroupCriterion value) { + return new JAXBElement(_NegativeAdGroupCriterion_QNAME, NegativeAdGroupCriterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSharedListItem }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfSharedListItem") + public JAXBElement createArrayOfSharedListItem(ArrayOfSharedListItem value) { + return new JAXBElement(_ArrayOfSharedListItem_QNAME, ArrayOfSharedListItem.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EntityType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "EntityType") + public JAXBElement createEntityType(EntityType value) { + return new JAXBElement(_EntityType_QNAME, EntityType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionEditorialReasonCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionEditorialReasonCollection") + public JAXBElement createAdExtensionEditorialReasonCollection(AdExtensionEditorialReasonCollection value) { + return new JAXBElement(_AdExtensionEditorialReasonCollection_QNAME, AdExtensionEditorialReasonCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MigrationStatusInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MigrationStatusInfo") + public JAXBElement createMigrationStatusInfo(MigrationStatusInfo value) { + return new JAXBElement(_MigrationStatusInfo_QNAME, MigrationStatusInfo.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfIdCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfIdCollection") + public JAXBElement createArrayOfIdCollection(ArrayOfIdCollection value) { + return new JAXBElement(_ArrayOfIdCollection_QNAME, ArrayOfIdCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSharedEntity }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfSharedEntity") + public JAXBElement createArrayOfSharedEntity(ArrayOfSharedEntity value) { + return new JAXBElement(_ArrayOfSharedEntity_QNAME, ArrayOfSharedEntity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RadiusTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "RadiusTargetBid") + public JAXBElement createRadiusTargetBid(RadiusTargetBid value) { + return new JAXBElement(_RadiusTargetBid_QNAME, RadiusTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Media }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Media") + public JAXBElement createMedia(Media value) { + return new JAXBElement(_Media_QNAME, Media.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PlacementDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "PlacementDetail") + public JAXBElement createPlacementDetail(PlacementDetail value) { + return new JAXBElement(_PlacementDetail_QNAME, PlacementDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMigrationStatusInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfMigrationStatusInfo") + public JAXBElement createArrayOfMigrationStatusInfo(ArrayOfMigrationStatusInfo value) { + return new JAXBElement(_ArrayOfMigrationStatusInfo_QNAME, ArrayOfMigrationStatusInfo.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Setting }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Setting") + public JAXBElement createSetting(Setting value) { + return new JAXBElement(_Setting_QNAME, Setting.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignCriterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfCampaignCriterion") + public JAXBElement createArrayOfCampaignCriterion(ArrayOfCampaignCriterion value) { + return new JAXBElement(_ArrayOfCampaignCriterion_QNAME, ArrayOfCampaignCriterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyType") + public JAXBElement createAnyType(Object value) { + return new JAXBElement(_AnyType_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Guid }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "guid") + public JAXBElement createGuid(Guid value) { + return new JAXBElement(_Guid_QNAME, Guid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupCriterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdGroupCriterion") + public JAXBElement createArrayOfAdGroupCriterion(ArrayOfAdGroupCriterion value) { + return new JAXBElement(_ArrayOfAdGroupCriterion_QNAME, ArrayOfAdGroupCriterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupCriterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdGroupCriterion") + public JAXBElement createAdGroupCriterion(AdGroupCriterion value) { + return new JAXBElement(_AdGroupCriterion_QNAME, AdGroupCriterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ApplicationToken") + public JAXBElement createApplicationToken(String value) { + return new JAXBElement(_ApplicationToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EntityNegativeKeyword }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "EntityNegativeKeyword") + public JAXBElement createEntityNegativeKeyword(EntityNegativeKeyword value) { + return new JAXBElement(_EntityNegativeKeyword_QNAME, EntityNegativeKeyword.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "decimal") + public JAXBElement createDecimal(BigDecimal value) { + return new JAXBElement(_Decimal_QNAME, BigDecimal.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ProductAd }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ProductAd") + public JAXBElement createProductAd(ProductAd value) { + return new JAXBElement(_ProductAd_QNAME, ProductAd.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionStatus") + public JAXBElement createAdExtensionStatus(AdExtensionStatus value) { + return new JAXBElement(_AdExtensionStatus_QNAME, AdExtensionStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfPlacementDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfPlacementDetail") + public JAXBElement createArrayOfPlacementDetail(ArrayOfPlacementDetail value) { + return new JAXBElement(_ArrayOfPlacementDetail_QNAME, ArrayOfPlacementDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BusinessGeoCodeStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BusinessGeoCodeStatus") + public JAXBElement createBusinessGeoCodeStatus(BusinessGeoCodeStatus value) { + return new JAXBElement(_BusinessGeoCodeStatus_QNAME, BusinessGeoCodeStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FixedBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "FixedBid") + public JAXBElement createFixedBid(FixedBid value) { + return new JAXBElement(_FixedBid_QNAME, FixedBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfArrayOfMediaAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfArrayOfMediaAssociation") + public JAXBElement createArrayOfArrayOfMediaAssociation(ArrayOfArrayOfMediaAssociation value) { + return new JAXBElement(_ArrayOfArrayOfMediaAssociation_QNAME, ArrayOfArrayOfMediaAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfArrayOfPlacementDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfArrayOfPlacementDetail") + public JAXBElement createArrayOfArrayOfPlacementDetail(ArrayOfArrayOfPlacementDetail value) { + return new JAXBElement(_ArrayOfArrayOfPlacementDetail_QNAME, ArrayOfArrayOfPlacementDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EditorialReasonCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "EditorialReasonCollection") + public JAXBElement createEditorialReasonCollection(EditorialReasonCollection value) { + return new JAXBElement(_EditorialReasonCollection_QNAME, EditorialReasonCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DayTimeTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DayTimeTargetBid") + public JAXBElement createDayTimeTargetBid(DayTimeTargetBid value) { + return new JAXBElement(_DayTimeTargetBid_QNAME, DayTimeTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Day }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Day") + public JAXBElement createDay(Day value) { + return new JAXBElement(_Day_QNAME, Day.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionAssociation") + public JAXBElement createAdExtensionAssociation(AdExtensionAssociation value) { + return new JAXBElement(_AdExtensionAssociation_QNAME, AdExtensionAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdExtensionIdentity }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdExtensionIdentity") + public JAXBElement createArrayOfAdExtensionIdentity(ArrayOfAdExtensionIdentity value) { + return new JAXBElement(_ArrayOfAdExtensionIdentity_QNAME, ArrayOfAdExtensionIdentity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BiddableAdGroupCriterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BiddableAdGroupCriterion") + public JAXBElement createBiddableAdGroupCriterion(BiddableAdGroupCriterion value) { + return new JAXBElement(_BiddableAdGroupCriterion_QNAME, BiddableAdGroupCriterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOflong }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", name = "ArrayOflong") + public JAXBElement createArrayOflong(ArrayOflong value) { + return new JAXBElement(_ArrayOflong_QNAME, ArrayOflong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GenderType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "GenderType") + public JAXBElement createGenderType(GenderType value) { + return new JAXBElement(_GenderType_QNAME, GenderType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ProductPartition }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ProductPartition") + public JAXBElement createProductPartition(ProductPartition value) { + return new JAXBElement(_ProductPartition_QNAME, ProductPartition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfstring }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/Arrays", name = "ArrayOfstring") + public JAXBElement createArrayOfstring(ArrayOfstring value) { + return new JAXBElement(_ArrayOfstring_QNAME, ArrayOfstring.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "long") + public JAXBElement createLong(Long value) { + return new JAXBElement(_Long_QNAME, Long.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Dimension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Dimension") + public JAXBElement createDimension(Dimension value) { + return new JAXBElement(_Dimension_QNAME, Dimension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EditorialApiFaultDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "EditorialApiFaultDetail") + public JAXBElement createEditorialApiFaultDetail(EditorialApiFaultDetail value) { + return new JAXBElement(_EditorialApiFaultDetail_QNAME, EditorialApiFaultDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Keyword }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Keyword") + public JAXBElement createKeyword(Keyword value) { + return new JAXBElement(_Keyword_QNAME, Keyword.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link CampaignCriterionType }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CampaignCriterionType") + @XmlJavaTypeAdapter(Adapter2 .class) + public JAXBElement> createCampaignCriterionType(Collection value) { + return new JAXBElement>(_CampaignCriterionType_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdEditorialStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdEditorialStatus") + public JAXBElement createAdEditorialStatus(AdEditorialStatus value) { + return new JAXBElement(_AdEditorialStatus_QNAME, AdEditorialStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupCriterionEditorialStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdGroupCriterionEditorialStatus") + public JAXBElement createAdGroupCriterionEditorialStatus(AdGroupCriterionEditorialStatus value) { + return new JAXBElement(_AdGroupCriterionEditorialStatus_QNAME, AdGroupCriterionEditorialStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SharedEntity }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SharedEntity") + public JAXBElement createSharedEntity(SharedEntity value) { + return new JAXBElement(_SharedEntity_QNAME, SharedEntity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Minute }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Minute") + public JAXBElement createMinute(Minute value) { + return new JAXBElement(_Minute_QNAME, Minute.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ProductScope }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ProductScope") + public JAXBElement createProductScope(ProductScope value) { + return new JAXBElement(_ProductScope_QNAME, ProductScope.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Target }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Target") + public JAXBElement createTarget(Target value) { + return new JAXBElement(_Target_QNAME, Target.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PricingModel }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "PricingModel") + public JAXBElement createPricingModel(PricingModel value) { + return new JAXBElement(_PricingModel_QNAME, PricingModel.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TextAd }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "TextAd") + public JAXBElement createTextAd(TextAd value) { + return new JAXBElement(_TextAd_QNAME, TextAd.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MediaAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MediaAssociation") + public JAXBElement createMediaAssociation(MediaAssociation value) { + return new JAXBElement(_MediaAssociation_QNAME, MediaAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CampaignSize }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CampaignSize") + public JAXBElement createCampaignSize(CampaignSize value) { + return new JAXBElement(_CampaignSize_QNAME, CampaignSize.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CampaignStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CampaignStatus") + public JAXBElement createCampaignStatus(CampaignStatus value) { + return new JAXBElement(_CampaignStatus_QNAME, CampaignStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SiteLinksAdExtension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SiteLinksAdExtension") + public JAXBElement createSiteLinksAdExtension(SiteLinksAdExtension value) { + return new JAXBElement(_SiteLinksAdExtension_QNAME, SiteLinksAdExtension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionAssociationCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionAssociationCollection") + public JAXBElement createAdExtensionAssociationCollection(AdExtensionAssociationCollection value) { + return new JAXBElement(_AdExtensionAssociationCollection_QNAME, AdExtensionAssociationCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CityTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CityTargetBid") + public JAXBElement createCityTargetBid(CityTargetBid value) { + return new JAXBElement(_CityTargetBid_QNAME, CityTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ItemAction }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ItemAction") + public JAXBElement createItemAction(ItemAction value) { + return new JAXBElement(_ItemAction_QNAME, ItemAction.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CustomerId") + public JAXBElement createCustomerId(String value) { + return new JAXBElement(_CustomerId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionIdentity }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionIdentity") + public JAXBElement createAdExtensionIdentity(AdExtensionIdentity value) { + return new JAXBElement(_AdExtensionIdentity_QNAME, AdExtensionIdentity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionIdToEntityIdAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionIdToEntityIdAssociation") + public JAXBElement createAdExtensionIdToEntityIdAssociation(AdExtensionIdToEntityIdAssociation value) { + return new JAXBElement(_AdExtensionIdToEntityIdAssociation_QNAME, AdExtensionIdToEntityIdAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdExtensionEditorialReason }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdExtensionEditorialReason") + public JAXBElement createArrayOfAdExtensionEditorialReason(ArrayOfAdExtensionEditorialReason value) { + return new JAXBElement(_ArrayOfAdExtensionEditorialReason_QNAME, ArrayOfAdExtensionEditorialReason.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfEntityIdToParentIdAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", name = "ArrayOfEntityIdToParentIdAssociation") + public JAXBElement createArrayOfEntityIdToParentIdAssociation(ArrayOfEntityIdToParentIdAssociation value) { + return new JAXBElement(_ArrayOfEntityIdToParentIdAssociation_QNAME, ArrayOfEntityIdToParentIdAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdExtensionAssociationCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdExtensionAssociationCollection") + public JAXBElement createArrayOfAdExtensionAssociationCollection(ArrayOfAdExtensionAssociationCollection value) { + return new JAXBElement(_ArrayOfAdExtensionAssociationCollection_QNAME, ArrayOfAdExtensionAssociationCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupCriterionAction }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdGroupCriterionAction") + public JAXBElement createArrayOfAdGroupCriterionAction(ArrayOfAdGroupCriterionAction value) { + return new JAXBElement(_ArrayOfAdGroupCriterionAction_QNAME, ArrayOfAdGroupCriterionAction.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Network }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Network") + public JAXBElement createNetwork(Network value) { + return new JAXBElement(_Network_QNAME, Network.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdExtensionEditorialReasonCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdExtensionEditorialReasonCollection") + public JAXBElement createArrayOfAdExtensionEditorialReasonCollection(ArrayOfAdExtensionEditorialReasonCollection value) { + return new JAXBElement(_ArrayOfAdExtensionEditorialReasonCollection_QNAME, ArrayOfAdExtensionEditorialReasonCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BiddingModel }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BiddingModel") + public JAXBElement createBiddingModel(BiddingModel value) { + return new JAXBElement(_BiddingModel_QNAME, BiddingModel.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Image }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Image") + public JAXBElement createImage(Image value) { + return new JAXBElement(_Image_QNAME, Image.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link LocationTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "LocationTarget") + public JAXBElement createLocationTarget(LocationTarget value) { + return new JAXBElement(_LocationTarget_QNAME, LocationTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyURI") + public JAXBElement createAnyURI(String value) { + return new JAXBElement(_AnyURI_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CountryTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CountryTargetBid") + public JAXBElement createCountryTargetBid(CountryTargetBid value) { + return new JAXBElement(_CountryTargetBid_QNAME, CountryTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PostalCodeTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "PostalCodeTargetBid") + public JAXBElement createPostalCodeTargetBid(PostalCodeTargetBid value) { + return new JAXBElement(_PostalCodeTargetBid_QNAME, PostalCodeTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Address }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Address") + public JAXBElement
createAddress(Address value) { + return new JAXBElement
(_Address_QNAME, Address.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfPostalCodeTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfPostalCodeTargetBid") + public JAXBElement createArrayOfPostalCodeTargetBid(ArrayOfPostalCodeTargetBid value) { + return new JAXBElement(_ArrayOfPostalCodeTargetBid_QNAME, ArrayOfPostalCodeTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAccountMigrationStatusesInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAccountMigrationStatusesInfo") + public JAXBElement createArrayOfAccountMigrationStatusesInfo(ArrayOfAccountMigrationStatusesInfo value) { + return new JAXBElement(_ArrayOfAccountMigrationStatusesInfo_QNAME, ArrayOfAccountMigrationStatusesInfo.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionEditorialReason }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionEditorialReason") + public JAXBElement createAdExtensionEditorialReason(AdExtensionEditorialReason value) { + return new JAXBElement(_AdExtensionEditorialReason_QNAME, AdExtensionEditorialReason.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCustomParameter }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", name = "ArrayOfCustomParameter") + public JAXBElement createArrayOfCustomParameter(ArrayOfCustomParameter value) { + return new JAXBElement(_ArrayOfCustomParameter_QNAME, ArrayOfCustomParameter.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdExtensionIdToEntityIdAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdExtensionIdToEntityIdAssociation") + public JAXBElement createArrayOfAdExtensionIdToEntityIdAssociation(ArrayOfAdExtensionIdToEntityIdAssociation value) { + return new JAXBElement(_ArrayOfAdExtensionIdToEntityIdAssociation_QNAME, ArrayOfAdExtensionIdToEntityIdAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfDeviceOSTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfDeviceOSTargetBid") + public JAXBElement createArrayOfDeviceOSTargetBid(ArrayOfDeviceOSTargetBid value) { + return new JAXBElement(_ArrayOfDeviceOSTargetBid_QNAME, ArrayOfDeviceOSTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CriterionBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CriterionBid") + public JAXBElement createCriterionBid(CriterionBid value) { + return new JAXBElement(_CriterionBid_QNAME, CriterionBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMetroAreaTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfMetroAreaTargetBid") + public JAXBElement createArrayOfMetroAreaTargetBid(ArrayOfMetroAreaTargetBid value) { + return new JAXBElement(_ArrayOfMetroAreaTargetBid_QNAME, ArrayOfMetroAreaTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdApiError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "ArrayOfAdApiError") + public JAXBElement createArrayOfAdApiError(ArrayOfAdApiError value) { + return new JAXBElement(_ArrayOfAdApiError_QNAME, ArrayOfAdApiError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "UserName") + public JAXBElement createUserName(String value) { + return new JAXBElement(_UserName_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfEditorialError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfEditorialError") + public JAXBElement createArrayOfEditorialError(ArrayOfEditorialError value) { + return new JAXBElement(_ArrayOfEditorialError_QNAME, ArrayOfEditorialError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSitePlacement }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfSitePlacement") + public JAXBElement createArrayOfSitePlacement(ArrayOfSitePlacement value) { + return new JAXBElement(_ArrayOfSitePlacement_QNAME, ArrayOfSitePlacement.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Bid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Bid") + public JAXBElement createBid(Bid value) { + return new JAXBElement(_Bid_QNAME, Bid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Password") + public JAXBElement createPassword(String value) { + return new JAXBElement(_Password_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfGenderTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfGenderTargetBid") + public JAXBElement createArrayOfGenderTargetBid(ArrayOfGenderTargetBid value) { + return new JAXBElement(_ArrayOfGenderTargetBid_QNAME, ArrayOfGenderTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Criterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Criterion") + public JAXBElement createCriterion(Criterion value) { + return new JAXBElement(_Criterion_QNAME, Criterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "boolean") + public JAXBElement createBoolean(Boolean value) { + return new JAXBElement(_Boolean_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CustomerAccountId") + public JAXBElement createCustomerAccountId(String value) { + return new JAXBElement(_CustomerAccountId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MediaRepresentation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MediaRepresentation") + public JAXBElement createMediaRepresentation(MediaRepresentation value) { + return new JAXBElement(_MediaRepresentation_QNAME, MediaRepresentation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSetting }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfSetting") + public JAXBElement createArrayOfSetting(ArrayOfSetting value) { + return new JAXBElement(_ArrayOfSetting_QNAME, ArrayOfSetting.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "KeywordStatus") + public JAXBElement createKeywordStatus(KeywordStatus value) { + return new JAXBElement(_KeywordStatus_QNAME, KeywordStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMediaType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfMediaType") + public JAXBElement createArrayOfMediaType(ArrayOfMediaType value) { + return new JAXBElement(_ArrayOfMediaType_QNAME, ArrayOfMediaType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignSize }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfCampaignSize") + public JAXBElement createArrayOfCampaignSize(ArrayOfCampaignSize value) { + return new JAXBElement(_ArrayOfCampaignSize_QNAME, ArrayOfCampaignSize.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfRadiusTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfRadiusTargetBid") + public JAXBElement createArrayOfRadiusTargetBid(ArrayOfRadiusTargetBid value) { + return new JAXBElement(_ArrayOfRadiusTargetBid_QNAME, ArrayOfRadiusTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "int") + public JAXBElement createInt(Integer value) { + return new JAXBElement(_Int_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroup }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdGroup") + public JAXBElement createAdGroup(AdGroup value) { + return new JAXBElement(_AdGroup_QNAME, AdGroup.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBMCStore }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfBMCStore") + public JAXBElement createArrayOfBMCStore(ArrayOfBMCStore value) { + return new JAXBElement(_ArrayOfBMCStore_QNAME, ArrayOfBMCStore.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EditorialReason }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "EditorialReason") + public JAXBElement createEditorialReason(EditorialReason value) { + return new JAXBElement(_EditorialReason_QNAME, EditorialReason.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CampaignCriterion }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CampaignCriterion") + public JAXBElement createCampaignCriterion(CampaignCriterion value) { + return new JAXBElement(_CampaignCriterion_QNAME, CampaignCriterion.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionEditorialStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtensionEditorialStatus") + public JAXBElement createAdExtensionEditorialStatus(AdExtensionEditorialStatus value) { + return new JAXBElement(_AdExtensionEditorialStatus_QNAME, AdExtensionEditorialStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DeviceOSTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DeviceOSTarget") + public JAXBElement createDeviceOSTarget(DeviceOSTarget value) { + return new JAXBElement(_DeviceOSTarget_QNAME, DeviceOSTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedByte") + public JAXBElement createUnsignedByte(Short value) { + return new JAXBElement(_UnsignedByte_QNAME, Short.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMediaRepresentation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfMediaRepresentation") + public JAXBElement createArrayOfMediaRepresentation(ArrayOfMediaRepresentation value) { + return new JAXBElement(_ArrayOfMediaRepresentation_QNAME, ArrayOfMediaRepresentation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SharedList }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SharedList") + public JAXBElement createSharedList(SharedList value) { + return new JAXBElement(_SharedList_QNAME, SharedList.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Campaign }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Campaign") + public JAXBElement createCampaign(Campaign value) { + return new JAXBElement(_Campaign_QNAME, Campaign.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAd }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAd") + public JAXBElement createArrayOfAd(ArrayOfAd value) { + return new JAXBElement(_ArrayOfAd_QNAME, ArrayOfAd.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ImageAdExtension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ImageAdExtension") + public JAXBElement createImageAdExtension(ImageAdExtension value) { + return new JAXBElement(_ImageAdExtension_QNAME, ImageAdExtension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "float") + public JAXBElement createFloat(Float value) { + return new JAXBElement(_Float_QNAME, Float.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBatchErrorCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfBatchErrorCollection") + public JAXBElement createArrayOfBatchErrorCollection(ArrayOfBatchErrorCollection value) { + return new JAXBElement(_ArrayOfBatchErrorCollection_QNAME, ArrayOfBatchErrorCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ProductCondition }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ProductCondition") + public JAXBElement createProductCondition(ProductCondition value) { + return new JAXBElement(_ProductCondition_QNAME, ProductCondition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdApiError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "AdApiError") + public JAXBElement createAdApiError(AdApiError value) { + return new JAXBElement(_AdApiError_QNAME, AdApiError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CallAdExtension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CallAdExtension") + public JAXBElement createCallAdExtension(CallAdExtension value) { + return new JAXBElement(_CallAdExtension_QNAME, CallAdExtension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DayTimeTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DayTimeTarget") + public JAXBElement createDayTimeTarget(DayTimeTarget value) { + return new JAXBElement(_DayTimeTarget_QNAME, DayTimeTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfDayTimeTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfDayTimeTargetBid") + public JAXBElement createArrayOfDayTimeTargetBid(ArrayOfDayTimeTargetBid value) { + return new JAXBElement(_ArrayOfDayTimeTargetBid_QNAME, ArrayOfDayTimeTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link CampaignType }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CampaignType") + @XmlJavaTypeAdapter(Adapter3 .class) + public JAXBElement> createCampaignType(Collection value) { + return new JAXBElement>(_CampaignType_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SharedEntityAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SharedEntityAssociation") + public JAXBElement createSharedEntityAssociation(SharedEntityAssociation value) { + return new JAXBElement(_SharedEntityAssociation_QNAME, SharedEntityAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link CriterionType }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CriterionType") + @XmlJavaTypeAdapter(Adapter7 .class) + public JAXBElement> createCriterionType(Collection value) { + return new JAXBElement>(_CriterionType_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AppAdExtension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AppAdExtension") + public JAXBElement createAppAdExtension(AppAdExtension value) { + return new JAXBElement(_AppAdExtension_QNAME, AppAdExtension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GeoPoint }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "GeoPoint") + public JAXBElement createGeoPoint(GeoPoint value) { + return new JAXBElement(_GeoPoint_QNAME, GeoPoint.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ImageMediaRepresentation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ImageMediaRepresentation") + public JAXBElement createImageMediaRepresentation(ImageMediaRepresentation value) { + return new JAXBElement(_ImageMediaRepresentation_QNAME, ImageMediaRepresentation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link MediaEnabledEntityFilter }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MediaEnabledEntityFilter") + @XmlJavaTypeAdapter(Adapter6 .class) + public JAXBElement> createMediaEnabledEntityFilter(Collection value) { + return new JAXBElement>(_MediaEnabledEntityFilter_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "base64Binary") + public JAXBElement createBase64Binary(byte[] value) { + return new JAXBElement(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value)); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaign }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfCampaign") + public JAXBElement createArrayOfCampaign(ArrayOfCampaign value) { + return new JAXBElement(_ArrayOfCampaign_QNAME, ArrayOfCampaign.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdExtension") + public JAXBElement createAdExtension(AdExtension value) { + return new JAXBElement(_AdExtension_QNAME, AdExtension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfNullableOflong }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/System", name = "ArrayOfNullableOflong") + public JAXBElement createArrayOfNullableOflong(ArrayOfNullableOflong value) { + return new JAXBElement(_ArrayOfNullableOflong_QNAME, ArrayOfNullableOflong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdType") + public JAXBElement createAdType(AdType value) { + return new JAXBElement(_AdType_QNAME, AdType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfProductCondition }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfProductCondition") + public JAXBElement createArrayOfProductCondition(ArrayOfProductCondition value) { + return new JAXBElement(_ArrayOfProductCondition_QNAME, ArrayOfProductCondition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfNegativeKeyword }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfNegativeKeyword") + public JAXBElement createArrayOfNegativeKeyword(ArrayOfNegativeKeyword value) { + return new JAXBElement(_ArrayOfNegativeKeyword_QNAME, ArrayOfNegativeKeyword.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AppUrl }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", name = "AppUrl") + public JAXBElement createAppUrl(AppUrl value) { + return new JAXBElement(_AppUrl_QNAME, AppUrl.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SitePlacement }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SitePlacement") + public JAXBElement createSitePlacement(SitePlacement value) { + return new JAXBElement(_SitePlacement_QNAME, SitePlacement.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeyword }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfKeyword") + public JAXBElement createArrayOfKeyword(ArrayOfKeyword value) { + return new JAXBElement(_ArrayOfKeyword_QNAME, ArrayOfKeyword.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SharedListItem }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SharedListItem") + public JAXBElement createSharedListItem(SharedListItem value) { + return new JAXBElement(_SharedListItem_QNAME, SharedListItem.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StateTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "StateTarget") + public JAXBElement createStateTarget(StateTarget value) { + return new JAXBElement(_StateTarget_QNAME, StateTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DeveloperToken") + public JAXBElement createDeveloperToken(String value) { + return new JAXBElement(_DeveloperToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CampaignNegativeSites }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "CampaignNegativeSites") + public JAXBElement createCampaignNegativeSites(CampaignNegativeSites value) { + return new JAXBElement(_CampaignNegativeSites_QNAME, CampaignNegativeSites.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Collection }{@code <}{@link AdDistribution }{@code >}{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdDistribution") + @XmlJavaTypeAdapter(Adapter5 .class) + public JAXBElement> createAdDistribution(Collection value) { + return new JAXBElement>(_AdDistribution_QNAME, ((Class) Collection.class), null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MatchType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MatchType") + public JAXBElement createMatchType(MatchType value) { + return new JAXBElement(_MatchType_QNAME, MatchType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfDimension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfDimension") + public JAXBElement createArrayOfDimension(ArrayOfDimension value) { + return new JAXBElement(_ArrayOfDimension_QNAME, ArrayOfDimension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AppealStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AppealStatus") + public JAXBElement createAppealStatus(AppealStatus value) { + return new JAXBElement(_AppealStatus_QNAME, AppealStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfTargetInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfTargetInfo") + public JAXBElement createArrayOfTargetInfo(ArrayOfTargetInfo value) { + return new JAXBElement(_ArrayOfTargetInfo_QNAME, ArrayOfTargetInfo.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OperationError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "OperationError") + public JAXBElement createOperationError(OperationError value) { + return new JAXBElement(_OperationError_QNAME, OperationError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMediaMetaData }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfMediaMetaData") + public JAXBElement createArrayOfMediaMetaData(ArrayOfMediaMetaData value) { + return new JAXBElement(_ArrayOfMediaMetaData_QNAME, ArrayOfMediaMetaData.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MetroAreaTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MetroAreaTarget") + public JAXBElement createMetroAreaTarget(MetroAreaTarget value) { + return new JAXBElement(_MetroAreaTarget_QNAME, MetroAreaTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCountryTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfCountryTargetBid") + public JAXBElement createArrayOfCountryTargetBid(ArrayOfCountryTargetBid value) { + return new JAXBElement(_ArrayOfCountryTargetBid_QNAME, ArrayOfCountryTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RadiusTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "RadiusTarget") + public JAXBElement createRadiusTarget(RadiusTarget value) { + return new JAXBElement(_RadiusTarget_QNAME, RadiusTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Calendar }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "dateTime") + @XmlJavaTypeAdapter(Adapter1 .class) + public JAXBElement createDateTime(Calendar value) { + return new JAXBElement(_DateTime_QNAME, Calendar.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BatchError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BatchError") + public JAXBElement createBatchError(BatchError value) { + return new JAXBElement(_BatchError_QNAME, BatchError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NegativeKeywordList }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "NegativeKeywordList") + public JAXBElement createNegativeKeywordList(NegativeKeywordList value) { + return new JAXBElement(_NegativeKeywordList_QNAME, NegativeKeywordList.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdRotationType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdRotationType") + public JAXBElement createAdRotationType(AdRotationType value) { + return new JAXBElement(_AdRotationType_QNAME, AdRotationType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AgeTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AgeTargetBid") + public JAXBElement createAgeTargetBid(AgeTargetBid value) { + return new JAXBElement(_AgeTargetBid_QNAME, AgeTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Char }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "char") + public JAXBElement createChar(Char value) { + return new JAXBElement(_Char_QNAME, Char.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMedia }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfMedia") + public JAXBElement createArrayOfMedia(ArrayOfMedia value) { + return new JAXBElement(_ArrayOfMedia_QNAME, ArrayOfMedia.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeyValuePairOfstringstring }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/System.Collections.Generic", name = "ArrayOfKeyValuePairOfstringstring") + public JAXBElement createArrayOfKeyValuePairOfstringstring(ArrayOfKeyValuePairOfstringstring value) { + return new JAXBElement(_ArrayOfKeyValuePairOfstringstring_QNAME, ArrayOfKeyValuePairOfstringstring.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdStatus") + public JAXBElement createAdStatus(AdStatus value) { + return new JAXBElement(_AdStatus_QNAME, AdStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DeviceOSTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "DeviceOSTargetBid") + public JAXBElement createDeviceOSTargetBid(DeviceOSTargetBid value) { + return new JAXBElement(_DeviceOSTargetBid_QNAME, DeviceOSTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AgeRange }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AgeRange") + public JAXBElement createAgeRange(AgeRange value) { + return new JAXBElement(_AgeRange_QNAME, AgeRange.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Ad }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "Ad") + public JAXBElement createAd(Ad value) { + return new JAXBElement(_Ad_QNAME, Ad.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdGroupStatus") + public JAXBElement createAdGroupStatus(AdGroupStatus value) { + return new JAXBElement(_AdGroupStatus_QNAME, AdGroupStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link LocationAdExtension }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "LocationAdExtension") + public JAXBElement createLocationAdExtension(LocationAdExtension value) { + return new JAXBElement(_LocationAdExtension_QNAME, LocationAdExtension.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StateTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "StateTargetBid") + public JAXBElement createStateTargetBid(StateTargetBid value) { + return new JAXBElement(_StateTargetBid_QNAME, StateTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroup }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdGroup") + public JAXBElement createArrayOfAdGroup(ArrayOfAdGroup value) { + return new JAXBElement(_ArrayOfAdGroup_QNAME, ArrayOfAdGroup.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link IdCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "IdCollection") + public JAXBElement createIdCollection(IdCollection value) { + return new JAXBElement(_IdCollection_QNAME, IdCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link UnsignedLong }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedLong") + public JAXBElement createUnsignedLong(UnsignedLong value) { + return new JAXBElement(_UnsignedLong_QNAME, UnsignedLong.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PostalCodeTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "PostalCodeTarget") + public JAXBElement createPostalCodeTarget(PostalCodeTarget value) { + return new JAXBElement(_PostalCodeTarget_QNAME, PostalCodeTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedShort") + public JAXBElement createUnsignedShort(Integer value) { + return new JAXBElement(_UnsignedShort_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CustomParameters }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", name = "CustomParameters") + public JAXBElement createCustomParameters(CustomParameters value) { + return new JAXBElement(_CustomParameters_QNAME, CustomParameters.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdRotation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdRotation") + public JAXBElement createAdRotation(AdRotation value) { + return new JAXBElement(_AdRotation_QNAME, AdRotation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BatchErrorCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BatchErrorCollection") + public JAXBElement createBatchErrorCollection(BatchErrorCollection value) { + return new JAXBElement(_BatchErrorCollection_QNAME, BatchErrorCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BudgetLimitType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BudgetLimitType") + public JAXBElement createBudgetLimitType(BudgetLimitType value) { + return new JAXBElement(_BudgetLimitType_QNAME, BudgetLimitType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TargetInfo }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "TargetInfo") + public JAXBElement createTargetInfo(TargetInfo value) { + return new JAXBElement(_TargetInfo_QNAME, TargetInfo.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "TrackingId") + public JAXBElement createTrackingId(String value) { + return new JAXBElement(_TrackingId_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ProductPartitionType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ProductPartitionType") + public JAXBElement createProductPartitionType(ProductPartitionType value) { + return new JAXBElement(_ProductPartitionType_QNAME, ProductPartitionType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfMediaAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfMediaAssociation") + public JAXBElement createArrayOfMediaAssociation(ArrayOfMediaAssociation value) { + return new JAXBElement(_ArrayOfMediaAssociation_QNAME, ArrayOfMediaAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdExtensionAssociation }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAdExtensionAssociation") + public JAXBElement createArrayOfAdExtensionAssociation(ArrayOfAdExtensionAssociation value) { + return new JAXBElement(_ArrayOfAdExtensionAssociation_QNAME, ArrayOfAdExtensionAssociation.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupCriterionAction }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdGroupCriterionAction") + public JAXBElement createAdGroupCriterionAction(AdGroupCriterionAction value) { + return new JAXBElement(_AdGroupCriterionAction_QNAME, AdGroupCriterionAction.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link IntentOption }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "IntentOption") + public JAXBElement createIntentOption(IntentOption value) { + return new JAXBElement(_IntentOption_QNAME, IntentOption.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfTarget }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfTarget") + public JAXBElement createArrayOfTarget(ArrayOfTarget value) { + return new JAXBElement(_ArrayOfTarget_QNAME, ArrayOfTarget.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link KeywordEditorialStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "KeywordEditorialStatus") + public JAXBElement createKeywordEditorialStatus(KeywordEditorialStatus value) { + return new JAXBElement(_KeywordEditorialStatus_QNAME, KeywordEditorialStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ShoppingSetting }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ShoppingSetting") + public JAXBElement createShoppingSetting(ShoppingSetting value) { + return new JAXBElement(_ShoppingSetting_QNAME, ShoppingSetting.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfEditorialReasonCollection }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfEditorialReasonCollection") + public JAXBElement createArrayOfEditorialReasonCollection(ArrayOfEditorialReasonCollection value) { + return new JAXBElement(_ArrayOfEditorialReasonCollection_QNAME, ArrayOfEditorialReasonCollection.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAppUrl }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10", name = "ArrayOfAppUrl") + public JAXBElement createArrayOfAppUrl(ArrayOfAppUrl value) { + return new JAXBElement(_ArrayOfAppUrl_QNAME, ArrayOfAppUrl.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdApiFaultDetail }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "AdApiFaultDetail") + public JAXBElement createAdApiFaultDetail(AdApiFaultDetail value) { + return new JAXBElement(_AdApiFaultDetail_QNAME, AdApiFaultDetail.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MediaType }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MediaType") + public JAXBElement createMediaType(MediaType value) { + return new JAXBElement(_MediaType_QNAME, MediaType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GenderTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "GenderTargetBid") + public JAXBElement createGenderTargetBid(GenderTargetBid value) { + return new JAXBElement(_GenderTargetBid_QNAME, GenderTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ApplicationFault }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://adapi.microsoft.com", name = "ApplicationFault") + public JAXBElement createApplicationFault(ApplicationFault value) { + return new JAXBElement(_ApplicationFault_QNAME, ApplicationFault.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SiteLink }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SiteLink") + public JAXBElement createSiteLink(SiteLink value) { + return new JAXBElement(_SiteLink_QNAME, SiteLink.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAgeTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfAgeTargetBid") + public JAXBElement createArrayOfAgeTargetBid(ArrayOfAgeTargetBid value) { + return new JAXBElement(_ArrayOfAgeTargetBid_QNAME, ArrayOfAgeTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignNegativeSites }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "ArrayOfCampaignNegativeSites") + public JAXBElement createArrayOfCampaignNegativeSites(ArrayOfCampaignNegativeSites value) { + return new JAXBElement(_ArrayOfCampaignNegativeSites_QNAME, ArrayOfCampaignNegativeSites.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AdGroupCriterionStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AdGroupCriterionStatus") + public JAXBElement createAdGroupCriterionStatus(AdGroupCriterionStatus value) { + return new JAXBElement(_AdGroupCriterionStatus_QNAME, AdGroupCriterionStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SitePlacementStatus }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "SitePlacementStatus") + public JAXBElement createSitePlacementStatus(SitePlacementStatus value) { + return new JAXBElement(_SitePlacementStatus_QNAME, SitePlacementStatus.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EditorialError }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "EditorialError") + public JAXBElement createEditorialError(EditorialError value) { + return new JAXBElement(_EditorialError_QNAME, EditorialError.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MetroAreaTargetBid }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "MetroAreaTargetBid") + public JAXBElement createMetroAreaTargetBid(MetroAreaTargetBid value) { + return new JAXBElement(_MetroAreaTargetBid_QNAME, MetroAreaTargetBid.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "byte") + public JAXBElement createByte(Byte value) { + return new JAXBElement(_Byte_QNAME, Byte.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "double") + public JAXBElement createDouble(Double value) { + return new JAXBElement(_Double_QNAME, Double.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "AuthenticationToken") + public JAXBElement createAuthenticationToken(String value) { + return new JAXBElement(_AuthenticationToken_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BMCStore }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", name = "BMCStore") + public JAXBElement createBMCStore(BMCStore value) { + return new JAXBElement(_BMCStore_QNAME, BMCStore.class, null, value); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/OperationError.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/OperationError.java new file mode 100644 index 0000000000..1c3a1119c0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/OperationError.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for OperationError complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="OperationError">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Code" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "OperationError", propOrder = { + "code", + "details", + "errorCode", + "message" +}) +public class OperationError { + + @XmlElement(name = "Code") + protected Integer code; + @XmlElement(name = "Details", nillable = true) + protected String details; + @XmlElement(name = "ErrorCode", nillable = true) + protected String errorCode; + @XmlElement(name = "Message", nillable = true) + protected String message; + + /** + * Gets the value of the code property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getCode() { + return code; + } + + /** + * Sets the value of the code property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setCode(Integer value) { + this.code = value; + } + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the errorCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getErrorCode() { + return errorCode; + } + + /** + * Sets the value of the errorCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setErrorCode(String value) { + this.errorCode = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/PlacementDetail.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/PlacementDetail.java new file mode 100644 index 0000000000..2b3a56a4af --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/PlacementDetail.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for PlacementDetail complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="PlacementDetail">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ImpressionsRangePerDay" type="{https://bingads.microsoft.com/CampaignManagement/v10}ImpressionsPerDayRange" minOccurs="0"/>
+ *         <element name="PathName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="PlacementId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SupportedMediaTypes" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfMediaType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PlacementDetail", propOrder = { + "impressionsRangePerDay", + "pathName", + "placementId", + "supportedMediaTypes" +}) +public class PlacementDetail { + + @XmlElement(name = "ImpressionsRangePerDay", nillable = true) + protected ImpressionsPerDayRange impressionsRangePerDay; + @XmlElement(name = "PathName", nillable = true) + protected String pathName; + @XmlElement(name = "PlacementId") + protected Long placementId; + @XmlElement(name = "SupportedMediaTypes", nillable = true) + protected ArrayOfMediaType supportedMediaTypes; + + /** + * Gets the value of the impressionsRangePerDay property. + * + * @return + * possible object is + * {@link ImpressionsPerDayRange } + * + */ + public ImpressionsPerDayRange getImpressionsRangePerDay() { + return impressionsRangePerDay; + } + + /** + * Sets the value of the impressionsRangePerDay property. + * + * @param value + * allowed object is + * {@link ImpressionsPerDayRange } + * + */ + public void setImpressionsRangePerDay(ImpressionsPerDayRange value) { + this.impressionsRangePerDay = value; + } + + /** + * Gets the value of the pathName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPathName() { + return pathName; + } + + /** + * Sets the value of the pathName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPathName(String value) { + this.pathName = value; + } + + /** + * Gets the value of the placementId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getPlacementId() { + return placementId; + } + + /** + * Sets the value of the placementId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPlacementId(Long value) { + this.placementId = value; + } + + /** + * Gets the value of the supportedMediaTypes property. + * + * @return + * possible object is + * {@link ArrayOfMediaType } + * + */ + public ArrayOfMediaType getSupportedMediaTypes() { + return supportedMediaTypes; + } + + /** + * Sets the value of the supportedMediaTypes property. + * + * @param value + * allowed object is + * {@link ArrayOfMediaType } + * + */ + public void setSupportedMediaTypes(ArrayOfMediaType value) { + this.supportedMediaTypes = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/PositiveInteger.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/PositiveInteger.java new file mode 100644 index 0000000000..2410b10dfe --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/PositiveInteger.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for positiveInteger simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="positiveInteger">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger">
+ *     <minInclusive value="1"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "positiveInteger", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class PositiveInteger { + + @XmlValue + @XmlSchemaType(name = "positiveInteger") + protected NonNegativeInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonNegativeInteger } + * + */ + public NonNegativeInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonNegativeInteger } + * + */ + public void setValue(NonNegativeInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTarget.java new file mode 100644 index 0000000000..d695dcc388 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for PostalCodeTarget complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="PostalCodeTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfPostalCodeTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PostalCodeTarget", propOrder = { + "bids" +}) +public class PostalCodeTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfPostalCodeTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfPostalCodeTargetBid } + * + */ + public ArrayOfPostalCodeTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfPostalCodeTargetBid } + * + */ + public void setBids(ArrayOfPostalCodeTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTargetBid.java new file mode 100644 index 0000000000..3ac958a653 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/PostalCodeTargetBid.java @@ -0,0 +1,102 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for PostalCodeTargetBid complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="PostalCodeTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="IsExcluded" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="PostalCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "PostalCodeTargetBid", propOrder = { + "bidAdjustment", + "isExcluded", + "postalCode" +}) +public class PostalCodeTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "IsExcluded") + protected boolean isExcluded; + @XmlElement(name = "PostalCode", required = true, nillable = true) + protected String postalCode; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the isExcluded property. + * + */ + public boolean isIsExcluded() { + return isExcluded; + } + + /** + * Sets the value of the isExcluded property. + * + */ + public void setIsExcluded(boolean value) { + this.isExcluded = value; + } + + /** + * Gets the value of the postalCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPostalCode() { + return postalCode; + } + + /** + * Sets the value of the postalCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPostalCode(String value) { + this.postalCode = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/PricingModel.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/PricingModel.java new file mode 100644 index 0000000000..fb87abf7a3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/PricingModel.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for PricingModel. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="PricingModel">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Cpc"/>
+ *     <enumeration value="Cpm"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "PricingModel") +@XmlEnum +public enum PricingModel { + + @XmlEnumValue("Cpc") + CPC("Cpc"), + @XmlEnumValue("Cpm") + CPM("Cpm"); + private final String value; + + PricingModel(String v) { + value = v; + } + + public String value() { + return value; + } + + public static PricingModel fromValue(String v) { + for (PricingModel c: PricingModel.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductAd.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductAd.java new file mode 100644 index 0000000000..adf9211856 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductAd.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ProductAd complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ProductAd">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}Ad">
+ *       <sequence>
+ *         <element name="PromotionalText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ProductAd", propOrder = { + "promotionalText" +}) +public class ProductAd + extends Ad +{ + + @XmlElement(name = "PromotionalText", nillable = true) + protected String promotionalText; + + /** + * Gets the value of the promotionalText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPromotionalText() { + return promotionalText; + } + + /** + * Sets the value of the promotionalText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPromotionalText(String value) { + this.promotionalText = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductCondition.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductCondition.java new file mode 100644 index 0000000000..745c43184d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductCondition.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ProductCondition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ProductCondition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Attribute" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Operand" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ProductCondition", propOrder = { + "attribute", + "operand" +}) +public class ProductCondition { + + @XmlElement(name = "Attribute", nillable = true) + protected String attribute; + @XmlElement(name = "Operand", nillable = true) + protected String operand; + + /** + * Gets the value of the attribute property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAttribute() { + return attribute; + } + + /** + * Sets the value of the attribute property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAttribute(String value) { + this.attribute = value; + } + + /** + * Gets the value of the operand property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOperand() { + return operand; + } + + /** + * Sets the value of the operand property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOperand(String value) { + this.operand = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartition.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartition.java new file mode 100644 index 0000000000..171c4e36eb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartition.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ProductPartition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ProductPartition">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}Criterion">
+ *       <sequence>
+ *         <element name="Condition" type="{https://bingads.microsoft.com/CampaignManagement/v10}ProductCondition"/>
+ *         <element name="ParentCriterionId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="PartitionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}ProductPartitionType"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ProductPartition", propOrder = { + "condition", + "parentCriterionId", + "partitionType" +}) +public class ProductPartition + extends Criterion +{ + + @XmlElement(name = "Condition", required = true, nillable = true) + protected ProductCondition condition; + @XmlElement(name = "ParentCriterionId", required = true, type = Long.class, nillable = true) + protected Long parentCriterionId; + @XmlElement(name = "PartitionType", required = true) + @XmlSchemaType(name = "string") + protected ProductPartitionType partitionType; + + /** + * Gets the value of the condition property. + * + * @return + * possible object is + * {@link ProductCondition } + * + */ + public ProductCondition getCondition() { + return condition; + } + + /** + * Sets the value of the condition property. + * + * @param value + * allowed object is + * {@link ProductCondition } + * + */ + public void setCondition(ProductCondition value) { + this.condition = value; + } + + /** + * Gets the value of the parentCriterionId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getParentCriterionId() { + return parentCriterionId; + } + + /** + * Sets the value of the parentCriterionId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setParentCriterionId(Long value) { + this.parentCriterionId = value; + } + + /** + * Gets the value of the partitionType property. + * + * @return + * possible object is + * {@link ProductPartitionType } + * + */ + public ProductPartitionType getPartitionType() { + return partitionType; + } + + /** + * Sets the value of the partitionType property. + * + * @param value + * allowed object is + * {@link ProductPartitionType } + * + */ + public void setPartitionType(ProductPartitionType value) { + this.partitionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartitionType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartitionType.java new file mode 100644 index 0000000000..8768955522 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductPartitionType.java @@ -0,0 +1,51 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ProductPartitionType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="ProductPartitionType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Subdivision"/>
+ *     <enumeration value="Unit"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "ProductPartitionType") +@XmlEnum +public enum ProductPartitionType { + + @XmlEnumValue("Subdivision") + SUBDIVISION("Subdivision"), + @XmlEnumValue("Unit") + UNIT("Unit"); + private final String value; + + ProductPartitionType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ProductPartitionType fromValue(String v) { + for (ProductPartitionType c: ProductPartitionType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductScope.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductScope.java new file mode 100644 index 0000000000..dff3f11d9e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ProductScope.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ProductScope complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ProductScope">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}Criterion">
+ *       <sequence>
+ *         <element name="Conditions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfProductCondition" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ProductScope", propOrder = { + "conditions" +}) +public class ProductScope + extends Criterion +{ + + @XmlElement(name = "Conditions", nillable = true) + protected ArrayOfProductCondition conditions; + + /** + * Gets the value of the conditions property. + * + * @return + * possible object is + * {@link ArrayOfProductCondition } + * + */ + public ArrayOfProductCondition getConditions() { + return conditions; + } + + /** + * Sets the value of the conditions property. + * + * @param value + * allowed object is + * {@link ArrayOfProductCondition } + * + */ + public void setConditions(ArrayOfProductCondition value) { + this.conditions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTarget.java new file mode 100644 index 0000000000..d40f4a7d18 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for RadiusTarget complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="RadiusTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfRadiusTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RadiusTarget", propOrder = { + "bids" +}) +public class RadiusTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfRadiusTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfRadiusTargetBid } + * + */ + public ArrayOfRadiusTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfRadiusTargetBid } + * + */ + public void setBids(ArrayOfRadiusTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTargetBid.java new file mode 100644 index 0000000000..d11b7cc973 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/RadiusTargetBid.java @@ -0,0 +1,220 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for RadiusTargetBid complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="RadiusTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="IsExcluded" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="LatitudeDegrees" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ *         <element name="LongitudeDegrees" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Radius" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ *         <element name="RadiusUnit" type="{https://bingads.microsoft.com/CampaignManagement/v10}DistanceUnit"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RadiusTargetBid", propOrder = { + "bidAdjustment", + "id", + "isExcluded", + "latitudeDegrees", + "longitudeDegrees", + "name", + "radius", + "radiusUnit" +}) +public class RadiusTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "IsExcluded") + protected boolean isExcluded; + @XmlElement(name = "LatitudeDegrees") + protected double latitudeDegrees; + @XmlElement(name = "LongitudeDegrees") + protected double longitudeDegrees; + @XmlElement(name = "Name", nillable = true) + protected String name; + @XmlElement(name = "Radius") + protected double radius; + @XmlElement(name = "RadiusUnit", required = true) + @XmlSchemaType(name = "string") + protected DistanceUnit radiusUnit; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = 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 isExcluded property. + * + */ + public boolean isIsExcluded() { + return isExcluded; + } + + /** + * Sets the value of the isExcluded property. + * + */ + public void setIsExcluded(boolean value) { + this.isExcluded = value; + } + + /** + * Gets the value of the latitudeDegrees property. + * + */ + public double getLatitudeDegrees() { + return latitudeDegrees; + } + + /** + * Sets the value of the latitudeDegrees property. + * + */ + public void setLatitudeDegrees(double value) { + this.latitudeDegrees = value; + } + + /** + * Gets the value of the longitudeDegrees property. + * + */ + public double getLongitudeDegrees() { + return longitudeDegrees; + } + + /** + * Sets the value of the longitudeDegrees property. + * + */ + public void setLongitudeDegrees(double value) { + this.longitudeDegrees = 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 radius property. + * + */ + public double getRadius() { + return radius; + } + + /** + * Sets the value of the radius property. + * + */ + public void setRadius(double value) { + this.radius = value; + } + + /** + * Gets the value of the radiusUnit property. + * + * @return + * possible object is + * {@link DistanceUnit } + * + */ + public DistanceUnit getRadiusUnit() { + return radiusUnit; + } + + /** + * Sets the value of the radiusUnit property. + * + * @param value + * allowed object is + * {@link DistanceUnit } + * + */ + public void setRadiusUnit(DistanceUnit value) { + this.radiusUnit = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsRequest.java new file mode 100644 index 0000000000..1c68bd8e89 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsRequest.java @@ -0,0 +1,122 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensionIdToEntityIdAssociations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtensionIdToEntityIdAssociation" minOccurs="0"/>
+ *         <element name="AssociationType" type="{https://bingads.microsoft.com/CampaignManagement/v10}AssociationType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensionIdToEntityIdAssociations", + "associationType" +}) +@XmlRootElement(name = "SetAdExtensionsAssociationsRequest") +public class SetAdExtensionsAssociationsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensionIdToEntityIdAssociations", nillable = true) + protected ArrayOfAdExtensionIdToEntityIdAssociation adExtensionIdToEntityIdAssociations; + @XmlElement(name = "AssociationType") + @XmlSchemaType(name = "string") + protected AssociationType associationType; + + /** + * 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 adExtensionIdToEntityIdAssociations property. + * + * @return + * possible object is + * {@link ArrayOfAdExtensionIdToEntityIdAssociation } + * + */ + public ArrayOfAdExtensionIdToEntityIdAssociation getAdExtensionIdToEntityIdAssociations() { + return adExtensionIdToEntityIdAssociations; + } + + /** + * Sets the value of the adExtensionIdToEntityIdAssociations property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtensionIdToEntityIdAssociation } + * + */ + public void setAdExtensionIdToEntityIdAssociations(ArrayOfAdExtensionIdToEntityIdAssociation value) { + this.adExtensionIdToEntityIdAssociations = value; + } + + /** + * Gets the value of the associationType property. + * + * @return + * possible object is + * {@link AssociationType } + * + */ + public AssociationType getAssociationType() { + return associationType; + } + + /** + * Sets the value of the associationType property. + * + * @param value + * allowed object is + * {@link AssociationType } + * + */ + public void setAssociationType(AssociationType value) { + this.associationType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsResponse.java new file mode 100644 index 0000000000..58780c90b3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetAdExtensionsAssociationsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "SetAdExtensionsAssociationsResponse") +public class SetAdExtensionsAssociationsResponse { + + @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/v10/campaignmanagement/SetNegativeSitesToAdGroupsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToAdGroupsRequest.java new file mode 100644 index 0000000000..051e07620a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToAdGroupsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupNegativeSites" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroupNegativeSites" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId", + "adGroupNegativeSites" +}) +@XmlRootElement(name = "SetNegativeSitesToAdGroupsRequest") +public class SetNegativeSitesToAdGroupsRequest { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "AdGroupNegativeSites", nillable = true) + protected ArrayOfAdGroupNegativeSites adGroupNegativeSites; + + /** + * 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 adGroupNegativeSites property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupNegativeSites } + * + */ + public ArrayOfAdGroupNegativeSites getAdGroupNegativeSites() { + return adGroupNegativeSites; + } + + /** + * Sets the value of the adGroupNegativeSites property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupNegativeSites } + * + */ + public void setAdGroupNegativeSites(ArrayOfAdGroupNegativeSites value) { + this.adGroupNegativeSites = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToAdGroupsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToAdGroupsResponse.java new file mode 100644 index 0000000000..526c029941 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToAdGroupsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "SetNegativeSitesToAdGroupsResponse") +public class SetNegativeSitesToAdGroupsResponse { + + @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/v10/campaignmanagement/SetNegativeSitesToCampaignsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToCampaignsRequest.java new file mode 100644 index 0000000000..a8c0bf92f6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToCampaignsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="CampaignNegativeSites" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaignNegativeSites" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaignNegativeSites" +}) +@XmlRootElement(name = "SetNegativeSitesToCampaignsRequest") +public class SetNegativeSitesToCampaignsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "CampaignNegativeSites", nillable = true) + protected ArrayOfCampaignNegativeSites campaignNegativeSites; + + /** + * 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 campaignNegativeSites property. + * + * @return + * possible object is + * {@link ArrayOfCampaignNegativeSites } + * + */ + public ArrayOfCampaignNegativeSites getCampaignNegativeSites() { + return campaignNegativeSites; + } + + /** + * Sets the value of the campaignNegativeSites property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignNegativeSites } + * + */ + public void setCampaignNegativeSites(ArrayOfCampaignNegativeSites value) { + this.campaignNegativeSites = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToCampaignsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToCampaignsResponse.java new file mode 100644 index 0000000000..71b16dd3cb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetNegativeSitesToCampaignsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "SetNegativeSitesToCampaignsResponse") +public class SetNegativeSitesToCampaignsResponse { + + @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/v10/campaignmanagement/SetSharedEntityAssociationsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetSharedEntityAssociationsRequest.java new file mode 100644 index 0000000000..3f7a5b59eb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetSharedEntityAssociationsRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Associations" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedEntityAssociation" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "associations" +}) +@XmlRootElement(name = "SetSharedEntityAssociationsRequest") +public class SetSharedEntityAssociationsRequest { + + @XmlElement(name = "Associations", nillable = true) + protected ArrayOfSharedEntityAssociation associations; + + /** + * Gets the value of the associations property. + * + * @return + * possible object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public ArrayOfSharedEntityAssociation getAssociations() { + return associations; + } + + /** + * Sets the value of the associations property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedEntityAssociation } + * + */ + public void setAssociations(ArrayOfSharedEntityAssociation value) { + this.associations = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetSharedEntityAssociationsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetSharedEntityAssociationsResponse.java new file mode 100644 index 0000000000..84c4860cf4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetSharedEntityAssociationsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "SetSharedEntityAssociationsResponse") +public class SetSharedEntityAssociationsResponse { + + @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/v10/campaignmanagement/SetTargetToAdGroupRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToAdGroupRequest.java new file mode 100644 index 0000000000..2b230de9bb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToAdGroupRequest.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="TargetId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ReplaceAssociation" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "targetId", + "replaceAssociation" +}) +@XmlRootElement(name = "SetTargetToAdGroupRequest") +public class SetTargetToAdGroupRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "TargetId") + protected Long targetId; + @XmlElement(name = "ReplaceAssociation") + protected Boolean replaceAssociation; + + /** + * 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 targetId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTargetId() { + return targetId; + } + + /** + * Sets the value of the targetId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTargetId(Long value) { + this.targetId = value; + } + + /** + * Gets the value of the replaceAssociation property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getReplaceAssociation() { + return replaceAssociation; + } + + /** + * Sets the value of the replaceAssociation property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReplaceAssociation(Boolean value) { + this.replaceAssociation = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToAdGroupResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToAdGroupResponse.java new file mode 100644 index 0000000000..7d2a8ca8d8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToAdGroupResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "SetTargetToAdGroupResponse") +public class SetTargetToAdGroupResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignRequest.java new file mode 100644 index 0000000000..fe66fe64fb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignRequest.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="TargetId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="ReplaceAssociation" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId", + "targetId", + "replaceAssociation" +}) +@XmlRootElement(name = "SetTargetToCampaignRequest") +public class SetTargetToCampaignRequest { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "TargetId") + protected Long targetId; + @XmlElement(name = "ReplaceAssociation") + protected Boolean replaceAssociation; + + /** + * 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 targetId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getTargetId() { + return targetId; + } + + /** + * Sets the value of the targetId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setTargetId(Long value) { + this.targetId = value; + } + + /** + * Gets the value of the replaceAssociation property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getReplaceAssociation() { + return replaceAssociation; + } + + /** + * Sets the value of the replaceAssociation property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReplaceAssociation(Boolean value) { + this.replaceAssociation = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignResponse.java new file mode 100644 index 0000000000..149db22d38 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SetTargetToCampaignResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "SetTargetToCampaignResponse") +public class SetTargetToCampaignResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Setting.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Setting.java new file mode 100644 index 0000000000..4a76b0bdb2 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Setting.java @@ -0,0 +1,66 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Setting complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="Setting">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Setting", propOrder = { + "type" +}) +@XmlSeeAlso({ + ShoppingSetting.class +}) +public class Setting { + + @XmlElement(name = "Type", nillable = true) + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntity.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntity.java new file mode 100644 index 0000000000..4e3734edca --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntity.java @@ -0,0 +1,178 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SharedEntity complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SharedEntity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AssociationCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SharedEntity", propOrder = { + "associationCount", + "forwardCompatibilityMap", + "id", + "name", + "type" +}) +@XmlSeeAlso({ + SharedList.class +}) +public class SharedEntity { + + @XmlElement(name = "AssociationCount", required = true, type = Integer.class, nillable = true) + protected Integer associationCount; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Id", required = true, type = Long.class, nillable = true) + protected Long id; + @XmlElement(name = "Name", required = true, nillable = true) + protected String name; + @XmlElement(name = "Type", required = true, nillable = true) + protected String type; + + /** + * Gets the value of the associationCount property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getAssociationCount() { + return associationCount; + } + + /** + * Sets the value of the associationCount property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setAssociationCount(Integer value) { + this.associationCount = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = 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 type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntityAssociation.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntityAssociation.java new file mode 100644 index 0000000000..dde80f19dd --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedEntityAssociation.java @@ -0,0 +1,130 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SharedEntityAssociation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SharedEntityAssociation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="EntityId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="EntityType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="SharedEntityId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="SharedEntityType" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SharedEntityAssociation", propOrder = { + "entityId", + "entityType", + "sharedEntityId", + "sharedEntityType" +}) +public class SharedEntityAssociation { + + @XmlElement(name = "EntityId") + protected long entityId; + @XmlElement(name = "EntityType", required = true, nillable = true) + protected String entityType; + @XmlElement(name = "SharedEntityId") + protected long sharedEntityId; + @XmlElement(name = "SharedEntityType", required = true, nillable = true) + protected String sharedEntityType; + + /** + * Gets the value of the entityId property. + * + */ + public long getEntityId() { + return entityId; + } + + /** + * Sets the value of the entityId property. + * + */ + public void setEntityId(long value) { + this.entityId = value; + } + + /** + * Gets the value of the entityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEntityType() { + return entityType; + } + + /** + * Sets the value of the entityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEntityType(String value) { + this.entityType = value; + } + + /** + * Gets the value of the sharedEntityId property. + * + */ + public long getSharedEntityId() { + return sharedEntityId; + } + + /** + * Sets the value of the sharedEntityId property. + * + */ + public void setSharedEntityId(long value) { + this.sharedEntityId = value; + } + + /** + * Gets the value of the sharedEntityType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSharedEntityType() { + return sharedEntityType; + } + + /** + * Sets the value of the sharedEntityType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSharedEntityType(String value) { + this.sharedEntityType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedList.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedList.java new file mode 100644 index 0000000000..1d0fc6b7f8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedList.java @@ -0,0 +1,68 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SharedList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SharedList">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}SharedEntity">
+ *       <sequence>
+ *         <element name="ItemCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SharedList", propOrder = { + "itemCount" +}) +@XmlSeeAlso({ + NegativeKeywordList.class +}) +public class SharedList + extends SharedEntity +{ + + @XmlElement(name = "ItemCount", required = true, type = Integer.class, nillable = true) + protected Integer itemCount; + + /** + * Gets the value of the itemCount property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getItemCount() { + return itemCount; + } + + /** + * Sets the value of the itemCount property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setItemCount(Integer value) { + this.itemCount = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedListItem.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedListItem.java new file mode 100644 index 0000000000..c869f89d31 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SharedListItem.java @@ -0,0 +1,94 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SharedListItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SharedListItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Type" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SharedListItem", propOrder = { + "forwardCompatibilityMap", + "type" +}) +@XmlSeeAlso({ + NegativeKeyword.class +}) +public class SharedListItem { + + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Type", required = true, nillable = true) + protected String type; + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ShoppingSetting.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ShoppingSetting.java new file mode 100644 index 0000000000..e0d30eb8e5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ShoppingSetting.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ShoppingSetting complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ShoppingSetting">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}Setting">
+ *       <sequence>
+ *         <element name="Priority" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="SalesCountryCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="StoreId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ShoppingSetting", propOrder = { + "priority", + "salesCountryCode", + "storeId" +}) +public class ShoppingSetting + extends Setting +{ + + @XmlElement(name = "Priority", nillable = true) + protected Integer priority; + @XmlElement(name = "SalesCountryCode", nillable = true) + protected String salesCountryCode; + @XmlElement(name = "StoreId", nillable = true) + protected Long storeId; + + /** + * Gets the value of the priority property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPriority() { + return priority; + } + + /** + * Sets the value of the priority property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPriority(Integer value) { + this.priority = value; + } + + /** + * Gets the value of the salesCountryCode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSalesCountryCode() { + return salesCountryCode; + } + + /** + * Sets the value of the salesCountryCode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSalesCountryCode(String value) { + this.salesCountryCode = value; + } + + /** + * 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLink.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLink.java new file mode 100644 index 0000000000..47cd2eb2e9 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLink.java @@ -0,0 +1,314 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SiteLink complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SiteLink">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Description1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="Description2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="DestinationUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="DevicePreference" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="DisplayText" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="FinalAppUrls" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}ArrayOfAppUrl" minOccurs="0"/>
+ *         <element name="FinalMobileUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="FinalUrls" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="TrackingUrlTemplate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="UrlCustomParameters" type="{http://schemas.datacontract.org/2004/07/Microsoft.AdCenter.Advertiser.CampaignManagement.Api.DataContracts.V10}CustomParameters" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SiteLink", propOrder = { + "description1", + "description2", + "destinationUrl", + "devicePreference", + "displayText", + "finalAppUrls", + "finalMobileUrls", + "finalUrls", + "trackingUrlTemplate", + "urlCustomParameters" +}) +public class SiteLink { + + @XmlElement(name = "Description1", nillable = true) + protected String description1; + @XmlElement(name = "Description2", nillable = true) + protected String description2; + @XmlElement(name = "DestinationUrl", nillable = true) + protected String destinationUrl; + @XmlElement(name = "DevicePreference", nillable = true) + protected Long devicePreference; + @XmlElement(name = "DisplayText", required = true, nillable = true) + protected String displayText; + @XmlElement(name = "FinalAppUrls", nillable = true) + protected ArrayOfAppUrl finalAppUrls; + @XmlElement(name = "FinalMobileUrls", nillable = true) + protected ArrayOfstring finalMobileUrls; + @XmlElement(name = "FinalUrls", nillable = true) + protected ArrayOfstring finalUrls; + @XmlElement(name = "TrackingUrlTemplate", nillable = true) + protected String trackingUrlTemplate; + @XmlElement(name = "UrlCustomParameters", nillable = true) + protected CustomParameters urlCustomParameters; + + /** + * Gets the value of the description1 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription1() { + return description1; + } + + /** + * Sets the value of the description1 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription1(String value) { + this.description1 = value; + } + + /** + * Gets the value of the description2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription2() { + return description2; + } + + /** + * Sets the value of the description2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription2(String value) { + this.description2 = value; + } + + /** + * Gets the value of the destinationUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationUrl() { + return destinationUrl; + } + + /** + * Sets the value of the destinationUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationUrl(String value) { + this.destinationUrl = value; + } + + /** + * Gets the value of the devicePreference property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDevicePreference() { + return devicePreference; + } + + /** + * Sets the value of the devicePreference property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDevicePreference(Long value) { + this.devicePreference = value; + } + + /** + * Gets the value of the displayText property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayText() { + return displayText; + } + + /** + * Sets the value of the displayText property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayText(String value) { + this.displayText = value; + } + + /** + * Gets the value of the finalAppUrls property. + * + * @return + * possible object is + * {@link ArrayOfAppUrl } + * + */ + public ArrayOfAppUrl getFinalAppUrls() { + return finalAppUrls; + } + + /** + * Sets the value of the finalAppUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfAppUrl } + * + */ + public void setFinalAppUrls(ArrayOfAppUrl value) { + this.finalAppUrls = value; + } + + /** + * Gets the value of the finalMobileUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalMobileUrls() { + return finalMobileUrls; + } + + /** + * Sets the value of the finalMobileUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalMobileUrls(ArrayOfstring value) { + this.finalMobileUrls = value; + } + + /** + * Gets the value of the finalUrls property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getFinalUrls() { + return finalUrls; + } + + /** + * Sets the value of the finalUrls property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setFinalUrls(ArrayOfstring value) { + this.finalUrls = value; + } + + /** + * Gets the value of the trackingUrlTemplate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrackingUrlTemplate() { + return trackingUrlTemplate; + } + + /** + * Sets the value of the trackingUrlTemplate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrackingUrlTemplate(String value) { + this.trackingUrlTemplate = value; + } + + /** + * Gets the value of the urlCustomParameters property. + * + * @return + * possible object is + * {@link CustomParameters } + * + */ + public CustomParameters getUrlCustomParameters() { + return urlCustomParameters; + } + + /** + * Sets the value of the urlCustomParameters property. + * + * @param value + * allowed object is + * {@link CustomParameters } + * + */ + public void setUrlCustomParameters(CustomParameters value) { + this.urlCustomParameters = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLinksAdExtension.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLinksAdExtension.java new file mode 100644 index 0000000000..c8be28bcc3 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SiteLinksAdExtension.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SiteLinksAdExtension complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SiteLinksAdExtension">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}AdExtension">
+ *       <sequence>
+ *         <element name="SiteLinks" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSiteLink"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SiteLinksAdExtension", propOrder = { + "siteLinks" +}) +public class SiteLinksAdExtension + extends AdExtension +{ + + @XmlElement(name = "SiteLinks", required = true, nillable = true) + protected ArrayOfSiteLink siteLinks; + + /** + * Gets the value of the siteLinks property. + * + * @return + * possible object is + * {@link ArrayOfSiteLink } + * + */ + public ArrayOfSiteLink getSiteLinks() { + return siteLinks; + } + + /** + * Sets the value of the siteLinks property. + * + * @param value + * allowed object is + * {@link ArrayOfSiteLink } + * + */ + public void setSiteLinks(ArrayOfSiteLink value) { + this.siteLinks = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacement.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacement.java new file mode 100644 index 0000000000..8071f9d39c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacement.java @@ -0,0 +1,176 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SitePlacement complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="SitePlacement">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bid" type="{https://bingads.microsoft.com/CampaignManagement/v10}Bid" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="PlacementId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Status" type="{https://bingads.microsoft.com/CampaignManagement/v10}SitePlacementStatus" minOccurs="0"/>
+ *         <element name="Url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "SitePlacement", propOrder = { + "bid", + "id", + "placementId", + "status", + "url" +}) +public class SitePlacement { + + @XmlElement(name = "Bid", nillable = true) + protected Bid bid; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "PlacementId", nillable = true) + protected Long placementId; + @XmlElement(name = "Status", nillable = true) + @XmlSchemaType(name = "string") + protected SitePlacementStatus status; + @XmlElement(name = "Url", nillable = true) + protected String url; + + /** + * Gets the value of the bid property. + * + * @return + * possible object is + * {@link Bid } + * + */ + public Bid getBid() { + return bid; + } + + /** + * Sets the value of the bid property. + * + * @param value + * allowed object is + * {@link Bid } + * + */ + public void setBid(Bid value) { + this.bid = 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 placementId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getPlacementId() { + return placementId; + } + + /** + * Sets the value of the placementId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setPlacementId(Long value) { + this.placementId = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link SitePlacementStatus } + * + */ + public SitePlacementStatus getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link SitePlacementStatus } + * + */ + public void setStatus(SitePlacementStatus value) { + this.status = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacementStatus.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacementStatus.java new file mode 100644 index 0000000000..816c7a0c4a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/SitePlacementStatus.java @@ -0,0 +1,57 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SitePlacementStatus. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="SitePlacementStatus">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Active"/>
+ *     <enumeration value="Paused"/>
+ *     <enumeration value="Deleted"/>
+ *     <enumeration value="Inactive"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "SitePlacementStatus") +@XmlEnum +public enum SitePlacementStatus { + + @XmlEnumValue("Active") + ACTIVE("Active"), + @XmlEnumValue("Paused") + PAUSED("Paused"), + @XmlEnumValue("Deleted") + DELETED("Deleted"), + @XmlEnumValue("Inactive") + INACTIVE("Inactive"); + private final String value; + + SitePlacementStatus(String v) { + value = v; + } + + public String value() { + return value; + } + + public static SitePlacementStatus fromValue(String v) { + for (SitePlacementStatus c: SitePlacementStatus.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/StateTarget.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/StateTarget.java new file mode 100644 index 0000000000..4982889ed8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/StateTarget.java @@ -0,0 +1,62 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for StateTarget complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="StateTarget">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Bids" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfStateTargetBid"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "StateTarget", propOrder = { + "bids" +}) +public class StateTarget { + + @XmlElement(name = "Bids", required = true, nillable = true) + protected ArrayOfStateTargetBid bids; + + /** + * Gets the value of the bids property. + * + * @return + * possible object is + * {@link ArrayOfStateTargetBid } + * + */ + public ArrayOfStateTargetBid getBids() { + return bids; + } + + /** + * Sets the value of the bids property. + * + * @param value + * allowed object is + * {@link ArrayOfStateTargetBid } + * + */ + public void setBids(ArrayOfStateTargetBid value) { + this.bids = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/StateTargetBid.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/StateTargetBid.java new file mode 100644 index 0000000000..3bcd5cf3d7 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/StateTargetBid.java @@ -0,0 +1,102 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for StateTargetBid complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="StateTargetBid">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="BidAdjustment" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="IsExcluded" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="State" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "StateTargetBid", propOrder = { + "bidAdjustment", + "isExcluded", + "state" +}) +public class StateTargetBid { + + @XmlElement(name = "BidAdjustment") + protected int bidAdjustment; + @XmlElement(name = "IsExcluded") + protected boolean isExcluded; + @XmlElement(name = "State", required = true, nillable = true) + protected String state; + + /** + * Gets the value of the bidAdjustment property. + * + */ + public int getBidAdjustment() { + return bidAdjustment; + } + + /** + * Sets the value of the bidAdjustment property. + * + */ + public void setBidAdjustment(int value) { + this.bidAdjustment = value; + } + + /** + * Gets the value of the isExcluded property. + * + */ + public boolean isIsExcluded() { + return isExcluded; + } + + /** + * Sets the value of the isExcluded property. + * + */ + public void setIsExcluded(boolean value) { + this.isExcluded = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setState(String value) { + this.state = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/Target.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/Target.java new file mode 100644 index 0000000000..3a298c2b30 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/Target.java @@ -0,0 +1,286 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Target complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="Target">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Age" type="{https://bingads.microsoft.com/CampaignManagement/v10}AgeTarget" minOccurs="0"/>
+ *         <element name="DayTime" type="{https://bingads.microsoft.com/CampaignManagement/v10}DayTimeTarget" minOccurs="0"/>
+ *         <element name="DeviceOS" type="{https://bingads.microsoft.com/CampaignManagement/v10}DeviceOSTarget" minOccurs="0"/>
+ *         <element name="ForwardCompatibilityMap" type="{http://schemas.datacontract.org/2004/07/System.Collections.Generic}ArrayOfKeyValuePairOfstringstring" minOccurs="0"/>
+ *         <element name="Gender" type="{https://bingads.microsoft.com/CampaignManagement/v10}GenderTarget" minOccurs="0"/>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="IsLibraryTarget" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *         <element name="Location" type="{https://bingads.microsoft.com/CampaignManagement/v10}LocationTarget" minOccurs="0"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Target", propOrder = { + "age", + "dayTime", + "deviceOS", + "forwardCompatibilityMap", + "gender", + "id", + "isLibraryTarget", + "location", + "name" +}) +public class Target { + + @XmlElement(name = "Age", nillable = true) + protected AgeTarget age; + @XmlElement(name = "DayTime", nillable = true) + protected DayTimeTarget dayTime; + @XmlElement(name = "DeviceOS", nillable = true) + protected DeviceOSTarget deviceOS; + @XmlElement(name = "ForwardCompatibilityMap", nillable = true) + protected ArrayOfKeyValuePairOfstringstring forwardCompatibilityMap; + @XmlElement(name = "Gender", nillable = true) + protected GenderTarget gender; + @XmlElement(name = "Id", nillable = true) + protected Long id; + @XmlElement(name = "IsLibraryTarget", nillable = true) + protected Boolean isLibraryTarget; + @XmlElement(name = "Location", nillable = true) + protected LocationTarget location; + @XmlElement(name = "Name", nillable = true) + protected String name; + + /** + * Gets the value of the age property. + * + * @return + * possible object is + * {@link AgeTarget } + * + */ + public AgeTarget getAge() { + return age; + } + + /** + * Sets the value of the age property. + * + * @param value + * allowed object is + * {@link AgeTarget } + * + */ + public void setAge(AgeTarget value) { + this.age = value; + } + + /** + * Gets the value of the dayTime property. + * + * @return + * possible object is + * {@link DayTimeTarget } + * + */ + public DayTimeTarget getDayTime() { + return dayTime; + } + + /** + * Sets the value of the dayTime property. + * + * @param value + * allowed object is + * {@link DayTimeTarget } + * + */ + public void setDayTime(DayTimeTarget value) { + this.dayTime = value; + } + + /** + * Gets the value of the deviceOS property. + * + * @return + * possible object is + * {@link DeviceOSTarget } + * + */ + public DeviceOSTarget getDeviceOS() { + return deviceOS; + } + + /** + * Sets the value of the deviceOS property. + * + * @param value + * allowed object is + * {@link DeviceOSTarget } + * + */ + public void setDeviceOS(DeviceOSTarget value) { + this.deviceOS = value; + } + + /** + * Gets the value of the forwardCompatibilityMap property. + * + * @return + * possible object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public ArrayOfKeyValuePairOfstringstring getForwardCompatibilityMap() { + return forwardCompatibilityMap; + } + + /** + * Sets the value of the forwardCompatibilityMap property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyValuePairOfstringstring } + * + */ + public void setForwardCompatibilityMap(ArrayOfKeyValuePairOfstringstring value) { + this.forwardCompatibilityMap = value; + } + + /** + * Gets the value of the gender property. + * + * @return + * possible object is + * {@link GenderTarget } + * + */ + public GenderTarget getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value + * allowed object is + * {@link GenderTarget } + * + */ + public void setGender(GenderTarget value) { + this.gender = 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 isLibraryTarget property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getIsLibraryTarget() { + return isLibraryTarget; + } + + /** + * Sets the value of the isLibraryTarget property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsLibraryTarget(Boolean value) { + this.isLibraryTarget = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link LocationTarget } + * + */ + public LocationTarget getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link LocationTarget } + * + */ + public void setLocation(LocationTarget value) { + this.location = 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/TargetInfo.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/TargetInfo.java new file mode 100644 index 0000000000..47bbcf462a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/TargetInfo.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for TargetInfo complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="TargetInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TargetInfo", propOrder = { + "id", + "name" +}) +public class TargetInfo { + + @XmlElement(name = "Id") + protected Long id; + @XmlElement(name = "Name", required = true, nillable = true) + protected String name; + + /** + * 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; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/TextAd.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/TextAd.java new file mode 100644 index 0000000000..db426d5e2e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/TextAd.java @@ -0,0 +1,148 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for TextAd complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="TextAd">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/CampaignManagement/v10}Ad">
+ *       <sequence>
+ *         <element name="DestinationUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="DisplayUrl" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="Text" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="Title" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "TextAd", propOrder = { + "destinationUrl", + "displayUrl", + "text", + "title" +}) +public class TextAd + extends Ad +{ + + @XmlElement(name = "DestinationUrl", nillable = true) + protected String destinationUrl; + @XmlElement(name = "DisplayUrl", required = true, nillable = true) + protected String displayUrl; + @XmlElement(name = "Text", required = true, nillable = true) + protected String text; + @XmlElement(name = "Title", required = true, nillable = true) + protected String title; + + /** + * Gets the value of the destinationUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestinationUrl() { + return destinationUrl; + } + + /** + * Sets the value of the destinationUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestinationUrl(String value) { + this.destinationUrl = value; + } + + /** + * Gets the value of the displayUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayUrl() { + return displayUrl; + } + + /** + * Sets the value of the displayUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayUrl(String value) { + this.displayUrl = value; + } + + /** + * Gets the value of the text property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setText(String value) { + this.text = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UnsignedLong.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UnsignedLong.java new file mode 100644 index 0000000000..0213670714 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UnsignedLong.java @@ -0,0 +1,60 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for unsignedLong simple type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <simpleType name="unsignedLong">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger">
+ *     <maxInclusive value="18446744073709551615"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "unsignedLong", namespace = "http://www.w3.org/2001/XMLSchema", propOrder = { + "value" +}) +public class UnsignedLong { + + @XmlValue + @XmlSchemaType(name = "unsignedLong") + protected NonNegativeInteger value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link NonNegativeInteger } + * + */ + public NonNegativeInteger getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link NonNegativeInteger } + * + */ + public void setValue(NonNegativeInteger value) { + this.value = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsRequest.java new file mode 100644 index 0000000000..98cb57f861 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdExtensions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdExtension" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adExtensions" +}) +@XmlRootElement(name = "UpdateAdExtensionsRequest") +public class UpdateAdExtensionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdExtensions", nillable = true) + protected ArrayOfAdExtension adExtensions; + + /** + * 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 adExtensions property. + * + * @return + * possible object is + * {@link ArrayOfAdExtension } + * + */ + public ArrayOfAdExtension getAdExtensions() { + return adExtensions; + } + + /** + * Sets the value of the adExtensions property. + * + * @param value + * allowed object is + * {@link ArrayOfAdExtension } + * + */ + public void setAdExtensions(ArrayOfAdExtension value) { + this.adExtensions = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsResponse.java new file mode 100644 index 0000000000..2328489a22 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdExtensionsResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "UpdateAdExtensionsResponse") +public class UpdateAdExtensionsResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsRequest.java new file mode 100644 index 0000000000..bb5dd0f71a --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsRequest.java @@ -0,0 +1,125 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroupCriterions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroupCriterion" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "adGroupCriterions", + "criterionType" +}) +@XmlRootElement(name = "UpdateAdGroupCriterionsRequest") +public class UpdateAdGroupCriterionsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "AdGroupCriterions", nillable = true) + protected ArrayOfAdGroupCriterion adGroupCriterions; + @XmlElement(name = "CriterionType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter7 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * 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 adGroupCriterions property. + * + * @return + * possible object is + * {@link ArrayOfAdGroupCriterion } + * + */ + public ArrayOfAdGroupCriterion getAdGroupCriterions() { + return adGroupCriterions; + } + + /** + * Sets the value of the adGroupCriterions property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroupCriterion } + * + */ + public void setAdGroupCriterions(ArrayOfAdGroupCriterion value) { + this.adGroupCriterions = value; + } + + /** + * Gets the value of the criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsResponse.java new file mode 100644 index 0000000000..38352b2438 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupCriterionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="NestedPartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchErrorCollection" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "nestedPartialErrors" +}) +@XmlRootElement(name = "UpdateAdGroupCriterionsResponse") +public class UpdateAdGroupCriterionsResponse { + + @XmlElement(name = "NestedPartialErrors", nillable = true) + protected ArrayOfBatchErrorCollection nestedPartialErrors; + + /** + * Gets the value of the nestedPartialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public ArrayOfBatchErrorCollection getNestedPartialErrors() { + return nestedPartialErrors; + } + + /** + * Sets the value of the nestedPartialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public void setNestedPartialErrors(ArrayOfBatchErrorCollection value) { + this.nestedPartialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsRequest.java new file mode 100644 index 0000000000..a4c461350d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsRequest.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="AdGroups" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAdGroup" minOccurs="0"/>
+ *         <element name="UpdateNativeBidAdjustment" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignId", + "adGroups", + "updateNativeBidAdjustment" +}) +@XmlRootElement(name = "UpdateAdGroupsRequest") +public class UpdateAdGroupsRequest { + + @XmlElement(name = "CampaignId") + protected Long campaignId; + @XmlElement(name = "AdGroups", nillable = true) + protected ArrayOfAdGroup adGroups; + @XmlElement(name = "UpdateNativeBidAdjustment") + protected Boolean updateNativeBidAdjustment; + + /** + * 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 adGroups property. + * + * @return + * possible object is + * {@link ArrayOfAdGroup } + * + */ + public ArrayOfAdGroup getAdGroups() { + return adGroups; + } + + /** + * Sets the value of the adGroups property. + * + * @param value + * allowed object is + * {@link ArrayOfAdGroup } + * + */ + public void setAdGroups(ArrayOfAdGroup value) { + this.adGroups = value; + } + + /** + * Gets the value of the updateNativeBidAdjustment property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean getUpdateNativeBidAdjustment() { + return updateNativeBidAdjustment; + } + + /** + * Sets the value of the updateNativeBidAdjustment property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUpdateNativeBidAdjustment(Boolean value) { + this.updateNativeBidAdjustment = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsResponse.java new file mode 100644 index 0000000000..832344aab1 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdGroupsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "UpdateAdGroupsResponse") +public class UpdateAdGroupsResponse { + + @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/v10/campaignmanagement/UpdateAdsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdsRequest.java new file mode 100644 index 0000000000..3a79fb953e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Ads" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfAd" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "ads" +}) +@XmlRootElement(name = "UpdateAdsRequest") +public class UpdateAdsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "Ads", nillable = true) + protected ArrayOfAd ads; + + /** + * 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 ads property. + * + * @return + * possible object is + * {@link ArrayOfAd } + * + */ + public ArrayOfAd getAds() { + return ads; + } + + /** + * Sets the value of the ads property. + * + * @param value + * allowed object is + * {@link ArrayOfAd } + * + */ + public void setAds(ArrayOfAd value) { + this.ads = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdsResponse.java new file mode 100644 index 0000000000..851ef7a793 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateAdsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "UpdateAdsResponse") +public class UpdateAdsResponse { + + @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/v10/campaignmanagement/UpdateCampaignCriterionsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignCriterionsRequest.java new file mode 100644 index 0000000000..b44f22ec0f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignCriterionsRequest.java @@ -0,0 +1,97 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import java.util.Collection; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="CampaignCriterions" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaignCriterion" minOccurs="0"/>
+ *         <element name="CriterionType" type="{https://bingads.microsoft.com/CampaignManagement/v10}CampaignCriterionType" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "campaignCriterions", + "criterionType" +}) +@XmlRootElement(name = "UpdateCampaignCriterionsRequest") +public class UpdateCampaignCriterionsRequest { + + @XmlElement(name = "CampaignCriterions", nillable = true) + protected ArrayOfCampaignCriterion campaignCriterions; + @XmlElement(name = "CriterionType", type = String.class) + @XmlJavaTypeAdapter(Adapter2 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection criterionType; + + /** + * Gets the value of the campaignCriterions property. + * + * @return + * possible object is + * {@link ArrayOfCampaignCriterion } + * + */ + public ArrayOfCampaignCriterion getCampaignCriterions() { + return campaignCriterions; + } + + /** + * Sets the value of the campaignCriterions property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaignCriterion } + * + */ + public void setCampaignCriterions(ArrayOfCampaignCriterion value) { + this.campaignCriterions = value; + } + + /** + * Gets the value of the criterionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getCriterionType() { + return criterionType; + } + + /** + * Sets the value of the criterionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCriterionType(Collection value) { + this.criterionType = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignCriterionsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignCriterionsResponse.java new file mode 100644 index 0000000000..a23537246e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignCriterionsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="NestedPartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchErrorCollection" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "nestedPartialErrors" +}) +@XmlRootElement(name = "UpdateCampaignCriterionsResponse") +public class UpdateCampaignCriterionsResponse { + + @XmlElement(name = "NestedPartialErrors", nillable = true) + protected ArrayOfBatchErrorCollection nestedPartialErrors; + + /** + * Gets the value of the nestedPartialErrors property. + * + * @return + * possible object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public ArrayOfBatchErrorCollection getNestedPartialErrors() { + return nestedPartialErrors; + } + + /** + * Sets the value of the nestedPartialErrors property. + * + * @param value + * allowed object is + * {@link ArrayOfBatchErrorCollection } + * + */ + public void setNestedPartialErrors(ArrayOfBatchErrorCollection value) { + this.nestedPartialErrors = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsRequest.java new file mode 100644 index 0000000000..1ebb31f9d5 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AccountId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Campaigns" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfCampaign" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accountId", + "campaigns" +}) +@XmlRootElement(name = "UpdateCampaignsRequest") +public class UpdateCampaignsRequest { + + @XmlElement(name = "AccountId") + protected Long accountId; + @XmlElement(name = "Campaigns", nillable = true) + protected ArrayOfCampaign campaigns; + + /** + * 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 campaigns property. + * + * @return + * possible object is + * {@link ArrayOfCampaign } + * + */ + public ArrayOfCampaign getCampaigns() { + return campaigns; + } + + /** + * Sets the value of the campaigns property. + * + * @param value + * allowed object is + * {@link ArrayOfCampaign } + * + */ + public void setCampaigns(ArrayOfCampaign value) { + this.campaigns = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsResponse.java new file mode 100644 index 0000000000..1c0c20532f --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateCampaignsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "UpdateCampaignsResponse") +public class UpdateCampaignsResponse { + + @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/v10/campaignmanagement/UpdateKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateKeywordsRequest.java new file mode 100644 index 0000000000..2516df5f1d --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateKeywordsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="Keywords" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfKeyword" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "keywords" +}) +@XmlRootElement(name = "UpdateKeywordsRequest") +public class UpdateKeywordsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "Keywords", nillable = true) + protected ArrayOfKeyword keywords; + + /** + * 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 keywords property. + * + * @return + * possible object is + * {@link ArrayOfKeyword } + * + */ + public ArrayOfKeyword getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link ArrayOfKeyword } + * + */ + public void setKeywords(ArrayOfKeyword value) { + this.keywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateKeywordsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateKeywordsResponse.java new file mode 100644 index 0000000000..2ec782101e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateKeywordsResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "UpdateKeywordsResponse") +public class UpdateKeywordsResponse { + + @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/v10/campaignmanagement/UpdateSharedEntitiesRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSharedEntitiesRequest.java new file mode 100644 index 0000000000..b439555f2b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSharedEntitiesRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SharedEntities" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSharedEntity" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "sharedEntities" +}) +@XmlRootElement(name = "UpdateSharedEntitiesRequest") +public class UpdateSharedEntitiesRequest { + + @XmlElement(name = "SharedEntities", nillable = true) + protected ArrayOfSharedEntity sharedEntities; + + /** + * Gets the value of the sharedEntities property. + * + * @return + * possible object is + * {@link ArrayOfSharedEntity } + * + */ + public ArrayOfSharedEntity getSharedEntities() { + return sharedEntities; + } + + /** + * Sets the value of the sharedEntities property. + * + * @param value + * allowed object is + * {@link ArrayOfSharedEntity } + * + */ + public void setSharedEntities(ArrayOfSharedEntity value) { + this.sharedEntities = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSharedEntitiesResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSharedEntitiesResponse.java new file mode 100644 index 0000000000..26f89e425c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSharedEntitiesResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="PartialErrors" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfBatchError" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "partialErrors" +}) +@XmlRootElement(name = "UpdateSharedEntitiesResponse") +public class UpdateSharedEntitiesResponse { + + @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/v10/campaignmanagement/UpdateSitePlacementsRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSitePlacementsRequest.java new file mode 100644 index 0000000000..c3d383e466 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSitePlacementsRequest.java @@ -0,0 +1,92 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="SitePlacements" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfSitePlacement" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "adGroupId", + "sitePlacements" +}) +@XmlRootElement(name = "UpdateSitePlacementsRequest") +public class UpdateSitePlacementsRequest { + + @XmlElement(name = "AdGroupId") + protected Long adGroupId; + @XmlElement(name = "SitePlacements", nillable = true) + protected ArrayOfSitePlacement sitePlacements; + + /** + * 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 sitePlacements property. + * + * @return + * possible object is + * {@link ArrayOfSitePlacement } + * + */ + public ArrayOfSitePlacement getSitePlacements() { + return sitePlacements; + } + + /** + * Sets the value of the sitePlacements property. + * + * @param value + * allowed object is + * {@link ArrayOfSitePlacement } + * + */ + public void setSitePlacements(ArrayOfSitePlacement value) { + this.sitePlacements = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSitePlacementsResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSitePlacementsResponse.java new file mode 100644 index 0000000000..5ea83dc421 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateSitePlacementsResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "UpdateSitePlacementsResponse") +public class UpdateSitePlacementsResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryRequest.java new file mode 100644 index 0000000000..210631a640 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Targets" type="{https://bingads.microsoft.com/CampaignManagement/v10}ArrayOfTarget" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "targets" +}) +@XmlRootElement(name = "UpdateTargetsInLibraryRequest") +public class UpdateTargetsInLibraryRequest { + + @XmlElement(name = "Targets", nillable = true) + protected ArrayOfTarget targets; + + /** + * Gets the value of the targets property. + * + * @return + * possible object is + * {@link ArrayOfTarget } + * + */ + public ArrayOfTarget getTargets() { + return targets; + } + + /** + * Sets the value of the targets property. + * + * @param value + * allowed object is + * {@link ArrayOfTarget } + * + */ + public void setTargets(ArrayOfTarget value) { + this.targets = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryResponse.java new file mode 100644 index 0000000000..6f3df9dc20 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/UpdateTargetsInLibraryResponse.java @@ -0,0 +1,34 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "UpdateTargetsInLibraryResponse") +public class UpdateTargetsInLibraryResponse { + + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/package-info.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/package-info.java new file mode 100644 index 0000000000..bf46acdeae --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "https://bingads.microsoft.com/CampaignManagement/v10", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package com.microsoft.bingads.v10.campaignmanagement; diff --git a/proxies/generateAllServiceProxies.bat b/proxies/generateAllServiceProxies.bat index 3380b14b76..98164c8a1d 100644 --- a/proxies/generateAllServiceProxies.bat +++ b/proxies/generateAllServiceProxies.bat @@ -8,6 +8,12 @@ if exist ..\tools\WsdlEnumGenerator\bin\Debug\WsdlEnumGenerator.exe ( call generateProxy customermanagement https://clientcenter.api.sandbox.bingads.microsoft.com/Api/CustomerManagement/v9/CustomerManagementService.svc call generateProxy optimizer https://api.sandbox.bingads.microsoft.com/Api/Advertiser/Optimizer/v9/OptimizerService.svc call generateProxy reporting https://api.sandbox.bingads.microsoft.com/Api/Advertiser/Reporting/v9/ReportingService.svc + + + call generateProxy v10.campaignmanagement https://campaign.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/CampaignManagementService.svc + call generateProxy v10.bulk https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/BulkService.svc + call generateProxy v10.adinsight https://adinsight.api.sandbox.bingads.microsoft.com/Api/Advertiser/AdInsight/V10/AdInsightService.svc + ) else ( echo Please build ..\tools\WsdlEnumGenerator\WsdlEnumGenerator.csproj first ) \ No newline at end of file diff --git a/proxies/jaxb-bindings-reporting.xml b/proxies/jaxb-bindings-reporting.xml index 5196d7ddd1..4b13db0e2d 100644 --- a/proxies/jaxb-bindings-reporting.xml +++ b/proxies/jaxb-bindings-reporting.xml @@ -1,20 +1,11 @@  - - - - - - - - - - - + + @@ -22,21 +13,30 @@ + + + + + + - - - + + + + + + diff --git a/proxies/jaxb-bindings-v10.adinsight.xml b/proxies/jaxb-bindings-v10.adinsight.xml new file mode 100644 index 0000000000..a861d624a8 --- /dev/null +++ b/proxies/jaxb-bindings-v10.adinsight.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/proxies/jaxb-bindings-v10.bulk.xml b/proxies/jaxb-bindings-v10.bulk.xml new file mode 100644 index 0000000000..1d0f8e4333 --- /dev/null +++ b/proxies/jaxb-bindings-v10.bulk.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/proxies/jaxb-bindings-v10.campaignmanagement.xml b/proxies/jaxb-bindings-v10.campaignmanagement.xml new file mode 100644 index 0000000000..52ea997dcf --- /dev/null +++ b/proxies/jaxb-bindings-v10.campaignmanagement.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/proxies/jaxws-bindings-v10.adinsight.xml b/proxies/jaxws-bindings-v10.adinsight.xml new file mode 100644 index 0000000000..24dc84491d --- /dev/null +++ b/proxies/jaxws-bindings-v10.adinsight.xml @@ -0,0 +1,11 @@ + + + true + false + + + + + + + \ No newline at end of file diff --git a/proxies/jaxws-bindings-v10.bulk.xml b/proxies/jaxws-bindings-v10.bulk.xml new file mode 100644 index 0000000000..24838f4227 --- /dev/null +++ b/proxies/jaxws-bindings-v10.bulk.xml @@ -0,0 +1,11 @@ + + + true + false + + + + + + + \ No newline at end of file diff --git a/proxies/jaxws-bindings-v10.campaignmanagement.xml b/proxies/jaxws-bindings-v10.campaignmanagement.xml new file mode 100644 index 0000000000..ce9591db15 --- /dev/null +++ b/proxies/jaxws-bindings-v10.campaignmanagement.xml @@ -0,0 +1,14 @@ + + + true + false + + + + + + + + + + \ No newline at end of file From 0a67ea84ad884f0fc2c2c9d996262cde65bf761e Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Sun, 20 Sep 2015 14:12:12 +0800 Subject: [PATCH 3/9] update version to 10.4.1 --- README.md | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a76451df8..e08f87e590 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bing Ads Java SDK -The Bing Ads Java Software Development Kit (SDK) Version 9.3 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. +The Bing Ads Java Software Development Kit (SDK) Version 10.4 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. #Getting Started To get started developing Bing Ads applications with Java, install the SDK and either start with the [examples](https://github.com/bing-ads-sdk/BingAds-Java-SDK/tree/master/examples/) or follow one of the application walkthroughs on MSDN. For more information, see [Getting Started Using Java with Bing Ads Services](https://msdn.microsoft.com/en-US/library/bing-ads-overview-getting-started-java-with-web-services.aspx). @@ -12,7 +12,7 @@ The Bing Ads Java SDK includes and depends on the microsoft.bingads Maven artifa com.microsoft.bingads microsoft.bingads - 9.3.5 + 10.4.1 ``` 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 fc7a554ee7..795226966e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 com.microsoft.bingads - 9.3.5 + 10.4.1 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/bing-ads-sdk/BingAds-Java-SDK From 6d0ad26f19bdc84ee50d09b7d1c8be3bebf0504e Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Sun, 20 Sep 2015 14:16:58 +0800 Subject: [PATCH 4/9] Revert "update version to 10.4.1" This reverts commit 0a67ea84ad884f0fc2c2c9d996262cde65bf761e. --- README.md | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e08f87e590..2a76451df8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bing Ads Java SDK -The Bing Ads Java Software Development Kit (SDK) Version 10.4 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. +The Bing Ads Java Software Development Kit (SDK) Version 9.3 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. #Getting Started To get started developing Bing Ads applications with Java, install the SDK and either start with the [examples](https://github.com/bing-ads-sdk/BingAds-Java-SDK/tree/master/examples/) or follow one of the application walkthroughs on MSDN. For more information, see [Getting Started Using Java with Bing Ads Services](https://msdn.microsoft.com/en-US/library/bing-ads-overview-getting-started-java-with-web-services.aspx). @@ -12,7 +12,7 @@ The Bing Ads Java SDK includes and depends on the microsoft.bingads Maven artifa com.microsoft.bingads microsoft.bingads - 10.4.1 + 9.3.5 ``` 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 795226966e..fc7a554ee7 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 com.microsoft.bingads - 10.4.1 + 9.3.5 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/bing-ads-sdk/BingAds-Java-SDK From fe8e57952314c051ecf634273932491759da06f4 Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Sun, 20 Sep 2015 14:19:34 +0800 Subject: [PATCH 5/9] Update version in doc to 10.4.1 Update version in doc to 10.4.1 --- README.md | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a76451df8..a415f19054 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bing Ads Java SDK -The Bing Ads Java Software Development Kit (SDK) Version 9.3 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. +The Bing Ads Java Software Development Kit (SDK) Version 1..4 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. #Getting Started To get started developing Bing Ads applications with Java, install the SDK and either start with the [examples](https://github.com/bing-ads-sdk/BingAds-Java-SDK/tree/master/examples/) or follow one of the application walkthroughs on MSDN. For more information, see [Getting Started Using Java with Bing Ads Services](https://msdn.microsoft.com/en-US/library/bing-ads-overview-getting-started-java-with-web-services.aspx). @@ -12,7 +12,7 @@ The Bing Ads Java SDK includes and depends on the microsoft.bingads Maven artifa com.microsoft.bingads microsoft.bingads - 9.3.5 + 10.4.1 ``` 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 fc7a554ee7..795226966e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ 4.0.0 com.microsoft.bingads - 9.3.5 + 10.4.1 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/bing-ads-sdk/BingAds-Java-SDK From 3a98e26810449e57f4fedaf47005d802afcd6e90 Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Sun, 20 Sep 2015 14:25:24 +0800 Subject: [PATCH 6/9] Update the WsdlEnumGenerator To support the input with version, such as "v10.bulk" --- tools/WsdlEnumGenerator/Program.cs | 24 +++++++++++++------ .../WsdlEnumGenerator.csproj.user | 12 +++++++++- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/tools/WsdlEnumGenerator/Program.cs b/tools/WsdlEnumGenerator/Program.cs index 429a80c450..e240ef8a5d 100644 --- a/tools/WsdlEnumGenerator/Program.cs +++ b/tools/WsdlEnumGenerator/Program.cs @@ -15,9 +15,9 @@ static void Main(string[] args) try { var packageName = args[0]; - + var svcUrl = args[1]; - + ProcessWsdl(svcUrl, packageName); } catch (Exception ex) @@ -30,12 +30,21 @@ static void Main(string[] args) private static void ProcessWsdl(string svcUrl, string packageName) { - var xsdDoc = XDocument.Load(svcUrl + "?singleWsdl"); + var packagePath = packageName.Replace(".", "\\"); + var xsdDoc = XDocument.Load(svcUrl + "?singleWsdl"); + XNamespace ns = "http://www.w3.org/2001/XMLSchema"; - + var simpleTypes = xsdDoc.Descendants(ns + "simpleType"); + var packageDirectory = Path.Combine(@"com\microsoft\bingads", packagePath); + if (!Directory.Exists(packageDirectory)) + { + // Create the directory it does not exist. + Directory.CreateDirectory(packageDirectory); + } + foreach (var x in from simpleType in simpleTypes let list = simpleType.Element(ns + "list") @@ -52,13 +61,13 @@ from simpleType in simpleTypes Console.WriteLine(enumDefinition); - File.WriteAllText(Path.Combine(@"com\microsoft\bingads", packageName, x.Name + ".java"), enumDefinition); + File.WriteAllText(Path.Combine(packageDirectory, x.Name + ".java"), enumDefinition); var converterDefinition = GenerateConverterDefinition(x.Name, packageName); Console.WriteLine(converterDefinition); - File.WriteAllText(Path.Combine(@"com\microsoft\bingads", packageName, x.Name + "Converter.java"), converterDefinition); + File.WriteAllText(Path.Combine(packageDirectory, x.Name + "Converter.java"), converterDefinition); var elementNamespace = GetNamespaceForElement(x.Element); @@ -82,7 +91,7 @@ private static string GetNamespaceForElement(XElement xElement) return (string)parent.Attribute("targetNamespace"); } - + private static string GetXsdUrl(string svcUrl, string elementNamespace) { XNamespace xsd = "http://www.w3.org/2001/XMLSchema"; @@ -99,6 +108,7 @@ private static string GetXsdUrl(string svcUrl, string elementNamespace) private static void AddCustomBinding(string xsdUrl, string name, string packageName) { + var bindingsFileName = "jaxb-bindings-" + packageName + ".xml"; if (!File.Exists(bindingsFileName)) diff --git a/tools/WsdlEnumGenerator/WsdlEnumGenerator.csproj.user b/tools/WsdlEnumGenerator/WsdlEnumGenerator.csproj.user index b371afbeb8..31d0839bab 100644 --- a/tools/WsdlEnumGenerator/WsdlEnumGenerator.csproj.user +++ b/tools/WsdlEnumGenerator/WsdlEnumGenerator.csproj.user @@ -1,6 +1,16 @@  - bulk https://api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v9/BulkService.svc + v10.bulk https://bulk.api.sandbox.bingads.microsoft.com/Api/Advertiser/CampaignManagement/v10/BulkService.svc + + + + + + + + + en-US + false \ No newline at end of file From a19f4abfccc46dbcd55492def2abe92efbc1d49d Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Wed, 21 Oct 2015 15:57:15 +0800 Subject: [PATCH 7/9] Update proxy files --- .../IAdIntelligenceService.java | 44 +-- .../GetConfigValueRequest.java | 64 ++++ .../GetConfigValueResponse.java | 64 ++++ .../ICampaignManagementService.java | 123 +++++--- .../campaignmanagement/ObjectFactory.java | 48 ++- .../ICustomerBillingService.java | 4 +- .../ICustomerManagementService.java | 66 ++--- .../bingads/optimizer/IOptimizerService.java | 16 +- .../bingads/reporting/AdTypeReportFilter.java | 3 +- ...rrayOfAudiencePerformanceReportColumn.java | 71 +++++ .../AudiencePerformanceReportColumn.java | 120 ++++++++ .../AudiencePerformanceReportRequest.java | 150 ++++++++++ .../bingads/reporting/IReportingService.java | 4 +- .../bingads/reporting/ObjectFactory.java | 262 +++++++++------- ...oductDimensionPerformanceReportColumn.java | 32 +- .../bingads/reporting/ReportRequest.java | 3 +- .../reporting/ShareOfVoiceReportColumn.java | 8 +- .../reporting/ShareOfVoiceReportFilter.java | 30 ++ .../v10/adinsight/AdInsightService.java | 22 ++ .../ArrayOfAuctionInsightKPINode.java | 69 +++++ .../ArrayOfAuctionInsightV2Entity.java | 69 +++++ .../bingads/v10/adinsight/ArrayOfField.java | 71 +++++ .../bingads/v10/adinsight/ArrayOfOrderBy.java | 69 +++++ .../v10/adinsight/ArrayOfPredicate.java | 69 +++++ .../v10/adinsight/AuctionInsightKPINode.java | 202 +++++++++++++ .../v10/adinsight/AuctionInsightResult.java | 146 +++++++++ .../v10/adinsight/AuctionInsightV2Entity.java | 118 ++++++++ .../bingads/v10/adinsight/DateRange.java | 90 ++++++ .../bingads/v10/adinsight/Field.java | 80 +++++ .../GetAuctionInsightDataRequest.java | 64 ++++ .../GetAuctionInsightDataResponse.java | 64 ++++ .../GetEstimatedBidByKeywordsRequest.java | 20 +- ...GetEstimatedPositionByKeywordsRequest.java | 20 +- .../v10/adinsight/IAdInsightService.java | 34 +-- .../v10/adinsight/KeywordOpportunity.java | 56 ++++ .../bingads/v10/adinsight/ObjectFactory.java | 280 ++++++++++++++++++ .../bingads/v10/adinsight/Operator.java | 64 ++++ .../bingads/v10/adinsight/OrderBy.java | 93 ++++++ .../bingads/v10/adinsight/Paging.java | 90 ++++++ .../bingads/v10/adinsight/Predicate.java | 121 ++++++++ .../bingads/v10/adinsight/Selector.java | 202 +++++++++++++ .../bingads/v10/adinsight/SortOrder.java | 38 +++ .../bingads/v10/bulk/IBulkService.java | 10 +- .../v10/campaignmanagement/AdType.java | 3 - .../GetConfigValueRequest.java | 64 ++++ .../GetConfigValueResponse.java | 64 ++++ .../ICampaignManagementService.java | 211 +++++++------ .../v10/campaignmanagement/ObjectFactory.java | 16 + proxies/jaxb-bindings-reporting.xml | 28 +- proxies/jaxb-bindings-v10.bulk.xml | 2 +- .../jaxb-bindings-v10.campaignmanagement.xml | 2 +- 51 files changed, 3281 insertions(+), 382 deletions(-) create mode 100644 proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueRequest.java create mode 100644 proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueResponse.java create mode 100644 proxies/com/microsoft/bingads/reporting/ArrayOfAudiencePerformanceReportColumn.java create mode 100644 proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportColumn.java create mode 100644 proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightKPINode.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightV2Entity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfField.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOrderBy.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/ArrayOfPredicate.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightKPINode.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightResult.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightV2Entity.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/DateRange.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Field.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataResponse.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Operator.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/OrderBy.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Paging.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Predicate.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/Selector.java create mode 100644 proxies/com/microsoft/bingads/v10/adinsight/SortOrder.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueRequest.java create mode 100644 proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueResponse.java diff --git a/proxies/com/microsoft/bingads/adintelligence/IAdIntelligenceService.java b/proxies/com/microsoft/bingads/adintelligence/IAdIntelligenceService.java index e5b89e9710..c32d79525e 100644 --- a/proxies/com/microsoft/bingads/adintelligence/IAdIntelligenceService.java +++ b/proxies/com/microsoft/bingads/adintelligence/IAdIntelligenceService.java @@ -56,8 +56,8 @@ public Future getPublisherKeywordPerformanceAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetPublisherKeywordPerformanceResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetPublisherKeywordPerformance", action = "GetPublisherKeywordPerformance") @WebResult(name = "GetPublisherKeywordPerformanceResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -97,8 +97,8 @@ public Future suggestKeywordsForUrlAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.SuggestKeywordsForUrlResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SuggestKeywordsForUrl", action = "SuggestKeywordsForUrl") @WebResult(name = "SuggestKeywordsForUrlResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -138,8 +138,8 @@ public Future getEstimatedBidByKeywordIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetEstimatedBidByKeywordIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetEstimatedBidByKeywordIds", action = "GetEstimatedBidByKeywordIds") @WebResult(name = "GetEstimatedBidByKeywordIdsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -179,8 +179,8 @@ public Future getEstimatedPositionByKeywordIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetEstimatedPositionByKeywordIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetEstimatedPositionByKeywordIds", action = "GetEstimatedPositionByKeywordIds") @WebResult(name = "GetEstimatedPositionByKeywordIdsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -220,8 +220,8 @@ public Future getEstimatedBidByKeywordsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetEstimatedBidByKeywordsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetEstimatedBidByKeywords", action = "GetEstimatedBidByKeywords") @WebResult(name = "GetEstimatedBidByKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -261,8 +261,8 @@ public Future getEstimatedPositionByKeywordsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetEstimatedPositionByKeywordsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetEstimatedPositionByKeywords", action = "GetEstimatedPositionByKeywords") @WebResult(name = "GetEstimatedPositionByKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -302,8 +302,8 @@ public Future getHistoricalSearchCountAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetHistoricalSearchCountResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetHistoricalSearchCount", action = "GetHistoricalSearchCount") @WebResult(name = "GetHistoricalSearchCountResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -343,8 +343,8 @@ public Future getHistoricalKeywordPerformanceAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetHistoricalKeywordPerformanceResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetHistoricalKeywordPerformance", action = "GetHistoricalKeywordPerformance") @WebResult(name = "GetHistoricalKeywordPerformanceResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -384,8 +384,8 @@ public Future suggestKeywordsFromExistingKeywordsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.SuggestKeywordsFromExistingKeywordsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SuggestKeywordsFromExistingKeywords", action = "SuggestKeywordsFromExistingKeywords") @WebResult(name = "SuggestKeywordsFromExistingKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -425,8 +425,8 @@ public Future getKeywordLocationsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetKeywordLocationsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordLocations", action = "GetKeywordLocations") @WebResult(name = "GetKeywordLocationsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -466,8 +466,8 @@ public Future getKeywordCategoriesAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetKeywordCategoriesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordCategories", action = "GetKeywordCategories") @WebResult(name = "GetKeywordCategoriesResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -507,8 +507,8 @@ public Future getKeywordDemographicsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetKeywordDemographicsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordDemographics", action = "GetKeywordDemographics") @WebResult(name = "GetKeywordDemographicsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -548,8 +548,8 @@ public Future getBidLandscapeByKeywordIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetBidLandscapeByKeywordIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetBidLandscapeByKeywordIds", action = "GetBidLandscapeByKeywordIds") @WebResult(name = "GetBidLandscapeByKeywordIdsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -589,8 +589,8 @@ public Future getBidLandscapeByAdGroupIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetBidLandscapeByAdGroupIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetBidLandscapeByAdGroupIds", action = "GetBidLandscapeByAdGroupIds") @WebResult(name = "GetBidLandscapeByAdGroupIdsResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -630,8 +630,8 @@ public Future getAccountAuctionInsightAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetAccountAuctionInsightResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAccountAuctionInsight", action = "GetAccountAuctionInsight") @WebResult(name = "GetAccountAuctionInsightResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -671,8 +671,8 @@ public Future getCampaignAuctionInsightAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetCampaignAuctionInsightResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCampaignAuctionInsight", action = "GetCampaignAuctionInsight") @WebResult(name = "GetCampaignAuctionInsightResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -712,8 +712,8 @@ public Future getAdGroupAuctionInsightAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetAdGroupAuctionInsightResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdGroupAuctionInsight", action = "GetAdGroupAuctionInsight") @WebResult(name = "GetAdGroupAuctionInsightResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -753,8 +753,8 @@ public Future getKeywordAuctionInsightAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetKeywordAuctionInsightResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordAuctionInsight", action = "GetKeywordAuctionInsight") @WebResult(name = "GetKeywordAuctionInsightResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -794,8 +794,8 @@ public Future getAuctionInsightDataAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetAuctionInsightDataResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAuctionInsightData", action = "GetAuctionInsightData") @WebResult(name = "GetAuctionInsightDataResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -835,8 +835,8 @@ public Future getAuctionInsightAvailAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetAuctionInsightAvailResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAuctionInsightAvail", action = "GetAuctionInsightAvail") @WebResult(name = "GetAuctionInsightAvailResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -876,8 +876,8 @@ public Future getAuctionInsightAvailableChildrenAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetAuctionInsightAvailableChildrenResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAuctionInsightAvailableChildren", action = "GetAuctionInsightAvailableChildren") @WebResult(name = "GetAuctionInsightAvailableChildrenResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") @@ -917,8 +917,8 @@ public Future getKeywordIdBidEstimationAsync( * @param parameters * @return * returns com.microsoft.bingads.adintelligence.GetKeywordIdBidEstimationResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordIdBidEstimation", action = "GetKeywordIdBidEstimation") @WebResult(name = "GetKeywordIdBidEstimationResponse", targetNamespace = "https://bingads.microsoft.com/AdIntelligence/v9", partName = "parameters") diff --git a/proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueRequest.java b/proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueRequest.java new file mode 100644 index 0000000000..ddf2470832 --- /dev/null +++ b/proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ConfigKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "configKey" +}) +@XmlRootElement(name = "GetConfigValueRequest") +public class GetConfigValueRequest { + + @XmlElement(name = "ConfigKey", nillable = true) + protected String configKey; + + /** + * Gets the value of the configKey property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getConfigKey() { + return configKey; + } + + /** + * Sets the value of the configKey property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setConfigKey(String value) { + this.configKey = value; + } + +} diff --git a/proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueResponse.java b/proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueResponse.java new file mode 100644 index 0000000000..9b08fa970a --- /dev/null +++ b/proxies/com/microsoft/bingads/campaignmanagement/GetConfigValueResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ConfigValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "configValue" +}) +@XmlRootElement(name = "GetConfigValueResponse") +public class GetConfigValueResponse { + + @XmlElement(name = "ConfigValue", nillable = true) + protected String configValue; + + /** + * Gets the value of the configValue property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getConfigValue() { + return configValue; + } + + /** + * Sets the value of the configValue property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setConfigValue(String value) { + this.configValue = value; + } + +} diff --git a/proxies/com/microsoft/bingads/campaignmanagement/ICampaignManagementService.java b/proxies/com/microsoft/bingads/campaignmanagement/ICampaignManagementService.java index 7b2bd0accd..91191066d6 100644 --- a/proxies/com/microsoft/bingads/campaignmanagement/ICampaignManagementService.java +++ b/proxies/com/microsoft/bingads/campaignmanagement/ICampaignManagementService.java @@ -26,6 +26,47 @@ public interface ICampaignManagementService { + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") + public Response getCampaignSizesByAccountIdAsync( + @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + GetCampaignSizesByAccountIdRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") + public Future getCampaignSizesByAccountIdAsync( + @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + GetCampaignSizesByAccountIdRequest parameters, + @WebParam(name = "GetCampaignSizesByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.campaignmanagement.GetCampaignSizesByAccountIdResponse + * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") + @WebResult(name = "GetCampaignSizesByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + public GetCampaignSizesByAccountIdResponse getCampaignSizesByAccountId( + @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + GetCampaignSizesByAccountIdRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + /** * * @param parameters @@ -600,6 +641,47 @@ public SetNegativeSitesToCampaignsResponse setNegativeSitesToCampaigns( throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception ; + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetConfigValue", action = "GetConfigValue") + public Response getConfigValueAsync( + @WebParam(name = "GetConfigValueRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + GetConfigValueRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetConfigValue", action = "GetConfigValue") + public Future getConfigValueAsync( + @WebParam(name = "GetConfigValueRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + GetConfigValueRequest parameters, + @WebParam(name = "GetConfigValueResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.campaignmanagement.GetConfigValueResponse + * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetConfigValue", action = "GetConfigValue") + @WebResult(name = "GetConfigValueResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + public GetConfigValueResponse getConfigValue( + @WebParam(name = "GetConfigValueRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") + GetConfigValueRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + /** * * @param parameters @@ -4003,45 +4085,4 @@ public DeleteSharedEntitiesResponse deleteSharedEntities( throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception ; - /** - * - * @param parameters - * @return - * returns javax.xml.ws.Response - */ - @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") - public Response getCampaignSizesByAccountIdAsync( - @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") - GetCampaignSizesByAccountIdRequest parameters); - - /** - * - * @param asyncHandler - * @param parameters - * @return - * returns java.util.concurrent.Future - */ - @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") - public Future getCampaignSizesByAccountIdAsync( - @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") - GetCampaignSizesByAccountIdRequest parameters, - @WebParam(name = "GetCampaignSizesByAccountIdResponse", targetNamespace = "", partName = "asyncHandler") - AsyncHandler asyncHandler); - - /** - * - * @param parameters - * @return - * returns com.microsoft.bingads.campaignmanagement.GetCampaignSizesByAccountIdResponse - * @throws ApiFaultDetail_Exception - * @throws AdApiFaultDetail_Exception - */ - @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") - @WebResult(name = "GetCampaignSizesByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") - public GetCampaignSizesByAccountIdResponse getCampaignSizesByAccountId( - @WebParam(name = "GetCampaignSizesByAccountIdRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v9", partName = "parameters") - GetCampaignSizesByAccountIdRequest parameters) - throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception - ; - } diff --git a/proxies/com/microsoft/bingads/campaignmanagement/ObjectFactory.java b/proxies/com/microsoft/bingads/campaignmanagement/ObjectFactory.java index bbe54f14c8..253f49db37 100644 --- a/proxies/com/microsoft/bingads/campaignmanagement/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/campaignmanagement/ObjectFactory.java @@ -131,9 +131,9 @@ public class ObjectFactory { private final static QName _Password_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "Password"); private final static QName _ArrayOfSitePlacement_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "ArrayOfSitePlacement"); private final static QName _Bid_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "Bid"); + private final static QName _ArrayOfCampaignSize_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "ArrayOfCampaignSize"); private final static QName _KeywordStatus_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "KeywordStatus"); private final static QName _ArrayOfMediaType_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "ArrayOfMediaType"); - private final static QName _ArrayOfCampaignSize_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "ArrayOfCampaignSize"); private final static QName _ArrayOfSetting_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "ArrayOfSetting"); private final static QName _CustomerAccountId_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "CustomerAccountId"); private final static QName _MediaRepresentation_QNAME = new QName("https://bingads.microsoft.com/CampaignManagement/v9", "MediaRepresentation"); @@ -520,6 +520,14 @@ public GetNegativeKeywordsByCampaignIdsRequest createGetNegativeKeywordsByCampai return new GetNegativeKeywordsByCampaignIdsRequest(); } + /** + * Create an instance of {@link GetConfigValueRequest } + * + */ + public GetConfigValueRequest createGetConfigValueRequest() { + return new GetConfigValueRequest(); + } + /** * Create an instance of {@link DayTarget } * @@ -1465,19 +1473,19 @@ public GetTargetsByCampaignIds2Response createGetTargetsByCampaignIds2Response() } /** - * Create an instance of {@link AppealEditorialRejectionsRequest } + * Create an instance of {@link CampaignSize } * */ - public AppealEditorialRejectionsRequest createAppealEditorialRejectionsRequest() { - return new AppealEditorialRejectionsRequest(); + public CampaignSize createCampaignSize() { + return new CampaignSize(); } /** - * Create an instance of {@link CampaignSize } + * Create an instance of {@link AppealEditorialRejectionsRequest } * */ - public CampaignSize createCampaignSize() { - return new CampaignSize(); + public AppealEditorialRejectionsRequest createAppealEditorialRejectionsRequest() { + return new AppealEditorialRejectionsRequest(); } /** @@ -3088,6 +3096,14 @@ public SubmitAdGroupForApprovalRequest createSubmitAdGroupForApprovalRequest() { return new SubmitAdGroupForApprovalRequest(); } + /** + * Create an instance of {@link GetConfigValueResponse } + * + */ + public GetConfigValueResponse createGetConfigValueResponse() { + return new GetConfigValueResponse(); + } + /** * Create an instance of {@link EditorialReasonCollection } * @@ -4387,6 +4403,15 @@ public JAXBElement createBid(Bid value) { return new JAXBElement(_Bid_QNAME, Bid.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignSize }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v9", name = "ArrayOfCampaignSize") + public JAXBElement createArrayOfCampaignSize(ArrayOfCampaignSize value) { + return new JAXBElement(_ArrayOfCampaignSize_QNAME, ArrayOfCampaignSize.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link KeywordStatus }{@code >}} * @@ -4405,15 +4430,6 @@ public JAXBElement createArrayOfMediaType(ArrayOfMediaType val return new JAXBElement(_ArrayOfMediaType_QNAME, ArrayOfMediaType.class, null, value); } - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfCampaignSize }{@code >}} - * - */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/CampaignManagement/v9", name = "ArrayOfCampaignSize") - public JAXBElement createArrayOfCampaignSize(ArrayOfCampaignSize value) { - return new JAXBElement(_ArrayOfCampaignSize_QNAME, ArrayOfCampaignSize.class, null, value); - } - /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfSetting }{@code >}} * diff --git a/proxies/com/microsoft/bingads/customerbilling/ICustomerBillingService.java b/proxies/com/microsoft/bingads/customerbilling/ICustomerBillingService.java index 646bb99dc7..3ba9d86168 100644 --- a/proxies/com/microsoft/bingads/customerbilling/ICustomerBillingService.java +++ b/proxies/com/microsoft/bingads/customerbilling/ICustomerBillingService.java @@ -56,8 +56,8 @@ public Future getBillingDocumentsInfoAsync( * @param parameters * @return * returns com.microsoft.bingads.customerbilling.GetBillingDocumentsInfoResponse - * @throws AdApiFaultDetail_Exception * @throws ApiBatchFault_Exception + * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception */ @WebMethod(operationName = "GetBillingDocumentsInfo", action = "GetBillingDocumentsInfo") @@ -346,8 +346,8 @@ public Future getKOHIOInvoicesAsync( * @param parameters * @return * returns com.microsoft.bingads.customerbilling.GetKOHIOInvoicesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiBatchFault_Exception + * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception */ @WebMethod(operationName = "GetKOHIOInvoices", action = "GetKOHIOInvoices") diff --git a/proxies/com/microsoft/bingads/customermanagement/ICustomerManagementService.java b/proxies/com/microsoft/bingads/customermanagement/ICustomerManagementService.java index 9ed0046dd3..dda423bd10 100644 --- a/proxies/com/microsoft/bingads/customermanagement/ICustomerManagementService.java +++ b/proxies/com/microsoft/bingads/customermanagement/ICustomerManagementService.java @@ -56,8 +56,8 @@ public Future getAccountsInfoAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetAccountsInfoResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAccountsInfo", action = "GetAccountsInfo") @WebResult(name = "GetAccountsInfoResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -97,8 +97,8 @@ public Future findAccountsAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.FindAccountsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "FindAccounts", action = "FindAccounts") @WebResult(name = "FindAccountsResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -138,8 +138,8 @@ public Future addAccountAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.AddAccountResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddAccount", action = "AddAccount") @WebResult(name = "AddAccountResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -179,8 +179,8 @@ public Future updateAccountAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.UpdateAccountResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateAccount", action = "UpdateAccount") @WebResult(name = "UpdateAccountResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -220,8 +220,8 @@ public Future getCustomerAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetCustomerResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCustomer", action = "GetCustomer") @WebResult(name = "GetCustomerResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -261,8 +261,8 @@ public Future updateCustomerAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.UpdateCustomerResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateCustomer", action = "UpdateCustomer") @WebResult(name = "UpdateCustomerResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -302,8 +302,8 @@ public Future signupCustomerAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.SignupCustomerResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SignupCustomer", action = "SignupCustomer") @WebResult(name = "SignupCustomerResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -343,8 +343,8 @@ public Future getAccountAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetAccountResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAccount", action = "GetAccount") @WebResult(name = "GetAccountResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -384,8 +384,8 @@ public Future getCustomersInfoAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetCustomersInfoResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCustomersInfo", action = "GetCustomersInfo") @WebResult(name = "GetCustomersInfoResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -425,8 +425,8 @@ public Future deleteAccountAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.DeleteAccountResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteAccount", action = "DeleteAccount") @WebResult(name = "DeleteAccountResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -466,8 +466,8 @@ public Future deleteCustomerAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.DeleteCustomerResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteCustomer", action = "DeleteCustomer") @WebResult(name = "DeleteCustomerResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -507,8 +507,8 @@ public Future updateUserAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.UpdateUserResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateUser", action = "UpdateUser") @WebResult(name = "UpdateUserResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -548,8 +548,8 @@ public Future updateUserRolesAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.UpdateUserRolesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateUserRoles", action = "UpdateUserRoles") @WebResult(name = "UpdateUserRolesResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -589,8 +589,8 @@ public Future getUserAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetUserResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetUser", action = "GetUser") @WebResult(name = "GetUserResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -630,8 +630,8 @@ public Future getCurrentUserAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetCurrentUserResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCurrentUser", action = "GetCurrentUser") @WebResult(name = "GetCurrentUserResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -671,8 +671,8 @@ public Future deleteUserAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.DeleteUserResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteUser", action = "DeleteUser") @WebResult(name = "DeleteUserResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -712,8 +712,8 @@ public Future getUsersInfoAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetUsersInfoResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetUsersInfo", action = "GetUsersInfo") @WebResult(name = "GetUsersInfoResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -753,8 +753,8 @@ public Future getCustomerPilotFeaturesAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetCustomerPilotFeaturesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCustomerPilotFeatures", action = "GetCustomerPilotFeatures") @WebResult(name = "GetCustomerPilotFeaturesResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -794,8 +794,8 @@ public Future getPilotFeaturesCountriesAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetPilotFeaturesCountriesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetPilotFeaturesCountries", action = "GetPilotFeaturesCountries") @WebResult(name = "GetPilotFeaturesCountriesResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -835,8 +835,8 @@ public Future getAccessibleCustomerAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.GetAccessibleCustomerResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAccessibleCustomer", action = "GetAccessibleCustomer") @WebResult(name = "GetAccessibleCustomerResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -876,8 +876,8 @@ public Future findAccountsOrCustomersInfoAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.FindAccountsOrCustomersInfoResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "FindAccountsOrCustomersInfo", action = "FindAccountsOrCustomersInfo") @WebResult(name = "FindAccountsOrCustomersInfoResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -917,8 +917,8 @@ public Future upgradeCustomerToAgencyAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.UpgradeCustomerToAgencyResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpgradeCustomerToAgency", action = "UpgradeCustomerToAgency") @WebResult(name = "UpgradeCustomerToAgencyResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -958,8 +958,8 @@ public Future addPrepayAccountAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.AddPrepayAccountResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddPrepayAccount", action = "AddPrepayAccount") @WebResult(name = "AddPrepayAccountResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -999,8 +999,8 @@ public Future updatePrepayAccountAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.UpdatePrepayAccountResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdatePrepayAccount", action = "UpdatePrepayAccount") @WebResult(name = "UpdatePrepayAccountResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1040,8 +1040,8 @@ public Future mapCustomerIdToExternalCustomerIdAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.MapCustomerIdToExternalCustomerIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "MapCustomerIdToExternalCustomerId", action = "MapCustomerIdToExternalCustomerId") @WebResult(name = "MapCustomerIdToExternalCustomerIdResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1081,8 +1081,8 @@ public Future mapAccountIdToExternalAccountIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.MapAccountIdToExternalAccountIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "MapAccountIdToExternalAccountIds", action = "MapAccountIdToExternalAccountIds") @WebResult(name = "MapAccountIdToExternalAccountIdsResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1122,8 +1122,8 @@ public Future searchCustomersAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.SearchCustomersResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SearchCustomers", action = "SearchCustomers") @WebResult(name = "SearchCustomersResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1163,8 +1163,8 @@ public Future addClientLinksAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.AddClientLinksResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddClientLinks", action = "AddClientLinks") @WebResult(name = "AddClientLinksResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1204,8 +1204,8 @@ public Future updateClientLinksAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.UpdateClientLinksResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateClientLinks", action = "UpdateClientLinks") @WebResult(name = "UpdateClientLinksResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1245,8 +1245,8 @@ public Future searchClientLinksAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.SearchClientLinksResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SearchClientLinks", action = "SearchClientLinks") @WebResult(name = "SearchClientLinksResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1286,8 +1286,8 @@ public Future searchAccountsAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.SearchAccountsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SearchAccounts", action = "SearchAccounts") @WebResult(name = "SearchAccountsResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1327,8 +1327,8 @@ public Future sendUserInvitationAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.SendUserInvitationResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SendUserInvitation", action = "SendUserInvitation") @WebResult(name = "SendUserInvitationResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") @@ -1368,8 +1368,8 @@ public Future searchUserInvitationsAsync( * @param parameters * @return * returns com.microsoft.bingads.customermanagement.SearchUserInvitationsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFault_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SearchUserInvitations", action = "SearchUserInvitations") @WebResult(name = "SearchUserInvitationsResponse", targetNamespace = "https://bingads.microsoft.com/Customer/v9", partName = "parameters") diff --git a/proxies/com/microsoft/bingads/optimizer/IOptimizerService.java b/proxies/com/microsoft/bingads/optimizer/IOptimizerService.java index 0661955217..2104c677ed 100644 --- a/proxies/com/microsoft/bingads/optimizer/IOptimizerService.java +++ b/proxies/com/microsoft/bingads/optimizer/IOptimizerService.java @@ -56,8 +56,8 @@ public Future getBudgetOpportunitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.GetBudgetOpportunitiesResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "GetBudgetOpportunities", action = "GetBudgetOpportunities") @WebResult(name = "GetBudgetOpportunitiesResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") @@ -97,8 +97,8 @@ public Future getBudgetLandscapeAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.GetBudgetLandscapeResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "GetBudgetLandscape", action = "GetBudgetLandscape") @WebResult(name = "GetBudgetLandscapeResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") @@ -138,8 +138,8 @@ public Future getBidOpportunitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.GetBidOpportunitiesResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "GetBidOpportunities", action = "GetBidOpportunities") @WebResult(name = "GetBidOpportunitiesResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") @@ -179,8 +179,8 @@ public Future getKeywordOpportunitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.GetKeywordOpportunitiesResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordOpportunities", action = "GetKeywordOpportunities") @WebResult(name = "GetKeywordOpportunitiesResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") @@ -220,8 +220,8 @@ public Future getBroadMatchOpportunitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.GetBroadMatchOpportunitiesResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "GetBroadMatchOpportunities", action = "GetBroadMatchOpportunities") @WebResult(name = "GetBroadMatchOpportunitiesResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") @@ -261,8 +261,8 @@ public Future getBroadMatchSearchQueriesAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.GetBroadMatchSearchQueriesResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "GetBroadMatchSearchQueries", action = "GetBroadMatchSearchQueries") @WebResult(name = "GetBroadMatchSearchQueriesResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") @@ -302,8 +302,8 @@ public Future applyOpportunityModifiersAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.ApplyOpportunityModifiersResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "ApplyOpportunityModifiers", action = "ApplyOpportunityModifiers") @WebResult(name = "ApplyOpportunityModifiersResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") @@ -343,8 +343,8 @@ public Future applyOpportunitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.optimizer.ApplyOpportunitiesResponse - * @throws ApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws ApiFaultDetail_Exception */ @WebMethod(operationName = "ApplyOpportunities", action = "ApplyOpportunities") @WebResult(name = "ApplyOpportunitiesResponse", targetNamespace = "https://bingads.microsoft.com/Optimizer/v9", partName = "parameters") diff --git a/proxies/com/microsoft/bingads/reporting/AdTypeReportFilter.java b/proxies/com/microsoft/bingads/reporting/AdTypeReportFilter.java index 1117af1c36..915aa49686 100644 --- a/proxies/com/microsoft/bingads/reporting/AdTypeReportFilter.java +++ b/proxies/com/microsoft/bingads/reporting/AdTypeReportFilter.java @@ -12,7 +12,8 @@ public enum AdTypeReportFilter { RICH_MEDIA("RichMedia"), THIRD_PARTY_CREATIVE("ThirdPartyCreative"), RICH_AD("RichAd"), - PRODUCT("Product"); + PRODUCT("Product"), + APP_INSTALL("AppInstall"); private final String value; diff --git a/proxies/com/microsoft/bingads/reporting/ArrayOfAudiencePerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/ArrayOfAudiencePerformanceReportColumn.java new file mode 100644 index 0000000000..a0836fb05b --- /dev/null +++ b/proxies/com/microsoft/bingads/reporting/ArrayOfAudiencePerformanceReportColumn.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.reporting; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAudiencePerformanceReportColumn complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ArrayOfAudiencePerformanceReportColumn">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AudiencePerformanceReportColumn" type="{https://bingads.microsoft.com/Reporting/v9}AudiencePerformanceReportColumn" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAudiencePerformanceReportColumn", propOrder = { + "audiencePerformanceReportColumns" +}) +public class ArrayOfAudiencePerformanceReportColumn { + + @XmlElement(name = "AudiencePerformanceReportColumn") + @XmlSchemaType(name = "string") + protected List audiencePerformanceReportColumns; + + /** + * Gets the value of the audiencePerformanceReportColumns 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 JAXB object. + * This is why there is not a set method for the audiencePerformanceReportColumns property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAudiencePerformanceReportColumns().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AudiencePerformanceReportColumn } + * + * + */ + public List getAudiencePerformanceReportColumns() { + if (audiencePerformanceReportColumns == null) { + audiencePerformanceReportColumns = new ArrayList(); + } + return this.audiencePerformanceReportColumns; + } + +} diff --git a/proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportColumn.java new file mode 100644 index 0000000000..9ff6f04bb1 --- /dev/null +++ b/proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportColumn.java @@ -0,0 +1,120 @@ + +package com.microsoft.bingads.reporting; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AudiencePerformanceReportColumn. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="AudiencePerformanceReportColumn">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="AccountName"/>
+ *     <enumeration value="AccountNumber"/>
+ *     <enumeration value="AccountId"/>
+ *     <enumeration value="TimePeriod"/>
+ *     <enumeration value="CampaignName"/>
+ *     <enumeration value="CampaignId"/>
+ *     <enumeration value="AdGroupName"/>
+ *     <enumeration value="AdGroupId"/>
+ *     <enumeration value="AudienceId"/>
+ *     <enumeration value="AudienceName"/>
+ *     <enumeration value="AssociationStatus"/>
+ *     <enumeration value="BidAdjustment"/>
+ *     <enumeration value="TargetingSetting"/>
+ *     <enumeration value="Impressions"/>
+ *     <enumeration value="Clicks"/>
+ *     <enumeration value="Ctr"/>
+ *     <enumeration value="AverageCpc"/>
+ *     <enumeration value="Spend"/>
+ *     <enumeration value="AveragePosition"/>
+ *     <enumeration value="Conversions"/>
+ *     <enumeration value="ConversionRate"/>
+ *     <enumeration value="CostPerConversion"/>
+ *     <enumeration value="Revenue"/>
+ *     <enumeration value="ReturnOnAdSpend"/>
+ *     <enumeration value="RevenuePerConversion"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "AudiencePerformanceReportColumn") +@XmlEnum +public enum AudiencePerformanceReportColumn { + + @XmlEnumValue("AccountName") + ACCOUNT_NAME("AccountName"), + @XmlEnumValue("AccountNumber") + ACCOUNT_NUMBER("AccountNumber"), + @XmlEnumValue("AccountId") + ACCOUNT_ID("AccountId"), + @XmlEnumValue("TimePeriod") + TIME_PERIOD("TimePeriod"), + @XmlEnumValue("CampaignName") + CAMPAIGN_NAME("CampaignName"), + @XmlEnumValue("CampaignId") + CAMPAIGN_ID("CampaignId"), + @XmlEnumValue("AdGroupName") + AD_GROUP_NAME("AdGroupName"), + @XmlEnumValue("AdGroupId") + AD_GROUP_ID("AdGroupId"), + @XmlEnumValue("AudienceId") + AUDIENCE_ID("AudienceId"), + @XmlEnumValue("AudienceName") + AUDIENCE_NAME("AudienceName"), + @XmlEnumValue("AssociationStatus") + ASSOCIATION_STATUS("AssociationStatus"), + @XmlEnumValue("BidAdjustment") + BID_ADJUSTMENT("BidAdjustment"), + @XmlEnumValue("TargetingSetting") + TARGETING_SETTING("TargetingSetting"), + @XmlEnumValue("Impressions") + IMPRESSIONS("Impressions"), + @XmlEnumValue("Clicks") + CLICKS("Clicks"), + @XmlEnumValue("Ctr") + CTR("Ctr"), + @XmlEnumValue("AverageCpc") + AVERAGE_CPC("AverageCpc"), + @XmlEnumValue("Spend") + SPEND("Spend"), + @XmlEnumValue("AveragePosition") + AVERAGE_POSITION("AveragePosition"), + @XmlEnumValue("Conversions") + CONVERSIONS("Conversions"), + @XmlEnumValue("ConversionRate") + CONVERSION_RATE("ConversionRate"), + @XmlEnumValue("CostPerConversion") + COST_PER_CONVERSION("CostPerConversion"), + @XmlEnumValue("Revenue") + REVENUE("Revenue"), + @XmlEnumValue("ReturnOnAdSpend") + RETURN_ON_AD_SPEND("ReturnOnAdSpend"), + @XmlEnumValue("RevenuePerConversion") + REVENUE_PER_CONVERSION("RevenuePerConversion"); + private final String value; + + AudiencePerformanceReportColumn(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AudiencePerformanceReportColumn fromValue(String v) { + for (AudiencePerformanceReportColumn c: AudiencePerformanceReportColumn.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportRequest.java b/proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportRequest.java new file mode 100644 index 0000000000..ca49087221 --- /dev/null +++ b/proxies/com/microsoft/bingads/reporting/AudiencePerformanceReportRequest.java @@ -0,0 +1,150 @@ + +package com.microsoft.bingads.reporting; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AudiencePerformanceReportRequest complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="AudiencePerformanceReportRequest">
+ *   <complexContent>
+ *     <extension base="{https://bingads.microsoft.com/Reporting/v9}ReportRequest">
+ *       <sequence>
+ *         <element name="Aggregation" type="{https://bingads.microsoft.com/Reporting/v9}ReportAggregation"/>
+ *         <element name="Columns" type="{https://bingads.microsoft.com/Reporting/v9}ArrayOfAudiencePerformanceReportColumn"/>
+ *         <element name="Scope" type="{https://bingads.microsoft.com/Reporting/v9}AccountThroughAdGroupReportScope"/>
+ *         <element name="Time" type="{https://bingads.microsoft.com/Reporting/v9}ReportTime"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AudiencePerformanceReportRequest", propOrder = { + "aggregation", + "columns", + "scope", + "time" +}) +public class AudiencePerformanceReportRequest + extends ReportRequest +{ + + @XmlElement(name = "Aggregation", required = true) + @XmlSchemaType(name = "string") + protected ReportAggregation aggregation; + @XmlElement(name = "Columns", required = true, nillable = true) + protected ArrayOfAudiencePerformanceReportColumn columns; + @XmlElement(name = "Scope", required = true, nillable = true) + protected AccountThroughAdGroupReportScope scope; + @XmlElement(name = "Time", required = true, nillable = true) + protected ReportTime time; + + /** + * Gets the value of the aggregation property. + * + * @return + * possible object is + * {@link ReportAggregation } + * + */ + public ReportAggregation getAggregation() { + return aggregation; + } + + /** + * Sets the value of the aggregation property. + * + * @param value + * allowed object is + * {@link ReportAggregation } + * + */ + public void setAggregation(ReportAggregation value) { + this.aggregation = value; + } + + /** + * Gets the value of the columns property. + * + * @return + * possible object is + * {@link ArrayOfAudiencePerformanceReportColumn } + * + */ + public ArrayOfAudiencePerformanceReportColumn getColumns() { + return columns; + } + + /** + * Sets the value of the columns property. + * + * @param value + * allowed object is + * {@link ArrayOfAudiencePerformanceReportColumn } + * + */ + public void setColumns(ArrayOfAudiencePerformanceReportColumn value) { + this.columns = value; + } + + /** + * Gets the value of the scope property. + * + * @return + * possible object is + * {@link AccountThroughAdGroupReportScope } + * + */ + public AccountThroughAdGroupReportScope getScope() { + return scope; + } + + /** + * Sets the value of the scope property. + * + * @param value + * allowed object is + * {@link AccountThroughAdGroupReportScope } + * + */ + public void setScope(AccountThroughAdGroupReportScope value) { + this.scope = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link ReportTime } + * + */ + public ReportTime getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link ReportTime } + * + */ + public void setTime(ReportTime value) { + this.time = value; + } + +} diff --git a/proxies/com/microsoft/bingads/reporting/IReportingService.java b/proxies/com/microsoft/bingads/reporting/IReportingService.java index 9886d1ae4c..340199c13d 100644 --- a/proxies/com/microsoft/bingads/reporting/IReportingService.java +++ b/proxies/com/microsoft/bingads/reporting/IReportingService.java @@ -56,8 +56,8 @@ public Future submitGenerateReportAsync( * @param parameters * @return * returns com.microsoft.bingads.reporting.SubmitGenerateReportResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SubmitGenerateReport", action = "SubmitGenerateReport") @WebResult(name = "SubmitGenerateReportResponse", targetNamespace = "https://bingads.microsoft.com/Reporting/v9", partName = "parameters") @@ -97,8 +97,8 @@ public Future pollGenerateReportAsync( * @param parameters * @return * returns com.microsoft.bingads.reporting.PollGenerateReportResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "PollGenerateReport", action = "PollGenerateReport") @WebResult(name = "PollGenerateReportResponse", targetNamespace = "https://bingads.microsoft.com/Reporting/v9", partName = "parameters") diff --git a/proxies/com/microsoft/bingads/reporting/ObjectFactory.java b/proxies/com/microsoft/bingads/reporting/ObjectFactory.java index 84dd837c3b..8118be153d 100644 --- a/proxies/com/microsoft/bingads/reporting/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/reporting/ObjectFactory.java @@ -59,8 +59,8 @@ public class ObjectFactory { private final static QName _ArrayOfAdPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdPerformanceReportColumn"); private final static QName _AdDynamicTextPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdDynamicTextPerformanceReportFilter"); private final static QName _AdExtensionByKeywordReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionByKeywordReportColumn"); - private final static QName _AccountPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountPerformanceReportFilter"); private final static QName _ArrayOfAgeGenderDemographicReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAgeGenderDemographicReportColumn"); + private final static QName _AccountPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountPerformanceReportFilter"); private final static QName _ArrayOfDestinationUrlPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfDestinationUrlPerformanceReportColumn"); private final static QName _ProductPartitionPerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductPartitionPerformanceReportRequest"); private final static QName _CustomerAccountId_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "CustomerAccountId"); @@ -74,13 +74,14 @@ public class ObjectFactory { private final static QName _AdExtensionDetailReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionDetailReportColumn"); private final static QName _UserName_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "UserName"); private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); - private final static QName _ProductTargetPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductTargetPerformanceReportFilter"); private final static QName _AdExtensionByAdReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionByAdReportFilter"); + private final static QName _ProductTargetPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductTargetPerformanceReportFilter"); private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); private final static QName _GoalsAndFunnelsReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "GoalsAndFunnelsReportFilter"); private final static QName _BudgetSummaryReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BudgetSummaryReportRequest"); private final static QName _ProductPartitionPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductPartitionPerformanceReportColumn"); private final static QName _AdDistributionReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdDistributionReportFilter"); + private final static QName _AudiencePerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AudiencePerformanceReportRequest"); private final static QName _BudgetSummaryReportTime_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BudgetSummaryReportTime"); private final static QName _ArrayOfAdExtensionDimensionReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdExtensionDimensionReportColumn"); private final static QName _ArrayOfPublisherUsagePerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfPublisherUsagePerformanceReportColumn"); @@ -107,11 +108,11 @@ public class ObjectFactory { private final static QName _TrackingId_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "TrackingId"); private final static QName _ArrayOfProductTargetPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfProductTargetPerformanceReportColumn"); private final static QName _DeviceOSReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "DeviceOSReportFilter"); - private final static QName _AdExtensionDetailReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionDetailReportRequest"); private final static QName _SearchCampaignChangeHistoryReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "SearchCampaignChangeHistoryReportFilter"); + private final static QName _AdExtensionDetailReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionDetailReportRequest"); private final static QName _AccountReportScope_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountReportScope"); - private final static QName _ProductOfferPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductOfferPerformanceReportFilter"); private final static QName _ShareOfVoiceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ShareOfVoiceReportColumn"); + private final static QName _ProductOfferPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductOfferPerformanceReportFilter"); private final static QName _ReportRequestStatus_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ReportRequestStatus"); private final static QName _AdStatusReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdStatusReportFilter"); private final static QName _ArrayOfAdExtensionByKeywordReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdExtensionByKeywordReportColumn"); @@ -135,14 +136,14 @@ public class ObjectFactory { private final static QName _ArrayOfTrafficSourcesReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfTrafficSourcesReportColumn"); private final static QName _AdPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdPerformanceReportFilter"); private final static QName _ProductDimensionPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductDimensionPerformanceReportColumn"); - private final static QName _GeoLocationPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "GeoLocationPerformanceReportColumn"); private final static QName _TrafficSourcesReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "TrafficSourcesReportFilter"); + private final static QName _GeoLocationPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "GeoLocationPerformanceReportColumn"); private final static QName _ProductOfferPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ProductOfferPerformanceReportColumn"); private final static QName _BudgetSummaryReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BudgetSummaryReportColumn"); private final static QName _RichAdSubTypeFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "RichAdSubTypeFilter"); private final static QName _ArrayOfAdApiError_QNAME = new QName("https://adapi.microsoft.com", "ArrayOfAdApiError"); - private final static QName _AccountPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountPerformanceReportColumn"); private final static QName _PublisherUsagePerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "PublisherUsagePerformanceReportRequest"); + private final static QName _AccountPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountPerformanceReportColumn"); private final static QName _ApplicationToken_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ApplicationToken"); private final static QName _CallDetailReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "CallDetailReportRequest"); private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); @@ -153,8 +154,8 @@ public class ObjectFactory { private final static QName _AdExtensionByKeywordReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdExtensionByKeywordReportFilter"); private final static QName _ArrayOfAccountPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAccountPerformanceReportColumn"); private final static QName _AgeGenderDemographicReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AgeGenderDemographicReportFilter"); - private final static QName _ArrayOfTacticChannelReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfTacticChannelReportColumn"); private final static QName _GoalsAndFunnelsReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "GoalsAndFunnelsReportColumn"); + private final static QName _ArrayOfTacticChannelReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfTacticChannelReportColumn"); private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); private final static QName _SearchQueryReportAggregation_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "SearchQueryReportAggregation"); private final static QName _ConversionPerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ConversionPerformanceReportFilter"); @@ -172,6 +173,8 @@ public class ObjectFactory { private final static QName _ArrayOfBatchError_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfBatchError"); private final static QName _ArrayOfAdGroupReportScope_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdGroupReportScope"); private final static QName _AdDynamicTextPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdDynamicTextPerformanceReportColumn"); + private final static QName _AudiencePerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AudiencePerformanceReportColumn"); + private final static QName _ArrayOfAudiencePerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAudiencePerformanceReportColumn"); private final static QName _SortOrder_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "SortOrder"); private final static QName _AdPerformanceReportRequest_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AdPerformanceReportRequest"); private final static QName _ArrayOfNegativeKeywordConflictReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfNegativeKeywordConflictReportColumn"); @@ -225,8 +228,8 @@ public class ObjectFactory { private final static QName _ApplicationFault_QNAME = new QName("https://adapi.microsoft.com", "ApplicationFault"); private final static QName _PublisherUsagePerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "PublisherUsagePerformanceReportFilter"); private final static QName _AccountThroughAdGroupReportScope_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "AccountThroughAdGroupReportScope"); - private final static QName _BrandZonePerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BrandZonePerformanceReportFilter"); private final static QName _ArrayOfAdGroupPerformanceReportColumn_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ArrayOfAdGroupPerformanceReportColumn"); + private final static QName _BrandZonePerformanceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "BrandZonePerformanceReportFilter"); private final static QName _ShareOfVoiceReportFilter_QNAME = new QName("https://bingads.microsoft.com/Reporting/v9", "ShareOfVoiceReportFilter"); private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); @@ -528,19 +531,19 @@ public ArrayOfConversionPerformanceReportColumn createArrayOfConversionPerforman } /** - * Create an instance of {@link AdExtensionDetailReportRequest } + * Create an instance of {@link SearchCampaignChangeHistoryReportFilter } * */ - public AdExtensionDetailReportRequest createAdExtensionDetailReportRequest() { - return new AdExtensionDetailReportRequest(); + public SearchCampaignChangeHistoryReportFilter createSearchCampaignChangeHistoryReportFilter() { + return new SearchCampaignChangeHistoryReportFilter(); } /** - * Create an instance of {@link SearchCampaignChangeHistoryReportFilter } + * Create an instance of {@link AdExtensionDetailReportRequest } * */ - public SearchCampaignChangeHistoryReportFilter createSearchCampaignChangeHistoryReportFilter() { - return new SearchCampaignChangeHistoryReportFilter(); + public AdExtensionDetailReportRequest createAdExtensionDetailReportRequest() { + return new AdExtensionDetailReportRequest(); } /** @@ -704,19 +707,19 @@ public AccountThroughAdGroupReportScope createAccountThroughAdGroupReportScope() } /** - * Create an instance of {@link BrandZonePerformanceReportFilter } + * Create an instance of {@link ArrayOfAdGroupPerformanceReportColumn } * */ - public BrandZonePerformanceReportFilter createBrandZonePerformanceReportFilter() { - return new BrandZonePerformanceReportFilter(); + public ArrayOfAdGroupPerformanceReportColumn createArrayOfAdGroupPerformanceReportColumn() { + return new ArrayOfAdGroupPerformanceReportColumn(); } /** - * Create an instance of {@link ArrayOfAdGroupPerformanceReportColumn } + * Create an instance of {@link BrandZonePerformanceReportFilter } * */ - public ArrayOfAdGroupPerformanceReportColumn createArrayOfAdGroupPerformanceReportColumn() { - return new ArrayOfAdGroupPerformanceReportColumn(); + public BrandZonePerformanceReportFilter createBrandZonePerformanceReportFilter() { + return new BrandZonePerformanceReportFilter(); } /** @@ -1040,19 +1043,19 @@ public AdDynamicTextPerformanceReportFilter createAdDynamicTextPerformanceReport } /** - * Create an instance of {@link AccountPerformanceReportFilter } + * Create an instance of {@link ArrayOfAgeGenderDemographicReportColumn } * */ - public AccountPerformanceReportFilter createAccountPerformanceReportFilter() { - return new AccountPerformanceReportFilter(); + public ArrayOfAgeGenderDemographicReportColumn createArrayOfAgeGenderDemographicReportColumn() { + return new ArrayOfAgeGenderDemographicReportColumn(); } /** - * Create an instance of {@link ArrayOfAgeGenderDemographicReportColumn } + * Create an instance of {@link AccountPerformanceReportFilter } * */ - public ArrayOfAgeGenderDemographicReportColumn createArrayOfAgeGenderDemographicReportColumn() { - return new ArrayOfAgeGenderDemographicReportColumn(); + public AccountPerformanceReportFilter createAccountPerformanceReportFilter() { + return new AccountPerformanceReportFilter(); } /** @@ -1080,19 +1083,19 @@ public ProductPartitionPerformanceReportRequest createProductPartitionPerformanc } /** - * Create an instance of {@link ProductTargetPerformanceReportRequest } + * Create an instance of {@link SearchQueryPerformanceReportRequest } * */ - public ProductTargetPerformanceReportRequest createProductTargetPerformanceReportRequest() { - return new ProductTargetPerformanceReportRequest(); + public SearchQueryPerformanceReportRequest createSearchQueryPerformanceReportRequest() { + return new SearchQueryPerformanceReportRequest(); } /** - * Create an instance of {@link SearchQueryPerformanceReportRequest } + * Create an instance of {@link ProductTargetPerformanceReportRequest } * */ - public SearchQueryPerformanceReportRequest createSearchQueryPerformanceReportRequest() { - return new SearchQueryPerformanceReportRequest(); + public ProductTargetPerformanceReportRequest createProductTargetPerformanceReportRequest() { + return new ProductTargetPerformanceReportRequest(); } /** @@ -1128,11 +1131,11 @@ public ArrayOfBatchError createArrayOfBatchError() { } /** - * Create an instance of {@link ProductTargetPerformanceReportFilter } + * Create an instance of {@link AdExtensionByAdReportFilter } * */ - public ProductTargetPerformanceReportFilter createProductTargetPerformanceReportFilter() { - return new ProductTargetPerformanceReportFilter(); + public AdExtensionByAdReportFilter createAdExtensionByAdReportFilter() { + return new AdExtensionByAdReportFilter(); } /** @@ -1144,11 +1147,19 @@ public ArrayOfAdGroupReportScope createArrayOfAdGroupReportScope() { } /** - * Create an instance of {@link AdExtensionByAdReportFilter } + * Create an instance of {@link ProductTargetPerformanceReportFilter } * */ - public AdExtensionByAdReportFilter createAdExtensionByAdReportFilter() { - return new AdExtensionByAdReportFilter(); + public ProductTargetPerformanceReportFilter createProductTargetPerformanceReportFilter() { + return new ProductTargetPerformanceReportFilter(); + } + + /** + * Create an instance of {@link ArrayOfAudiencePerformanceReportColumn } + * + */ + public ArrayOfAudiencePerformanceReportColumn createArrayOfAudiencePerformanceReportColumn() { + return new ArrayOfAudiencePerformanceReportColumn(); } /** @@ -1207,6 +1218,14 @@ public ArrayOfKeywordPerformanceReportColumn createArrayOfKeywordPerformanceRepo return new ArrayOfKeywordPerformanceReportColumn(); } + /** + * Create an instance of {@link AudiencePerformanceReportRequest } + * + */ + public AudiencePerformanceReportRequest createAudiencePerformanceReportRequest() { + return new AudiencePerformanceReportRequest(); + } + /** * Create an instance of {@link AdGroupPerformanceReportRequest } * @@ -1232,19 +1251,19 @@ public ArrayOfAdExtensionDimensionReportColumn createArrayOfAdExtensionDimension } /** - * Create an instance of {@link ArrayOfAdExtensionDetailReportColumn } + * Create an instance of {@link ArrayOfPublisherUsagePerformanceReportColumn } * */ - public ArrayOfAdExtensionDetailReportColumn createArrayOfAdExtensionDetailReportColumn() { - return new ArrayOfAdExtensionDetailReportColumn(); + public ArrayOfPublisherUsagePerformanceReportColumn createArrayOfPublisherUsagePerformanceReportColumn() { + return new ArrayOfPublisherUsagePerformanceReportColumn(); } /** - * Create an instance of {@link ArrayOfPublisherUsagePerformanceReportColumn } + * Create an instance of {@link ArrayOfAdExtensionDetailReportColumn } * */ - public ArrayOfPublisherUsagePerformanceReportColumn createArrayOfPublisherUsagePerformanceReportColumn() { - return new ArrayOfPublisherUsagePerformanceReportColumn(); + public ArrayOfAdExtensionDetailReportColumn createArrayOfAdExtensionDetailReportColumn() { + return new ArrayOfAdExtensionDetailReportColumn(); } /** @@ -1632,21 +1651,21 @@ public JAXBElement createAdExtensionByKeywordR } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAgeGenderDemographicReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportFilter") - public JAXBElement createAccountPerformanceReportFilter(AccountPerformanceReportFilter value) { - return new JAXBElement(_AccountPerformanceReportFilter_QNAME, AccountPerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAgeGenderDemographicReportColumn") + public JAXBElement createArrayOfAgeGenderDemographicReportColumn(ArrayOfAgeGenderDemographicReportColumn value) { + return new JAXBElement(_ArrayOfAgeGenderDemographicReportColumn_QNAME, ArrayOfAgeGenderDemographicReportColumn.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAgeGenderDemographicReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAgeGenderDemographicReportColumn") - public JAXBElement createArrayOfAgeGenderDemographicReportColumn(ArrayOfAgeGenderDemographicReportColumn value) { - return new JAXBElement(_ArrayOfAgeGenderDemographicReportColumn_QNAME, ArrayOfAgeGenderDemographicReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportFilter") + public JAXBElement createAccountPerformanceReportFilter(AccountPerformanceReportFilter value) { + return new JAXBElement(_AccountPerformanceReportFilter_QNAME, AccountPerformanceReportFilter.class, null, value); } /** @@ -1767,21 +1786,21 @@ public JAXBElement createGuid(Guid value) { } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ProductTargetPerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionByAdReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductTargetPerformanceReportFilter") - public JAXBElement createProductTargetPerformanceReportFilter(ProductTargetPerformanceReportFilter value) { - return new JAXBElement(_ProductTargetPerformanceReportFilter_QNAME, ProductTargetPerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionByAdReportFilter") + public JAXBElement createAdExtensionByAdReportFilter(AdExtensionByAdReportFilter value) { + return new JAXBElement(_AdExtensionByAdReportFilter_QNAME, AdExtensionByAdReportFilter.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionByAdReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ProductTargetPerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionByAdReportFilter") - public JAXBElement createAdExtensionByAdReportFilter(AdExtensionByAdReportFilter value) { - return new JAXBElement(_AdExtensionByAdReportFilter_QNAME, AdExtensionByAdReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductTargetPerformanceReportFilter") + public JAXBElement createProductTargetPerformanceReportFilter(ProductTargetPerformanceReportFilter value) { + return new JAXBElement(_ProductTargetPerformanceReportFilter_QNAME, ProductTargetPerformanceReportFilter.class, null, value); } /** @@ -1830,6 +1849,15 @@ public JAXBElement> createAdDistributionR return new JAXBElement>(_AdDistributionReportFilter_QNAME, ((Class) Collection.class), null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AudiencePerformanceReportRequest }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AudiencePerformanceReportRequest") + public JAXBElement createAudiencePerformanceReportRequest(AudiencePerformanceReportRequest value) { + return new JAXBElement(_AudiencePerformanceReportRequest_QNAME, AudiencePerformanceReportRequest.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link BudgetSummaryReportTime }{@code >}} * @@ -2066,21 +2094,21 @@ public JAXBElement> createDeviceOSReportFilter( } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionDetailReportRequest }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link SearchCampaignChangeHistoryReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionDetailReportRequest") - public JAXBElement createAdExtensionDetailReportRequest(AdExtensionDetailReportRequest value) { - return new JAXBElement(_AdExtensionDetailReportRequest_QNAME, AdExtensionDetailReportRequest.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "SearchCampaignChangeHistoryReportFilter") + public JAXBElement createSearchCampaignChangeHistoryReportFilter(SearchCampaignChangeHistoryReportFilter value) { + return new JAXBElement(_SearchCampaignChangeHistoryReportFilter_QNAME, SearchCampaignChangeHistoryReportFilter.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link SearchCampaignChangeHistoryReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AdExtensionDetailReportRequest }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "SearchCampaignChangeHistoryReportFilter") - public JAXBElement createSearchCampaignChangeHistoryReportFilter(SearchCampaignChangeHistoryReportFilter value) { - return new JAXBElement(_SearchCampaignChangeHistoryReportFilter_QNAME, SearchCampaignChangeHistoryReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AdExtensionDetailReportRequest") + public JAXBElement createAdExtensionDetailReportRequest(AdExtensionDetailReportRequest value) { + return new JAXBElement(_AdExtensionDetailReportRequest_QNAME, AdExtensionDetailReportRequest.class, null, value); } /** @@ -2093,21 +2121,21 @@ public JAXBElement createAccountReportScope(AccountReportSco } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ProductOfferPerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ShareOfVoiceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductOfferPerformanceReportFilter") - public JAXBElement createProductOfferPerformanceReportFilter(ProductOfferPerformanceReportFilter value) { - return new JAXBElement(_ProductOfferPerformanceReportFilter_QNAME, ProductOfferPerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ShareOfVoiceReportColumn") + public JAXBElement createShareOfVoiceReportColumn(ShareOfVoiceReportColumn value) { + return new JAXBElement(_ShareOfVoiceReportColumn_QNAME, ShareOfVoiceReportColumn.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ShareOfVoiceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ProductOfferPerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ShareOfVoiceReportColumn") - public JAXBElement createShareOfVoiceReportColumn(ShareOfVoiceReportColumn value) { - return new JAXBElement(_ShareOfVoiceReportColumn_QNAME, ShareOfVoiceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ProductOfferPerformanceReportFilter") + public JAXBElement createProductOfferPerformanceReportFilter(ProductOfferPerformanceReportFilter value) { + return new JAXBElement(_ProductOfferPerformanceReportFilter_QNAME, ProductOfferPerformanceReportFilter.class, null, value); } /** @@ -2319,21 +2347,21 @@ public JAXBElement createProductDimensi } /** - * Create an instance of {@link JAXBElement }{@code <}{@link GeoLocationPerformanceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link TrafficSourcesReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "GeoLocationPerformanceReportColumn") - public JAXBElement createGeoLocationPerformanceReportColumn(GeoLocationPerformanceReportColumn value) { - return new JAXBElement(_GeoLocationPerformanceReportColumn_QNAME, GeoLocationPerformanceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "TrafficSourcesReportFilter") + public JAXBElement createTrafficSourcesReportFilter(TrafficSourcesReportFilter value) { + return new JAXBElement(_TrafficSourcesReportFilter_QNAME, TrafficSourcesReportFilter.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link TrafficSourcesReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link GeoLocationPerformanceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "TrafficSourcesReportFilter") - public JAXBElement createTrafficSourcesReportFilter(TrafficSourcesReportFilter value) { - return new JAXBElement(_TrafficSourcesReportFilter_QNAME, TrafficSourcesReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "GeoLocationPerformanceReportColumn") + public JAXBElement createGeoLocationPerformanceReportColumn(GeoLocationPerformanceReportColumn value) { + return new JAXBElement(_GeoLocationPerformanceReportColumn_QNAME, GeoLocationPerformanceReportColumn.class, null, value); } /** @@ -2374,21 +2402,21 @@ public JAXBElement createArrayOfAdApiError(ArrayOfAdApiError } /** - * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link PublisherUsagePerformanceReportRequest }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportColumn") - public JAXBElement createAccountPerformanceReportColumn(AccountPerformanceReportColumn value) { - return new JAXBElement(_AccountPerformanceReportColumn_QNAME, AccountPerformanceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "PublisherUsagePerformanceReportRequest") + public JAXBElement createPublisherUsagePerformanceReportRequest(PublisherUsagePerformanceReportRequest value) { + return new JAXBElement(_PublisherUsagePerformanceReportRequest_QNAME, PublisherUsagePerformanceReportRequest.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link PublisherUsagePerformanceReportRequest }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link AccountPerformanceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "PublisherUsagePerformanceReportRequest") - public JAXBElement createPublisherUsagePerformanceReportRequest(PublisherUsagePerformanceReportRequest value) { - return new JAXBElement(_PublisherUsagePerformanceReportRequest_QNAME, PublisherUsagePerformanceReportRequest.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AccountPerformanceReportColumn") + public JAXBElement createAccountPerformanceReportColumn(AccountPerformanceReportColumn value) { + return new JAXBElement(_AccountPerformanceReportColumn_QNAME, AccountPerformanceReportColumn.class, null, value); } /** @@ -2483,21 +2511,21 @@ public JAXBElement createAgeGenderDemographicR } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfTacticChannelReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link GoalsAndFunnelsReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfTacticChannelReportColumn") - public JAXBElement createArrayOfTacticChannelReportColumn(ArrayOfTacticChannelReportColumn value) { - return new JAXBElement(_ArrayOfTacticChannelReportColumn_QNAME, ArrayOfTacticChannelReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "GoalsAndFunnelsReportColumn") + public JAXBElement createGoalsAndFunnelsReportColumn(GoalsAndFunnelsReportColumn value) { + return new JAXBElement(_GoalsAndFunnelsReportColumn_QNAME, GoalsAndFunnelsReportColumn.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link GoalsAndFunnelsReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfTacticChannelReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "GoalsAndFunnelsReportColumn") - public JAXBElement createGoalsAndFunnelsReportColumn(GoalsAndFunnelsReportColumn value) { - return new JAXBElement(_GoalsAndFunnelsReportColumn_QNAME, GoalsAndFunnelsReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfTacticChannelReportColumn") + public JAXBElement createArrayOfTacticChannelReportColumn(ArrayOfTacticChannelReportColumn value) { + return new JAXBElement(_ArrayOfTacticChannelReportColumn_QNAME, ArrayOfTacticChannelReportColumn.class, null, value); } /** @@ -2655,6 +2683,24 @@ public JAXBElement createAdDynamicTextPerf return new JAXBElement(_AdDynamicTextPerformanceReportColumn_QNAME, AdDynamicTextPerformanceReportColumn.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AudiencePerformanceReportColumn }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "AudiencePerformanceReportColumn") + public JAXBElement createAudiencePerformanceReportColumn(AudiencePerformanceReportColumn value) { + return new JAXBElement(_AudiencePerformanceReportColumn_QNAME, AudiencePerformanceReportColumn.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAudiencePerformanceReportColumn }{@code >}} + * + */ + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAudiencePerformanceReportColumn") + public JAXBElement createArrayOfAudiencePerformanceReportColumn(ArrayOfAudiencePerformanceReportColumn value) { + return new JAXBElement(_ArrayOfAudiencePerformanceReportColumn_QNAME, ArrayOfAudiencePerformanceReportColumn.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link SortOrder }{@code >}} * @@ -3140,21 +3186,21 @@ public JAXBElement createAccountThroughAdGroup } /** - * Create an instance of {@link JAXBElement }{@code <}{@link BrandZonePerformanceReportFilter }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupPerformanceReportColumn }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "BrandZonePerformanceReportFilter") - public JAXBElement createBrandZonePerformanceReportFilter(BrandZonePerformanceReportFilter value) { - return new JAXBElement(_BrandZonePerformanceReportFilter_QNAME, BrandZonePerformanceReportFilter.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAdGroupPerformanceReportColumn") + public JAXBElement createArrayOfAdGroupPerformanceReportColumn(ArrayOfAdGroupPerformanceReportColumn value) { + return new JAXBElement(_ArrayOfAdGroupPerformanceReportColumn_QNAME, ArrayOfAdGroupPerformanceReportColumn.class, null, value); } /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAdGroupPerformanceReportColumn }{@code >}} + * Create an instance of {@link JAXBElement }{@code <}{@link BrandZonePerformanceReportFilter }{@code >}} * */ - @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "ArrayOfAdGroupPerformanceReportColumn") - public JAXBElement createArrayOfAdGroupPerformanceReportColumn(ArrayOfAdGroupPerformanceReportColumn value) { - return new JAXBElement(_ArrayOfAdGroupPerformanceReportColumn_QNAME, ArrayOfAdGroupPerformanceReportColumn.class, null, value); + @XmlElementDecl(namespace = "https://bingads.microsoft.com/Reporting/v9", name = "BrandZonePerformanceReportFilter") + public JAXBElement createBrandZonePerformanceReportFilter(BrandZonePerformanceReportFilter value) { + return new JAXBElement(_BrandZonePerformanceReportFilter_QNAME, BrandZonePerformanceReportFilter.class, null, value); } /** diff --git a/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java b/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java index 9981416593..f5892b397c 100644 --- a/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/ProductDimensionPerformanceReportColumn.java @@ -19,7 +19,12 @@ * <enumeration value="AccountNumber"/> * <enumeration value="AdGroupName"/> * <enumeration value="AdGroupId"/> + * <enumeration value="CampaignStatus"/> + * <enumeration value="AccountStatus"/> + * <enumeration value="AdGroupStatus"/> + * <enumeration value="Network"/> * <enumeration value="AdId"/> + * <enumeration value="CampaignId"/> * <enumeration value="CampaignName"/> * <enumeration value="CurrencyCode"/> * <enumeration value="DeviceType"/> @@ -28,6 +33,7 @@ * <enumeration value="Title"/> * <enumeration value="Condition"/> * <enumeration value="Brand"/> + * <enumeration value="Price"/> * <enumeration value="CustomLabel0"/> * <enumeration value="CustomLabel1"/> * <enumeration value="CustomLabel2"/> @@ -48,6 +54,10 @@ * <enumeration value="Ctr"/> * <enumeration value="AverageCpc"/> * <enumeration value="Spend"/> + * <enumeration value="Conversions"/> + * <enumeration value="ConversionRate"/> + * <enumeration value="Revenue"/> + * <enumeration value="RevenuePerConversion"/> * </restriction> * </simpleType> * @@ -67,8 +77,18 @@ public enum ProductDimensionPerformanceReportColumn { AD_GROUP_NAME("AdGroupName"), @XmlEnumValue("AdGroupId") AD_GROUP_ID("AdGroupId"), + @XmlEnumValue("CampaignStatus") + CAMPAIGN_STATUS("CampaignStatus"), + @XmlEnumValue("AccountStatus") + ACCOUNT_STATUS("AccountStatus"), + @XmlEnumValue("AdGroupStatus") + AD_GROUP_STATUS("AdGroupStatus"), + @XmlEnumValue("Network") + NETWORK("Network"), @XmlEnumValue("AdId") AD_ID("AdId"), + @XmlEnumValue("CampaignId") + CAMPAIGN_ID("CampaignId"), @XmlEnumValue("CampaignName") CAMPAIGN_NAME("CampaignName"), @XmlEnumValue("CurrencyCode") @@ -85,6 +105,8 @@ public enum ProductDimensionPerformanceReportColumn { CONDITION("Condition"), @XmlEnumValue("Brand") BRAND("Brand"), + @XmlEnumValue("Price") + PRICE("Price"), @XmlEnumValue("CustomLabel0") CUSTOM_LABEL_0("CustomLabel0"), @XmlEnumValue("CustomLabel1") @@ -124,7 +146,15 @@ public enum ProductDimensionPerformanceReportColumn { @XmlEnumValue("AverageCpc") AVERAGE_CPC("AverageCpc"), @XmlEnumValue("Spend") - SPEND("Spend"); + SPEND("Spend"), + @XmlEnumValue("Conversions") + CONVERSIONS("Conversions"), + @XmlEnumValue("ConversionRate") + CONVERSION_RATE("ConversionRate"), + @XmlEnumValue("Revenue") + REVENUE("Revenue"), + @XmlEnumValue("RevenuePerConversion") + REVENUE_PER_CONVERSION("RevenuePerConversion"); private final String value; ProductDimensionPerformanceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/ReportRequest.java b/proxies/com/microsoft/bingads/reporting/ReportRequest.java index 0c7fa4bdc8..542f7ba0cf 100644 --- a/proxies/com/microsoft/bingads/reporting/ReportRequest.java +++ b/proxies/com/microsoft/bingads/reporting/ReportRequest.java @@ -65,11 +65,12 @@ AgeGenderDemographicReportRequest.class, ProductDimensionPerformanceReportRequest.class, ProductPartitionPerformanceReportRequest.class, - ProductTargetPerformanceReportRequest.class, SearchQueryPerformanceReportRequest.class, + ProductTargetPerformanceReportRequest.class, BrandZonePerformanceReportRequest.class, AdPerformanceReportRequest.class, BudgetSummaryReportRequest.class, + AudiencePerformanceReportRequest.class, AdGroupPerformanceReportRequest.class }) public class ReportRequest { diff --git a/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportColumn.java b/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportColumn.java index 61a4f75cbc..34edc319c3 100644 --- a/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportColumn.java +++ b/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportColumn.java @@ -50,6 +50,8 @@ * <enumeration value="CostPerConversion"/> * <enumeration value="AdDistribution"/> * <enumeration value="ClickSharePercent"/> + * <enumeration value="DeviceType"/> + * <enumeration value="Network"/> * </restriction> * </simpleType> * @@ -130,7 +132,11 @@ public enum ShareOfVoiceReportColumn { @XmlEnumValue("AdDistribution") AD_DISTRIBUTION("AdDistribution"), @XmlEnumValue("ClickSharePercent") - CLICK_SHARE_PERCENT("ClickSharePercent"); + CLICK_SHARE_PERCENT("ClickSharePercent"), + @XmlEnumValue("DeviceType") + DEVICE_TYPE("DeviceType"), + @XmlEnumValue("Network") + NETWORK("Network"); private final String value; ShareOfVoiceReportColumn(String v) { diff --git a/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportFilter.java b/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportFilter.java index 60cccfa48d..2753c4d0eb 100644 --- a/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportFilter.java +++ b/proxies/com/microsoft/bingads/reporting/ShareOfVoiceReportFilter.java @@ -23,6 +23,7 @@ * <element name="AdDistribution" type="{https://bingads.microsoft.com/Reporting/v9}AdDistributionReportFilter" minOccurs="0"/> * <element name="BidMatchType" type="{https://bingads.microsoft.com/Reporting/v9}BidMatchTypeReportFilter" minOccurs="0"/> * <element name="DeliveredMatchType" type="{https://bingads.microsoft.com/Reporting/v9}DeliveredMatchTypeReportFilter" minOccurs="0"/> + * <element name="DeviceType" type="{https://bingads.microsoft.com/Reporting/v9}DeviceTypeReportFilter" minOccurs="0"/> * <element name="Keywords" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/> * <element name="LanguageCode" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/> * </sequence> @@ -38,6 +39,7 @@ "adDistribution", "bidMatchType", "deliveredMatchType", + "deviceType", "keywords", "languageCode" }) @@ -55,6 +57,10 @@ public class ShareOfVoiceReportFilter { @XmlJavaTypeAdapter(Adapter13 .class) @XmlSchemaType(name = "anySimpleType") protected Collection deliveredMatchType; + @XmlElement(name = "DeviceType", type = String.class, nillable = true) + @XmlJavaTypeAdapter(Adapter11 .class) + @XmlSchemaType(name = "anySimpleType") + protected Collection deviceType; @XmlElement(name = "Keywords", nillable = true) protected ArrayOfstring keywords; @XmlElement(name = "LanguageCode", nillable = true) @@ -132,6 +138,30 @@ public void setDeliveredMatchType(Collection val this.deliveredMatchType = value; } + /** + * Gets the value of the deviceType property. + * + * @return + * possible object is + * {@link String } + * + */ + public Collection getDeviceType() { + return deviceType; + } + + /** + * Sets the value of the deviceType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDeviceType(Collection value) { + this.deviceType = value; + } + /** * Gets the value of the keywords property. * diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java b/proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java index 2519531c1b..d0a3dc380e 100644 --- a/proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java +++ b/proxies/com/microsoft/bingads/v10/adinsight/AdInsightService.java @@ -68,6 +68,28 @@ public IAdInsightService getBasicHttpBindingIAdInsightService(WebServiceFeature. return super.getPort(new QName("Microsoft.Advertiser.AdInsight.Api.Service", "BasicHttpBinding_IAdInsightService"), IAdInsightService.class, features); } + /** + * + * @return + * returns IAdInsightService + */ + @WebEndpoint(name = "BasicHttpBinding_IAdInsightService1") + public IAdInsightService getBasicHttpBindingIAdInsightService1() { + return super.getPort(new QName("Microsoft.Advertiser.AdInsight.Api.Service", "BasicHttpBinding_IAdInsightService1"), IAdInsightService.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns IAdInsightService + */ + @WebEndpoint(name = "BasicHttpBinding_IAdInsightService1") + public IAdInsightService getBasicHttpBindingIAdInsightService1(WebServiceFeature... features) { + return super.getPort(new QName("Microsoft.Advertiser.AdInsight.Api.Service", "BasicHttpBinding_IAdInsightService1"), IAdInsightService.class, features); + } + private static URL __getWsdlLocation() { if (ADINSIGHTSERVICE_EXCEPTION!= null) { throw ADINSIGHTSERVICE_EXCEPTION; diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightKPINode.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightKPINode.java new file mode 100644 index 0000000000..4d5522c66e --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightKPINode.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAuctionInsightKPINode complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ArrayOfAuctionInsightKPINode">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AuctionInsightKPINode" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AuctionInsightKPINode" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAuctionInsightKPINode", propOrder = { + "auctionInsightKPINodes" +}) +public class ArrayOfAuctionInsightKPINode { + + @XmlElement(name = "AuctionInsightKPINode", nillable = true) + protected List auctionInsightKPINodes; + + /** + * Gets the value of the auctionInsightKPINodes 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 JAXB object. + * This is why there is not a set method for the auctionInsightKPINodes property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAuctionInsightKPINodes().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AuctionInsightKPINode } + * + * + */ + public List getAuctionInsightKPINodes() { + if (auctionInsightKPINodes == null) { + auctionInsightKPINodes = new ArrayList(); + } + return this.auctionInsightKPINodes; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightV2Entity.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightV2Entity.java new file mode 100644 index 0000000000..6d3fa85997 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfAuctionInsightV2Entity.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfAuctionInsightV2Entity complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ArrayOfAuctionInsightV2Entity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="AuctionInsightV2Entity" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AuctionInsightV2Entity" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfAuctionInsightV2Entity", propOrder = { + "auctionInsightV2Entities" +}) +public class ArrayOfAuctionInsightV2Entity { + + @XmlElement(name = "AuctionInsightV2Entity", nillable = true) + protected List auctionInsightV2Entities; + + /** + * Gets the value of the auctionInsightV2Entities 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 JAXB object. + * This is why there is not a set method for the auctionInsightV2Entities property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAuctionInsightV2Entities().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AuctionInsightV2Entity } + * + * + */ + public List getAuctionInsightV2Entities() { + if (auctionInsightV2Entities == null) { + auctionInsightV2Entities = new ArrayList(); + } + return this.auctionInsightV2Entities; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfField.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfField.java new file mode 100644 index 0000000000..ea63bcfed8 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfField.java @@ -0,0 +1,71 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfField complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ArrayOfField">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Field" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Field" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfField", propOrder = { + "fields" +}) +public class ArrayOfField { + + @XmlElement(name = "Field") + @XmlSchemaType(name = "string") + protected List fields; + + /** + * Gets the value of the fields 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 JAXB object. + * This is why there is not a set method for the fields property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFields().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Field } + * + * + */ + public List getFields() { + if (fields == null) { + fields = new ArrayList(); + } + return this.fields; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOrderBy.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOrderBy.java new file mode 100644 index 0000000000..720a61b65c --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfOrderBy.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfOrderBy complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ArrayOfOrderBy">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="OrderBy" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}OrderBy" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfOrderBy", propOrder = { + "orderBies" +}) +public class ArrayOfOrderBy { + + @XmlElement(name = "OrderBy", nillable = true) + protected List orderBies; + + /** + * Gets the value of the orderBies 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 JAXB object. + * This is why there is not a set method for the orderBies property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getOrderBies().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link OrderBy } + * + * + */ + public List getOrderBies() { + if (orderBies == null) { + orderBies = new ArrayList(); + } + return this.orderBies; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfPredicate.java b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfPredicate.java new file mode 100644 index 0000000000..3026da457b --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/ArrayOfPredicate.java @@ -0,0 +1,69 @@ + +package com.microsoft.bingads.v10.adinsight; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for ArrayOfPredicate complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ArrayOfPredicate">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Predicate" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Predicate" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ArrayOfPredicate", propOrder = { + "predicates" +}) +public class ArrayOfPredicate { + + @XmlElement(name = "Predicate", nillable = true) + protected List predicates; + + /** + * Gets the value of the predicates 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 JAXB object. + * This is why there is not a set method for the predicates property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPredicates().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Predicate } + * + * + */ + public List getPredicates() { + if (predicates == null) { + predicates = new ArrayList(); + } + return this.predicates; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightKPINode.java b/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightKPINode.java new file mode 100644 index 0000000000..9da11f0c03 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightKPINode.java @@ -0,0 +1,202 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AuctionInsightKPINode complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="AuctionInsightKPINode">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DimensionNames" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *         <element name="ImpressionShare" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="OverlapRate" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="AveragePosition" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="AboveRate" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="TopOfPageRate" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AuctionInsightKPINode", propOrder = { + "dimensionNames", + "impressionShare", + "overlapRate", + "averagePosition", + "aboveRate", + "topOfPageRate" +}) +public class AuctionInsightKPINode { + + @XmlElement(name = "DimensionNames", nillable = true) + protected ArrayOfstring dimensionNames; + @XmlElement(name = "ImpressionShare") + protected Double impressionShare; + @XmlElement(name = "OverlapRate") + protected Double overlapRate; + @XmlElement(name = "AveragePosition") + protected Double averagePosition; + @XmlElement(name = "AboveRate") + protected Double aboveRate; + @XmlElement(name = "TopOfPageRate") + protected Double topOfPageRate; + + /** + * Gets the value of the dimensionNames property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getDimensionNames() { + return dimensionNames; + } + + /** + * Sets the value of the dimensionNames property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setDimensionNames(ArrayOfstring value) { + this.dimensionNames = value; + } + + /** + * Gets the value of the impressionShare property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getImpressionShare() { + return impressionShare; + } + + /** + * Sets the value of the impressionShare property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setImpressionShare(Double value) { + this.impressionShare = value; + } + + /** + * Gets the value of the overlapRate property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getOverlapRate() { + return overlapRate; + } + + /** + * Sets the value of the overlapRate property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setOverlapRate(Double value) { + this.overlapRate = value; + } + + /** + * Gets the value of the averagePosition property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAveragePosition() { + return averagePosition; + } + + /** + * Sets the value of the averagePosition property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAveragePosition(Double value) { + this.averagePosition = value; + } + + /** + * Gets the value of the aboveRate property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAboveRate() { + return aboveRate; + } + + /** + * Sets the value of the aboveRate property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAboveRate(Double value) { + this.aboveRate = value; + } + + /** + * Gets the value of the topOfPageRate property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getTopOfPageRate() { + return topOfPageRate; + } + + /** + * Sets the value of the topOfPageRate property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setTopOfPageRate(Double value) { + this.topOfPageRate = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightResult.java b/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightResult.java new file mode 100644 index 0000000000..07a2245383 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightResult.java @@ -0,0 +1,146 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AuctionInsightResult complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="AuctionInsightResult">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="TotalNumEntries" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Entries" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfAuctionInsightV2Entity" minOccurs="0"/>
+ *         <element name="UsedImpressions" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *         <element name="UsedKeywords" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AuctionInsightResult", propOrder = { + "totalNumEntries", + "entries", + "usedImpressions", + "usedKeywords" +}) +public class AuctionInsightResult { + + @XmlElement(name = "TotalNumEntries") + protected Integer totalNumEntries; + @XmlElement(name = "Entries", nillable = true) + protected ArrayOfAuctionInsightV2Entity entries; + @XmlElement(name = "UsedImpressions") + protected Double usedImpressions; + @XmlElement(name = "UsedKeywords") + protected Double usedKeywords; + + /** + * Gets the value of the totalNumEntries property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getTotalNumEntries() { + return totalNumEntries; + } + + /** + * Sets the value of the totalNumEntries property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setTotalNumEntries(Integer value) { + this.totalNumEntries = value; + } + + /** + * Gets the value of the entries property. + * + * @return + * possible object is + * {@link ArrayOfAuctionInsightV2Entity } + * + */ + public ArrayOfAuctionInsightV2Entity getEntries() { + return entries; + } + + /** + * Sets the value of the entries property. + * + * @param value + * allowed object is + * {@link ArrayOfAuctionInsightV2Entity } + * + */ + public void setEntries(ArrayOfAuctionInsightV2Entity value) { + this.entries = value; + } + + /** + * Gets the value of the usedImpressions property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getUsedImpressions() { + return usedImpressions; + } + + /** + * Sets the value of the usedImpressions property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setUsedImpressions(Double value) { + this.usedImpressions = value; + } + + /** + * Gets the value of the usedKeywords property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getUsedKeywords() { + return usedKeywords; + } + + /** + * Sets the value of the usedKeywords property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setUsedKeywords(Double value) { + this.usedKeywords = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightV2Entity.java b/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightV2Entity.java new file mode 100644 index 0000000000..94b0c074de --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/AuctionInsightV2Entity.java @@ -0,0 +1,118 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for AuctionInsightV2Entity complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="AuctionInsightV2Entity">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DisplayDomain" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="AggregatedKPI" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AuctionInsightKPINode" minOccurs="0"/>
+ *         <element name="KPIs" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfAuctionInsightKPINode" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "AuctionInsightV2Entity", propOrder = { + "displayDomain", + "aggregatedKPI", + "kpIs" +}) +public class AuctionInsightV2Entity { + + @XmlElement(name = "DisplayDomain", nillable = true) + protected String displayDomain; + @XmlElement(name = "AggregatedKPI", nillable = true) + protected AuctionInsightKPINode aggregatedKPI; + @XmlElement(name = "KPIs", nillable = true) + protected ArrayOfAuctionInsightKPINode kpIs; + + /** + * Gets the value of the displayDomain property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayDomain() { + return displayDomain; + } + + /** + * Sets the value of the displayDomain property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayDomain(String value) { + this.displayDomain = value; + } + + /** + * Gets the value of the aggregatedKPI property. + * + * @return + * possible object is + * {@link AuctionInsightKPINode } + * + */ + public AuctionInsightKPINode getAggregatedKPI() { + return aggregatedKPI; + } + + /** + * Sets the value of the aggregatedKPI property. + * + * @param value + * allowed object is + * {@link AuctionInsightKPINode } + * + */ + public void setAggregatedKPI(AuctionInsightKPINode value) { + this.aggregatedKPI = value; + } + + /** + * Gets the value of the kpIs property. + * + * @return + * possible object is + * {@link ArrayOfAuctionInsightKPINode } + * + */ + public ArrayOfAuctionInsightKPINode getKPIs() { + return kpIs; + } + + /** + * Sets the value of the kpIs property. + * + * @param value + * allowed object is + * {@link ArrayOfAuctionInsightKPINode } + * + */ + public void setKPIs(ArrayOfAuctionInsightKPINode value) { + this.kpIs = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/DateRange.java b/proxies/com/microsoft/bingads/v10/adinsight/DateRange.java new file mode 100644 index 0000000000..0b52838377 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/DateRange.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for DateRange complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="DateRange">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="MaxDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="MinDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DateRange", propOrder = { + "maxDate", + "minDate" +}) +public class DateRange { + + @XmlElement(name = "MaxDate", nillable = true) + protected String maxDate; + @XmlElement(name = "MinDate", nillable = true) + protected String minDate; + + /** + * Gets the value of the maxDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMaxDate() { + return maxDate; + } + + /** + * Sets the value of the maxDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMaxDate(String value) { + this.maxDate = value; + } + + /** + * Gets the value of the minDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMinDate() { + return minDate; + } + + /** + * Sets the value of the minDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMinDate(String value) { + this.minDate = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Field.java b/proxies/com/microsoft/bingads/v10/adinsight/Field.java new file mode 100644 index 0000000000..f99a94e9e0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Field.java @@ -0,0 +1,80 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Field. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="Field">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="UNKNOW"/>
+ *     <enumeration value="BidLandscape"/>
+ *     <enumeration value="BidSuggestion"/>
+ *     <enumeration value="EntityAuctionInsight"/>
+ *     <enumeration value="AggregatedAuctionInsight"/>
+ *     <enumeration value="AuctionInsightAvailableChildren"/>
+ *     <enumeration value="TopMover"/>
+ *     <enumeration value="AccountId"/>
+ *     <enumeration value="CampaignId"/>
+ *     <enumeration value="AdGroupId"/>
+ *     <enumeration value="KeywordId"/>
+ *     <enumeration value="TimeInterval"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "Field") +@XmlEnum +public enum Field { + + UNKNOW("UNKNOW"), + @XmlEnumValue("BidLandscape") + BID_LANDSCAPE("BidLandscape"), + @XmlEnumValue("BidSuggestion") + BID_SUGGESTION("BidSuggestion"), + @XmlEnumValue("EntityAuctionInsight") + ENTITY_AUCTION_INSIGHT("EntityAuctionInsight"), + @XmlEnumValue("AggregatedAuctionInsight") + AGGREGATED_AUCTION_INSIGHT("AggregatedAuctionInsight"), + @XmlEnumValue("AuctionInsightAvailableChildren") + AUCTION_INSIGHT_AVAILABLE_CHILDREN("AuctionInsightAvailableChildren"), + @XmlEnumValue("TopMover") + TOP_MOVER("TopMover"), + @XmlEnumValue("AccountId") + ACCOUNT_ID("AccountId"), + @XmlEnumValue("CampaignId") + CAMPAIGN_ID("CampaignId"), + @XmlEnumValue("AdGroupId") + AD_GROUP_ID("AdGroupId"), + @XmlEnumValue("KeywordId") + KEYWORD_ID("KeywordId"), + @XmlEnumValue("TimeInterval") + TIME_INTERVAL("TimeInterval"); + private final String value; + + Field(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Field fromValue(String v) { + for (Field c: Field.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataRequest.java new file mode 100644 index 0000000000..9902e8b897 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Selector" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Selector" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "selector" +}) +@XmlRootElement(name = "GetAuctionInsightDataRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetAuctionInsightDataRequest { + + @XmlElement(name = "Selector", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Selector selector; + + /** + * Gets the value of the selector property. + * + * @return + * possible object is + * {@link Selector } + * + */ + public Selector getSelector() { + return selector; + } + + /** + * Sets the value of the selector property. + * + * @param value + * allowed object is + * {@link Selector } + * + */ + public void setSelector(Selector value) { + this.selector = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataResponse.java b/proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataResponse.java new file mode 100644 index 0000000000..fa4790d9ce --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetAuctionInsightDataResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Result" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}AuctionInsightResult" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "result" +}) +@XmlRootElement(name = "GetAuctionInsightDataResponse", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") +public class GetAuctionInsightDataResponse { + + @XmlElement(name = "Result", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected AuctionInsightResult result; + + /** + * Gets the value of the result property. + * + * @return + * possible object is + * {@link AuctionInsightResult } + * + */ + public AuctionInsightResult getResult() { + return result; + } + + /** + * Sets the value of the result property. + * + * @param value + * allowed object is + * {@link AuctionInsightResult } + * + */ + public void setResult(AuctionInsightResult value) { + this.result = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java index 6ea14a739e..c10312a5eb 100644 --- a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedBidByKeywordsRequest.java @@ -25,7 +25,7 @@ * <element name="PublisherCountries" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/> * <element name="Currency" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Currency" minOccurs="0"/> * <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> - * <element name="AdgroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> + * <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="EntityLevelBid" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </restriction> @@ -43,7 +43,7 @@ "publisherCountries", "currency", "campaignId", - "adgroupId", + "adGroupId", "entityLevelBid" }) @XmlRootElement(name = "GetEstimatedBidByKeywordsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") @@ -63,8 +63,8 @@ public class GetEstimatedBidByKeywordsRequest { protected Currency currency; @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) protected Long campaignId; - @XmlElement(name = "AdgroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) - protected Long adgroupId; + @XmlElement(name = "AdGroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long adGroupId; @XmlElement(name = "EntityLevelBid", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) protected String entityLevelBid; @@ -213,27 +213,27 @@ public void setCampaignId(Long value) { } /** - * Gets the value of the adgroupId property. + * Gets the value of the adGroupId property. * * @return * possible object is * {@link Long } * */ - public Long getAdgroupId() { - return adgroupId; + public Long getAdGroupId() { + return adGroupId; } /** - * Sets the value of the adgroupId property. + * Sets the value of the adGroupId property. * * @param value * allowed object is * {@link Long } * */ - public void setAdgroupId(Long value) { - this.adgroupId = value; + public void setAdGroupId(Long value) { + this.adGroupId = value; } /** diff --git a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java index c61ee1cf41..93d450163c 100644 --- a/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java +++ b/proxies/com/microsoft/bingads/v10/adinsight/GetEstimatedPositionByKeywordsRequest.java @@ -26,7 +26,7 @@ * <element name="Currency" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Currency" minOccurs="0"/> * <element name="MatchTypes" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfMatchType" minOccurs="0"/> * <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> - * <element name="AdgroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> + * <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> @@ -44,7 +44,7 @@ "currency", "matchTypes", "campaignId", - "adgroupId" + "adGroupId" }) @XmlRootElement(name = "GetEstimatedPositionByKeywordsRequest", namespace = "Microsoft.Advertiser.AdInsight.Api.Service") public class GetEstimatedPositionByKeywordsRequest { @@ -64,8 +64,8 @@ public class GetEstimatedPositionByKeywordsRequest { protected ArrayOfMatchType matchTypes; @XmlElement(name = "CampaignId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) protected Long campaignId; - @XmlElement(name = "AdgroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) - protected Long adgroupId; + @XmlElement(name = "AdGroupId", namespace = "Microsoft.Advertiser.AdInsight.Api.Service", nillable = true) + protected Long adGroupId; /** * Gets the value of the keywords property. @@ -236,27 +236,27 @@ public void setCampaignId(Long value) { } /** - * Gets the value of the adgroupId property. + * Gets the value of the adGroupId property. * * @return * possible object is * {@link Long } * */ - public Long getAdgroupId() { - return adgroupId; + public Long getAdGroupId() { + return adGroupId; } /** - * Sets the value of the adgroupId property. + * Sets the value of the adGroupId property. * * @param value * allowed object is * {@link Long } * */ - public void setAdgroupId(Long value) { - this.adgroupId = value; + public void setAdGroupId(Long value) { + this.adGroupId = value; } } diff --git a/proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java b/proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java index c248ceebc3..563b0f4528 100644 --- a/proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java +++ b/proxies/com/microsoft/bingads/v10/adinsight/IAdInsightService.java @@ -686,12 +686,12 @@ public SuggestKeywordsFromExistingKeywordsResponse suggestKeywordsFromExistingKe * * @param parameters * @return - * returns javax.xml.ws.Response + * returns javax.xml.ws.Response */ - @WebMethod(operationName = "Probe", action = "Probe") - public Response probeAsync( - @WebParam(name = "ProbeRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") - ProbeRequest parameters); + @WebMethod(operationName = "GetAuctionInsightData", action = "GetAuctionInsightData") + public Response getAuctionInsightDataAsync( + @WebParam(name = "GetAuctionInsightDataRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetAuctionInsightDataRequest parameters); /** * @@ -700,26 +700,26 @@ public Response probeAsync( * @return * returns java.util.concurrent.Future */ - @WebMethod(operationName = "Probe", action = "Probe") - public Future probeAsync( - @WebParam(name = "ProbeRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") - ProbeRequest parameters, - @WebParam(name = "ProbeResponse", targetNamespace = "", partName = "asyncHandler") - AsyncHandler asyncHandler); + @WebMethod(operationName = "GetAuctionInsightData", action = "GetAuctionInsightData") + public Future getAuctionInsightDataAsync( + @WebParam(name = "GetAuctionInsightDataRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetAuctionInsightDataRequest parameters, + @WebParam(name = "GetAuctionInsightDataResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); /** * * @param parameters * @return - * returns com.microsoft.bingads.v10.adinsight.ProbeResponse + * returns com.microsoft.bingads.v10.adinsight.GetAuctionInsightDataResponse * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception */ - @WebMethod(operationName = "Probe", action = "Probe") - @WebResult(name = "ProbeResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") - public ProbeResponse probe( - @WebParam(name = "ProbeRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") - ProbeRequest parameters) + @WebMethod(operationName = "GetAuctionInsightData", action = "GetAuctionInsightData") + @WebResult(name = "GetAuctionInsightDataResponse", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + public GetAuctionInsightDataResponse getAuctionInsightData( + @WebParam(name = "GetAuctionInsightDataRequest", targetNamespace = "Microsoft.Advertiser.AdInsight.Api.Service", partName = "parameters") + GetAuctionInsightDataRequest parameters) throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception ; diff --git a/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java index b2b2805f0a..e4c2364758 100644 --- a/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java +++ b/proxies/com/microsoft/bingads/v10/adinsight/KeywordOpportunity.java @@ -19,7 +19,9 @@ * <extension base="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Opportunity"> * <sequence> * <element name="AdGroupId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> + * <element name="AdGroupName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="CampaignId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> + * <element name="CampaignName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="Competition" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/> * <element name="EstimatedIncreaseInClicks" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/> * <element name="EstimatedIncreaseInCost" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/> @@ -39,7 +41,9 @@ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "KeywordOpportunity", propOrder = { "adGroupId", + "adGroupName", "campaignId", + "campaignName", "competition", "estimatedIncreaseInClicks", "estimatedIncreaseInCost", @@ -58,8 +62,12 @@ public class KeywordOpportunity @XmlElement(name = "AdGroupId") protected Long adGroupId; + @XmlElement(name = "AdGroupName", nillable = true) + protected String adGroupName; @XmlElement(name = "CampaignId") protected Long campaignId; + @XmlElement(name = "CampaignName", nillable = true) + protected String campaignName; @XmlElement(name = "Competition") protected Double competition; @XmlElement(name = "EstimatedIncreaseInClicks") @@ -101,6 +109,30 @@ public void setAdGroupId(Long value) { this.adGroupId = value; } + /** + * Gets the value of the adGroupName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAdGroupName() { + return adGroupName; + } + + /** + * Sets the value of the adGroupName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAdGroupName(String value) { + this.adGroupName = value; + } + /** * Gets the value of the campaignId property. * @@ -125,6 +157,30 @@ public void setCampaignId(Long value) { this.campaignId = value; } + /** + * Gets the value of the campaignName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCampaignName() { + return campaignName; + } + + /** + * Sets the value of the campaignName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCampaignName(String value) { + this.campaignName = value; + } + /** * Gets the value of the competition property. * diff --git a/proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java b/proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java index 279314c6fa..4e6ef51e82 100644 --- a/proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/v10/adinsight/ObjectFactory.java @@ -29,6 +29,8 @@ public class ObjectFactory { private final static QName _AdPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AdPosition"); + private final static QName _ArrayOfAuctionInsightV2Entity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfAuctionInsightV2Entity"); + private final static QName _AuctionInsightResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AuctionInsightResult"); private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); private final static QName _ArrayOfOperationError_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v10", "ArrayOfOperationError"); private final static QName _ArrayOfAdGroupBidLandscapeInput_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfAdGroupBidLandscapeInput"); @@ -38,11 +40,13 @@ public class ObjectFactory { private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); private final static QName _ArrayOfAdGroupBidLandscape_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfAdGroupBidLandscape"); private final static QName _ArrayOfSearchCountsByAttributes_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfSearchCountsByAttributes"); + private final static QName _OrderBy_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "OrderBy"); private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); private final static QName _ArrayOfBatchError_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v10", "ArrayOfBatchError"); private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); + private final static QName _AuctionInsightV2Entity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AuctionInsightV2Entity"); private final static QName _MatchType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "MatchType"); private final static QName _ArrayOfKeywordSuggestion_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordSuggestion"); private final static QName _KeywordDemographicResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordDemographicResult"); @@ -53,6 +57,7 @@ public class ObjectFactory { private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); private final static QName _EstimatedPositionAndTraffic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "EstimatedPositionAndTraffic"); private final static QName _ArrayOfKeywordCategory_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordCategory"); + private final static QName _ArrayOfOrderBy_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfOrderBy"); private final static QName _DayMonthAndYear_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "DayMonthAndYear"); private final static QName _ArrayOfKeywordBidLandscape_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordBidLandscape"); private final static QName _KeywordBidLandscape_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordBidLandscape"); @@ -64,10 +69,12 @@ public class ObjectFactory { private final static QName _Currency_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Currency"); private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); private final static QName _BudgetPoint_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetPoint"); + private final static QName _ArrayOfAuctionInsightKPINode_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfAuctionInsightKPINode"); private final static QName _KeywordAndMatchType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Message", "KeywordAndMatchType"); private final static QName _ArrayOfKeywordAndConfidence_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordAndConfidence"); private final static QName _AdApiError_QNAME = new QName("https://adapi.microsoft.com", "AdApiError"); private final static QName _CustomerAccountId_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "CustomerAccountId"); + private final static QName _Selector_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Selector"); private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); private final static QName _BidLandscapePoint_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BidLandscapePoint"); private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); @@ -83,7 +90,9 @@ public class ObjectFactory { private final static QName _BudgetLimitType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetLimitType"); private final static QName _ApiFaultDetail_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "ApiFaultDetail"); private final static QName _KeywordSuggestion_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordSuggestion"); + private final static QName _ArrayOfField_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfField"); private final static QName _ArrayOfBidLandscapePoint_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfBidLandscapePoint"); + private final static QName _Operator_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Operator"); private final static QName _AuthenticationToken_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "AuthenticationToken"); private final static QName _AdGroupBidLandscapeType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AdGroupBidLandscapeType"); private final static QName _BudgetPointType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetPointType"); @@ -92,6 +101,8 @@ public class ObjectFactory { private final static QName _KeywordKPI_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordKPI"); private final static QName _BudgetOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BudgetOpportunity"); private final static QName _KeywordDemographic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordDemographic"); + private final static QName _DateRange_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "DateRange"); + private final static QName _Field_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Field"); private final static QName _ArrayOfstring_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/Arrays", "ArrayOfstring"); private final static QName _KeywordIdEstimatedPosition_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordIdEstimatedPosition"); private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); @@ -108,6 +119,7 @@ public class ObjectFactory { private final static QName _TrackingId_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "TrackingId"); private final static QName _TimeInterval_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "TimeInterval"); private final static QName _SearchCountsByAttributes_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "SearchCountsByAttributes"); + private final static QName _SortOrder_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "SortOrder"); private final static QName _BatchError_QNAME = new QName("https://bingads.microsoft.com/AdInsight/v10", "BatchError"); private final static QName _ArrayOfKeywordOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordOpportunity"); private final static QName _ArrayOfKeywordLocationResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordLocationResult"); @@ -125,17 +137,21 @@ public class ObjectFactory { private final static QName _ArrayOfBroadMatchSearchQueryKPI_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfBroadMatchSearchQueryKPI"); private final static QName _ArrayOfMatchType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfMatchType"); private final static QName _HistoricalSearchCountPeriodic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "HistoricalSearchCountPeriodic"); + private final static QName _Predicate_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Predicate"); private final static QName _ArrayOfKeywordHistoricalPerformance_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordHistoricalPerformance"); private final static QName _ArrayOfKeywordLocation_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordLocation"); private final static QName _KeywordLocation_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordLocation"); private final static QName _BidOpportunityType_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "BidOpportunityType"); private final static QName _ArrayOfKeywordCategoryResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordCategoryResult"); private final static QName _AdApiFaultDetail_QNAME = new QName("https://adapi.microsoft.com", "AdApiFaultDetail"); + private final static QName _Paging_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "Paging"); private final static QName _KeywordLocationResult_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordLocationResult"); private final static QName _ApplicationFault_QNAME = new QName("https://adapi.microsoft.com", "ApplicationFault"); private final static QName _ArrayOfKeywordDemographic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfKeywordDemographic"); + private final static QName _ArrayOfPredicate_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfPredicate"); private final static QName _DeveloperToken_QNAME = new QName("Microsoft.Advertiser.AdInsight.Api.Service", "DeveloperToken"); private final static QName _ArrayOfEstimatedPositionAndTraffic_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "ArrayOfEstimatedPositionAndTraffic"); + private final static QName _AuctionInsightKPINode_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "AuctionInsightKPINode"); private final static QName _KeywordOpportunity_QNAME = new QName("http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", "KeywordOpportunity"); private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); @@ -356,6 +372,22 @@ public ProbeResponse createProbeResponse() { return new ProbeResponse(); } + /** + * Create an instance of {@link GetAuctionInsightDataRequest } + * + */ + public GetAuctionInsightDataRequest createGetAuctionInsightDataRequest() { + return new GetAuctionInsightDataRequest(); + } + + /** + * Create an instance of {@link Selector } + * + */ + public Selector createSelector() { + return new Selector(); + } + /** * Create an instance of {@link GetHistoricalKeywordPerformanceRequest } * @@ -684,6 +716,22 @@ public ArrayOfKeywordAndMatchType createArrayOfKeywordAndMatchType() { return new ArrayOfKeywordAndMatchType(); } + /** + * Create an instance of {@link GetAuctionInsightDataResponse } + * + */ + public GetAuctionInsightDataResponse createGetAuctionInsightDataResponse() { + return new GetAuctionInsightDataResponse(); + } + + /** + * Create an instance of {@link AuctionInsightResult } + * + */ + public AuctionInsightResult createAuctionInsightResult() { + return new AuctionInsightResult(); + } + /** * Create an instance of {@link GetBudgetOpportunitiesRequest } * @@ -764,6 +812,14 @@ public ArrayOfBroadMatchSearchQueryKPI createArrayOfBroadMatchSearchQueryKPI() { return new ArrayOfBroadMatchSearchQueryKPI(); } + /** + * Create an instance of {@link ArrayOfOrderBy } + * + */ + public ArrayOfOrderBy createArrayOfOrderBy() { + return new ArrayOfOrderBy(); + } + /** * Create an instance of {@link ArrayOfEstimatedBidAndTraffic } * @@ -788,6 +844,14 @@ public HistoricalSearchCountPeriodic createHistoricalSearchCountPeriodic() { return new HistoricalSearchCountPeriodic(); } + /** + * Create an instance of {@link Predicate } + * + */ + public Predicate createPredicate() { + return new Predicate(); + } + /** * Create an instance of {@link BroadMatchSearchQueryKPI } * @@ -820,6 +884,14 @@ public BudgetPoint createBudgetPoint() { return new BudgetPoint(); } + /** + * Create an instance of {@link ArrayOfAuctionInsightKPINode } + * + */ + public ArrayOfAuctionInsightKPINode createArrayOfAuctionInsightKPINode() { + return new ArrayOfAuctionInsightKPINode(); + } + /** * Create an instance of {@link BidLandscapePoint } * @@ -844,6 +916,14 @@ public KeywordCategory createKeywordCategory() { return new KeywordCategory(); } + /** + * Create an instance of {@link Paging } + * + */ + public Paging createPaging() { + return new Paging(); + } + /** * Create an instance of {@link ArrayOfKeywordDemographic } * @@ -852,6 +932,14 @@ public ArrayOfKeywordDemographic createArrayOfKeywordDemographic() { return new ArrayOfKeywordDemographic(); } + /** + * Create an instance of {@link ArrayOfPredicate } + * + */ + public ArrayOfPredicate createArrayOfPredicate() { + return new ArrayOfPredicate(); + } + /** * Create an instance of {@link KeywordLocationResult } * @@ -900,6 +988,14 @@ public KeywordOpportunity createKeywordOpportunity() { return new KeywordOpportunity(); } + /** + * Create an instance of {@link AuctionInsightKPINode } + * + */ + public AuctionInsightKPINode createAuctionInsightKPINode() { + return new AuctionInsightKPINode(); + } + /** * Create an instance of {@link KeywordSuggestion } * @@ -916,6 +1012,22 @@ public ArrayOfBidLandscapePoint createArrayOfBidLandscapePoint() { return new ArrayOfBidLandscapePoint(); } + /** + * Create an instance of {@link ArrayOfAuctionInsightV2Entity } + * + */ + public ArrayOfAuctionInsightV2Entity createArrayOfAuctionInsightV2Entity() { + return new ArrayOfAuctionInsightV2Entity(); + } + + /** + * Create an instance of {@link ArrayOfField } + * + */ + public ArrayOfField createArrayOfField() { + return new ArrayOfField(); + } + /** * Create an instance of {@link KeywordKPI } * @@ -948,6 +1060,14 @@ public KeywordDemographic createKeywordDemographic() { return new KeywordDemographic(); } + /** + * Create an instance of {@link DateRange } + * + */ + public DateRange createDateRange() { + return new DateRange(); + } + /** * Create an instance of {@link ArrayOfHistoricalSearchCountPeriodic } * @@ -988,6 +1108,14 @@ public BroadMatchKeywordOpportunity createBroadMatchKeywordOpportunity() { return new BroadMatchKeywordOpportunity(); } + /** + * Create an instance of {@link OrderBy } + * + */ + public OrderBy createOrderBy() { + return new OrderBy(); + } + /** * Create an instance of {@link KeywordEstimatedBid } * @@ -1020,6 +1148,14 @@ public AdGroupBidLandscapeInput createAdGroupBidLandscapeInput() { return new AdGroupBidLandscapeInput(); } + /** + * Create an instance of {@link AuctionInsightV2Entity } + * + */ + public AuctionInsightV2Entity createAuctionInsightV2Entity() { + return new AuctionInsightV2Entity(); + } + /** * Create an instance of {@link KeywordDemographicResult } * @@ -1141,6 +1277,24 @@ public JAXBElement createAdPosition(AdPosition value) { return new JAXBElement(_AdPosition_QNAME, AdPosition.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAuctionInsightV2Entity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfAuctionInsightV2Entity") + public JAXBElement createArrayOfAuctionInsightV2Entity(ArrayOfAuctionInsightV2Entity value) { + return new JAXBElement(_ArrayOfAuctionInsightV2Entity_QNAME, ArrayOfAuctionInsightV2Entity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AuctionInsightResult }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "AuctionInsightResult") + public JAXBElement createAuctionInsightResult(AuctionInsightResult value) { + return new JAXBElement(_AuctionInsightResult_QNAME, AuctionInsightResult.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} * @@ -1222,6 +1376,15 @@ public JAXBElement createArrayOfSearchCountsByA return new JAXBElement(_ArrayOfSearchCountsByAttributes_QNAME, ArrayOfSearchCountsByAttributes.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OrderBy }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "OrderBy") + public JAXBElement createOrderBy(OrderBy value) { + return new JAXBElement(_OrderBy_QNAME, OrderBy.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} * @@ -1267,6 +1430,15 @@ public JAXBElement createInt(Integer value) { return new JAXBElement(_Int_QNAME, Integer.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AuctionInsightV2Entity }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "AuctionInsightV2Entity") + public JAXBElement createAuctionInsightV2Entity(AuctionInsightV2Entity value) { + return new JAXBElement(_AuctionInsightV2Entity_QNAME, AuctionInsightV2Entity.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link MatchType }{@code >}} * @@ -1357,6 +1529,15 @@ public JAXBElement createArrayOfKeywordCategory(ArrayOfK return new JAXBElement(_ArrayOfKeywordCategory_QNAME, ArrayOfKeywordCategory.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfOrderBy }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfOrderBy") + public JAXBElement createArrayOfOrderBy(ArrayOfOrderBy value) { + return new JAXBElement(_ArrayOfOrderBy_QNAME, ArrayOfOrderBy.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link DayMonthAndYear }{@code >}} * @@ -1456,6 +1637,15 @@ public JAXBElement createBudgetPoint(BudgetPoint value) { return new JAXBElement(_BudgetPoint_QNAME, BudgetPoint.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfAuctionInsightKPINode }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfAuctionInsightKPINode") + public JAXBElement createArrayOfAuctionInsightKPINode(ArrayOfAuctionInsightKPINode value) { + return new JAXBElement(_ArrayOfAuctionInsightKPINode_QNAME, ArrayOfAuctionInsightKPINode.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link KeywordAndMatchType }{@code >}} * @@ -1492,6 +1682,15 @@ public JAXBElement createCustomerAccountId(String value) { return new JAXBElement(_CustomerAccountId_QNAME, String.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Selector }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "Selector") + public JAXBElement createSelector(Selector value) { + return new JAXBElement(_Selector_QNAME, Selector.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} * @@ -1628,6 +1827,15 @@ public JAXBElement createKeywordSuggestion(KeywordSuggestion return new JAXBElement(_KeywordSuggestion_QNAME, KeywordSuggestion.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfField }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfField") + public JAXBElement createArrayOfField(ArrayOfField value) { + return new JAXBElement(_ArrayOfField_QNAME, ArrayOfField.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfBidLandscapePoint }{@code >}} * @@ -1637,6 +1845,15 @@ public JAXBElement createArrayOfBidLandscapePoint(Arra return new JAXBElement(_ArrayOfBidLandscapePoint_QNAME, ArrayOfBidLandscapePoint.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Operator }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "Operator") + public JAXBElement createOperator(Operator value) { + return new JAXBElement(_Operator_QNAME, Operator.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * @@ -1709,6 +1926,24 @@ public JAXBElement createKeywordDemographic(KeywordDemograph return new JAXBElement(_KeywordDemographic_QNAME, KeywordDemographic.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateRange }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "DateRange") + public JAXBElement createDateRange(DateRange value) { + return new JAXBElement(_DateRange_QNAME, DateRange.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Field }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "Field") + public JAXBElement createField(Field value) { + return new JAXBElement(_Field_QNAME, Field.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfstring }{@code >}} * @@ -1854,6 +2089,15 @@ public JAXBElement createSearchCountsByAttributes(Sear return new JAXBElement(_SearchCountsByAttributes_QNAME, SearchCountsByAttributes.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SortOrder }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "SortOrder") + public JAXBElement createSortOrder(SortOrder value) { + return new JAXBElement(_SortOrder_QNAME, SortOrder.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link BatchError }{@code >}} * @@ -2007,6 +2251,15 @@ public JAXBElement createHistoricalSearchCountPer return new JAXBElement(_HistoricalSearchCountPeriodic_QNAME, HistoricalSearchCountPeriodic.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Predicate }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "Predicate") + public JAXBElement createPredicate(Predicate value) { + return new JAXBElement(_Predicate_QNAME, Predicate.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfKeywordHistoricalPerformance }{@code >}} * @@ -2062,6 +2315,15 @@ public JAXBElement createAdApiFaultDetail(AdApiFaultDetail val return new JAXBElement(_AdApiFaultDetail_QNAME, AdApiFaultDetail.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Paging }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "Paging") + public JAXBElement createPaging(Paging value) { + return new JAXBElement(_Paging_QNAME, Paging.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link KeywordLocationResult }{@code >}} * @@ -2089,6 +2351,15 @@ public JAXBElement createArrayOfKeywordDemographic(Ar return new JAXBElement(_ArrayOfKeywordDemographic_QNAME, ArrayOfKeywordDemographic.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArrayOfPredicate }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "ArrayOfPredicate") + public JAXBElement createArrayOfPredicate(ArrayOfPredicate value) { + return new JAXBElement(_ArrayOfPredicate_QNAME, ArrayOfPredicate.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * @@ -2107,6 +2378,15 @@ public JAXBElement createArrayOfEstimatedPos return new JAXBElement(_ArrayOfEstimatedPositionAndTraffic_QNAME, ArrayOfEstimatedPositionAndTraffic.class, null, value); } + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AuctionInsightKPINode }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity", name = "AuctionInsightKPINode") + public JAXBElement createAuctionInsightKPINode(AuctionInsightKPINode value) { + return new JAXBElement(_AuctionInsightKPINode_QNAME, AuctionInsightKPINode.class, null, value); + } + /** * Create an instance of {@link JAXBElement }{@code <}{@link KeywordOpportunity }{@code >}} * diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Operator.java b/proxies/com/microsoft/bingads/v10/adinsight/Operator.java new file mode 100644 index 0000000000..7ce79e83dc --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Operator.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Operator. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="Operator">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="EQUALS"/>
+ *     <enumeration value="NOT_EQUALS"/>
+ *     <enumeration value="IN"/>
+ *     <enumeration value="NOT_IN"/>
+ *     <enumeration value="GREATER_THAN"/>
+ *     <enumeration value="GREATER_THAN_EQUALS"/>
+ *     <enumeration value="LESS_THAN"/>
+ *     <enumeration value="LESS_THAN_EQUALS"/>
+ *     <enumeration value="STARTS_WITH"/>
+ *     <enumeration value="STARTS_WITH_IGNORE_CASE"/>
+ *     <enumeration value="CONTAINS"/>
+ *     <enumeration value="CONTAINS_IGNORE_CASE"/>
+ *     <enumeration value="DOES_NOT_CONTAIN"/>
+ *     <enumeration value="DOES_NOT_CONTAIN_IGNORE_CASE"/>
+ *     <enumeration value="UNKNOWN"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "Operator") +@XmlEnum +public enum Operator { + + EQUALS, + NOT_EQUALS, + IN, + NOT_IN, + GREATER_THAN, + GREATER_THAN_EQUALS, + LESS_THAN, + LESS_THAN_EQUALS, + STARTS_WITH, + STARTS_WITH_IGNORE_CASE, + CONTAINS, + CONTAINS_IGNORE_CASE, + DOES_NOT_CONTAIN, + DOES_NOT_CONTAIN_IGNORE_CASE, + UNKNOWN; + + public String value() { + return name(); + } + + public static Operator fromValue(String v) { + return valueOf(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/OrderBy.java b/proxies/com/microsoft/bingads/v10/adinsight/OrderBy.java new file mode 100644 index 0000000000..feb06642e4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/OrderBy.java @@ -0,0 +1,93 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for OrderBy complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="OrderBy">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="SortOrder" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}SortOrder" minOccurs="0"/>
+ *         <element name="SortingField" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Field" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "OrderBy", propOrder = { + "sortOrder", + "sortingField" +}) +public class OrderBy { + + @XmlElement(name = "SortOrder") + @XmlSchemaType(name = "string") + protected SortOrder sortOrder; + @XmlElement(name = "SortingField") + @XmlSchemaType(name = "string") + protected Field sortingField; + + /** + * Gets the value of the sortOrder property. + * + * @return + * possible object is + * {@link SortOrder } + * + */ + public SortOrder getSortOrder() { + return sortOrder; + } + + /** + * Sets the value of the sortOrder property. + * + * @param value + * allowed object is + * {@link SortOrder } + * + */ + public void setSortOrder(SortOrder value) { + this.sortOrder = value; + } + + /** + * Gets the value of the sortingField property. + * + * @return + * possible object is + * {@link Field } + * + */ + public Field getSortingField() { + return sortingField; + } + + /** + * Sets the value of the sortingField property. + * + * @param value + * allowed object is + * {@link Field } + * + */ + public void setSortingField(Field value) { + this.sortingField = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Paging.java b/proxies/com/microsoft/bingads/v10/adinsight/Paging.java new file mode 100644 index 0000000000..010bea9941 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Paging.java @@ -0,0 +1,90 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Paging complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="Paging">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="Index" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="Size" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Paging", propOrder = { + "index", + "size" +}) +public class Paging { + + @XmlElement(name = "Index") + protected Integer index; + @XmlElement(name = "Size") + protected Integer size; + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSize(Integer value) { + this.size = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Predicate.java b/proxies/com/microsoft/bingads/v10/adinsight/Predicate.java new file mode 100644 index 0000000000..8674f63bf6 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Predicate.java @@ -0,0 +1,121 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Predicate complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="Predicate">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="FilteringField" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Field" minOccurs="0"/>
+ *         <element name="Operator" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Operator" minOccurs="0"/>
+ *         <element name="Values" type="{http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Predicate", propOrder = { + "filteringField", + "operator", + "values" +}) +public class Predicate { + + @XmlElement(name = "FilteringField") + @XmlSchemaType(name = "string") + protected Field filteringField; + @XmlElement(name = "Operator") + @XmlSchemaType(name = "string") + protected Operator operator; + @XmlElement(name = "Values", nillable = true) + protected ArrayOfstring values; + + /** + * Gets the value of the filteringField property. + * + * @return + * possible object is + * {@link Field } + * + */ + public Field getFilteringField() { + return filteringField; + } + + /** + * Sets the value of the filteringField property. + * + * @param value + * allowed object is + * {@link Field } + * + */ + public void setFilteringField(Field value) { + this.filteringField = value; + } + + /** + * Gets the value of the operator property. + * + * @return + * possible object is + * {@link Operator } + * + */ + public Operator getOperator() { + return operator; + } + + /** + * Sets the value of the operator property. + * + * @param value + * allowed object is + * {@link Operator } + * + */ + public void setOperator(Operator value) { + this.operator = value; + } + + /** + * Gets the value of the values property. + * + * @return + * possible object is + * {@link ArrayOfstring } + * + */ + public ArrayOfstring getValues() { + return values; + } + + /** + * Sets the value of the values property. + * + * @param value + * allowed object is + * {@link ArrayOfstring } + * + */ + public void setValues(ArrayOfstring value) { + this.values = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/Selector.java b/proxies/com/microsoft/bingads/v10/adinsight/Selector.java new file mode 100644 index 0000000000..42512f58c0 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/Selector.java @@ -0,0 +1,202 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for Selector complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="Selector">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="DateRange" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}DateRange" minOccurs="0"/>
+ *         <element name="GroupBy" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfField" minOccurs="0"/>
+ *         <element name="Ordering" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfOrderBy" minOccurs="0"/>
+ *         <element name="PageInfo" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}Paging" minOccurs="0"/>
+ *         <element name="Predicates" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfPredicate" minOccurs="0"/>
+ *         <element name="SelectedFields" type="{http://schemas.datacontract.org/2004/07/Microsoft.BingAds.Advertiser.AdInsight.Api.DataContract.Entity}ArrayOfField" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Selector", propOrder = { + "dateRange", + "groupBy", + "ordering", + "pageInfo", + "predicates", + "selectedFields" +}) +public class Selector { + + @XmlElement(name = "DateRange", nillable = true) + protected DateRange dateRange; + @XmlElement(name = "GroupBy", nillable = true) + protected ArrayOfField groupBy; + @XmlElement(name = "Ordering", nillable = true) + protected ArrayOfOrderBy ordering; + @XmlElement(name = "PageInfo", nillable = true) + protected Paging pageInfo; + @XmlElement(name = "Predicates", nillable = true) + protected ArrayOfPredicate predicates; + @XmlElement(name = "SelectedFields", nillable = true) + protected ArrayOfField selectedFields; + + /** + * Gets the value of the dateRange property. + * + * @return + * possible object is + * {@link DateRange } + * + */ + public DateRange getDateRange() { + return dateRange; + } + + /** + * Sets the value of the dateRange property. + * + * @param value + * allowed object is + * {@link DateRange } + * + */ + public void setDateRange(DateRange value) { + this.dateRange = value; + } + + /** + * Gets the value of the groupBy property. + * + * @return + * possible object is + * {@link ArrayOfField } + * + */ + public ArrayOfField getGroupBy() { + return groupBy; + } + + /** + * Sets the value of the groupBy property. + * + * @param value + * allowed object is + * {@link ArrayOfField } + * + */ + public void setGroupBy(ArrayOfField value) { + this.groupBy = value; + } + + /** + * Gets the value of the ordering property. + * + * @return + * possible object is + * {@link ArrayOfOrderBy } + * + */ + public ArrayOfOrderBy getOrdering() { + return ordering; + } + + /** + * Sets the value of the ordering property. + * + * @param value + * allowed object is + * {@link ArrayOfOrderBy } + * + */ + public void setOrdering(ArrayOfOrderBy value) { + this.ordering = value; + } + + /** + * Gets the value of the pageInfo property. + * + * @return + * possible object is + * {@link Paging } + * + */ + public Paging getPageInfo() { + return pageInfo; + } + + /** + * Sets the value of the pageInfo property. + * + * @param value + * allowed object is + * {@link Paging } + * + */ + public void setPageInfo(Paging value) { + this.pageInfo = value; + } + + /** + * Gets the value of the predicates property. + * + * @return + * possible object is + * {@link ArrayOfPredicate } + * + */ + public ArrayOfPredicate getPredicates() { + return predicates; + } + + /** + * Sets the value of the predicates property. + * + * @param value + * allowed object is + * {@link ArrayOfPredicate } + * + */ + public void setPredicates(ArrayOfPredicate value) { + this.predicates = value; + } + + /** + * Gets the value of the selectedFields property. + * + * @return + * possible object is + * {@link ArrayOfField } + * + */ + public ArrayOfField getSelectedFields() { + return selectedFields; + } + + /** + * Sets the value of the selectedFields property. + * + * @param value + * allowed object is + * {@link ArrayOfField } + * + */ + public void setSelectedFields(ArrayOfField value) { + this.selectedFields = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/adinsight/SortOrder.java b/proxies/com/microsoft/bingads/v10/adinsight/SortOrder.java new file mode 100644 index 0000000000..c25e993b21 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/adinsight/SortOrder.java @@ -0,0 +1,38 @@ + +package com.microsoft.bingads.v10.adinsight; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for SortOrder. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="SortOrder">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ASCENDING"/>
+ *     <enumeration value="DESCENDING"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "SortOrder") +@XmlEnum +public enum SortOrder { + + ASCENDING, + DESCENDING; + + public String value() { + return name(); + } + + public static SortOrder fromValue(String v) { + return valueOf(v); + } + +} diff --git a/proxies/com/microsoft/bingads/v10/bulk/IBulkService.java b/proxies/com/microsoft/bingads/v10/bulk/IBulkService.java index 0ff7ad83de..1463f23299 100644 --- a/proxies/com/microsoft/bingads/v10/bulk/IBulkService.java +++ b/proxies/com/microsoft/bingads/v10/bulk/IBulkService.java @@ -56,8 +56,8 @@ public Future downloadCampaignsByAccountIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.bulk.DownloadCampaignsByAccountIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DownloadCampaignsByAccountIds", action = "DownloadCampaignsByAccountIds") @WebResult(name = "DownloadCampaignsByAccountIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -97,8 +97,8 @@ public Future downloadCampaignsByCampaignIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.bulk.DownloadCampaignsByCampaignIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DownloadCampaignsByCampaignIds", action = "DownloadCampaignsByCampaignIds") @WebResult(name = "DownloadCampaignsByCampaignIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -138,8 +138,8 @@ public Future getBulkDownloadStatusAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.bulk.GetBulkDownloadStatusResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetBulkDownloadStatus", action = "GetBulkDownloadStatus") @WebResult(name = "GetBulkDownloadStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -179,8 +179,8 @@ public Future getBulkUploadUrlAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.bulk.GetBulkUploadUrlResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetBulkUploadUrl", action = "GetBulkUploadUrl") @WebResult(name = "GetBulkUploadUrlResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -220,8 +220,8 @@ public Future getBulkUploadStatusAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.bulk.GetBulkUploadStatusResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetBulkUploadStatus", action = "GetBulkUploadStatus") @WebResult(name = "GetBulkUploadStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java index 02d45edeea..d878b1f075 100644 --- a/proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/AdType.java @@ -16,7 +16,6 @@ * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="Text"/> * <enumeration value="Image"/> - * <enumeration value="RichSearch"/> * <enumeration value="Product"/> * <enumeration value="AppInstall"/> * </restriction> @@ -32,8 +31,6 @@ public enum AdType { TEXT("Text"), @XmlEnumValue("Image") IMAGE("Image"), - @XmlEnumValue("RichSearch") - RICH_SEARCH("RichSearch"), @XmlEnumValue("Product") PRODUCT("Product"), @XmlEnumValue("AppInstall") diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueRequest.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueRequest.java new file mode 100644 index 0000000000..7c256dbbdb --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueRequest.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ConfigKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "configKey" +}) +@XmlRootElement(name = "GetConfigValueRequest") +public class GetConfigValueRequest { + + @XmlElement(name = "ConfigKey", nillable = true) + protected String configKey; + + /** + * Gets the value of the configKey property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getConfigKey() { + return configKey; + } + + /** + * Sets the value of the configKey property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setConfigKey(String value) { + this.configKey = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueResponse.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueResponse.java new file mode 100644 index 0000000000..cc5d01e0e4 --- /dev/null +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/GetConfigValueResponse.java @@ -0,0 +1,64 @@ + +package com.microsoft.bingads.v10.campaignmanagement; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="ConfigValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "configValue" +}) +@XmlRootElement(name = "GetConfigValueResponse") +public class GetConfigValueResponse { + + @XmlElement(name = "ConfigValue", nillable = true) + protected String configValue; + + /** + * Gets the value of the configValue property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getConfigValue() { + return configValue; + } + + /** + * Sets the value of the configValue property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setConfigValue(String value) { + this.configValue = value; + } + +} diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java index 4470db4eb6..161e37a49e 100644 --- a/proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ICampaignManagementService.java @@ -56,8 +56,8 @@ public Future addCampaignsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddCampaignsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddCampaigns", action = "AddCampaigns") @WebResult(name = "AddCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -97,8 +97,8 @@ public Future getCampaignsByAccountIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignsByAccountIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCampaignsByAccountId", action = "GetCampaignsByAccountId") @WebResult(name = "GetCampaignsByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -138,8 +138,8 @@ public Future getCampaignsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCampaignsByIds", action = "GetCampaignsByIds") @WebResult(name = "GetCampaignsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -179,8 +179,8 @@ public Future deleteCampaignsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteCampaignsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteCampaigns", action = "DeleteCampaigns") @WebResult(name = "DeleteCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -220,8 +220,8 @@ public Future updateCampaignsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateCampaignsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateCampaigns", action = "UpdateCampaigns") @WebResult(name = "UpdateCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -261,8 +261,8 @@ public Future getNegativeSitesByCampaignIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetNegativeSitesByCampaignIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetNegativeSitesByCampaignIds", action = "GetNegativeSitesByCampaignIds") @WebResult(name = "GetNegativeSitesByCampaignIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -302,8 +302,8 @@ public Future setNegativeSitesToCampaignsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.SetNegativeSitesToCampaignsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SetNegativeSitesToCampaigns", action = "SetNegativeSitesToCampaigns") @WebResult(name = "SetNegativeSitesToCampaignsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -313,6 +313,47 @@ public SetNegativeSitesToCampaignsResponse setNegativeSitesToCampaigns( throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception ; + /** + * + * @param parameters + * @return + * returns javax.xml.ws.Response + */ + @WebMethod(operationName = "GetConfigValue", action = "GetConfigValue") + public Response getConfigValueAsync( + @WebParam(name = "GetConfigValueRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetConfigValueRequest parameters); + + /** + * + * @param asyncHandler + * @param parameters + * @return + * returns java.util.concurrent.Future + */ + @WebMethod(operationName = "GetConfigValue", action = "GetConfigValue") + public Future getConfigValueAsync( + @WebParam(name = "GetConfigValueRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetConfigValueRequest parameters, + @WebParam(name = "GetConfigValueResponse", targetNamespace = "", partName = "asyncHandler") + AsyncHandler asyncHandler); + + /** + * + * @param parameters + * @return + * returns com.microsoft.bingads.v10.campaignmanagement.GetConfigValueResponse + * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception + */ + @WebMethod(operationName = "GetConfigValue", action = "GetConfigValue") + @WebResult(name = "GetConfigValueResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + public GetConfigValueResponse getConfigValue( + @WebParam(name = "GetConfigValueRequest", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") + GetConfigValueRequest parameters) + throws AdApiFaultDetail_Exception, ApiFaultDetail_Exception + ; + /** * * @param parameters @@ -343,8 +384,8 @@ public Future addAdGroupsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddAdGroupsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddAdGroups", action = "AddAdGroups") @WebResult(name = "AddAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -384,8 +425,8 @@ public Future deleteAdGroupsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdGroupsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteAdGroups", action = "DeleteAdGroups") @WebResult(name = "DeleteAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -425,8 +466,8 @@ public Future getAdGroupsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdGroupsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdGroupsByIds", action = "GetAdGroupsByIds") @WebResult(name = "GetAdGroupsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -466,8 +507,8 @@ public Future getAdGroupsByCampaignIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdGroupsByCampaignIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdGroupsByCampaignId", action = "GetAdGroupsByCampaignId") @WebResult(name = "GetAdGroupsByCampaignIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -507,8 +548,8 @@ public Future updateAdGroupsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdGroupsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateAdGroups", action = "UpdateAdGroups") @WebResult(name = "UpdateAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -548,8 +589,8 @@ public Future getNegativeSitesByAdGroupIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetNegativeSitesByAdGroupIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetNegativeSitesByAdGroupIds", action = "GetNegativeSitesByAdGroupIds") @WebResult(name = "GetNegativeSitesByAdGroupIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -589,8 +630,8 @@ public Future setNegativeSitesToAdGroupsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.SetNegativeSitesToAdGroupsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SetNegativeSitesToAdGroups", action = "SetNegativeSitesToAdGroups") @WebResult(name = "SetNegativeSitesToAdGroupsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -630,8 +671,8 @@ public Future deleteTargetsFromLibraryAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteTargetsFromLibraryResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteTargetsFromLibrary", action = "DeleteTargetsFromLibrary") @WebResult(name = "DeleteTargetsFromLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -671,8 +712,8 @@ public Future getTargetsInfoFromLibraryAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsInfoFromLibraryResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetTargetsInfoFromLibrary", action = "GetTargetsInfoFromLibrary") @WebResult(name = "GetTargetsInfoFromLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -712,8 +753,8 @@ public Future setTargetToAdGroupAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.SetTargetToAdGroupResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SetTargetToAdGroup", action = "SetTargetToAdGroup") @WebResult(name = "SetTargetToAdGroupResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -753,8 +794,8 @@ public Future deleteTargetFromAdGroupAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteTargetFromAdGroupResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteTargetFromAdGroup", action = "DeleteTargetFromAdGroup") @WebResult(name = "DeleteTargetFromAdGroupResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -794,8 +835,8 @@ public Future setTargetToCampaignAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.SetTargetToCampaignResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SetTargetToCampaign", action = "SetTargetToCampaign") @WebResult(name = "SetTargetToCampaignResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -835,8 +876,8 @@ public Future deleteTargetFromCampaignAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteTargetFromCampaignResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteTargetFromCampaign", action = "DeleteTargetFromCampaign") @WebResult(name = "DeleteTargetFromCampaignResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -876,8 +917,8 @@ public Future addTargetsToLibraryAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddTargetsToLibraryResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddTargetsToLibrary", action = "AddTargetsToLibrary") @WebResult(name = "AddTargetsToLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -917,8 +958,8 @@ public Future updateTargetsInLibraryAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateTargetsInLibraryResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateTargetsInLibrary", action = "UpdateTargetsInLibrary") @WebResult(name = "UpdateTargetsInLibraryResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -958,8 +999,8 @@ public Future getTargetsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetTargetsByIds", action = "GetTargetsByIds") @WebResult(name = "GetTargetsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -999,8 +1040,8 @@ public Future getTargetsByAdGroupIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsByAdGroupIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetTargetsByAdGroupIds", action = "GetTargetsByAdGroupIds") @WebResult(name = "GetTargetsByAdGroupIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1040,8 +1081,8 @@ public Future getTargetsByCampaignIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetTargetsByCampaignIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetTargetsByCampaignIds", action = "GetTargetsByCampaignIds") @WebResult(name = "GetTargetsByCampaignIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1081,8 +1122,8 @@ public Future addAdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddAdsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "AddAds", action = "AddAds") @WebResult(name = "AddAdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1122,8 +1163,8 @@ public Future deleteAdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteAds", action = "DeleteAds") @WebResult(name = "DeleteAdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1163,8 +1204,8 @@ public Future getAdsByEditorialStatusAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdsByEditorialStatusResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdsByEditorialStatus", action = "GetAdsByEditorialStatus") @WebResult(name = "GetAdsByEditorialStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1204,8 +1245,8 @@ public Future getAdsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdsByIds", action = "GetAdsByIds") @WebResult(name = "GetAdsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1245,8 +1286,8 @@ public Future getAdsByAdGroupIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdsByAdGroupIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdsByAdGroupId", action = "GetAdsByAdGroupId") @WebResult(name = "GetAdsByAdGroupIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1286,8 +1327,8 @@ public Future updateAdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateAds", action = "UpdateAds") @WebResult(name = "UpdateAdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1327,8 +1368,8 @@ public Future addKeywordsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddKeywordsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "AddKeywords", action = "AddKeywords") @WebResult(name = "AddKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1368,8 +1409,8 @@ public Future deleteKeywordsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteKeywordsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteKeywords", action = "DeleteKeywords") @WebResult(name = "DeleteKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1409,8 +1450,8 @@ public Future getKeywordsByEditorialStatusAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetKeywordsByEditorialStatusResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordsByEditorialStatus", action = "GetKeywordsByEditorialStatus") @WebResult(name = "GetKeywordsByEditorialStatusResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1450,8 +1491,8 @@ public Future getKeywordsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetKeywordsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordsByIds", action = "GetKeywordsByIds") @WebResult(name = "GetKeywordsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1491,8 +1532,8 @@ public Future getKeywordsByAdGroupIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetKeywordsByAdGroupIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetKeywordsByAdGroupId", action = "GetKeywordsByAdGroupId") @WebResult(name = "GetKeywordsByAdGroupIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1532,8 +1573,8 @@ public Future updateKeywordsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateKeywordsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateKeywords", action = "UpdateKeywords") @WebResult(name = "UpdateKeywordsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1573,8 +1614,8 @@ public Future appealEditorialRejectionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AppealEditorialRejectionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AppealEditorialRejections", action = "AppealEditorialRejections") @WebResult(name = "AppealEditorialRejectionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1614,8 +1655,8 @@ public Future addSitePlacementsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddSitePlacementsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddSitePlacements", action = "AddSitePlacements") @WebResult(name = "AddSitePlacementsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1655,8 +1696,8 @@ public Future deleteSitePlacementsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteSitePlacementsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteSitePlacements", action = "DeleteSitePlacements") @WebResult(name = "DeleteSitePlacementsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1696,8 +1737,8 @@ public Future getSitePlacementsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetSitePlacementsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetSitePlacementsByIds", action = "GetSitePlacementsByIds") @WebResult(name = "GetSitePlacementsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1737,8 +1778,8 @@ public Future getSitePlacementsByAdGroupIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetSitePlacementsByAdGroupIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetSitePlacementsByAdGroupId", action = "GetSitePlacementsByAdGroupId") @WebResult(name = "GetSitePlacementsByAdGroupIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1778,8 +1819,8 @@ public Future updateSitePlacementsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateSitePlacementsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateSitePlacements", action = "UpdateSitePlacements") @WebResult(name = "UpdateSitePlacementsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1819,8 +1860,8 @@ public Future getPlacementDetailsForUrlsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetPlacementDetailsForUrlsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetPlacementDetailsForUrls", action = "GetPlacementDetailsForUrls") @WebResult(name = "GetPlacementDetailsForUrlsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1860,8 +1901,8 @@ public Future getEditorialReasonsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetEditorialReasonsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetEditorialReasonsByIds", action = "GetEditorialReasonsByIds") @WebResult(name = "GetEditorialReasonsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1901,8 +1942,8 @@ public Future addAdExtensionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddAdExtensionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddAdExtensions", action = "AddAdExtensions") @WebResult(name = "AddAdExtensionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1942,8 +1983,8 @@ public Future getAdExtensionsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdExtensionsByIds", action = "GetAdExtensionsByIds") @WebResult(name = "GetAdExtensionsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -1983,8 +2024,8 @@ public Future updateAdExtensionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdExtensionsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateAdExtensions", action = "UpdateAdExtensions") @WebResult(name = "UpdateAdExtensionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2024,8 +2065,8 @@ public Future deleteAdExtensionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdExtensionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteAdExtensions", action = "DeleteAdExtensions") @WebResult(name = "DeleteAdExtensionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2065,8 +2106,8 @@ public Future getAdExtensionsEditorialReasonsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionsEditorialReasonsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdExtensionsEditorialReasons", action = "GetAdExtensionsEditorialReasons") @WebResult(name = "GetAdExtensionsEditorialReasonsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2106,8 +2147,8 @@ public Future setAdExtensionsAssociationsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.SetAdExtensionsAssociationsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "SetAdExtensionsAssociations", action = "SetAdExtensionsAssociations") @WebResult(name = "SetAdExtensionsAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2147,8 +2188,8 @@ public Future getAdExtensionsAssociationsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionsAssociationsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdExtensionsAssociations", action = "GetAdExtensionsAssociations") @WebResult(name = "GetAdExtensionsAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2188,8 +2229,8 @@ public Future deleteAdExtensionsAssociationsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdExtensionsAssociationsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteAdExtensionsAssociations", action = "DeleteAdExtensionsAssociations") @WebResult(name = "DeleteAdExtensionsAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2229,8 +2270,8 @@ public Future getAdExtensionIdsByAccountIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdExtensionIdsByAccountIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdExtensionIdsByAccountId", action = "GetAdExtensionIdsByAccountId") @WebResult(name = "GetAdExtensionIdsByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2270,8 +2311,8 @@ public Future addMediaAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddMediaResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddMedia", action = "AddMedia") @WebResult(name = "AddMediaResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2311,8 +2352,8 @@ public Future deleteMediaAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteMediaResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteMedia", action = "DeleteMedia") @WebResult(name = "DeleteMediaResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2352,8 +2393,8 @@ public Future getMediaByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetMediaByIds", action = "GetMediaByIds") @WebResult(name = "GetMediaByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2393,8 +2434,8 @@ public Future getMediaMetaDataByAccountIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaMetaDataByAccountIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetMediaMetaDataByAccountId", action = "GetMediaMetaDataByAccountId") @WebResult(name = "GetMediaMetaDataByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2434,8 +2475,8 @@ public Future getMediaMetaDataByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaMetaDataByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetMediaMetaDataByIds", action = "GetMediaMetaDataByIds") @WebResult(name = "GetMediaMetaDataByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2475,8 +2516,8 @@ public Future getMediaAssociationsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetMediaAssociationsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetMediaAssociations", action = "GetMediaAssociations") @WebResult(name = "GetMediaAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2516,8 +2557,8 @@ public Future getAdGroupCriterionsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetAdGroupCriterionsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetAdGroupCriterionsByIds", action = "GetAdGroupCriterionsByIds") @WebResult(name = "GetAdGroupCriterionsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2557,8 +2598,8 @@ public Future addAdGroupCriterionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddAdGroupCriterionsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "AddAdGroupCriterions", action = "AddAdGroupCriterions") @WebResult(name = "AddAdGroupCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2598,8 +2639,8 @@ public Future updateAdGroupCriterionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateAdGroupCriterionsResponse - * @throws EditorialApiFaultDetail_Exception * @throws AdApiFaultDetail_Exception + * @throws EditorialApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateAdGroupCriterions", action = "UpdateAdGroupCriterions") @WebResult(name = "UpdateAdGroupCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2639,8 +2680,8 @@ public Future deleteAdGroupCriterionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteAdGroupCriterionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteAdGroupCriterions", action = "DeleteAdGroupCriterions") @WebResult(name = "DeleteAdGroupCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2680,8 +2721,8 @@ public Future applyProductPartitionActionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.ApplyProductPartitionActionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "ApplyProductPartitionActions", action = "ApplyProductPartitionActions") @WebResult(name = "ApplyProductPartitionActionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2721,8 +2762,8 @@ public Future getBMCStoresByCustomerIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetBMCStoresByCustomerIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetBMCStoresByCustomerId", action = "GetBMCStoresByCustomerId") @WebResult(name = "GetBMCStoresByCustomerIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2762,8 +2803,8 @@ public Future addNegativeKeywordsToEntitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddNegativeKeywordsToEntitiesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddNegativeKeywordsToEntities", action = "AddNegativeKeywordsToEntities") @WebResult(name = "AddNegativeKeywordsToEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2803,8 +2844,8 @@ public Future getNegativeKeywordsByEntityIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetNegativeKeywordsByEntityIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetNegativeKeywordsByEntityIds", action = "GetNegativeKeywordsByEntityIds") @WebResult(name = "GetNegativeKeywordsByEntityIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2844,8 +2885,8 @@ public Future deleteNegativeKeywordsFromEntitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteNegativeKeywordsFromEntitiesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteNegativeKeywordsFromEntities", action = "DeleteNegativeKeywordsFromEntities") @WebResult(name = "DeleteNegativeKeywordsFromEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2885,8 +2926,8 @@ public Future getSharedEntitiesByAccountIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetSharedEntitiesByAccountIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetSharedEntitiesByAccountId", action = "GetSharedEntitiesByAccountId") @WebResult(name = "GetSharedEntitiesByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2926,8 +2967,8 @@ public Future addSharedEntityAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddSharedEntityResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddSharedEntity", action = "AddSharedEntity") @WebResult(name = "AddSharedEntityResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -2967,8 +3008,8 @@ public Future getListItemsBySharedListAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetListItemsBySharedListResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetListItemsBySharedList", action = "GetListItemsBySharedList") @WebResult(name = "GetListItemsBySharedListResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3008,8 +3049,8 @@ public Future addListItemsToSharedListAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddListItemsToSharedListResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddListItemsToSharedList", action = "AddListItemsToSharedList") @WebResult(name = "AddListItemsToSharedListResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3049,8 +3090,8 @@ public Future updateSharedEntitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateSharedEntitiesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateSharedEntities", action = "UpdateSharedEntities") @WebResult(name = "UpdateSharedEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3090,8 +3131,8 @@ public Future deleteListItemsFromSharedListAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteListItemsFromSharedListResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteListItemsFromSharedList", action = "DeleteListItemsFromSharedList") @WebResult(name = "DeleteListItemsFromSharedListResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3131,8 +3172,8 @@ public Future setSharedEntityAssociationsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.SetSharedEntityAssociationsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "SetSharedEntityAssociations", action = "SetSharedEntityAssociations") @WebResult(name = "SetSharedEntityAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3172,8 +3213,8 @@ public Future deleteSharedEntityAssociationsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteSharedEntityAssociationsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteSharedEntityAssociations", action = "DeleteSharedEntityAssociations") @WebResult(name = "DeleteSharedEntityAssociationsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3213,8 +3254,8 @@ public Future getSharedEntityAssociationsBySharedEntityIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetSharedEntityAssociationsBySharedEntityIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetSharedEntityAssociationsBySharedEntityIds", action = "GetSharedEntityAssociationsBySharedEntityIds") @WebResult(name = "GetSharedEntityAssociationsBySharedEntityIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3254,8 +3295,8 @@ public Future getSharedEntityAssociationsByEntityIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetSharedEntityAssociationsByEntityIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetSharedEntityAssociationsByEntityIds", action = "GetSharedEntityAssociationsByEntityIds") @WebResult(name = "GetSharedEntityAssociationsByEntityIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3295,8 +3336,8 @@ public Future deleteSharedEntitiesAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteSharedEntitiesResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteSharedEntities", action = "DeleteSharedEntities") @WebResult(name = "DeleteSharedEntitiesResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3336,8 +3377,8 @@ public Future getCampaignSizesByAccountIdAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignSizesByAccountIdResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCampaignSizesByAccountId", action = "GetCampaignSizesByAccountId") @WebResult(name = "GetCampaignSizesByAccountIdResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3377,8 +3418,8 @@ public Future addCampaignCriterionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.AddCampaignCriterionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "AddCampaignCriterions", action = "AddCampaignCriterions") @WebResult(name = "AddCampaignCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3418,8 +3459,8 @@ public Future updateCampaignCriterionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.UpdateCampaignCriterionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "UpdateCampaignCriterions", action = "UpdateCampaignCriterions") @WebResult(name = "UpdateCampaignCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3459,8 +3500,8 @@ public Future deleteCampaignCriterionsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.DeleteCampaignCriterionsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "DeleteCampaignCriterions", action = "DeleteCampaignCriterions") @WebResult(name = "DeleteCampaignCriterionsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") @@ -3500,8 +3541,8 @@ public Future getCampaignCriterionsByIdsAsync( * @param parameters * @return * returns com.microsoft.bingads.v10.campaignmanagement.GetCampaignCriterionsByIdsResponse - * @throws AdApiFaultDetail_Exception * @throws ApiFaultDetail_Exception + * @throws AdApiFaultDetail_Exception */ @WebMethod(operationName = "GetCampaignCriterionsByIds", action = "GetCampaignCriterionsByIds") @WebResult(name = "GetCampaignCriterionsByIdsResponse", targetNamespace = "https://bingads.microsoft.com/CampaignManagement/v10", partName = "parameters") diff --git a/proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java b/proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java index 8ebbb38a9b..a3892cf7a3 100644 --- a/proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java +++ b/proxies/com/microsoft/bingads/v10/campaignmanagement/ObjectFactory.java @@ -565,6 +565,14 @@ public AddTargetsToLibraryResponse createAddTargetsToLibraryResponse() { return new AddTargetsToLibraryResponse(); } + /** + * Create an instance of {@link GetConfigValueRequest } + * + */ + public GetConfigValueRequest createGetConfigValueRequest() { + return new GetConfigValueRequest(); + } + /** * Create an instance of {@link MediaType } * @@ -2405,6 +2413,14 @@ public DeleteSitePlacementsRequest createDeleteSitePlacementsRequest() { return new DeleteSitePlacementsRequest(); } + /** + * Create an instance of {@link GetConfigValueResponse } + * + */ + public GetConfigValueResponse createGetConfigValueResponse() { + return new GetConfigValueResponse(); + } + /** * Create an instance of {@link EditorialReasonCollection } * diff --git a/proxies/jaxb-bindings-reporting.xml b/proxies/jaxb-bindings-reporting.xml index 4b13db0e2d..ac607e6c35 100644 --- a/proxies/jaxb-bindings-reporting.xml +++ b/proxies/jaxb-bindings-reporting.xml @@ -1,42 +1,42 @@  - - - - - - - - + + + + + + + + + + + + + + - - - - - - diff --git a/proxies/jaxb-bindings-v10.bulk.xml b/proxies/jaxb-bindings-v10.bulk.xml index 1d0f8e4333..0c35a38a4f 100644 --- a/proxies/jaxb-bindings-v10.bulk.xml +++ b/proxies/jaxb-bindings-v10.bulk.xml @@ -1,6 +1,6 @@  - + diff --git a/proxies/jaxb-bindings-v10.campaignmanagement.xml b/proxies/jaxb-bindings-v10.campaignmanagement.xml index 52ea997dcf..f3679255db 100644 --- a/proxies/jaxb-bindings-v10.campaignmanagement.xml +++ b/proxies/jaxb-bindings-v10.campaignmanagement.xml @@ -1,6 +1,6 @@  - + From 4a60a76725dc7dcb2e295c7649f462df21c0eadb Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Fri, 23 Oct 2015 21:05:37 +0800 Subject: [PATCH 8/9] update the version to 10.4.1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a415f19054..ec04e81143 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bing Ads Java SDK -The Bing Ads Java Software Development Kit (SDK) Version 1..4 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. +The Bing Ads Java Software Development Kit (SDK) Version 10.4.1 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. #Getting Started To get started developing Bing Ads applications with Java, install the SDK and either start with the [examples](https://github.com/bing-ads-sdk/BingAds-Java-SDK/tree/master/examples/) or follow one of the application walkthroughs on MSDN. For more information, see [Getting Started Using Java with Bing Ads Services](https://msdn.microsoft.com/en-US/library/bing-ads-overview-getting-started-java-with-web-services.aspx). From 12b92b55787f391bfc63c0607b7aa81a4308cf7b Mon Sep 17 00:00:00 2001 From: Jianzhong Date: Fri, 23 Oct 2015 21:42:06 +0800 Subject: [PATCH 9/9] update the version to 10.4 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec04e81143..e08f87e590 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Bing Ads Java SDK -The Bing Ads Java Software Development Kit (SDK) Version 10.4.1 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. +The Bing Ads Java Software Development Kit (SDK) Version 10.4 enhances the experience of developing Bing Ads applications with Java. The SDK includes proxy classes for all Bing Ads API web services and abstracts the low level details of authentication with OAuth. You can also read and write bulk files with the SDK BulkFileReader and BulkFileWriter, and use the high level BulkServiceManager interface to abstract and execute operations in the low level Bulk API. For more information, see [Bing Ads Java SDK](https://msdn.microsoft.com/en-US/library/bing-ads-java-sdk.aspx) on MSDN. #Getting Started To get started developing Bing Ads applications with Java, install the SDK and either start with the [examples](https://github.com/bing-ads-sdk/BingAds-Java-SDK/tree/master/examples/) or follow one of the application walkthroughs on MSDN. For more information, see [Getting Started Using Java with Bing Ads Services](https://msdn.microsoft.com/en-US/library/bing-ads-overview-getting-started-java-with-web-services.aspx).