From 3fd6fd64cea7025f4e9ec93621b959075186c546 Mon Sep 17 00:00:00 2001 From: AnashOommen Date: Wed, 23 Jul 2014 12:41:16 -0400 Subject: [PATCH] Commit v18.1.0 to github. --- ChangeLog | 24 + .../CSharp/AdWords.Examples.CSharp.csproj | 88 +- .../AdWords/CSharp/OAuth/ConsoleExample.cs | 4 +- examples/AdWords/CSharp/OAuth/Default.aspx.cs | 8 +- .../CSharp/OAuth/Properties/Properties.cs | 4 +- .../AdWords/CSharp/Properties/Properties.cs | 4 +- .../AccountManagement/CreateAccount.cs | 95 - .../AccountManagement/GetAccountAlerts.cs | 126 - .../AccountManagement/GetAccountChanges.cs | 176 - .../AccountManagement/GetAccountHierarchy.cs | 196 - .../AdWordsForVideo/AddTargetingGroup.cs | 95 - .../AddTargetingGroupCriteria.cs | 167 - .../v201309/AdWordsForVideo/AddVideoAd.cs | 109 - .../AdWordsForVideo/AddVideoCallToAction.cs | 109 - .../AdWordsForVideo/AddVideoCampaign.cs | 122 - .../AddVideoCampaignCriteria.cs | 99 - .../v201309/AdWordsForVideo/FindVideos.cs | 100 - .../AdWordsForVideo/GetKeywordCriteria.cs | 117 - .../AdWordsForVideo/GetTargetingGroups.cs | 112 - .../GetVideoCampaignCriteria.cs | 116 - .../AdWordsForVideo/GetVideoCampaignStats.cs | 160 - .../AdWordsForVideo/GetVideoCampaigns.cs | 107 - .../AddAdGroupBidModifier.cs | 111 - .../AddClickToDownloadAd.cs | 146 - .../AdvancedOperations/AddSiteLinks.cs | 322 - .../GetAdGroupBidModifiers.cs | 122 - .../UploadOfflineConversions.cs | 139 - .../UseSharedBiddingStrategy.cs | 208 - .../AddAdGroupDemographicCriteria.cs | 123 - .../v201309/BasicOperations/AddAdGroups.cs | 141 - .../v201309/BasicOperations/AddCampaigns.cs | 173 - .../v201309/BasicOperations/AddKeywords.cs | 127 - .../v201309/BasicOperations/AddTextAds.cs | 129 - .../v201309/BasicOperations/DeleteAd.cs | 103 - .../v201309/BasicOperations/DeleteAdGroup.cs | 99 - .../v201309/BasicOperations/DeleteCampaign.cs | 99 - .../v201309/BasicOperations/DeleteKeyword.cs | 103 - .../v201309/BasicOperations/GetAdGroups.cs | 113 - .../v201309/BasicOperations/GetCampaigns.cs | 102 - .../BasicOperations/GetCampaignsWithAwql.cs | 100 - .../v201309/BasicOperations/GetKeywords.cs | 127 - .../v201309/BasicOperations/GetTextAds.cs | 140 - .../CSharp/v201309/BasicOperations/PauseAd.cs | 101 - .../v201309/BasicOperations/UpdateAdGroup.cs | 95 - .../v201309/BasicOperations/UpdateCampaign.cs | 94 - .../v201309/BasicOperations/UpdateKeyword.cs | 123 - .../CampaignManagement/AddExperiment.cs | 215 - .../CampaignManagement/AddKeywordsInBulk.cs | 173 - .../AddLocationExtension.cs | 148 - .../GetAllDisapprovedAds.cs | 121 - .../GetAllDisapprovedAdsWihAwql.cs | 108 - .../CampaignManagement/PromoteExperiment.cs | 98 - .../CampaignManagement/SetAdParameters.cs | 152 - .../CampaignManagement/SetBidModifier.cs | 111 - .../CampaignManagement/ValidateTextAd.cs | 109 - .../ErrorHandling/HandlePartialFailures.cs | 136 - .../HandlePolicyViolationError.cs | 173 - .../ErrorHandling/HandleRateExceededError.cs | 204 - .../HandleTwoFactorAuthorizationError.cs | 94 - .../v201309/Express/AddExpressBusinesses.cs | 114 - .../CSharp/v201309/Express/AddPromotion.cs | 154 - .../v201309/Express/GetExpressBusinesses.cs | 151 - .../v201309/Express/GetProductServices.cs | 119 - .../CSharp/v201309/Express/GetPromotions.cs | 110 - .../v201309/Express/UpdateExpressBusiness.cs | 89 - .../CSharp/v201309/Express/UpdatePromotion.cs | 100 - .../Miscellaneous/GetAllVideosAndImages.cs | 139 - .../v201309/Miscellaneous/UploadImage.cs | 106 - .../Optimization/EstimateKeywordTraffic.cs | 173 - .../Optimization/GetAdGroupBidSimulations.cs | 105 - .../Optimization/GetKeywordBidSimulations.cs | 133 - .../v201309/Optimization/GetKeywordIdeas.cs | 150 - .../v201309/Optimization/GetPlacementIdeas.cs | 122 - .../CSharp/v201309/Remarketing/AddAudience.cs | 156 - .../Remarketing/AddConversionTracker.cs | 106 - .../Reporting/DownloadCriteriaReport.cs | 114 - .../DownloadCriteriaReportWithAwql.cs | 99 - .../v201309/Reporting/GetReportFields.cs | 91 - .../Targeting/AddCampaignTargetingCriteria.cs | 138 - .../Targeting/GetCampaignTargetingCriteria.cs | 119 - .../GetTargetableLanguagesAndCarriers.cs | 99 - .../v201309/Targeting/LookupLocation.cs | 121 - .../v201402/BasicOperations/DeleteAdGroup.cs | 4 - .../v201402/BasicOperations/DeleteCampaign.cs | 4 - .../v201406/BasicOperations/RemoveAdGroup.cs | 4 - .../v201406/BasicOperations/RemoveCampaign.cs | 4 - .../AdWords/Vb/AdWords.Examples.VB.vbproj | 57 - .../AdWords/Vb/Properties/AssemblyInfo.vb | 22 +- .../AccountManagement/CreateAccount.vb | 189 - .../AccountManagement/GetAccountAlerts.vb | 126 - .../AccountManagement/GetAccountChanges.vb | 183 - .../AccountManagement/GetAccountHierarchy.vb | 126 - .../AddAdGroupBidModifier.vb | 111 - .../AddClickToDownloadAd.vb | 149 - .../AdvancedOperations/AddSiteLinks.vb | 319 - .../GetAdGroupBidModifiers.vb | 125 - .../UploadOfflineConversions.vb | 245 - .../UseSharedBiddingStrategy.vb | 212 - .../AddAdGroupDemographicCriteria.vb | 124 - .../Vb/v201309/BasicOperations/AddAdGroups.vb | 142 - .../v201309/BasicOperations/AddCampaigns.vb | 174 - .../Vb/v201309/BasicOperations/AddKeywords.vb | 129 - .../Vb/v201309/BasicOperations/AddTextAds.vb | 130 - .../Vb/v201309/BasicOperations/DeleteAd.vb | 105 - .../v201309/BasicOperations/DeleteAdGroup.vb | 101 - .../v201309/BasicOperations/DeleteCampaign.vb | 102 - .../v201309/BasicOperations/DeleteKeyword.vb | 106 - .../Vb/v201309/BasicOperations/GetAdGroups.vb | 114 - .../v201309/BasicOperations/GetCampaigns.vb | 103 - .../BasicOperations/GetCampaignsWithAwql.vb | 102 - .../Vb/v201309/BasicOperations/GetKeywords.vb | 128 - .../Vb/v201309/BasicOperations/GetTextAds.vb | 140 - .../Vb/v201309/BasicOperations/PauseAd.vb | 102 - .../v201309/BasicOperations/UpdateAdGroup.vb | 96 - .../v201309/BasicOperations/UpdateCampaign.vb | 97 - .../v201309/BasicOperations/UpdateKeyword.vb | 122 - .../CampaignManagement/AddExperiment.vb | 216 - .../CampaignManagement/AddKeywordsInBulk.vb | 186 - .../AddLocationExtension.vb | 150 - .../GetAllDisapprovedAds.vb | 121 - .../GetAllDisapprovedAdsWithAwql.vb | 111 - .../CampaignManagement/PromoteExperiment.vb | 100 - .../CampaignManagement/SetAdParameters.vb | 155 - .../CampaignManagement/SetBidModifier.vb | 112 - .../CampaignManagement/ValidateTextAd.vb | 110 - .../ErrorHandling/HandlePartialFailures.vb | 137 - .../HandlePolicyViolationError.vb | 175 - .../ErrorHandling/HandleRateExceededError.vb | 206 - .../HandleTwoFactorAuthorizationError.vb | 95 - .../Miscellaneous/GetAllVideosAndImages.vb | 139 - .../Vb/v201309/Miscellaneous/UploadImage.vb | 107 - .../Optimization/EstimateKeywordTraffic.vb | 174 - .../Optimization/GetAdGroupBidSimulations.vb | 109 - .../Optimization/GetKeywordBidSimulations.vb | 134 - .../v201309/Optimization/GetKeywordIdeas.vb | 150 - .../v201309/Optimization/GetPlacementIdeas.vb | 123 - .../Vb/v201309/Remarketing/AddAudience.vb | 154 - .../Remarketing/AddConversionTracker.vb | 108 - .../Reporting/DownloadCriteriaReport.vb | 118 - .../DownloadCriteriaReportWithAwql.vb | 102 - .../Vb/v201309/Reporting/GetReportFields.vb | 97 - .../Targeting/AddCampaignTargetingCriteria.vb | 139 - .../Targeting/GetCampaignTargetingCriteria.vb | 123 - .../GetTargetableLanguagesAndCarriers.vb | 100 - .../Vb/v201309/Targeting/LookupLocation.vb | 121 - .../v201402/BasicOperations/DeleteAdGroup.vb | 4 - .../v201402/BasicOperations/DeleteCampaign.vb | 4 - .../v201406/BasicOperations/RemoveAdGroup.vb | 4 - .../v201406/BasicOperations/RemoveCampaign.vb | 4 - .../CSharp/AdWords.Examples.CSharp.csproj | 42 - .../AdXBuyer/CSharp/OAuth/ConsoleExample.cs | 4 +- .../AdXBuyer/CSharp/OAuth/Default.aspx.cs | 8 +- .../CSharp/OAuth/Properties/Properties.cs | 4 +- .../AdXBuyer/CSharp/Properties/Properties.cs | 4 +- .../AccountManagement/GetAccountChanges.cs | 176 - .../AddAdGroupBidModifier.cs | 111 - .../GetAdGroupBidModifiers.cs | 122 - .../UploadOfflineConversions.cs | 139 - .../UseSharedBiddingStrategy.cs | 208 - .../AddAdGroupDemographicCriteria.cs | 123 - .../v201309/BasicOperations/AddAdGroups.cs | 137 - .../v201309/BasicOperations/AddCampaigns.cs | 168 - .../v201309/BasicOperations/AddPlacements.cs | 122 - .../AddThirdPartyRedirectAds.cs | 155 - .../v201309/BasicOperations/DeleteAd.cs | 103 - .../v201309/BasicOperations/DeleteAdGroup.cs | 99 - .../v201309/BasicOperations/DeleteCampaign.cs | 99 - .../BasicOperations/DeletePlacement.cs | 103 - .../v201309/BasicOperations/GetAdGroups.cs | 113 - .../v201309/BasicOperations/GetCampaigns.cs | 102 - .../BasicOperations/GetCampaignsWithAwql.cs | 100 - .../v201309/BasicOperations/GetPlacements.cs | 128 - .../GetThirdPartyRedirectAds.cs | 142 - .../CSharp/v201309/BasicOperations/PauseAd.cs | 101 - .../v201309/BasicOperations/UpdateAdGroup.cs | 95 - .../v201309/BasicOperations/UpdateCampaign.cs | 94 - .../BasicOperations/UpdatePlacement.cs | 122 - .../CampaignManagement/AddPlacementsInBulk.cs | 172 - .../GetAllDisapprovedAds.cs | 121 - .../GetAllDisapprovedAdsWihAwql.cs | 108 - .../ErrorHandling/HandlePartialFailures.cs | 135 - .../HandlePolicyViolationError.cs | 180 - .../ErrorHandling/HandleRateExceededError.cs | 204 - .../HandleTwoFactorAuthorizationError.cs | 94 - .../Miscellaneous/GetAllVideosAndImages.cs | 139 - .../v201309/Miscellaneous/UploadImage.cs | 106 - .../v201309/Optimization/GetPlacementIdeas.cs | 122 - .../CSharp/v201309/Remarketing/AddAudience.cs | 156 - .../Remarketing/AddConversionTracker.cs | 106 - .../Reporting/DownloadCriteriaReport.cs | 114 - .../DownloadCriteriaReportWithAwql.cs | 99 - .../v201309/Reporting/GetReportFields.cs | 91 - .../Targeting/AddCampaignTargetingCriteria.cs | 137 - .../Targeting/GetCampaignTargetingCriteria.cs | 124 - .../GetTargetableLanguagesAndCarriers.cs | 99 - .../v201309/Targeting/LookupLocation.cs | 121 - .../v201402/BasicOperations/DeleteAdGroup.cs | 4 - .../v201402/BasicOperations/DeleteCampaign.cs | 4 - .../v201406/BasicOperations/RemoveAdGroup.cs | 4 - .../v201406/BasicOperations/RemoveCampaign.cs | 4 - .../BasicOperations/RemovePlacement.cs | 18 +- .../AdXBuyer/Vb/AdWords.Examples.VB.vbproj | 43 +- .../AdXBuyer/Vb/Properties/AssemblyInfo.vb | 44 + .../AccountManagement/GetAccountChanges.vb | 183 - .../AddAdGroupBidModifier.vb | 111 - .../GetAdGroupBidModifiers.vb | 125 - .../UploadOfflineConversions.vb | 245 - .../UseSharedBiddingStrategy.vb | 212 - .../AddAdGroupDemographicCriteria.vb | 124 - .../Vb/v201309/BasicOperations/AddAdGroups.vb | 138 - .../v201309/BasicOperations/AddCampaigns.vb | 169 - .../v201309/BasicOperations/AddPlacements.vb | 121 - .../AddThirdPartyRedirectAds.vb | 151 - .../Vb/v201309/BasicOperations/DeleteAd.vb | 105 - .../v201309/BasicOperations/DeleteAdGroup.vb | 101 - .../v201309/BasicOperations/DeleteCampaign.vb | 102 - .../BasicOperations/DeletePlacement.vb | 106 - .../Vb/v201309/BasicOperations/GetAdGroups.vb | 114 - .../v201309/BasicOperations/GetCampaigns.vb | 103 - .../BasicOperations/GetCampaignsWithAwql.vb | 102 - .../v201309/BasicOperations/GetPlacements.vb | 128 - .../GetThirdPartyRedirectAds.vb | 143 - .../Vb/v201309/BasicOperations/PauseAd.vb | 102 - .../v201309/BasicOperations/UpdateAdGroup.vb | 96 - .../v201309/BasicOperations/UpdateCampaign.vb | 97 - .../BasicOperations/UpdatePlacement.vb | 123 - .../CampaignManagement/AddPlacementsInBulk.vb | 185 - .../GetAllDisapprovedAds.vb | 121 - .../GetAllDisapprovedAdsWithAwql.vb | 111 - .../ErrorHandling/HandlePartialFailures.vb | 136 - .../HandlePolicyViolationError.vb | 184 - .../ErrorHandling/HandleRateExceededError.vb | 206 - .../HandleTwoFactorAuthorizationError.vb | 95 - .../Miscellaneous/GetAllVideosAndImages.vb | 139 - .../Vb/v201309/Miscellaneous/UploadImage.vb | 107 - .../v201309/Optimization/GetPlacementIdeas.vb | 123 - .../Vb/v201309/Remarketing/AddAudience.vb | 154 - .../Remarketing/AddConversionTracker.vb | 108 - .../Reporting/DownloadCriteriaReport.vb | 118 - .../DownloadCriteriaReportWithAwql.vb | 102 - .../Vb/v201309/Reporting/GetReportFields.vb | 97 - .../Targeting/AddCampaignTargetingCriteria.vb | 138 - .../Targeting/GetCampaignTargetingCriteria.vb | 123 - .../GetTargetableLanguagesAndCarriers.vb | 100 - .../Vb/v201309/Targeting/LookupLocation.vb | 121 - .../v201402/BasicOperations/DeleteAdGroup.vb | 4 - .../v201402/BasicOperations/DeleteCampaign.vb | 4 - .../v201406/BasicOperations/RemoveAdGroup.vb | 4 - .../v201406/BasicOperations/RemoveCampaign.vb | 4 - .../BasicOperations/RemovePlacement.vb | 16 +- .../Dfa/CSharp/OAuth/Properties/Properties.cs | 4 +- examples/Dfa/CSharp/Properties/Properties.cs | 4 +- .../Wcf/WcfService/Properties/Properties.cs | 4 +- .../Properties/Properties.cs | 4 +- .../Dfp/CSharp/OAuth/Properties/Properties.cs | 4 +- examples/Dfp/CSharp/Properties/Properties.cs | 4 +- src/AdWords/AdWords.csproj | 4 - src/AdWords/Properties/Properties.cs | 4 +- src/AdWords/Util/v201309/MapUtilities.cs | 90 - src/AdWords/v201309/AdWordsApi.cs | 31152 ---------------- src/AdWords/v201309/AdWordsServiceV201309.cs | 410 - src/AdWords/v201309/ReportDefinition.cs | 203 - src/AdWords/v201406/AdWordsApi.cs | 7435 +++- src/AdWords/v201406/AdWordsServiceV201406.cs | 51 + src/Common/Properties/Properties.cs | 4 +- src/Common/Util/SerializationUtilities.cs | 25 +- src/Dfa/Properties/Properties.cs | 4 +- src/Dfp/Properties/Properties.cs | 4 +- tests/AdWords/AdWords.Tests.csproj | 19 - tests/AdWords/Lib/AdWordsCallListenerTest.cs | 12 +- tests/AdWords/Properties/Properties.cs | 4 +- .../Resources/GetAccountAlerts.v201309.txt | 12 - .../AdWords/SoapMessages.v201309.Designer.cs | 75 - tests/AdWords/SoapMessages.v201309.resx | 124 - .../AdWords/Util/v201309/MapUtilitiesTest.cs | 129 - .../AdWords/v201309/AccountManagementTest.cs | 113 - .../AdWords/v201309/AdvancedOperationsTest.cs | 128 - tests/AdWords/v201309/BasicOperationsTest.cs | 371 - .../AdWords/v201309/CampaignManagementTest.cs | 233 - tests/AdWords/v201309/ErrorHandlingTest.cs | 108 - tests/AdWords/v201309/MiscellaneousTest.cs | 83 - tests/AdWords/v201309/OptimizationTest.cs | 130 - tests/AdWords/v201309/RemarketingTest.cs | 84 - tests/AdWords/v201309/ReportingTest.cs | 87 - tests/AdWords/v201309/TargetingTest.cs | 128 - tests/AdWords/v201309/TestUtils.cs | 541 - .../v201309/VersionedExampleTestsBase.cs | 35 - tests/AdXBuyer/AdWords.Tests.csproj | 13 - tests/AdXBuyer/Properties/Properties.cs | 4 +- .../AdXBuyer/Util/v201309/MapUtilitiesTest.cs | 129 - .../AdXBuyer/v201309/AccountManagementTest.cs | 56 - .../v201309/AdvancedOperationsTest.cs | 90 - tests/AdXBuyer/v201309/BasicOperationsTest.cs | 391 - .../v201309/CampaignManagementTest.cs | 108 - tests/AdXBuyer/v201309/ErrorHandlingTest.cs | 108 - tests/AdXBuyer/v201309/MiscellaneousTest.cs | 83 - tests/AdXBuyer/v201309/OptimizationTest.cs | 68 - tests/AdXBuyer/v201309/RemarketingTest.cs | 84 - tests/AdXBuyer/v201309/ReportingTest.cs | 107 - tests/AdXBuyer/v201309/TargetingTest.cs | 129 - tests/AdXBuyer/v201309/TestUtils.cs | 541 - .../v201309/VersionedExampleTestsBase.cs | 35 - tests/Dfa/Properties/Properties.cs | 4 +- tests/Dfp/Properties/Properties.cs | 4 +- .../Properties/Properties.cs | 4 +- 305 files changed, 7431 insertions(+), 65140 deletions(-) delete mode 100644 examples/AdWords/CSharp/v201309/AccountManagement/CreateAccount.cs delete mode 100644 examples/AdWords/CSharp/v201309/AccountManagement/GetAccountAlerts.cs delete mode 100644 examples/AdWords/CSharp/v201309/AccountManagement/GetAccountChanges.cs delete mode 100644 examples/AdWords/CSharp/v201309/AccountManagement/GetAccountHierarchy.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroup.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroupCriteria.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoAd.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCallToAction.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaign.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaignCriteria.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/FindVideos.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/GetKeywordCriteria.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/GetTargetingGroups.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignCriteria.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignStats.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaigns.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdvancedOperations/AddClickToDownloadAd.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdvancedOperations/AddSiteLinks.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs delete mode 100644 examples/AdWords/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroups.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/AddCampaigns.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/AddKeywords.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/AddTextAds.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/DeleteAd.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/DeleteAdGroup.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/DeleteCampaign.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/DeleteKeyword.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/GetAdGroups.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/GetCampaigns.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/GetKeywords.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/GetTextAds.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/PauseAd.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/UpdateAdGroup.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/UpdateCampaign.cs delete mode 100644 examples/AdWords/CSharp/v201309/BasicOperations/UpdateKeyword.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/AddExperiment.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/AddKeywordsInBulk.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/AddLocationExtension.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/PromoteExperiment.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/SetAdParameters.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/SetBidModifier.cs delete mode 100644 examples/AdWords/CSharp/v201309/CampaignManagement/ValidateTextAd.cs delete mode 100644 examples/AdWords/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs delete mode 100644 examples/AdWords/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs delete mode 100644 examples/AdWords/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs delete mode 100644 examples/AdWords/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs delete mode 100644 examples/AdWords/CSharp/v201309/Express/AddExpressBusinesses.cs delete mode 100644 examples/AdWords/CSharp/v201309/Express/AddPromotion.cs delete mode 100644 examples/AdWords/CSharp/v201309/Express/GetExpressBusinesses.cs delete mode 100644 examples/AdWords/CSharp/v201309/Express/GetProductServices.cs delete mode 100644 examples/AdWords/CSharp/v201309/Express/GetPromotions.cs delete mode 100644 examples/AdWords/CSharp/v201309/Express/UpdateExpressBusiness.cs delete mode 100644 examples/AdWords/CSharp/v201309/Express/UpdatePromotion.cs delete mode 100644 examples/AdWords/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs delete mode 100644 examples/AdWords/CSharp/v201309/Miscellaneous/UploadImage.cs delete mode 100644 examples/AdWords/CSharp/v201309/Optimization/EstimateKeywordTraffic.cs delete mode 100644 examples/AdWords/CSharp/v201309/Optimization/GetAdGroupBidSimulations.cs delete mode 100644 examples/AdWords/CSharp/v201309/Optimization/GetKeywordBidSimulations.cs delete mode 100644 examples/AdWords/CSharp/v201309/Optimization/GetKeywordIdeas.cs delete mode 100644 examples/AdWords/CSharp/v201309/Optimization/GetPlacementIdeas.cs delete mode 100644 examples/AdWords/CSharp/v201309/Remarketing/AddAudience.cs delete mode 100644 examples/AdWords/CSharp/v201309/Remarketing/AddConversionTracker.cs delete mode 100644 examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReport.cs delete mode 100644 examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs delete mode 100644 examples/AdWords/CSharp/v201309/Reporting/GetReportFields.cs delete mode 100644 examples/AdWords/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs delete mode 100644 examples/AdWords/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs delete mode 100644 examples/AdWords/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs delete mode 100644 examples/AdWords/CSharp/v201309/Targeting/LookupLocation.cs delete mode 100644 examples/AdWords/Vb/v201309/AccountManagement/CreateAccount.vb delete mode 100644 examples/AdWords/Vb/v201309/AccountManagement/GetAccountAlerts.vb delete mode 100644 examples/AdWords/Vb/v201309/AccountManagement/GetAccountChanges.vb delete mode 100644 examples/AdWords/Vb/v201309/AccountManagement/GetAccountHierarchy.vb delete mode 100644 examples/AdWords/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb delete mode 100644 examples/AdWords/Vb/v201309/AdvancedOperations/AddClickToDownloadAd.vb delete mode 100644 examples/AdWords/Vb/v201309/AdvancedOperations/AddSiteLinks.vb delete mode 100644 examples/AdWords/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb delete mode 100644 examples/AdWords/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb delete mode 100644 examples/AdWords/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/AddAdGroups.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/AddCampaigns.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/AddKeywords.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/AddTextAds.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/DeleteAd.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/DeleteAdGroup.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/DeleteCampaign.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/DeleteKeyword.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/GetAdGroups.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/GetCampaigns.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/GetKeywords.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/GetTextAds.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/PauseAd.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/UpdateAdGroup.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/UpdateCampaign.vb delete mode 100644 examples/AdWords/Vb/v201309/BasicOperations/UpdateKeyword.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/AddExperiment.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/AddKeywordsInBulk.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/AddLocationExtension.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/PromoteExperiment.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/SetAdParameters.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/SetBidModifier.vb delete mode 100644 examples/AdWords/Vb/v201309/CampaignManagement/ValidateTextAd.vb delete mode 100644 examples/AdWords/Vb/v201309/ErrorHandling/HandlePartialFailures.vb delete mode 100644 examples/AdWords/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb delete mode 100644 examples/AdWords/Vb/v201309/ErrorHandling/HandleRateExceededError.vb delete mode 100644 examples/AdWords/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb delete mode 100644 examples/AdWords/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb delete mode 100644 examples/AdWords/Vb/v201309/Miscellaneous/UploadImage.vb delete mode 100644 examples/AdWords/Vb/v201309/Optimization/EstimateKeywordTraffic.vb delete mode 100644 examples/AdWords/Vb/v201309/Optimization/GetAdGroupBidSimulations.vb delete mode 100644 examples/AdWords/Vb/v201309/Optimization/GetKeywordBidSimulations.vb delete mode 100644 examples/AdWords/Vb/v201309/Optimization/GetKeywordIdeas.vb delete mode 100644 examples/AdWords/Vb/v201309/Optimization/GetPlacementIdeas.vb delete mode 100644 examples/AdWords/Vb/v201309/Remarketing/AddAudience.vb delete mode 100644 examples/AdWords/Vb/v201309/Remarketing/AddConversionTracker.vb delete mode 100644 examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReport.vb delete mode 100644 examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb delete mode 100644 examples/AdWords/Vb/v201309/Reporting/GetReportFields.vb delete mode 100644 examples/AdWords/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb delete mode 100644 examples/AdWords/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb delete mode 100644 examples/AdWords/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb delete mode 100644 examples/AdWords/Vb/v201309/Targeting/LookupLocation.vb delete mode 100644 examples/AdXBuyer/CSharp/v201309/AccountManagement/GetAccountChanges.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroups.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/AddCampaigns.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/AddPlacements.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/AddThirdPartyRedirectAds.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAd.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAdGroup.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteCampaign.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/DeletePlacement.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/GetAdGroups.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaigns.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/GetPlacements.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/GetThirdPartyRedirectAds.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/PauseAd.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateAdGroup.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateCampaign.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdatePlacement.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/CampaignManagement/AddPlacementsInBulk.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Miscellaneous/UploadImage.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Optimization/GetPlacementIdeas.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Remarketing/AddAudience.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Remarketing/AddConversionTracker.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReport.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Reporting/GetReportFields.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs delete mode 100644 examples/AdXBuyer/CSharp/v201309/Targeting/LookupLocation.cs create mode 100644 examples/AdXBuyer/Vb/Properties/AssemblyInfo.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/AccountManagement/GetAccountChanges.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroups.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/AddCampaigns.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/AddPlacements.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/AddThirdPartyRedirectAds.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAd.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAdGroup.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteCampaign.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/DeletePlacement.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/GetAdGroups.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaigns.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/GetPlacements.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/GetThirdPartyRedirectAds.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/PauseAd.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateAdGroup.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateCampaign.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/BasicOperations/UpdatePlacement.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/CampaignManagement/AddPlacementsInBulk.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePartialFailures.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleRateExceededError.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Miscellaneous/UploadImage.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Optimization/GetPlacementIdeas.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Remarketing/AddAudience.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Remarketing/AddConversionTracker.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReport.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Reporting/GetReportFields.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb delete mode 100644 examples/AdXBuyer/Vb/v201309/Targeting/LookupLocation.vb delete mode 100644 src/AdWords/Util/v201309/MapUtilities.cs delete mode 100644 src/AdWords/v201309/AdWordsApi.cs delete mode 100644 src/AdWords/v201309/AdWordsServiceV201309.cs delete mode 100644 src/AdWords/v201309/ReportDefinition.cs delete mode 100644 tests/AdWords/Resources/GetAccountAlerts.v201309.txt delete mode 100644 tests/AdWords/SoapMessages.v201309.Designer.cs delete mode 100644 tests/AdWords/SoapMessages.v201309.resx delete mode 100644 tests/AdWords/Util/v201309/MapUtilitiesTest.cs delete mode 100644 tests/AdWords/v201309/AccountManagementTest.cs delete mode 100644 tests/AdWords/v201309/AdvancedOperationsTest.cs delete mode 100644 tests/AdWords/v201309/BasicOperationsTest.cs delete mode 100644 tests/AdWords/v201309/CampaignManagementTest.cs delete mode 100644 tests/AdWords/v201309/ErrorHandlingTest.cs delete mode 100644 tests/AdWords/v201309/MiscellaneousTest.cs delete mode 100644 tests/AdWords/v201309/OptimizationTest.cs delete mode 100644 tests/AdWords/v201309/RemarketingTest.cs delete mode 100644 tests/AdWords/v201309/ReportingTest.cs delete mode 100644 tests/AdWords/v201309/TargetingTest.cs delete mode 100644 tests/AdWords/v201309/TestUtils.cs delete mode 100644 tests/AdWords/v201309/VersionedExampleTestsBase.cs delete mode 100644 tests/AdXBuyer/Util/v201309/MapUtilitiesTest.cs delete mode 100644 tests/AdXBuyer/v201309/AccountManagementTest.cs delete mode 100644 tests/AdXBuyer/v201309/AdvancedOperationsTest.cs delete mode 100644 tests/AdXBuyer/v201309/BasicOperationsTest.cs delete mode 100644 tests/AdXBuyer/v201309/CampaignManagementTest.cs delete mode 100644 tests/AdXBuyer/v201309/ErrorHandlingTest.cs delete mode 100644 tests/AdXBuyer/v201309/MiscellaneousTest.cs delete mode 100644 tests/AdXBuyer/v201309/OptimizationTest.cs delete mode 100644 tests/AdXBuyer/v201309/RemarketingTest.cs delete mode 100644 tests/AdXBuyer/v201309/ReportingTest.cs delete mode 100644 tests/AdXBuyer/v201309/TargetingTest.cs delete mode 100644 tests/AdXBuyer/v201309/TestUtils.cs delete mode 100644 tests/AdXBuyer/v201309/VersionedExampleTestsBase.cs diff --git a/ChangeLog b/ChangeLog index 280385dd5e0..7bdc6a57d47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +18.1.0 +====== + +- Fixed issue 3 in https://github.com/googleads/googleads-dotnet-lib/issues + +AdWords: +- Removed support for AdWords API v201309. +- Added support for AdWords For Video API v201406. +- Code examples no longer rename AdGroups and Campaigns when removing them. + +AdXBuyer: +- Removed support for AdXBuyer API v201309. +- Code examples no longer rename AdGroups and Campaigns when removing them. +- Fixed some comments in RemovePlacement.cs and RemovePlacement.vb. + +DFA: + - + +DFP: + - + +Common: + - Version was bumped to 3.1.0. + 18.0.0 ====== diff --git a/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj b/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj index d07a1782563..790e3e32930 100644 --- a/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj +++ b/examples/AdWords/CSharp/AdWords.Examples.CSharp.csproj @@ -62,82 +62,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -231,6 +155,18 @@ + + + + + + + + + + + + diff --git a/examples/AdWords/CSharp/OAuth/ConsoleExample.cs b/examples/AdWords/CSharp/OAuth/ConsoleExample.cs index 0a0330df5f4..4c6f7541c1c 100644 --- a/examples/AdWords/CSharp/OAuth/ConsoleExample.cs +++ b/examples/AdWords/CSharp/OAuth/ConsoleExample.cs @@ -15,7 +15,7 @@ // Author: api.anash@gmail.com (Anash P. Oommen) using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; +using Google.Api.Ads.AdWords.v201406; using Google.Api.Ads.Common.Lib; using System; @@ -74,7 +74,7 @@ static void Main(string[] args) { // Get the CampaignService. CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); + (CampaignService) user.GetService(AdWordsService.v201406.CampaignService); // Create the selector. Selector selector = new Selector(); diff --git a/examples/AdWords/CSharp/OAuth/Default.aspx.cs b/examples/AdWords/CSharp/OAuth/Default.aspx.cs index 0b81b03ece1..a110c7b78ae 100644 --- a/examples/AdWords/CSharp/OAuth/Default.aspx.cs +++ b/examples/AdWords/CSharp/OAuth/Default.aspx.cs @@ -16,7 +16,7 @@ using Google.Api.Ads.AdWords.Lib; using Google.Api.Ads.AdWords.Util.Reports; -using Google.Api.Ads.AdWords.v201309; +using Google.Api.Ads.AdWords.v201406; using Google.Api.Ads.Common.Lib; using System; @@ -104,7 +104,7 @@ protected void OnDownloadReportButtonClick(object sender, EventArgs e) { // If you know that your report is small enough to fit in memory, then // you can instead use // ReportUtilities utilities = new ReportUtilities(user); - // utilities.ReportVersion = "v201309"; + // utilities.ReportVersion = "v201406"; // ClientReport report = utilities.GetClientReport(definition); // // // Get the text report directly if you requested a text format @@ -122,7 +122,7 @@ protected void OnDownloadReportButtonClick(object sender, EventArgs e) { // Set the customer id. (user.Config as AdWordsAppConfig).ClientCustomerId = txtCustomerId.Text; ReportUtilities utilities = new ReportUtilities(user); - utilities.ReportVersion = "v201309"; + utilities.ReportVersion = "v201406"; utilities.DownloadClientReport(definition, filePath); } catch (Exception ex) { throw new System.ApplicationException("Failed to download report.", ex); @@ -155,7 +155,7 @@ protected void OnGetCampaignsButtonClick(object sender, EventArgs e) { try { CampaignService service = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); + (CampaignService) user.GetService(AdWordsService.v201406.CampaignService); CampaignPage page = service.get(selector); diff --git a/examples/AdWords/CSharp/OAuth/Properties/Properties.cs b/examples/AdWords/CSharp/OAuth/Properties/Properties.cs index de944c8264a..3f01f1a16a9 100644 --- a/examples/AdWords/CSharp/OAuth/Properties/Properties.cs +++ b/examples/AdWords/CSharp/OAuth/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("AdWords API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/AdWords/CSharp/Properties/Properties.cs b/examples/AdWords/CSharp/Properties/Properties.cs index de944c8264a..3f01f1a16a9 100644 --- a/examples/AdWords/CSharp/Properties/Properties.cs +++ b/examples/AdWords/CSharp/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("AdWords API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/AdWords/CSharp/v201309/AccountManagement/CreateAccount.cs b/examples/AdWords/CSharp/v201309/AccountManagement/CreateAccount.cs deleted file mode 100644 index 55dd7826f50..00000000000 --- a/examples/AdWords/CSharp/v201309/AccountManagement/CreateAccount.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to create an account. Note by default, - /// this account will only be accessible via its parent MCC. - /// - /// Tags: ManagedCustomerService.mutate - /// - public class CreateAccount : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - CreateAccount codeExample = new CreateAccount(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create an account. Note by default " + - "this account will only be accessible via its parent MCC."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ManagedCustomerService. - ManagedCustomerService managedCustomerService = (ManagedCustomerService) user.GetService( - AdWordsService.v201309.ManagedCustomerService); - - // Create account. - ManagedCustomer customer = new ManagedCustomer(); - customer.name = "Customer created with ManagedCustomerService on " + - new DateTime().ToString(); - customer.currencyCode = "EUR"; - customer.dateTimeZone = "Europe/London"; - - // Create operations. - ManagedCustomerOperation operation = new ManagedCustomerOperation(); - operation.operand = customer; - operation.@operator = Operator.ADD; - try { - ManagedCustomerOperation[] operations = new ManagedCustomerOperation[] {operation}; - // Add account. - ManagedCustomerReturnValue result = managedCustomerService.mutate(operations); - - // Display accounts. - if (result.value != null && result.value.Length > 0) { - ManagedCustomer customerResult = result.value[0]; - Console.WriteLine("Account with customer ID \"{0}\" was created.", - customerResult.customerId); - } else { - Console.WriteLine("No accounts were created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create accounts.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountAlerts.cs b/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountAlerts.cs deleted file mode 100644 index 8d94da8718d..00000000000 --- a/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountAlerts.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets all alerts for all clients of an MCC account. - /// The effective user (ClientCustomerId or AuthToken) must be an MCC user - /// to get results. This code example won't work with Test Accounts. See - /// https://developers.google.com/adwords/api/docs/test-accounts - /// - /// Tags: AlertService.get - /// - public class GetAccountAlerts : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAccountAlerts codeExample = new GetAccountAlerts(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all alerts for all clients of an MCC account. The " + - "effective user (ClientCustomerId or AuthToken) must be an MCC user to get results. " + - "This code example won't work with Test Accounts. See " + - "https://developers.google.com/adwords/api/docs/test-accounts"; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the AlertService. - AlertService alertService = (AlertService) user.GetService( - AdWordsService.v201309.AlertService); - - // Create the selector. - AlertSelector selector = new AlertSelector(); - - // Create the alert query. - AlertQuery query = new AlertQuery(); - query.filterSpec = FilterSpec.ALL; - query.clientSpec = ClientSpec.ALL; - query.triggerTimeSpec = TriggerTimeSpec.ALL_TIME; - query.severities = new AlertSeverity[] {AlertSeverity.GREEN, AlertSeverity.YELLOW, - AlertSeverity.RED}; - - // Enter all possible values of AlertType to get all alerts. If you are - // interested only in specific alert types, then you may also do it as - // follows: - // query.types = new AlertType[] {AlertType.CAMPAIGN_ENDING, - // AlertType.CAMPAIGN_ENDED}; - query.types = (AlertType[]) Enum.GetValues(typeof(AlertType)); - selector.query = query; - - // Set paging for selector. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AlertPage page = new AlertPage(); - - try { - do { - // Get account alerts. - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - page = alertService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (Alert alert in page.entries) { - Console.WriteLine("{0}) Customer Id is {1:###-###-####}, Alert type is '{2}', " + - "Severity is {3}", i + 1, alert.clientCustomerId, alert.alertType, - alert.alertSeverity); - for (int j = 0; j < alert.details.Length; j++) { - Console.WriteLine(" - Triggered at {0}", alert.details[j].triggerTime); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of alerts found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve alerts.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountChanges.cs b/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountChanges.cs deleted file mode 100644 index eb87a055512..00000000000 --- a/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountChanges.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets the changes in the account during the last 24 - /// hours. - /// - /// Tags: CustomerSyncService.get - /// - public class GetAccountChanges : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAccountChanges codeExample = new GetAccountChanges(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets the changes in the account during the last 24 hours."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the CustomerSyncService. - CustomerSyncService customerSyncService = - (CustomerSyncService) user.GetService(AdWordsService.v201309. - CustomerSyncService); - - // The date time string should be of the form yyyyMMdd HHmmss zzz - string minDateTime = DateTime.Now.AddDays(-1).ToUniversalTime().ToString("yyyyMMdd HHmmss") - + " UTC"; - string maxDateTime = DateTime.Now.ToUniversalTime().ToString("yyyyMMdd HHmmss") + " UTC"; - - // Create date time range. - DateTimeRange dateTimeRange = new DateTimeRange(); - dateTimeRange.min = minDateTime; - dateTimeRange.max = maxDateTime; - - try { - // Create the selector. - CustomerSyncSelector selector = new CustomerSyncSelector(); - selector.dateTimeRange = dateTimeRange; - selector.campaignIds = GetAllCampaignIds(user); - - // Get all account changes for campaign. - CustomerChangeData accountChanges = customerSyncService.get(selector); - - // Display the changes. - if (accountChanges != null && accountChanges.changedCampaigns != null) { - Console.WriteLine("Displaying changes up to: {0}", accountChanges.lastChangeTimestamp); - foreach (CampaignChangeData campaignChanges in accountChanges.changedCampaigns) { - Console.WriteLine("Campaign with id \"{0}\" was changed:", campaignChanges.campaignId); - Console.WriteLine(" Campaign changed status: {0}", - campaignChanges.campaignChangeStatus); - if (campaignChanges.campaignChangeStatus != ChangeStatus.NEW) { - Console.WriteLine(" Added ad extensions: {0}", GetFormattedList( - campaignChanges.addedAdExtensions)); - Console.WriteLine(" Added campaign criteria: {0}", - GetFormattedList(campaignChanges.addedCampaignCriteria)); - Console.WriteLine(" Added campaign targeting: {0}", - campaignChanges.campaignTargetingChanged? "yes" : "no"); - Console.WriteLine(" Deleted ad extensions: {0}", - GetFormattedList(campaignChanges.deletedAdExtensions)); - Console.WriteLine(" Deleted campaign criteria: {0}", - GetFormattedList(campaignChanges.deletedCampaignCriteria)); - - if (campaignChanges.changedAdGroups != null) { - foreach (AdGroupChangeData adGroupChanges in campaignChanges.changedAdGroups) { - Console.WriteLine(" Ad group with id \"{0}\" was changed:", - adGroupChanges.adGroupId); - Console.WriteLine(" Ad group changed status: {0}", - adGroupChanges.adGroupChangeStatus); - if (adGroupChanges.adGroupChangeStatus != ChangeStatus.NEW) { - Console.WriteLine(" Ads changed: {0}", - GetFormattedList(adGroupChanges.changedAds)); - Console.WriteLine(" Criteria changed: {0}", - GetFormattedList(adGroupChanges.changedCriteria)); - Console.WriteLine(" Criteria deleted: {0}", - GetFormattedList(adGroupChanges.deletedCriteria)); - } - } - } - } - Console.WriteLine(); - } - } else { - Console.WriteLine("No account changes were found.");; - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get account changes.", ex); - } - } - - /// - /// Formats a list of ids as a comma separated string. - /// - /// The list of ids. - /// The comma separed formatted string, enclosed in square braces. - /// - private string GetFormattedList(long[] ids) { - StringBuilder builder = new StringBuilder(); - if (ids != null) { - foreach (long id in ids) { - builder.AppendFormat("{0}, ", id); - } - } - return "[" + builder.ToString().TrimEnd(',', ' ') + "]"; - } - - /// - /// Gets all campaign ids in the account. - /// - /// The user for which campaigns are retrieved. - /// The list of campaign ids. - private long[] GetAllCampaignIds(AdWordsUser user) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - List allCampaigns = new List(); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id"}; - - // Get all campaigns. - CampaignPage page = campaignService.get(selector); - - // Return the results. - if (page != null && page.entries != null) { - foreach (Campaign campaign in page.entries) { - allCampaigns.Add(campaign.id); - } - } - return allCampaigns.ToArray(); - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountHierarchy.cs b/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountHierarchy.cs deleted file mode 100644 index e36f3c99e0b..00000000000 --- a/examples/AdWords/CSharp/v201309/AccountManagement/GetAccountHierarchy.cs +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to retrieve the account hierarchy under - /// an account. This code example won't work with Test Accounts. See - /// https://developers.google.com/adwords/api/docs/test-accounts - /// - /// Tags: ManagedCustomerService.get - /// - public class GetAccountHierarchy : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAccountHierarchy codeExample = new GetAccountHierarchy(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve the account hierarchy under" + - " an account. This code example won't work with Test Accounts. See " + - "https://developers.google.com/adwords/api/docs/test-accounts"; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ManagedCustomerService. - ManagedCustomerService managedCustomerService = (ManagedCustomerService) user.GetService( - AdWordsService.v201309.ManagedCustomerService); - managedCustomerService.RequestHeader.clientCustomerId = null; - - // Create selector. - Selector selector = new Selector(); - selector.fields = new String[] {"Login", "CustomerId", "Name"}; - - try { - // Get results. - ManagedCustomerPage page = managedCustomerService.get(selector); - - // Display serviced account graph. - if (page.entries != null) { - // Create map from customerId to customer node. - Dictionary customerIdToCustomerNode = - new Dictionary(); - - // Create account tree nodes for each customer. - foreach (ManagedCustomer customer in page.entries) { - ManagedCustomerTreeNode node = new ManagedCustomerTreeNode(); - node.Account = customer; - customerIdToCustomerNode.Add(customer.customerId, node); - } - - // For each link, connect nodes in tree. - if (page.links != null) { - foreach (ManagedCustomerLink link in page.links) { - ManagedCustomerTreeNode managerNode = - customerIdToCustomerNode[link.managerCustomerId]; - ManagedCustomerTreeNode childNode = customerIdToCustomerNode[link.clientCustomerId]; - childNode.ParentNode = managerNode; - if (managerNode != null) { - managerNode.ChildAccounts.Add(childNode); - } - } - } - - // Find the root account node in the tree. - ManagedCustomerTreeNode rootNode = null; - foreach (ManagedCustomer account in page.entries) { - if (customerIdToCustomerNode[account.customerId].ParentNode == null) { - rootNode = customerIdToCustomerNode[account.customerId]; - break; - } - } - - // Display account tree. - Console.WriteLine("Login, CustomerId, Name"); - Console.WriteLine(rootNode.ToTreeString(0, new StringBuilder())); - } else { - Console.WriteLine("No serviced accounts were found."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create ad groups.", ex); - } - } - - /** - * Example implementation of a node that would exist in an account tree. - */ - class ManagedCustomerTreeNode { - /// - /// The parent node. - /// - private ManagedCustomerTreeNode parentNode; - - /// - /// The account associated with this node. - /// - private ManagedCustomer account; - - /// - /// The list of child accounts. - /// - private List childAccounts = new List(); - - /// - /// Gets or sets the parent node. - /// - public ManagedCustomerTreeNode ParentNode { - get { return parentNode; } - set { parentNode = value; } - } - - /// - /// Gets or sets the account. - /// - public ManagedCustomer Account { - get { return account; } - set { account = value; } - } - - /// - /// Gets the child accounts. - /// - public List ChildAccounts { - get { return childAccounts; } - } - - /// - /// Returns a that represents this instance. - /// - /// - /// A that represents this instance. - /// - public override String ToString() { - String login = String.IsNullOrEmpty(account.login) ? "(no login)" : account.login; - return String.Format("{0}, {1}, {2}", login, account.customerId, account.name); - } - - /// - /// Returns a string representation of the current level of the tree and - /// recursively returns the string representation of the levels below it. - /// - /// The depth of the node. - /// The String Builder containing the tree - /// representation. - /// The tree string representation. - public StringBuilder ToTreeString(int depth, StringBuilder sb) { - sb.Append(new String('-', depth * 2)); - sb.Append(this); - sb.Append("\n"); - foreach (ManagedCustomerTreeNode childAccount in childAccounts) { - childAccount.ToTreeString(depth + 1, sb); - } - return sb; - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroup.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroup.cs deleted file mode 100644 index 5c0ad9a4f97..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroup.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to create a targeting group. - /// - /// Tags: VideoTargetingGroupService.mutate - /// - /// AdWords for Video API is a Beta feature. - public class AddTargetingGroup : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create a targeting group."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddTargetingGroup codeExample = new AddTargetingGroup(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - string videoId = "INSERT_VIDEO_ID_HERE"; - codeExample.Run(new AdWordsUser(), campaignId, videoId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - /// The Youtube video ID. - public void Run(AdWordsUser user, long campaignId, string videoId) { - // Get the VideoTargetingGroupService. - VideoTargetingGroupService videoTargetingGroupService = - (VideoTargetingGroupService) user.GetService( - AdWordsService.v201309.VideoTargetingGroupService); - - TargetingGroup targetingGroup = new TargetingGroup(); - targetingGroup.campaignId = campaignId; - targetingGroup.name = "My Targeting Group " + ExampleUtilities.GetRandomString(); - - try { - TargetingGroupOperation operation = new TargetingGroupOperation(); - operation.operand = targetingGroup; - operation.@operator = Operator.ADD; - - TargetingGroupReturnValue retval = videoTargetingGroupService.mutate( - new TargetingGroupOperation[] { operation }); - - if (retval != null && retval.value != null && retval.value.Length > 0) { - TargetingGroup newTargetingGroup = retval.value[0]; - Console.WriteLine("New targeting group with id = {0}, name = {1} was created in " + - "campaign id {2}", newTargetingGroup.id, newTargetingGroup.name, - newTargetingGroup.campaignId); - } else { - Console.WriteLine("No targeting group was created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create targeting group.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroupCriteria.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroupCriteria.cs deleted file mode 100644 index e0412fcb88a..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddTargetingGroupCriteria.cs +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to create targeting group criteria. - /// - /// Tags: VideoTargetingGroupCriterionService.mutate - /// - /// AdWords for Video API is a Beta feature. - public class AddTargetingGroupCriteria : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create targeting group criteria."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddTargetingGroupCriteria codeExample = new AddTargetingGroupCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - long targetingGroupId = long.Parse("INSERT_TARGETING_GROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId, targetingGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - /// The targeting group ID. - public void Run(AdWordsUser user, long campaignId, long targetingGroupId) { - // Get the VideoTargetingGroupCriterionService. - VideoTargetingGroupCriterionService videoTargetingGroupCriterionService = - (VideoTargetingGroupCriterionService) user.GetService( - AdWordsService.v201309.VideoTargetingGroupCriterionService); - - // Create age criteria. - TargetingGroupCriterion ageCriterion = new TargetingGroupCriterion(); - ageCriterion.campaignId = campaignId; - ageCriterion.targetingGroupId = targetingGroupId; - AudienceAge age = new AudienceAge(); - age.ageRange = AudienceAgeAgeRange.AGE_RANGE_18_24; - ageCriterion.criterion = age; - - TargetingGroupCriterionOperation addAgeCriterionOperation = - new TargetingGroupCriterionOperation(); - addAgeCriterionOperation.operand = ageCriterion; - addAgeCriterionOperation.@operator = Operator.ADD; - - // Create negative age criteria. - NegativeTargetingGroupCriterion negativeAgeCriterion = new NegativeTargetingGroupCriterion(); - negativeAgeCriterion.campaignId = campaignId; - negativeAgeCriterion.targetingGroupId = targetingGroupId; - AudienceAge negativeAge = new AudienceAge(); - negativeAge.ageRange = AudienceAgeAgeRange.AGE_RANGE_65_UP; - negativeAgeCriterion.criterion = negativeAge; - - TargetingGroupCriterionOperation addNegativeAgeCriterionOperation = - new TargetingGroupCriterionOperation(); - addNegativeAgeCriterionOperation.operand = negativeAgeCriterion; - addNegativeAgeCriterionOperation.@operator = Operator.ADD; - - // Create gender criteria. - TargetingGroupCriterion genderCriterion = new TargetingGroupCriterion(); - AudienceGender gender = new AudienceGender(); - gender.genderType = AudienceGenderGenderType.GENDER_MALE; - genderCriterion.campaignId = campaignId; - genderCriterion.targetingGroupId = targetingGroupId; - genderCriterion.criterion = gender; - - TargetingGroupCriterionOperation addGenderCriterionOperation = - new TargetingGroupCriterionOperation(); - addGenderCriterionOperation.operand = genderCriterion; - addGenderCriterionOperation.@operator = Operator.ADD; - - // Create topic criteria. - // See https://developers.google.com/adwords/api/docs/appendix/verticals - // for valid ids. - TargetingGroupCriterion topicCriterion = new TargetingGroupCriterion(); - Topic topic = new Topic(); - // Autos & Vehicles > Vehicle Brands > Buick - topic.verticalId = 1060L; - - topicCriterion.campaignId = campaignId; - topicCriterion.targetingGroupId = targetingGroupId; - topicCriterion.criterion = topic; - - TargetingGroupCriterionOperation addTopicCriterionOperation = - new TargetingGroupCriterionOperation(); - addTopicCriterionOperation.operand = topicCriterion; - addTopicCriterionOperation.@operator = Operator.ADD; - - // Add audience interest criteria. - // See https://developers.google.com/adwords/api/docs/appendix/verticals - // for valid ids. - TargetingGroupCriterion interestCriterion = new TargetingGroupCriterion(); - AudienceInterest interest = new AudienceInterest(); - // Computers & Electronics > Computer Hardware > Laptops & Notebooks > Tablet PCs - interest.interestId = 1277L; - - interestCriterion.campaignId = campaignId; - interestCriterion.targetingGroupId = targetingGroupId; - interestCriterion.criterion = topic; - - TargetingGroupCriterionOperation addUserInterestCriteriaOperation = - new TargetingGroupCriterionOperation(); - addUserInterestCriteriaOperation.operand = interestCriterion; - addUserInterestCriteriaOperation.@operator = Operator.ADD; - - try { - TargetingGroupCriterionReturnValue retval = videoTargetingGroupCriterionService.mutate( - new TargetingGroupCriterionOperation[] { - addAgeCriterionOperation, - addGenderCriterionOperation, - addNegativeAgeCriterionOperation, - addTopicCriterionOperation, - addUserInterestCriteriaOperation - }); - if (retval != null && retval.value != null) { - foreach (TargetingGroupCriterion newCriterion in retval.value) { - Console.WriteLine("Added targeting group criteria with id = {0} and type = {1} " + - "to campaign id {2}.", - newCriterion.criterion.id, newCriterion.criterion.BaseCriterionType, - newCriterion.campaignId); - } - } else { - Console.WriteLine("No new targeting group criteria were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add targeting group criteria.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoAd.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoAd.cs deleted file mode 100644 index 83c806fe6b6..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoAd.cs +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to create a video ad. - /// - /// Tags: VideoAdService.mutate - /// - /// AdWords for Video API is a Beta feature. - public class AddVideoAd : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create a video ad."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddVideoAd codeExample = new AddVideoAd(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - string videoId = "INSERT_VIDEO_ID_HERE"; - codeExample.Run(new AdWordsUser(), campaignId, videoId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - /// The Youtube video ID. - public void Run(AdWordsUser user, long campaignId, string videoId) { - // Get the VideoAdService. - VideoAdService videoAdService = (VideoAdService) user.GetService( - AdWordsService.v201309.VideoAdService); - - VideoAd videoAd = new VideoAd(); - videoAd.campaignId = campaignId; - videoAd.name = "My first video ad"; - videoAd.status = VideoAdStatus.PAUSED; - - videoAd.headline = "Best headline ever"; - videoAd.destinationUrl = "http://www.example.com"; - videoAd.displayUrl = "www.example.com"; - videoAd.description1 = "My favorite line 1"; - videoAd.description2 = "My favorite line 2"; - - videoAd.videoId = videoId; - - VideoAdDisplayFormat_VideoAdStatusMapEntry statusByFormat = - new VideoAdDisplayFormat_VideoAdStatusMapEntry(); - statusByFormat.key = VideoAdDisplayFormat.TRUE_VIEW_IN_STREAM; - statusByFormat.value = VideoAdStatus.ENABLED; - - videoAd.statusByFormat = new VideoAdDisplayFormat_VideoAdStatusMapEntry[] { - statusByFormat - }; - - try { - VideoAdOperation operation = new VideoAdOperation(); - operation.operand = videoAd; - operation.@operator = Operator.ADD; - - VideoAdReturnValue retval = videoAdService.mutate(new VideoAdOperation[] { operation }); - if (retval != null && retval.value != null && retval.value.Length > 0) { - VideoAd newVideoAd = retval.value[0]; - Console.WriteLine("Ad with id = {0} was added to campaign id {1}.", newVideoAd.id, - newVideoAd.campaignId); - } else { - Console.WriteLine("No video ads were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add video ad.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCallToAction.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCallToAction.cs deleted file mode 100644 index 0d7c5ef1495..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCallToAction.cs +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to create a video call to action - /// overlay. - /// - /// Tags: VideoService.mutateCallToAction - /// - /// AdWords for Video API is a Beta feature. - public class AddVideoCallToAction : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create a video call to action overlay"; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddVideoCallToAction codeExample = new AddVideoCallToAction(); - Console.WriteLine(codeExample.Description); - try { - string videoId = "INSERT_VIDEO_ID_HERE"; - codeExample.Run(new AdWordsUser(), videoId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The video ID. - public void Run(AdWordsUser user, string videoId) { - // Get the VideoService. - VideoService videoService = (VideoService) user.GetService( - AdWordsService.v201309.VideoService); - - VideoCallToAction videoCallToAction = new VideoCallToAction(); - videoCallToAction.id = videoId; - - CallToAction callToAction = new CallToAction(); - - CallToActionCreative callToActionCreative = new CallToActionCreative(); - callToActionCreative.headline = "Mars cruise"; - callToActionCreative.descriptionLine1 = "Astonishing views"; - callToActionCreative.descriptionLine2 = "Mild climate"; - callToActionCreative.displayUrl = "www.example.com/mars"; - callToActionCreative.destinationUrl = "www.example.com/mars"; - - callToAction.creative = callToActionCreative; - videoCallToAction.callToAction = callToAction; - - try { - VideoCallToActionOperation operation = new VideoCallToActionOperation(); - operation.operand = videoCallToAction; - - // If this is a new Call to Action, use Operator.ADD - // If a Call to Action already exists, use Operator.SET - operation.@operator = Operator.SET; - - VideoCallToActionOperation[] operations = new VideoCallToActionOperation[] { operation }; - - // Add video call to action. - VideoReturnValue result = videoService.mutateCallToAction(operations); - - if (result != null && result.value != null && result.value.Length > 0) { - foreach (YouTubeVideo youTubeVideo in result.value) { - Console.WriteLine("CallToAction overlay was added to video ID {0}, headline {1}.", - youTubeVideo.id, youTubeVideo.callToAction.creative.headline); - } - } else { - Console.WriteLine("No call to action overlays were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add call to action overlay.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaign.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaign.cs deleted file mode 100644 index 16489f28148..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaign.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to create a video campaign. - /// - /// Tags: VideoCampaignService.mutate, BudgetService.mutate - /// - /// AdWords for Video API is a Beta feature. - public class AddVideoCampaign : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create a video campaign."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddVideoCampaign codeExample = new AddVideoCampaign(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the BudgetService. - BudgetService budgetService = - (BudgetService) user.GetService(AdWordsService.v201309.BudgetService); - - // Get the VideoCampaignService. - VideoCampaignService videoCampaignService = - (VideoCampaignService) user.GetService(AdWordsService.v201309.VideoCampaignService); - - // Create the campaign budget. - Budget budget = new Budget(); - budget.name = "Interplanetary Cruise Budget #" + ExampleUtilities.GetRandomString(); - budget.period = BudgetBudgetPeriod.DAILY; - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD; - budget.amount = new Money(); - budget.amount.microAmount = 500000; - - BudgetOperation budgetOperation = new BudgetOperation(); - budgetOperation.@operator = Operator.ADD; - budgetOperation.operand = budget; - - try { - BudgetReturnValue budgetRetval = budgetService.mutate(new BudgetOperation[] { budgetOperation }); - budget = budgetRetval.value[0]; - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add shared budget.", ex); - } - - // Create video campaign. - VideoCampaign videoCampaign = new VideoCampaign(); - videoCampaign.name = ("Interplanetary Cruise #" + ExampleUtilities.GetRandomString()); - videoCampaign.status = VideoCampaignStatus.PAUSED; - videoCampaign.budgetId = budget.budgetId; - - // You can optionally provide these field(s). The dates will be - // interpreted using the account's timezone. - videoCampaign.startDate = DateTime.Now.AddDays(1).ToString("yyyyMMdd"); - - try { - // Create operations. - VideoCampaignOperation operation = new VideoCampaignOperation(); - operation.operand = videoCampaign; - operation.@operator = Operator.ADD; - - VideoCampaignOperation[] operations = new VideoCampaignOperation[] { operation }; - - // Add video campaigns. - VideoCampaignReturnValue retval = videoCampaignService.mutate(operations); - - // Display video campaigns. - if (retval != null && retval.value != null && retval.value.Length > 0) { - VideoCampaign newVideoCampaign = retval.value[0]; - Console.WriteLine("Campaign with name '{0}' and id = {1} was added.", - newVideoCampaign.name, newVideoCampaign.id); - } else { - Console.WriteLine("No video campaigns were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add video campaign.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaignCriteria.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaignCriteria.cs deleted file mode 100644 index 3ccae1e987d..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/AddVideoCampaignCriteria.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example demonstrates how to add campaign-level criteria - /// targeting. - /// - /// Tags: VideoCampaignCriterionService.mutate - /// - /// AdWords for Video API is a Beta feature. - public class AddVideoCampaignCriteria : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example demonstrates how to add campaign-level criteria targeting."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddVideoCampaignCriteria codeExample = new AddVideoCampaignCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - public void Run(AdWordsUser user, long campaignId) { - // Get the VideoCampaignCriterionService. - VideoCampaignCriterionService service = - (VideoCampaignCriterionService) user.GetService( - AdWordsService.v201309.VideoCampaignCriterionService); - - try { - VideoCampaignCriterion criterion = new VideoCampaignCriterion(); - criterion.campaignId = campaignId; - - // for a list of languages, see - // https://devsite.googleplex.com/adwords/api/docs/appendix/languagecodes - LanguageVideoCriterion englishCriterion = new LanguageVideoCriterion(); - englishCriterion.id = 1001L; - criterion.criterion = englishCriterion; - - VideoCampaignCriterionOperation operation = new VideoCampaignCriterionOperation(); - operation.operand = criterion; - operation.@operator = Operator.ADD; - - VideoCampaignCriterionReturnValue retval = service.mutate( - new VideoCampaignCriterionOperation[] { operation }); - - if (retval != null && retval.value != null && retval.value.Length > 0) { - VideoCampaignCriterion newCriterion = retval.value[0]; - Console.WriteLine("Video campaign criterion with id = {0} and type = {1} was added " + - "to campaign id {2}", newCriterion.criterion.id, - newCriterion.criterion.BaseCriterionType, newCriterion.campaignId); - } else { - Console.WriteLine("No video campaign criteria were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add video campaign criteria.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/FindVideos.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/FindVideos.cs deleted file mode 100644 index c3d6f72abdc..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/FindVideos.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to find YouTube videos by a search - /// string. It retrieve details for the first 100 matching videos. - /// - /// Tags: VideoService.search - /// - /// AdWords for Video API is a Beta feature. - public class FindVideos : ExampleBase { - - /// - /// Maximum number of results to fetch. - /// - private const int PAGE_SIZE = 100; - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to find YouTube videos by a search " + - "string. It retrieve details for the first 100 matching videos."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - FindVideos codeExample = new FindVideos(); - Console.WriteLine(codeExample.Description); - try { - string queryString = "INSERT_QUERY_STRING_HERE"; - codeExample.Run(new AdWordsUser(), queryString); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The video search query text. - public void Run(AdWordsUser user, string queryString) { - // Get the VideoService. - VideoService videoService = (VideoService) user.GetService( - AdWordsService.v201309.VideoService); - - // Create a selector. - VideoSearchSelector selector = new VideoSearchSelector(); - selector.searchType = VideoSearchSelectorSearchType.VIDEO; - selector.query = queryString; - selector.paging = new Paging(); - selector.paging.startIndex = 0; - selector.paging.numberResults = PAGE_SIZE; - - try { - // Run the query. - VideoSearchPage page = videoService.search(selector); - - // Display videos. - if (page != null && page.totalNumEntries > 0) { - foreach (YouTubeVideo video in page.entries) { - Console.WriteLine("YouTube video ID {0} with title {1} found.", video.id, video.title); - } - Console.WriteLine("Total number of matching videos: {0}.", page.totalNumEntries); - } else { - Console.WriteLine("No videos matching {0} were found.", queryString); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to search for videos.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetKeywordCriteria.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetKeywordCriteria.cs deleted file mode 100644 index e8c468b66b0..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetKeywordCriteria.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example shows how to retrieve all keywords for a video - /// campaign. To get a list with all campaigns, run GetVideoCampaigns.cs. - /// - /// Tags: VideoTargetingGroupCriterionService.get - /// - /// AdWords for Video API is a Beta feature. - public class GetKeywordCriteria : ExampleBase { - - /// - /// Maximum number of results to fetch. - /// - private const int PAGE_SIZE = 100; - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to retrieve all keywords for a video campaign. " + - "To get a list with all campaigns, run GetVideoCampaigns.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetKeywordCriteria codeExample = new GetKeywordCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - public void Run(AdWordsUser user, long campaignId) { - // Get the VideoTargetingGroupCriterionService. - VideoTargetingGroupCriterionService videoTargetingGroupCriterionService = - (VideoTargetingGroupCriterionService) user.GetService( - AdWordsService.v201309.VideoTargetingGroupCriterionService); - - int offset = 0; - - TargetingGroupCriterionPage page = new TargetingGroupCriterionPage(); - - try { - // Create selector. - TargetingGroupCriterionSelector selector = new TargetingGroupCriterionSelector(); - - selector.criteriaDimension = CriteriaDimension.KEYWORD; - selector.campaignIds = new long[] { campaignId }; - - selector.paging = new Paging(); - - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = PAGE_SIZE; - - // Get all keywords. - page = videoTargetingGroupCriterionService.get(selector); - - // Display keywords. - if (page != null && page.entries != null) { - int i = offset; - foreach (TargetingGroupCriterion targetingGroupCriterion in page.entries) { - String negative = - (targetingGroupCriterion is NegativeTargetingGroupCriterion) ? - " (negative)" : ""; - BaseKeyword keyword = (BaseKeyword) targetingGroupCriterion.criterion; - Console.WriteLine("{0}) Criterion {1} ID {2}, targeting group ID {3} and " + - "text '{4}'\n", i, negative, keyword.id, - targetingGroupCriterion.targetingGroupId, keyword.text); - i++; - } - } - offset += PAGE_SIZE; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of keywords found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get keywords.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetTargetingGroups.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetTargetingGroups.cs deleted file mode 100644 index ace576350f4..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetTargetingGroups.cs +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example shows how to retrieve all targeting groups for video - /// campaigns. - /// - /// Tags: VideoTargetingGroupService.get - /// - /// AdWords for Video API is a Beta feature. - public class GetTargetingGroups : ExampleBase { - - /// - /// Maximum number of results to fetch. - /// - private const int PAGE_SIZE = 100; - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to retrieve all targeting groups for " + - "video campaigns."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetTargetingGroups codeExample = new GetTargetingGroups(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - public void Run(AdWordsUser user, long campaignId) { - // Get the VideoTargetingGroupService. - VideoTargetingGroupService videoTargetingGroupService = (VideoTargetingGroupService) - user.GetService(AdWordsService.v201309.VideoTargetingGroupService); - - int offset = 0; - - TargetingGroupPage page = new TargetingGroupPage(); - - try { - // Create selector. - TargetingGroupSelector selector = new TargetingGroupSelector(); - selector.campaignIds = new long[] { campaignId }; - - selector.paging = new Paging(); - - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = PAGE_SIZE; - - // Get all targeting groups for this account. - page = videoTargetingGroupService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (TargetingGroup targetingGroup in page.entries) { - Console.WriteLine("{0}) Targeting group ID {1}, campaign ID {2} and name '{3}'", - (i + 1), targetingGroup.id, targetingGroup.campaignId, targetingGroup.name); - - i++; - } - } else { - Console.WriteLine("No targeting groups were found."); - } - offset += PAGE_SIZE; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of targeting groups found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get targeting groups.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignCriteria.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignCriteria.cs deleted file mode 100644 index 131d7700ba0..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignCriteria.cs +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example demonstrates how to retrieve all campaign-level - /// criteria in a campaign. - /// - /// Tags: VideoCampaignCriterionService.get - /// - /// AdWords for Video API is a Beta feature. - public class GetVideoCampaignCriteria : ExampleBase { - - /// - /// Maximum number of results to fetch. - /// - private const int PAGE_SIZE = 100; - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve all non-deleted video " + - "campaigns for an account."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetVideoCampaignCriteria codeExample = new GetVideoCampaignCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - public void Run(AdWordsUser user, long campaignId) { - // Get the VideoCampaignCriterionService. - VideoCampaignCriterionService videoCampaignCriterionService = - (VideoCampaignCriterionService) user.GetService( - AdWordsService.v201309.VideoCampaignCriterionService); - - int offset = 0; - - VideoCampaignCriterionPage page = new VideoCampaignCriterionPage(); - - try { - // Create selector. - VideoCampaignCriterionSelector selector = new VideoCampaignCriterionSelector(); - selector.campaignIds = new long[] { campaignId }; - - selector.paging = new Paging(); - - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = PAGE_SIZE; - - page = videoCampaignCriterionService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (VideoCampaignCriterion videoCampaignCriterion in page.entries) { - String negative = - (videoCampaignCriterion is NegativeVideoCampaignCriterion) ? " (negative)" - : ""; - Console.WriteLine("{0}) Video {1} criterion ID {2} of type '{3}'", (i + 1), - negative, - videoCampaignCriterion.criterion.id, - videoCampaignCriterion.criterion.BaseCriterionType); - i++; - } - } else { - Console.WriteLine("No video campaign criteria were found."); - } - offset += PAGE_SIZE; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of video campaign criteria found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get video campaign criteria.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignStats.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignStats.cs deleted file mode 100644 index 5c14995c0f3..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaignStats.cs +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to retrieve stats for a video campaign. - /// - /// Tags: VideoCampaignService.get - /// - /// AdWords for Video API is a Beta feature. - public class GetVideoCampaignStats : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve stats for a video campaign."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetVideoCampaignStats codeExample = new GetVideoCampaignStats(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The campaign ID. - public void Run(AdWordsUser user, long campaignId) { - // Get the VideoCampaignService. - VideoCampaignService videoCampaignService = (VideoCampaignService) user.GetService( - AdWordsService.v201309.VideoCampaignService); - - // The dates will be interpreted using the account's timezone. - String minDateTime = DateTime.Now.Year.ToString() + "0101"; - String maxDateTime = DateTime.Now.ToString("yyyyMMdd"); - - // Create selector. - StatsSelector statsSelector = new StatsSelector(); - DateRange dateRange = new DateRange(); - dateRange.min = minDateTime; - dateRange.max = maxDateTime; - - statsSelector.dateRange = dateRange; - statsSelector.segmentationDimensions = new SegmentationDimension[] { - SegmentationDimension.DATE_MONTH }; - statsSelector.metrics = new Metric[] { Metric.VIEWS, Metric.COST, Metric.AVERAGE_CPV }; - statsSelector.summaryTypes = new VideoEntityStatsSummaryType[] { - VideoEntityStatsSummaryType.ALL }; - statsSelector.segmentedSummaryType = VideoEntityStatsSummaryType.ALL; - - try { - // Create selector. - VideoCampaignSelector selector = new VideoCampaignSelector(); - selector.statsSelector = statsSelector; - selector.ids = new long[] { campaignId }; - - selector.paging = new Paging(); - - VideoCampaignPage page = videoCampaignService.get(selector); - - if (page != null) { - if (page.entries != null && page.entries.Length > 0) { - VideoCampaign videoCampaign = page.entries[0]; - - Console.WriteLine("Campaign ID {0}, name '{1}' and status '{2}'", videoCampaign.id, - videoCampaign.name, videoCampaign.status); - if (videoCampaign.stats != null) { - Console.WriteLine("\tCampaign stats:"); - Console.WriteLine("\t\t" + FormatStats(videoCampaign.stats)); - } - if (videoCampaign.segmentedStats != null) { - foreach (VideoEntityStats segment in videoCampaign.segmentedStats) { - Console.WriteLine("\tCampaign segmented stats for month of " + - ((DateKey) segment.segmentKey.Item).date); - Console.WriteLine("\t\t" + FormatStats(segment)); - } - } - } else { - Console.WriteLine("No campaigns were found."); - } - if (page.summaryStats != null) { - foreach (VideoEntityStats summary in page.summaryStats) { - Console.WriteLine("\tSummary of type " + summary.summaryType); - Console.WriteLine("\t\t" + FormatStats(summary)); - } - } else { - Console.WriteLine("No summary stats found."); - } - } else { - Console.WriteLine("No campaigns were found."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get campaigns.", ex); - } - } - - /// - /// Formats a money value for display purposes. - /// - /// The money value. - /// The formatted money value as text. - private static String Dashify(Money m) { - return m == null ? "--" : m.microAmount.ToString(); - } - - /// - /// Formats the stats for display. - /// - /// The stats. - /// Stats as formatted text. - private static String FormatStats(VideoEntityStats stats) { - return string.Format("Views: {0}, Cost: {1}, Avg. CPC: {2}, Avg. CPV: {3}, " - + "Avg. CPM: {4}, 25%: {5}, 50%: {6}, 75%: {7}, 100%: {8}", - stats.viewsSpecified? stats.views.ToString() : "--", - Dashify(stats.cost), - Dashify(stats.averageCpc), - Dashify(stats.averageCpv), - Dashify(stats.averageCpm), - stats.quartile25PercentsSpecified? stats.quartile25Percents.ToString() : "--", - stats.quartile50PercentsSpecified? stats.quartile50Percents.ToString() : "--", - stats.quartile75PercentsSpecified? stats.quartile75Percents.ToString() : "--", - stats.quartile100PercentsSpecified? stats.quartile100Percents.ToString() : "--" - ); - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaigns.cs b/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaigns.cs deleted file mode 100644 index cef5f5c2f33..00000000000 --- a/examples/AdWords/CSharp/v201309/AdWordsForVideo/GetVideoCampaigns.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example illustrates how to retrieve all non-deleted video - /// campaigns for an account. - /// - /// Tags: VideoCampaignService.get - /// - /// AdWords for Video API is a Beta feature. - public class GetVideoCampaigns : ExampleBase { - - /// - /// Maximum number of results to fetch. - /// - private const int PAGE_SIZE = 100; - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve all non-deleted video " + - "campaigns for an account."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetVideoCampaigns codeExample = new GetVideoCampaigns(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the VideoCampaignService. - VideoCampaignService videoCampaignService = (VideoCampaignService) user.GetService( - AdWordsService.v201309.VideoCampaignService); - - int offset = 0; - - VideoCampaignPage page = new VideoCampaignPage(); - - try { - // Create selector. - VideoCampaignSelector selector = new VideoCampaignSelector(); - - selector.paging = new Paging(); - - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = PAGE_SIZE; - - page = videoCampaignService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (VideoCampaign videoCampaign in page.entries) { - Console.WriteLine("{0}) Campaign ID {1}, name '{2}' and status '{3}'", - (i + 1), videoCampaign.id, videoCampaign.name, videoCampaign.status); - i++; - } - } else { - Console.WriteLine("No campaigns were found."); - } - offset += PAGE_SIZE; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get campaigns.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs b/examples/AdWords/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs deleted file mode 100644 index 8f14ccf109b..00000000000 --- a/examples/AdWords/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to add ad group level mobile bid - /// modifier override. - /// - /// Tags: AdGroupBidModifierService.mutate - /// - public class AddAdGroupBidModifier : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAdGroupBidModifier codeExample = new AddAdGroupBidModifier(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - double bidModifier = double.Parse("INSERT_ADGROUP_BID_MODIFIER_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, bidModifier); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to add ad group level mobile bid modifier " + - "override."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the adgroup for which bid modifier is - /// set. - /// The mobile bid modifier for adgroup - public void Run(AdWordsUser user, long adGroupId, double bidModifier) { - // Get the AdGroupAdService. - AdGroupBidModifierService adGroupBidModifierService = - (AdGroupBidModifierService) user.GetService( - AdWordsService.v201309.AdGroupBidModifierService); - - // Mobile criterion ID. - long criterionId = 30001; - - - // Create the adgroup bid modifier. - AdGroupBidModifier adGroupBidModifier = new AdGroupBidModifier(); - adGroupBidModifier.bidModifier = bidModifier; - adGroupBidModifier.adGroupId = adGroupId; - - Platform platform = new Platform(); - platform.id = criterionId; - - adGroupBidModifier.criterion = platform; - - AdGroupBidModifierOperation operation = new AdGroupBidModifierOperation(); - operation.@operator = Operator.ADD; - operation.operand = adGroupBidModifier; - - - try { - // Add ad group level mobile bid modifier. - AdGroupBidModifierReturnValue retval = adGroupBidModifierService.mutate( - new AdGroupBidModifierOperation[] {operation}); - - // Display the results. - if (retval != null && retval.value != null && retval.value.Length > 0) { - AdGroupBidModifier newBidModifier = retval.value[0]; - Console.WriteLine("AdGroup ID {0}, Criterion ID {1} was updated with ad group level " + - "modifier: {2}", newBidModifier.adGroupId, newBidModifier.criterion.id, - newBidModifier.bidModifier); - } else { - Console.WriteLine("No bid modifiers were added to the adgroup."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add bid modifiers to adgroup.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AdvancedOperations/AddClickToDownloadAd.cs b/examples/AdWords/CSharp/v201309/AdvancedOperations/AddClickToDownloadAd.cs deleted file mode 100644 index 8b7ddd4ad83..00000000000 --- a/examples/AdWords/CSharp/v201309/AdvancedOperations/AddClickToDownloadAd.cs +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example creates a click-to-download ad, also known as an - /// app promotion ad to a given ad group. To list ad groups, run - /// GetAdGroups.cs. - /// - /// Tags: AdGroupAdService.mutate - /// - public class AddClickToDownloadAd : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddClickToDownloadAd codeExample = new AddClickToDownloadAd(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example creates a click-to-download ad, also known as an app " + - "promotion ad to a given ad group. To list ad groups, run GetAdGroups.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which ads are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService adGroupAdService = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create the template ad. - TemplateAd clickToDownloadAppAd = new TemplateAd(); - - clickToDownloadAppAd.name = "Ad for demo game"; - clickToDownloadAppAd.templateId = 353; - clickToDownloadAppAd.url = - "http://play.google.com/store/apps/details?id=com.example.demogame"; - clickToDownloadAppAd.displayUrl = "play.google.com"; - - // Create the template elements for the ad. You can refer to - // https://developers.google.com/adwords/api/docs/appendix/templateads - // for the list of avaliable template fields. - TemplateElementField headline = new TemplateElementField(); - headline.name = "headline"; - headline.fieldText = "Enjoy your drive in Mars"; - headline.type = TemplateElementFieldType.TEXT; - - TemplateElementField description1 = new TemplateElementField(); - description1.name = "description1"; - description1.fieldText = "Realistic physics simulation"; - description1.type = TemplateElementFieldType.TEXT; - - TemplateElementField description2 = new TemplateElementField(); - description2.name = "description2"; - description2.fieldText = "Race against players online"; - description2.type = TemplateElementFieldType.TEXT; - - TemplateElementField appId = new TemplateElementField(); - appId.name = "appId"; - appId.fieldText = "com.example.demogame"; - appId.type = TemplateElementFieldType.TEXT; - - TemplateElementField appStore = new TemplateElementField(); - appStore.name = "appStore"; - appStore.fieldText = "2"; - appStore.type = TemplateElementFieldType.ENUM; - - TemplateElement adData = new TemplateElement(); - adData.uniqueName = "adData"; - adData.fields = new TemplateElementField[] {headline, description1, description2, appId, - appStore}; - - clickToDownloadAppAd.templateElements = new TemplateElement[] {adData}; - - // Create the adgroupad. - AdGroupAd clickToDownloadAppAdGroupAd = new AdGroupAd(); - clickToDownloadAppAdGroupAd.adGroupId = adGroupId; - clickToDownloadAppAdGroupAd.ad = clickToDownloadAppAd; - - // Optional: Set the status. - clickToDownloadAppAdGroupAd.status = AdGroupAdStatus.PAUSED; - - // Create the operation. - AdGroupAdOperation operation = new AdGroupAdOperation(); - operation.@operator = Operator.ADD; - operation.operand = clickToDownloadAppAdGroupAd; - - try { - // Create the ads. - AdGroupAdReturnValue retval = adGroupAdService.mutate(new AdGroupAdOperation[] {operation}); - - // Display the results. - if (retval != null && retval.value != null) { - foreach (AdGroupAd adGroupAd in retval.value) { - Console.WriteLine("New click-to-download ad with id = \"{0}\" and url = \"{1}\" " + - "was created.", adGroupAd.ad.id, adGroupAd.ad.url); - } - } else { - Console.WriteLine("No click-to-download ads were created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create click-to-download ad.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AdvancedOperations/AddSiteLinks.cs b/examples/AdWords/CSharp/v201309/AdvancedOperations/AddSiteLinks.cs deleted file mode 100644 index 042958f247b..00000000000 --- a/examples/AdWords/CSharp/v201309/AdvancedOperations/AddSiteLinks.cs +++ /dev/null @@ -1,322 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: thagikura@gmail.com (Takeshi Hagikura) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - class SiteLinksDataHolder { - long siteLinksFeedId; - long linkTextFeedAttributeId; - long linkUrlFeedAttributeId; - List siteLinkFeedItemIds = new List(); - - public long SiteLinksFeedId { - get { - return siteLinksFeedId; - } - set { - siteLinksFeedId = value; - } - } - - public long LinkTextFeedAttributeId { - get { - return linkTextFeedAttributeId; - } - set { - linkTextFeedAttributeId = value; - } - } - - public long LinkUrlFeedAttributeId { - get { - return linkUrlFeedAttributeId; - } - set { - linkUrlFeedAttributeId = value; - } - } - - public List SiteLinkFeedItemIds { - get { - return siteLinkFeedItemIds; - } - set { - siteLinkFeedItemIds = value; - } - } - } - - /// - /// This code example adds a sitelinks feed and associates it with a campaign. - /// To create a campaign, run AddCampaign.cs. - /// - /// Tags: CampaignFeedService.mutate, FeedService.mutate, FeedItemService.mutate, - /// Tags: FeedMappingService.mutate - /// - public class AddSiteLinks : ExampleBase { - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddSiteLinks codeExample = new AddSiteLinks(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds a sitelinks feed and associates it with a campaign."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign with which sitelinks are associated. - /// - public void Run(AdWordsUser user, long campaignId) { - SiteLinksDataHolder siteLinksData = new SiteLinksDataHolder(); - createSiteLinksFeed(user, siteLinksData); - createSiteLinksFeedItems(user, siteLinksData); - createSiteLinksFeedMapping(user, siteLinksData); - createSiteLinksCampaignFeed(user, siteLinksData, campaignId); - } - - private static void createSiteLinksFeed( - AdWordsUser user, SiteLinksDataHolder siteLinksData) { - // Get the FeedService. - FeedService feedService = (FeedService) user.GetService(AdWordsService.v201309.FeedService); - - // Create attributes. - FeedAttribute textAttribute = new FeedAttribute(); - textAttribute.type = FeedAttributeType.STRING; - textAttribute.name = "Link Text"; - FeedAttribute urlAttribute = new FeedAttribute(); - urlAttribute.type = FeedAttributeType.URL; - urlAttribute.name = "Link URL"; - - // Create the feed. - Feed siteLinksFeed = new Feed(); - siteLinksFeed.name = "Feed For Site Links"; - siteLinksFeed.attributes = new FeedAttribute[] {textAttribute, urlAttribute}; - siteLinksFeed.origin = FeedOrigin.USER; - - // Create operation. - FeedOperation operation = new FeedOperation(); - operation.operand = siteLinksFeed; - operation.@operator = Operator.ADD; - - // Add the feed. - FeedReturnValue result = feedService.mutate(new FeedOperation[] {operation}); - - Feed savedFeed = result.value[0]; - siteLinksData.SiteLinksFeedId = savedFeed.id; - FeedAttribute[] savedAttributes = savedFeed.attributes; - siteLinksData.LinkTextFeedAttributeId = savedAttributes[0].id; - siteLinksData.LinkUrlFeedAttributeId = savedAttributes[1].id; - Console.WriteLine("Feed with name {0} and ID {1} with linkTextAttributeId {2}" - + " and linkUrlAttributeId {3} was created.", savedFeed.name, savedFeed.id, - savedAttributes[0].id, savedAttributes[1].id); - } - - private static void createSiteLinksFeedItems( - AdWordsUser user, SiteLinksDataHolder siteLinksData) { - // Get the FeedItemService. - FeedItemService feedItemService = - (FeedItemService) user.GetService(AdWordsService.v201309.FeedItemService); - - // Create operations to add FeedItems. - FeedItemOperation home = - newSiteLinkFeedItemAddOperation(siteLinksData, - "Home", "http://www.example.com"); - FeedItemOperation stores = - newSiteLinkFeedItemAddOperation(siteLinksData, - "Stores", "http://www.example.com/stores"); - FeedItemOperation onSale = - newSiteLinkFeedItemAddOperation(siteLinksData, - "On Sale", "http://www.example.com/sale"); - FeedItemOperation support = - newSiteLinkFeedItemAddOperation(siteLinksData, - "Support", "http://www.example.com/support"); - FeedItemOperation products = - newSiteLinkFeedItemAddOperation(siteLinksData, - "Products", "http://www.example.com/prods"); - FeedItemOperation aboutUs = - newSiteLinkFeedItemAddOperation(siteLinksData, - "About Us", "http://www.example.com/about"); - - FeedItemOperation[] operations = - new FeedItemOperation[] {home, stores, onSale, support, products, aboutUs}; - - FeedItemReturnValue result = feedItemService.mutate(operations); - foreach (FeedItem item in result.value) { - Console.WriteLine("FeedItem with feedItemId {0} was added.", item.feedItemId); - siteLinksData.SiteLinkFeedItemIds.Add(item.feedItemId); - } - } - - // See the Placeholder reference page for a list of all the placeholder types and fields. - // https://developers.google.com/adwords/api/docs/appendix/placeholders.html - private const int PLACEHOLDER_SITELINKS = 1; - - // See the Placeholder reference page for a list of all the placeholder types and fields. - private const int PLACEHOLDER_FIELD_SITELINK_LINK_TEXT = 1; - private const int PLACEHOLDER_FIELD_SITELINK_URL = 2; - - private static void createSiteLinksFeedMapping( - AdWordsUser user, SiteLinksDataHolder siteLinksData) { - // Get the FeedItemService. - FeedMappingService feedMappingService = - (FeedMappingService) user.GetService(AdWordsService.v201309.FeedMappingService); - - // Map the FeedAttributeIds to the fieldId constants. - AttributeFieldMapping linkTextFieldMapping = new AttributeFieldMapping(); - linkTextFieldMapping.feedAttributeId = siteLinksData.LinkTextFeedAttributeId; - linkTextFieldMapping.fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT; - AttributeFieldMapping linkUrlFieldMapping = new AttributeFieldMapping(); - linkUrlFieldMapping.feedAttributeId = siteLinksData.LinkUrlFeedAttributeId; - linkUrlFieldMapping.fieldId = PLACEHOLDER_FIELD_SITELINK_URL; - - // Create the FieldMapping and operation. - FeedMapping feedMapping = new FeedMapping(); - feedMapping.placeholderType = PLACEHOLDER_SITELINKS; - feedMapping.feedId = siteLinksData.SiteLinksFeedId; - feedMapping.attributeFieldMappings = - new AttributeFieldMapping[] {linkTextFieldMapping, linkUrlFieldMapping}; - FeedMappingOperation operation = new FeedMappingOperation(); - operation.operand = feedMapping; - operation.@operator = Operator.ADD; - - // Save the field mapping. - FeedMappingReturnValue result = - feedMappingService.mutate(new FeedMappingOperation[] {operation}); - foreach (FeedMapping savedFeedMapping in result.value) { - Console.WriteLine( - "Feed mapping with ID {0} and placeholderType {1} was saved for feed with ID {2}.", - savedFeedMapping.feedMappingId, savedFeedMapping.placeholderType, - savedFeedMapping.feedId); - } - } - - private static void createSiteLinksCampaignFeed(AdWordsUser user, - SiteLinksDataHolder siteLinksData, long campaignId) { - // Get the CampaignFeedService. - CampaignFeedService campaignFeedService = - (CampaignFeedService) user.GetService(AdWordsService.v201309.CampaignFeedService); - - // Map the feed item ids to the campaign using an IN operation. - RequestContextOperand feedItemRequestContextOperand = new RequestContextOperand(); - feedItemRequestContextOperand.contextType = RequestContextOperandContextType.FEED_ITEM_ID; - - List feedItemOperands = new List(); - foreach (long feedItemId in siteLinksData.SiteLinkFeedItemIds) { - ConstantOperand feedItemOperand = new ConstantOperand(); - feedItemOperand.longValue = feedItemId; - feedItemOperand.type = ConstantOperandConstantType.LONG; - feedItemOperands.Add(feedItemOperand); - } - - Function feedItemfunction = new Function(); - feedItemfunction.lhsOperand = new FunctionArgumentOperand[] {feedItemRequestContextOperand}; - feedItemfunction.@operator = FunctionOperator.IN; - feedItemfunction.rhsOperand = feedItemOperands.ToArray(); - - // Optional: to target to a platform, define a function and 'AND' it with - // the feed item ID link: - RequestContextOperand platformRequestContextOperand = new RequestContextOperand(); - platformRequestContextOperand.contextType = RequestContextOperandContextType.DEVICE_PLATFORM; - - ConstantOperand platformOperand = new ConstantOperand(); - platformOperand.stringValue = "Mobile"; - platformOperand.type = ConstantOperandConstantType.STRING; - - Function platformFunction = new Function(); - platformFunction.lhsOperand = new FunctionArgumentOperand[] {platformRequestContextOperand}; - platformFunction.@operator = FunctionOperator.EQUALS; - platformFunction.rhsOperand = new FunctionArgumentOperand[] {platformOperand}; - - // Combine the two functions using an AND operation. - FunctionOperand feedItemFunctionOperand = new FunctionOperand(); - feedItemFunctionOperand.value = feedItemfunction; - - FunctionOperand platformFunctionOperand = new FunctionOperand(); - platformFunctionOperand.value = platformFunction; - - Function combinedFunction = new Function(); - combinedFunction.@operator = FunctionOperator.AND; - combinedFunction.lhsOperand = new FunctionArgumentOperand[] { - feedItemFunctionOperand, platformFunctionOperand}; - - CampaignFeed campaignFeed = new CampaignFeed(); - campaignFeed.feedId = siteLinksData.SiteLinksFeedId; - campaignFeed.campaignId = campaignId; - campaignFeed.matchingFunction = combinedFunction; - // Specifying placeholder types on the CampaignFeed allows the same feed - // to be used for different placeholders in different Campaigns. - campaignFeed.placeholderTypes = new int[] {PLACEHOLDER_SITELINKS}; - - CampaignFeedOperation operation = new CampaignFeedOperation(); - operation.operand = campaignFeed; - operation.@operator = Operator.ADD; - CampaignFeedReturnValue result = - campaignFeedService.mutate(new CampaignFeedOperation[] {operation}); - foreach (CampaignFeed savedCampaignFeed in result.value) { - Console.WriteLine("Campaign with ID {0} was associated with feed with ID {1}", - savedCampaignFeed.campaignId, savedCampaignFeed.feedId); - } - } - - private static FeedItemOperation newSiteLinkFeedItemAddOperation( - SiteLinksDataHolder siteLinksData, String text, String url) { - // Create the FeedItemAttributeValues for our text values. - FeedItemAttributeValue linkTextAttributeValue = new FeedItemAttributeValue(); - linkTextAttributeValue.feedAttributeId = siteLinksData.LinkTextFeedAttributeId; - linkTextAttributeValue.stringValue = text; - FeedItemAttributeValue linkUrlAttributeValue = new FeedItemAttributeValue(); - linkUrlAttributeValue.feedAttributeId = siteLinksData.LinkUrlFeedAttributeId; - linkUrlAttributeValue.stringValue = url; - - // Create the feed item and operation. - FeedItem item = new FeedItem(); - item.feedId = siteLinksData.SiteLinksFeedId; - item.attributeValues = - new FeedItemAttributeValue[] {linkTextAttributeValue, linkUrlAttributeValue}; - FeedItemOperation operation = new FeedItemOperation(); - operation.operand = item; - operation.@operator = Operator.ADD; - return operation; - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs b/examples/AdWords/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs deleted file mode 100644 index d7495e49651..00000000000 --- a/examples/AdWords/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to retrieve ad group level mobile bid - /// modifiers for a campaign. - /// - /// Tags: AdGroupBidModifierService.get - /// - public class GetAdGroupBidModifiers : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAdGroupBidModifiers codeExample = new GetAdGroupBidModifiers(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve ad group level mobile bid " + - "modifiers for a campaign."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which ads are added. - /// - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupAdService. - AdGroupBidModifierService adGroupBidModifierService = - (AdGroupBidModifierService) user.GetService( - AdWordsService.v201309.AdGroupBidModifierService); - - const int PAGE_SIZE = 500; - - // Get all ad group bid modifiers for the campaign. - Selector selector = new Selector(); - selector.fields = new String[] {"CampaignId", "AdGroupId", "BidModifier", "BidModifierSource", - "CriteriaType", "Id"}; - - Predicate predicate = new Predicate(); - predicate.field = "CampaignId"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] {campaignId.ToString()}; - selector.predicates = new Predicate[] {predicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = PAGE_SIZE; - - AdGroupBidModifierPage page = new AdGroupBidModifierPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the campaigns. - page = adGroupBidModifierService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroupBidModifier adGroupBidModifier in page.entries) { - string bidModifier = (adGroupBidModifier.bidModifierSpecified)? - adGroupBidModifier.bidModifier.ToString() : "UNSET"; - Console.WriteLine("{0}) Campaign ID {1}, AdGroup ID {2}, Criterion ID {3} has " + - "ad group level modifier: {4} and source = {5}.", - i + 1, adGroupBidModifier.campaignId, - adGroupBidModifier.adGroupId, adGroupBidModifier.criterion.id, bidModifier, - adGroupBidModifier.bidModifierSource); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of adgroup bid modifiers found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve adgroup bid modifiers.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs b/examples/AdWords/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs deleted file mode 100644 index 1f58f01f45a..00000000000 --- a/examples/AdWords/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example imports offline conversion values for specific clicks to - /// your account. To get Google Click ID for a click, run - /// CLICK_PERFORMANCE_REPORT. - /// - /// Tags: ConversionTrackerService.mutate, OfflineConversionFeedService.mutate - /// - public class UploadOfflineConversions : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - string conversionName = "INSERT_CONVERSION_NAME_HERE"; - // GCLID needs to be newer than 30 days. - string gClId = "INSERT_GOOGLE_CLICK_ID_HERE"; - // The conversion time should be higher than the click time. - string conversionTime = "INSERT_CONVERSION_TIME_HERE"; - double conversionValue = double.Parse("INSERT_CONVERSION_VALUE_HERE"); - - UploadOfflineConversions codeExample = new UploadOfflineConversions(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser(), conversionName, gClId, conversionTime, conversionValue); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example imports offline conversion values for specific clicks to " + - "your account. To get Google Click ID for a click, run CLICK_PERFORMANCE_REPORT."; - } - } - - /// - /// Runs the specified user. - /// - /// The user. - /// The name of the upload conversion to be - /// created. - /// The Google Click ID of the click for which offline - /// conversions are uploaded. - /// The conversion value to be uploaded. - /// - /// The conversion time, in yyyymmdd hhmmss - /// format. - public void Run(AdWordsUser user, String conversionName, String gClid, String conversionTime, - double conversionValue) { - // Get the ConversionTrackerService. - ConversionTrackerService conversionTrackerService = - (ConversionTrackerService) user.GetService( - AdWordsService.v201309.ConversionTrackerService); - - // Get the OfflineConversionFeedService. - OfflineConversionFeedService offlineConversionFeedService = - (OfflineConversionFeedService) user.GetService( - AdWordsService.v201309.OfflineConversionFeedService); - - const int VIEWTHROUGH_LOOKBACK_WINDOW = 30; - const int CTC_LOOKBACK_WINDOW = 90; - - try { - // Create an upload conversion. Once created, this entry will be visible - // under Tools and Analysis->Conversion and will have "Source = Import". - UploadConversion uploadConversion = new UploadConversion(); - uploadConversion.category = ConversionTrackerCategory.PAGE_VIEW; - uploadConversion.name = conversionName; - uploadConversion.viewthroughLookbackWindow = VIEWTHROUGH_LOOKBACK_WINDOW; - uploadConversion.ctcLookbackWindow = CTC_LOOKBACK_WINDOW; - - ConversionTrackerOperation uploadConversionOperation = new ConversionTrackerOperation(); - uploadConversionOperation.@operator = Operator.ADD; - uploadConversionOperation.operand = uploadConversion; - - ConversionTrackerReturnValue conversionTrackerRetval = conversionTrackerService.mutate( - new ConversionTrackerOperation[] {uploadConversionOperation}); - - UploadConversion newUploadConversion = (UploadConversion) conversionTrackerRetval.value[0]; - - Console.WriteLine("New upload conversion type with name = '{0}' and id = {1} was created.", - newUploadConversion.name, newUploadConversion.id); - - // Associate offline conversions with the upload conversion we created. - OfflineConversionFeed feed = new OfflineConversionFeed(); - feed.conversionName = conversionName; - feed.conversionTime = conversionTime; - feed.conversionValue = conversionValue; - feed.googleClickId = gClid; - - OfflineConversionFeedOperation offlineConversionOperation = - new OfflineConversionFeedOperation(); - offlineConversionOperation.@operator = Operator.ADD; - offlineConversionOperation.operand = feed; - - OfflineConversionFeedReturnValue offlineConversionRetval = - offlineConversionFeedService.mutate( - new OfflineConversionFeedOperation[] {offlineConversionOperation}); - - OfflineConversionFeed newFeed = offlineConversionRetval.value[0]; - - Console.WriteLine("Uploaded offline conversion value of {0} for Google Click ID = " + - "'{1}' to '{2}'.", newFeed.conversionValue, newFeed.googleClickId, - newFeed.conversionName); - } catch (Exception ex) { - throw new System.ApplicationException("Failed upload offline conversions.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs b/examples/AdWords/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs deleted file mode 100644 index e6445694e0b..00000000000 --- a/examples/AdWords/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds a Shared Bidding Strategy and uses it to construct - /// a campaign. - /// - /// Tags: BiddingStrategyService.mutate - /// Tags: BudgetService.mutate, CampaignService.mutate - /// - public class UseSharedBiddingStrategy : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UseSharedBiddingStrategy codeExample = new UseSharedBiddingStrategy(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds a Shared Bidding Strategy and uses it to construct " + - "a campaign."; - } - } - - /// - /// Runs the specified code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the services. - BiddingStrategyService biddingStrategyService = (BiddingStrategyService) user.GetService( - AdWordsService.v201309.BiddingStrategyService); - - BudgetService budgetService = (BudgetService) user.GetService( - AdWordsService.v201309.BudgetService); - - CampaignService campaignService = (CampaignService) user.GetService( - AdWordsService.v201309.CampaignService); - - String BIDDINGSTRATEGY_NAME = "Maximize Clicks " + ExampleUtilities.GetRandomString(); - const long BID_CEILING = 2000000; - const long SPEND_TARGET = 20000000; - - String BUDGET_NAME = "Shared Interplanetary Budget #" + ExampleUtilities.GetRandomString(); - const long BUDGET_AMOUNT = 30000000; - - String CAMPAIGN_NAME = "Interplanetary Cruise #" + ExampleUtilities.GetRandomString(); - - try { - SharedBiddingStrategy sharedBiddingStrategy = CreateBiddingStrategy(biddingStrategyService, - BIDDINGSTRATEGY_NAME, BID_CEILING, SPEND_TARGET); - Console.WriteLine("Shared bidding strategy with name '{0}' and ID {1} of type {2} was " + - "created.", sharedBiddingStrategy.name, sharedBiddingStrategy.id, - sharedBiddingStrategy.biddingScheme.BiddingSchemeType); - - Budget sharedBudget = CreateSharedBudget(budgetService, BUDGET_NAME, BUDGET_AMOUNT); - - Campaign newCampaign = CreateCampaignWithBiddingStrategy(campaignService, CAMPAIGN_NAME, - sharedBiddingStrategy.id, sharedBudget.budgetId); - - Console.WriteLine("Campaign with name '{0}', ID {1} and bidding scheme ID {2} was " + - "created.", newCampaign.name, newCampaign.id, - newCampaign.biddingStrategyConfiguration.biddingStrategyId); - - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create campaign that uses shared " + - "bidding strategy.", ex); - } - } - - /// - /// Creates the shared bidding strategy. - /// - /// The bidding strategy service. - /// The bidding strategy name. - /// The bid ceiling. - /// The spend target. - /// The bidding strategy object. - private SharedBiddingStrategy CreateBiddingStrategy( - BiddingStrategyService biddingStrategyService, String name, long bidCeiling, - long spendTarget) { - // Create a shared bidding strategy. - SharedBiddingStrategy sharedBiddingStrategy = new SharedBiddingStrategy(); - sharedBiddingStrategy.name = name; - - TargetSpendBiddingScheme biddingScheme = new TargetSpendBiddingScheme(); - // Optionally set additional bidding scheme parameters. - biddingScheme.bidCeiling = new Money(); - biddingScheme.bidCeiling.microAmount = bidCeiling; - - biddingScheme.spendTarget = new Money(); - biddingScheme.spendTarget.microAmount = spendTarget; - - sharedBiddingStrategy.biddingScheme = biddingScheme; - - // Create operation. - BiddingStrategyOperation operation = new BiddingStrategyOperation(); - operation.@operator = Operator.ADD; - operation.operand = sharedBiddingStrategy; - - return biddingStrategyService.mutate(new BiddingStrategyOperation[] {operation}).value[0]; - } - - /// - /// Creates an explicit budget to be used only to create the Campaign. - /// - /// The budget service. - /// The budget name. - /// The budget amount. - /// The budget object. - private Budget CreateSharedBudget(BudgetService budgetService, String name, long amount) { - // Create a shared budget - Budget budget = new Budget(); - budget.name = name; - budget.period = BudgetBudgetPeriod.DAILY; - budget.amount = new Money(); - budget.amount.microAmount = amount; - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD; - budget.isExplicitlyShared = true; - - // Create operation. - BudgetOperation operation = new BudgetOperation(); - operation.operand = budget; - operation.@operator = Operator.ADD; - - // Make the mutate request. - return budgetService.mutate(new BudgetOperation[] {operation}).value[0]; - } - - /// - /// Creates the campaign with a shared bidding strategy. - /// - /// The campaign service. - /// The campaign name. - /// The bidding strategy id. - /// The shared budget id. - /// The campaign object. - private Campaign CreateCampaignWithBiddingStrategy(CampaignService campaignService, string name, - long biddingStrategyId, long sharedBudgetId) { - // Create campaign. - Campaign campaign = new Campaign(); - campaign.name = name; - - // Set the budget. - campaign.budget = new Budget(); - campaign.budget.budgetId = sharedBudgetId; - - // Set bidding strategy (required). - BiddingStrategyConfiguration biddingStrategyConfiguration = - new BiddingStrategyConfiguration(); - biddingStrategyConfiguration.biddingStrategyId = biddingStrategyId; - - campaign.biddingStrategyConfiguration = biddingStrategyConfiguration; - - // Set keyword matching setting (required). - KeywordMatchSetting keywordMatchSetting = new KeywordMatchSetting(); - keywordMatchSetting.optIn = true; - campaign.settings = new Setting[] {keywordMatchSetting}; - - // Set network targeting (recommended). - NetworkSetting networkSetting = new NetworkSetting(); - networkSetting.targetGoogleSearch = true; - networkSetting.targetSearchNetwork = true; - networkSetting.targetContentNetwork = true; - campaign.networkSetting = networkSetting; - - // Create operation. - CampaignOperation operation = new CampaignOperation(); - operation.operand = campaign; - operation.@operator = Operator.ADD; - - return campaignService.mutate(new CampaignOperation[] {operation}).value[0]; - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs b/examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs deleted file mode 100644 index f6250cea4d3..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds demographic target criteria to an ad group. To get - /// ad groups, run AddAdGroup.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class AddAdGroupDemographicCriteria : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAdGroupDemographicCriteria codeExample = new AddAdGroupDemographicCriteria(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds demographic target criteria to an ad group. To get ad " + - "groups, run AddAdGroup.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which criteria are - /// added. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Create biddable ad group criterion for gender - Gender genderTarget = new Gender(); - // Criterion Id for male. The IDs can be found here - // https://developers.google.com/adwords/api/docs/appendix/genders - genderTarget.id = 10; - - BiddableAdGroupCriterion genderBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); - genderBiddableAdGroupCriterion.adGroupId = adGroupId; - genderBiddableAdGroupCriterion.criterion = genderTarget; - - // Create negative ad group criterion for age range - AgeRange ageRangeNegative = new AgeRange(); - // Criterion Id for age 18 to 24. The IDs can be found here - // https://developers.google.com/adwords/api/docs/appendix/ages - - ageRangeNegative.id = 503001; - NegativeAdGroupCriterion ageRangeNegativeAdGroupCriterion = new NegativeAdGroupCriterion(); - ageRangeNegativeAdGroupCriterion.adGroupId = adGroupId; - ageRangeNegativeAdGroupCriterion.criterion = ageRangeNegative; - - // Create operations. - AdGroupCriterionOperation genderBiddableAdGroupCriterionOperation = - new AdGroupCriterionOperation(); - genderBiddableAdGroupCriterionOperation.operand = genderBiddableAdGroupCriterion; - genderBiddableAdGroupCriterionOperation.@operator = Operator.ADD; - - AdGroupCriterionOperation ageRangeNegativeAdGroupCriterionOperation = - new AdGroupCriterionOperation(); - ageRangeNegativeAdGroupCriterionOperation.operand = ageRangeNegativeAdGroupCriterion; - ageRangeNegativeAdGroupCriterionOperation.@operator = Operator.ADD; - - AdGroupCriterionOperation[] operations = new AdGroupCriterionOperation[] { - genderBiddableAdGroupCriterionOperation, ageRangeNegativeAdGroupCriterionOperation}; - - try { - // Add ad group criteria. - AdGroupCriterionReturnValue result = adGroupCriterionService.mutate(operations); - - // Display ad group criteria. - if (result != null && result.value != null) { - foreach (AdGroupCriterion adGroupCriterionResult in result.value) { - Console.WriteLine("Ad group criterion with ad group id \"{0}\", criterion id " + - "\"{1}\", and type \"{2}\" was added.", adGroupCriterionResult.adGroupId, - adGroupCriterionResult.criterion.id, - adGroupCriterionResult.criterion.CriterionType); - } - } else { - Console.WriteLine("No ad group criteria were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create ad group criteria.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroups.cs b/examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroups.cs deleted file mode 100644 index 16485cceb6c..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/AddAdGroups.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to create ad groups. To create - /// campaigns, run AddCampaigns.cs. - /// - /// Tags: AdGroupService.mutate - /// - public class AddAdGroups : ExampleBase { - /// - /// Number of items being added / updated in this code example. - /// - const int NUM_ITEMS = 5; - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAdGroups codeExample = new AddAdGroups(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create ad groups. To create campaigns, " + - "run AddCampaigns.cs"; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to which ad groups are - /// added. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - List operations = new List(); - - for (int i = 0; i < NUM_ITEMS; i++) { - // Create the ad group. - AdGroup adGroup = new AdGroup(); - adGroup.name = string.Format("Earth to Mars Cruises #{0}", - ExampleUtilities.GetRandomString()); - adGroup.status = AdGroupStatus.ENABLED; - adGroup.campaignId = campaignId; - - // Set the ad group bids. - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - - CpcBid cpcBid = new CpcBid(); - cpcBid.bid = new Money(); - cpcBid.bid.microAmount = 10000000; - - // Optional: set the content bid. - cpcBid.contentBid = new Money(); - cpcBid.contentBid.microAmount = 2000000; - - biddingConfig.bids = new Bids[] {cpcBid}; - - adGroup.biddingStrategyConfiguration = biddingConfig; - - // Optional: Set targeting restrictions. - // These setting only affect serving for the Display Network. - TargetingSetting targetingSetting = new TargetingSetting(); - - TargetingSettingDetail placementDetail = new TargetingSettingDetail(); - placementDetail.criterionTypeGroup = CriterionTypeGroup.PLACEMENT; - placementDetail.targetAll = true; - - TargetingSettingDetail verticalDetail = new TargetingSettingDetail(); - verticalDetail.criterionTypeGroup = CriterionTypeGroup.VERTICAL; - verticalDetail.targetAll = false; - - targetingSetting.details = new TargetingSettingDetail[] {placementDetail, verticalDetail}; - - adGroup.settings = new Setting[] {targetingSetting}; - - // Create the operation. - AdGroupOperation operation = new AdGroupOperation(); - operation.@operator = Operator.ADD; - operation.operand = adGroup; - - operations.Add(operation); - } - - try { - // Create the ad group. - AdGroupReturnValue retVal = adGroupService.mutate(operations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - foreach (AdGroup newAdGroup in retVal.value) { - Console.WriteLine("Ad group with id = '{0}' and name = '{1}' was created.", - newAdGroup.id, newAdGroup.name); - } - } else { - Console.WriteLine("No ad groups were created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create ad groups.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/AddCampaigns.cs b/examples/AdWords/CSharp/v201309/BasicOperations/AddCampaigns.cs deleted file mode 100644 index 56a7c934d14..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/AddCampaigns.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds campaigns. To get campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignService.mutate - /// - public class AddCampaigns : ExampleBase { - /// - /// Number of items being added / updated in this code example. - /// - const int NUM_ITEMS = 5; - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddCampaigns codeExample = new AddCampaigns(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds campaigns. To get campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the BudgetService. - BudgetService budgetService = - (BudgetService) user.GetService(AdWordsService.v201309.BudgetService); - - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - // Create the campaign budget. - Budget budget = new Budget(); - budget.name = "Interplanetary Cruise Budget #" + ExampleUtilities.GetRandomString(); - budget.period = BudgetBudgetPeriod.DAILY; - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD; - budget.amount = new Money(); - budget.amount.microAmount = 500000; - - BudgetOperation budgetOperation = new BudgetOperation(); - budgetOperation.@operator = Operator.ADD; - budgetOperation.operand = budget; - - try { - BudgetReturnValue budgetRetval = budgetService.mutate(new BudgetOperation[] {budgetOperation}); - budget = budgetRetval.value[0]; - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add shared budget.", ex); - } - - List operations = new List(); - - for (int i = 0; i < NUM_ITEMS; i++) { - // Create the campaign. - Campaign campaign = new Campaign(); - campaign.name = "Interplanetary Cruise #" + ExampleUtilities.GetRandomString(); - campaign.status = CampaignStatus.PAUSED; - - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - biddingConfig.biddingStrategyType = BiddingStrategyType.MANUAL_CPC; - - // Optional: provide BiddingScheme. - ManualCpcBiddingScheme biddingScheme = new ManualCpcBiddingScheme(); - biddingScheme.enhancedCpcEnabled = true; - biddingConfig.biddingScheme = biddingScheme; - - campaign.biddingStrategyConfiguration = biddingConfig; - - campaign.budget = new Budget(); - campaign.budget.budgetId = budget.budgetId; - - // Set the campaign network options. - campaign.networkSetting = new NetworkSetting(); - campaign.networkSetting.targetGoogleSearch = true; - campaign.networkSetting.targetSearchNetwork = true; - campaign.networkSetting.targetContentNetwork = false; - campaign.networkSetting.targetPartnerSearchNetwork = false; - - // Set the campaign settings for Advanced location options. - GeoTargetTypeSetting geoSetting = new GeoTargetTypeSetting(); - geoSetting.positiveGeoTargetType = GeoTargetTypeSettingPositiveGeoTargetType.DONT_CARE; - geoSetting.negativeGeoTargetType = GeoTargetTypeSettingNegativeGeoTargetType.DONT_CARE; - - // Set the campaign settings for near-exact and near-phrase matches. - KeywordMatchSetting keywordSetting = new KeywordMatchSetting(); - keywordSetting.optIn = false; - - campaign.settings = new Setting[] {geoSetting, keywordSetting}; - - // Optional: Set the start date. - campaign.startDate = DateTime.Now.AddDays(1).ToString("yyyyMMdd"); - - // Optional: Set the end date. - campaign.endDate = DateTime.Now.AddYears(1).ToString("yyyyMMdd"); - - // Optional: Set the campaign ad serving optimization status. - campaign.adServingOptimizationStatus = AdServingOptimizationStatus.ROTATE; - - // Optional: Set the frequency cap. - FrequencyCap frequencyCap = new FrequencyCap(); - frequencyCap.impressions = 5; - frequencyCap.level = Level.ADGROUP; - frequencyCap.timeUnit = TimeUnit.DAY; - campaign.frequencyCap = frequencyCap; - - // Create the operation. - CampaignOperation operation = new CampaignOperation(); - operation.@operator = Operator.ADD; - operation.operand = campaign; - - operations.Add(operation); - } - - try { - // Add the campaign. - CampaignReturnValue retVal = campaignService.mutate(operations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - foreach (Campaign newCampaign in retVal.value) { - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was added.", - newCampaign.name, newCampaign.id); - } - } else { - Console.WriteLine("No campaigns were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add campaigns.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/AddKeywords.cs b/examples/AdWords/CSharp/v201309/BasicOperations/AddKeywords.cs deleted file mode 100644 index 6b771c490ca..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/AddKeywords.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds a keyword to an ad group. To get ad groups, run - /// GetAdGroups.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class AddKeywords : ExampleBase { - /// - /// Number of items being added / updated in this code example. - /// - const int NUM_ITEMS = 5; - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddKeywords codeExample = new AddKeywords(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds a keyword to an ad group. To get ad groups, run " + - "GetAdGroups.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which keywords are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService( - AdWordsService.v201309.AdGroupCriterionService); - - List operations = new List(); - - for (int i = 0; i < NUM_ITEMS; i++) { - // Create the keyword. - Keyword keyword = new Keyword(); - keyword.text = "mars cruise"; - keyword.matchType = KeywordMatchType.BROAD; - - // Create the biddable ad group criterion. - BiddableAdGroupCriterion keywordCriterion = new BiddableAdGroupCriterion(); - keywordCriterion.adGroupId = adGroupId; - keywordCriterion.criterion = keyword; - - // Optional: Set the user status. - keywordCriterion.userStatus = UserStatus.PAUSED; - - // Optional: Set the keyword destination url. - keywordCriterion.destinationUrl = "http://example.com/mars/cruise/" + i; - - // Create the operations. - AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); - operation.@operator = Operator.ADD; - operation.operand = keywordCriterion; - - operations.Add(operation); - } - try { - // Create the keywords. - AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate(operations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null) { - foreach (AdGroupCriterion adGroupCriterion in retVal.value) { - // If you are adding multiple type of criteria, then you may need to - // check for - // - // if (adGroupCriterion is Keyword) { ... } - // - // to identify the criterion type. - Console.WriteLine("Keyword with ad group id = '{0}', keyword id = '{1}', text = " + - "'{2}' and match type = '{3}' was created.", adGroupCriterion.adGroupId, - adGroupCriterion.criterion.id, (adGroupCriterion.criterion as Keyword).text, - (adGroupCriterion.criterion as Keyword).matchType); - } - } else { - Console.WriteLine("No keywords were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create keywords.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/AddTextAds.cs b/examples/AdWords/CSharp/v201309/BasicOperations/AddTextAds.cs deleted file mode 100644 index 5c24552e556..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/AddTextAds.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds text ads to a given ad group. To list ad groups, - /// run GetAdGroups.cs. To learn how to handle policy violations and add - /// exemption requests, see HandlePolicyViolationError.cs. - /// - /// Tags: AdGroupAdService.mutate - /// - public class AddTextAds : ExampleBase { - /// - /// Number of items being added / updated in this code example. - /// - const int NUM_ITEMS = 5; - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddTextAds codeExample = new AddTextAds(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds text ads to a given ad group. To list ad groups, run " + - "GetAdGroups.cs. To learn how to handle policy violations and add exemption " + - "requests, see HandlePolicyViolationError.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which ads are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - List operations = new List(); - - for (int i = 0; i < NUM_ITEMS; i++) { - // Create the text ad. - TextAd textAd = new TextAd(); - textAd.headline = "Luxury Cruise to Mars"; - textAd.description1 = "Visit the Red Planet in style."; - textAd.description2 = "Low-gravity fun for everyone!"; - textAd.displayUrl = "www.example.com"; - textAd.url = "http://www.example.com/" + i; - - AdGroupAd textAdGroupAd = new AdGroupAd(); - textAdGroupAd.adGroupId = adGroupId; - textAdGroupAd.ad = textAd; - - // Optional: Set the status. - textAdGroupAd.status = AdGroupAdStatus.PAUSED; - - // Create the operation. - AdGroupAdOperation operation = new AdGroupAdOperation(); - operation.@operator = Operator.ADD; - operation.operand = textAdGroupAd; - - operations.Add(operation); - } - - AdGroupAdReturnValue retVal = null; - - try { - // Create the ads. - retVal = service.mutate(operations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null) { - // If you are adding multiple type of Ads, then you may need to check - // for - // - // if (adGroupAd.ad is TextAd) { ... } - // - // to identify the ad type. - foreach (AdGroupAd adGroupAd in retVal.value) { - Console.WriteLine("New text ad with id = \"{0}\" and displayUrl = \"{1}\" was created.", - adGroupAd.ad.id, adGroupAd.ad.displayUrl); - } - } else { - Console.WriteLine("No text ads were created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create text ad.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteAd.cs b/examples/AdWords/CSharp/v201309/BasicOperations/DeleteAd.cs deleted file mode 100644 index 482a0af434d..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteAd.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes an ad using the 'REMOVE' operator. To list ads, - /// run GetTextAds.cs. - /// - /// Tags: AdGroupAdService.mutate - /// - public class DeleteAd : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeleteAd codeExample = new DeleteAd(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long adId = long.Parse("INSERT_AD_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, adId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes an ad using the 'REMOVE' operator. To list ads, " + - "run GetTextAds.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the ad. - /// Id of the ad being deleted. - public void Run(AdWordsUser user, long adGroupId, long adId) { - // Get the AdGroupAdService. - AdGroupAdService adGroupAdService = (AdGroupAdService) user.GetService( - AdWordsService.v201309.AdGroupAdService); - - // Since we do not need to update any ad-specific fields, it is enough to - // create the base type. - Ad ad = new Ad(); - ad.id = adId; - - // Create the ad group ad. - AdGroupAd adGroupAd = new AdGroupAd(); - adGroupAd.adGroupId = adGroupId; - - adGroupAd.ad = ad; - - // Create the operation. - AdGroupAdOperation operation = new AdGroupAdOperation(); - operation.operand = adGroupAd; - operation.@operator = Operator.REMOVE; - - try { - // Delete the ad. - AdGroupAdReturnValue retVal = adGroupAdService.mutate( - new AdGroupAdOperation[] {operation}); - - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupAd deletedAdGroupAd = retVal.value[0]; - Console.WriteLine("Ad with id = \"{0}\" and type = \"{1}\" was deleted.", - deletedAdGroupAd.ad.id, deletedAdGroupAd.ad.AdType); - } else { - Console.WriteLine("No ads were deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete ad.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteAdGroup.cs b/examples/AdWords/CSharp/v201309/BasicOperations/DeleteAdGroup.cs deleted file mode 100644 index 8c2ae667295..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteAdGroup.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes an ad group by setting the status to 'DELETED'. - /// To get ad groups, run GetAdGroups.cs. - /// - /// Tags: AdGroupService.mutate - /// - public class DeleteAdGroup : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeleteAdGroup codeExample = new DeleteAdGroup(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes an ad group by setting the status to 'DELETED'. " + - "To get ad groups, run GetAdGroups.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to be deleted. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupService. - AdGroupService adGroupService = (AdGroupService) user.GetService( - AdWordsService.v201309.AdGroupService); - - // Create ad group with DELETED status. - AdGroup adGroup = new AdGroup(); - adGroup.id = adGroupId; - - // When deleting an ad group, rename it to avoid name collisions with new - // adgroups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString(); - adGroup.status = AdGroupStatus.DELETED; - - // Create the operation. - AdGroupOperation operation = new AdGroupOperation(); - operation.operand = adGroup; - operation.@operator = Operator.SET; - - try { - // Delete the ad group. - AdGroupReturnValue retVal = adGroupService.mutate(new AdGroupOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroup deletedAdGroup = retVal.value[0]; - Console.WriteLine("Ad group with id = \"{0}\" was renamed to \"{1}\" and deleted.", - deletedAdGroup.id, deletedAdGroup.name); - } else { - Console.WriteLine("No ad groups were deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete ad group.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteCampaign.cs b/examples/AdWords/CSharp/v201309/BasicOperations/DeleteCampaign.cs deleted file mode 100644 index 198ef33ca82..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteCampaign.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes a campaign by setting the status to 'DELETED'. - /// To get campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignService.mutate - /// - public class DeleteCampaign : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeleteCampaign codeExample = new DeleteCampaign(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes a campaign by setting the status to 'DELETED'. " + - "To get campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to be deleted. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignService. - CampaignService campaignService = (CampaignService) user.GetService( - AdWordsService.v201309.CampaignService); - - // Create campaign with DELETED status. - Campaign campaign = new Campaign(); - campaign.id = campaignId; - - // When deleting a campaign, rename it to avoid name collisions with new - // campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString(); - campaign.status = CampaignStatus.DELETED; - - // Create the operation. - CampaignOperation operation = new CampaignOperation(); - operation.operand = campaign; - operation.@operator = Operator.SET; - - try { - // Delete the campaign. - CampaignReturnValue retVal = campaignService.mutate(new CampaignOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - Campaign deletedCampaign = retVal.value[0]; - Console.WriteLine("Campaign with id = \"{0}\" was renamed to \"{1}\" and deleted.", - deletedCampaign.id, deletedCampaign.name); - } else { - Console.WriteLine("No campaigns were deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete campaign.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteKeyword.cs b/examples/AdWords/CSharp/v201309/BasicOperations/DeleteKeyword.cs deleted file mode 100644 index acb39a545a1..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/DeleteKeyword.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes a keyword using the 'REMOVE' operator. To get - /// keywords, run GetKeywords.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class DeleteKeyword : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeleteKeyword codeExample = new DeleteKeyword(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long keywordId = long.Parse("INSERT_KEYWORD_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, keywordId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes a keyword using the 'REMOVE' operator. To get " + - "keywords, run GetKeywords.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the keyword. - /// - /// Id of the keyword to be deleted. - public void Run(AdWordsUser user, long adGroupId, long keywordId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = (AdGroupCriterionService)user.GetService( - AdWordsService.v201309.AdGroupCriterionService); - - // Create base class criterion to avoid setting keyword-specific fields. - Criterion criterion = new Criterion(); - criterion.id = keywordId; - - // Create the ad group criterion. - BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); - adGroupCriterion.adGroupId = adGroupId; - adGroupCriterion.criterion = criterion; - - // Create the operation. - AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); - operation.operand = adGroupCriterion; - operation.@operator = Operator.REMOVE; - - try { - // Delete the keyword. - AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate( - new AdGroupCriterionOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupCriterion deletedKeyword = retVal.value[0]; - Console.WriteLine("Keyword with ad group id = \"{0}\" and id = \"{1}\" was deleted.", - deletedKeyword.adGroupId, deletedKeyword.criterion.id); - } else { - Console.WriteLine("No keywords were deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete keyword.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/GetAdGroups.cs b/examples/AdWords/CSharp/v201309/BasicOperations/GetAdGroups.cs deleted file mode 100644 index d82eda021a3..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/GetAdGroups.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to retrieve all the ad groups for a - /// campaign. To create an ad group, run AddAdGroup.cs. - /// - /// Tags: AdGroupService.get - /// - public class GetAdGroups : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAdGroups codeExample = new GetAdGroups(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve all the ad groups for a " + - "campaign. To create an ad group, run AddAdGroup.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign for which ad groups are - /// retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "Name"}; - - // Create the filters. - Predicate predicate = new Predicate(); - predicate.field = "CampaignId"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] {campaignId.ToString()}; - selector.predicates = new Predicate[] {predicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupPage page = new AdGroupPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the ad groups. - page = adGroupService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroup adGroup in page.entries) { - Console.WriteLine("{0}) Ad group name is '{1}' and id is {2}.", i + 1, adGroup.name, - adGroup.id); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of ad groups found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve ad groups.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/GetCampaigns.cs b/examples/AdWords/CSharp/v201309/BasicOperations/GetCampaigns.cs deleted file mode 100644 index e02a6043ae2..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/GetCampaigns.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example lists all campaigns. To add a campaign, run - /// AddCampaign.cs. - /// - /// Tags: CampaignService.get - /// - public class GetCampaigns : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetCampaigns codeExample = new GetCampaigns(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example lists all campaigns. To add a campaign, run AddCampaign.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "Name", "Status"}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - CampaignPage page = new CampaignPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the campaigns. - page = campaignService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (Campaign campaign in page.entries) { - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = '{3}'" + - " was found.", i + 1, campaign.id, campaign.name, campaign.status); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve campaigns", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs b/examples/AdWords/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs deleted file mode 100644 index e7f463866bb..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example lists all campaigns using an AWQL query. See - /// https://developers.google.com/adwords/api/docs/guides/awql for AWQL - /// documentation. To add a campaign, run AddCampaign.cs. - /// - /// Tags: CampaignService.get - /// - public class GetCampaignsWithAwql : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetCampaignsWithAwql codeExample = new GetCampaignsWithAwql(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example lists all campaigns using an AWQL query. See " + - "https://developers.google.com/adwords/api/docs/guides/awql for AWQL documentation. " + - "To add a campaign, run AddCampaign.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - // Create the query. - string query = "SELECT Id, Name, Status ORDER BY Name"; - - int offset = 0; - int pageSize = 500; - - CampaignPage page = new CampaignPage(); - - try { - do { - string queryWithPaging = string.Format("{0} LIMIT {1}, {2}", query, offset, pageSize); - - // Get the campaigns. - page = campaignService.query(queryWithPaging); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (Campaign campaign in page.entries) { - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = '{3}'" + - " was found.", i + 1, campaign.id, campaign.name, campaign.status); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve campaigns", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/GetKeywords.cs b/examples/AdWords/CSharp/v201309/BasicOperations/GetKeywords.cs deleted file mode 100644 index 0749c31801e..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/GetKeywords.cs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets all keywords in an account. To add keywords, run - /// AddKeywords.cs. - /// - /// Tags: AdGroupCriterionService.get - /// - public class GetKeywords : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetKeywords codeExample = new GetKeywords(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all keywords in an account. To add keywords, run " + - "AddKeywords.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Create a selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "AdGroupId", "KeywordText"}; - - // Select only keywords. - Predicate predicate = new Predicate(); - predicate.field = "CriteriaType"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] {"KEYWORD"}; - selector.predicates = new Predicate[] {predicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupCriterionPage page = new AdGroupCriterionPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the keywords. - page = adGroupCriterionService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - - foreach (AdGroupCriterion adGroupCriterion in page.entries) { - bool isNegative = (adGroupCriterion is NegativeAdGroupCriterion); - - // If you are retrieving multiple type of criteria, then you may - // need to check for - // - // if (adGroupCriterion is Keyword) { ... } - // - // to identify the criterion type. - Keyword keyword = (Keyword) adGroupCriterion.criterion; - if (isNegative) { - Console.WriteLine("{0}) Negative keyword with ad group ID = '{1}', keyword ID " + - "= '{2}', and text = '{3}' was found.", i + 1, adGroupCriterion.adGroupId, - keyword.id, keyword.text); - } else { - Console.WriteLine("{0}) Keyword with ad group ID = '{1}', keyword ID = '{2}', " + - "text = '{3}' and matchType = '{4} was found.", i + 1, - adGroupCriterion.adGroupId, keyword.id, keyword.text, keyword.matchType); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of keywords found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve keywords.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/GetTextAds.cs b/examples/AdWords/CSharp/v201309/BasicOperations/GetTextAds.cs deleted file mode 100644 index 2570eafeaf7..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/GetTextAds.cs +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves all text ads given an existing ad group. - /// To add text ads to an existing ad group, run AddTextAds.cs. - /// - /// Tags: AdGroupAdService.get - /// - public class GetTextAds : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetTextAds codeExample = new GetTextAds(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves all text ads given an existing ad group. To add " + - "text ads to an existing ad group, run AddTextAds.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group from which text ads are - /// retrieved. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create a selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "Status", "Headline", "Description1", "Description2", - "DisplayUrl"}; - - // Set the sort order. - OrderBy orderBy = new OrderBy(); - orderBy.field = "Id"; - orderBy.sortOrder = SortOrder.ASCENDING; - selector.ordering = new OrderBy[] {orderBy}; - - // Restrict the fetch to only the selected ad group id. - Predicate adGroupPredicate = new Predicate(); - adGroupPredicate.field = "AdGroupId"; - adGroupPredicate.@operator = PredicateOperator.EQUALS; - adGroupPredicate.values = new string[] {adGroupId.ToString()}; - - // Retrieve only text ads. - Predicate typePredicate = new Predicate(); - typePredicate.field = "AdType"; - typePredicate.@operator = PredicateOperator.EQUALS; - typePredicate.values = new string[] {"TEXT_AD"}; - - // By default disabled ads aren't returned by the selector. To return - // them include the DISABLED status in the statuses field. - Predicate statusPredicate = new Predicate(); - statusPredicate.field = "Status"; - statusPredicate.@operator = PredicateOperator.IN; - - statusPredicate.values = new string[] {AdGroupAdStatus.ENABLED.ToString(), - AdGroupAdStatus.PAUSED.ToString(), AdGroupAdStatus.DISABLED.ToString()}; - - selector.predicates = new Predicate[] {adGroupPredicate, statusPredicate, typePredicate}; - - // Select the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupAdPage page = new AdGroupAdPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the text ads. - page = service.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - - foreach (AdGroupAd adGroupAd in page.entries) { - TextAd textAd = (TextAd) adGroupAd.ad; - Console.WriteLine("{0}) Ad id is {1} and status is {2}", i + 1, textAd.id, - adGroupAd.status); - Console.WriteLine(" {0}\n {1}\n {2}\n {3}", textAd.headline, - textAd.description1, textAd.description2, textAd.displayUrl); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of text ads found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get text ads", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/PauseAd.cs b/examples/AdWords/CSharp/v201309/BasicOperations/PauseAd.cs deleted file mode 100644 index 301d21e26a0..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/PauseAd.cs +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example pauses a given ad. To list all ads, run GetTextAds.cs. - /// - /// Tags: AdGroupAdService.mutate - /// - public class PauseAd : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - PauseAd codeExample = new PauseAd(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long adId = long.Parse("INSERT_AD_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, adId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example pauses a given ad. To list all ads, run GetTextAds.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the ad. - /// - /// Id of the ad to be paused. - public void Run(AdWordsUser user, long adGroupId, long adId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - AdGroupAdStatus status = AdGroupAdStatus.PAUSED; - - // Create the ad group ad. - AdGroupAd adGroupAd = new AdGroupAd(); - adGroupAd.status = status; - adGroupAd.adGroupId = adGroupId; - - adGroupAd.ad = new Ad(); - adGroupAd.ad.id = adId; - - // Create the operation. - AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation(); - adGroupAdOperation.@operator = Operator.SET; - adGroupAdOperation.operand = adGroupAd; - - try { - // Update the ad. - AdGroupAdReturnValue retVal = service.mutate(new AdGroupAdOperation[]{adGroupAdOperation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupAd pausedAdGroupAd = retVal.value[0]; - Console.WriteLine("Ad with id \"{0}\" and ad group id \"{1}\"was paused.", - pausedAdGroupAd.ad.id, pausedAdGroupAd.adGroupId); - } else { - Console.WriteLine("No ads were paused."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to pause ad.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/UpdateAdGroup.cs b/examples/AdWords/CSharp/v201309/BasicOperations/UpdateAdGroup.cs deleted file mode 100644 index 6d14b870347..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/UpdateAdGroup.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to update an ad group, setting its - /// status to 'PAUSED'. To create an ad group, run AddAdGroup.cs. - /// - /// Tags: AdGroupService.mutate - /// - public class UpdateAdGroup : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdateAdGroup codeExample = new UpdateAdGroup(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to update an ad group, setting its status to " + - "'PAUSED'. To create an ad group, run AddAdGroup.cs"; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to be updated. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - // Create the ad group. - AdGroup adGroup = new AdGroup(); - adGroup.status = AdGroupStatus.PAUSED; - adGroup.id = adGroupId; - - // Create the operation. - AdGroupOperation operation = new AdGroupOperation(); - operation.@operator = Operator.SET; - operation.operand = adGroup; - - try { - // Update the ad group. - AdGroupReturnValue retVal = adGroupService.mutate(new AdGroupOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroup pausedAdGroup = retVal.value[0]; - Console.WriteLine("Ad group with id = '{0}' was successfully updated.", - pausedAdGroup.id); - } else { - Console.WriteLine("No ad groups were updated."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update ad group.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/UpdateCampaign.cs b/examples/AdWords/CSharp/v201309/BasicOperations/UpdateCampaign.cs deleted file mode 100644 index 89b26dd6912..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/UpdateCampaign.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example updates a campaign. To get campaigns, run - /// GetCampaigns.cs. - /// - /// Tags: CampaignService.mutate - /// - public class UpdateCampaign : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdateCampaign codeExample = new UpdateCampaign(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example updates a campaign. To get campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to be updated. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService)user.GetService(AdWordsService.v201309.CampaignService); - - // Create the campaign. - Campaign campaign = new Campaign(); - campaign.id = campaignId; - campaign.status = CampaignStatus.PAUSED; - - // Create the operation. - CampaignOperation operation = new CampaignOperation(); - operation.@operator = Operator.SET; - operation.operand = campaign; - - try { - // Update the campaign. - CampaignReturnValue retVal = campaignService.mutate((new CampaignOperation[] {operation})); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - Campaign updatedCampaign = retVal.value[0]; - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was updated.", - updatedCampaign.name, updatedCampaign.id); - } else { - Console.WriteLine("No campaigns were updated."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update campaign.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/BasicOperations/UpdateKeyword.cs b/examples/AdWords/CSharp/v201309/BasicOperations/UpdateKeyword.cs deleted file mode 100644 index 4956bd86697..00000000000 --- a/examples/AdWords/CSharp/v201309/BasicOperations/UpdateKeyword.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example updates the bid of a keyword. To get keyword, run - /// GetKeywords.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class UpdateKeyword : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdateKeyword codeExample = new UpdateKeyword(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long keywordId = long.Parse("INSERT_KEYWORD_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, keywordId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example updates the bid of a keyword. To get keyword, run " + - "GetKeywords.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the keyword. - /// - /// Id of the keyword to be updated. - public void Run(AdWordsUser user, long adGroupId, long keywordId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Since we are not updating any keyword-specific fields, it is enough to - // create a criterion object. - Criterion criterion = new Criterion(); - criterion.id = keywordId; - - // Create ad group criterion. - BiddableAdGroupCriterion biddableAdGroupCriterion = new BiddableAdGroupCriterion(); - biddableAdGroupCriterion.adGroupId = adGroupId; - biddableAdGroupCriterion.criterion = criterion; - - // Create the bids. - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - CpcBid cpcBid = new CpcBid(); - cpcBid.bid = new Money(); - cpcBid.bid.microAmount = 1000000; - biddingConfig.bids = new Bids[] {cpcBid}; - - biddableAdGroupCriterion.biddingStrategyConfiguration = biddingConfig; - - // Create the operation. - AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); - operation.@operator = Operator.SET; - operation.operand = biddableAdGroupCriterion; - - try { - // Update the keyword. - AdGroupCriterionReturnValue retVal = - adGroupCriterionService.mutate(new AdGroupCriterionOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupCriterion adGroupCriterion = retVal.value[0]; - long bidAmount = 0; - foreach (Bids bids in (adGroupCriterion as BiddableAdGroupCriterion). - biddingStrategyConfiguration.bids) { - if (bids is CpcBid) { - bidAmount = (bids as CpcBid).bid.microAmount; - break; - } - } - - Console.WriteLine("Keyword with ad group id = '{0}', id = '{1}' was updated with " + - "bid amount = '{2}' micros.", adGroupCriterion.adGroupId, - adGroupCriterion.criterion.id, bidAmount); - } else { - Console.WriteLine("No keyword was updated."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update keyword.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/AddExperiment.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/AddExperiment.cs deleted file mode 100644 index 4a10896aac2..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/AddExperiment.cs +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example creates an experiment using a query percentage of 10, - /// which defines what fraction of auctions should go to the control split - /// (90%) vs. the experiment split (10%), then adds experimental bid changes - /// for criteria and ad groups. To get campaigns, run GetCampaigns.cs. - /// To get ad groups, run GetAdGroups.cs. To get criteria, run - /// GetKeywords.cs. - /// - /// Tags: ExperimentService.mutate - /// - public class AddExperiment : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddExperiment codeExample = new AddExperiment(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long criterionId = long.Parse("INSERT_CRITERION_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId, adGroupId, criterionId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example creates an experiment using a query percentage of 10, which " + - "defines what fraction of auctions should go to the control split (90%) vs. the " + - "experiment split (10%), then adds experimental bid changes for criteria and ad " + - "groups. To get campaigns, run GetCampaigns.cs. To get ad groups, run " + - "GetAdGroups.cs. To get criteria, run GetKeywords.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to which experiments are - /// added. - /// Id of the ad group to which experiments are - /// added. - /// Id of the criterion for which experiments - /// are added. - public void Run(AdWordsUser user, long campaignId, long adGroupId, long criterionId) { - // Get the ExperimentService. - ExperimentService experimentService = - (ExperimentService) user.GetService(AdWordsService.v201309.ExperimentService); - - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Create the experiment. - Experiment experiment = new Experiment(); - experiment.campaignId = campaignId; - experiment.name = "Interplanetary Cruise #" + ExampleUtilities.GetRandomString(); - experiment.queryPercentage = 10; - experiment.startDateTime = DateTime.Now.AddDays(1).ToString("yyyyMMdd HHmmss"); - - // Optional: Set the end date. - experiment.endDateTime = DateTime.Now.AddDays(30).ToString("yyyyMMdd HHmmss"); - - // Optional: Set the status. - experiment.status = ExperimentStatus.ACTIVE; - - // Create the operation. - ExperimentOperation experimentOperation = new ExperimentOperation(); - experimentOperation.@operator = Operator.ADD; - experimentOperation.operand = experiment; - - try { - // Add the experiment. - ExperimentReturnValue experimentRetVal = experimentService.mutate( - new ExperimentOperation[] {experimentOperation}); - - // Display the results. - if (experimentRetVal != null && experimentRetVal.value != null && experimentRetVal.value. - Length > 0) { - long experimentId = 0; - - Experiment newExperiment = experimentRetVal.value[0]; - - Console.WriteLine("Experiment with name = \"{0}\" and id = \"{1}\" was added.\n", - newExperiment.name, newExperiment.id); - experimentId = newExperiment.id; - - // Set ad group for the experiment. - AdGroup adGroup = new AdGroup(); - adGroup.id = adGroupId; - - // Create experiment bid multiplier rule that will modify ad group bid - // for the experiment. - ManualCPCAdGroupExperimentBidMultipliers adGroupBidMultiplier = - new ManualCPCAdGroupExperimentBidMultipliers(); - adGroupBidMultiplier.maxCpcMultiplier = new BidMultiplier(); - adGroupBidMultiplier.maxCpcMultiplier.multiplier = 1.5; - - // Set experiment data to the ad group. - AdGroupExperimentData adGroupExperimentData = new AdGroupExperimentData(); - adGroupExperimentData.experimentId = experimentId; - adGroupExperimentData.experimentDeltaStatus = ExperimentDeltaStatus.MODIFIED; - adGroupExperimentData.experimentBidMultipliers = adGroupBidMultiplier; - - adGroup.experimentData = adGroupExperimentData; - - // Create the operation. - AdGroupOperation adGroupOperation = new AdGroupOperation(); - adGroupOperation.operand = adGroup; - adGroupOperation.@operator = Operator.SET; - - // Update the ad group. - AdGroupReturnValue adGroupRetVal = adGroupService.mutate(new AdGroupOperation[] { - adGroupOperation}); - - // Display the results. - if (adGroupRetVal != null && adGroupRetVal.value != null && - adGroupRetVal.value.Length > 0) { - AdGroup updatedAdGroup = adGroupRetVal.value[0]; - Console.WriteLine("Ad group with name = \"{0}\", id = \"{1}\" and status = \"{2}\" " + - "was updated for the experiment.\n", updatedAdGroup.name, updatedAdGroup.id, - updatedAdGroup.status); - } else { - Console.WriteLine("No ad groups were updated."); - } - - // Set ad group criteria for the experiment. - Criterion criterion = new Criterion(); - criterion.id = criterionId; - - BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); - adGroupCriterion.adGroupId = adGroupId; - adGroupCriterion.criterion = criterion; - - // Create experiment bid multiplier rule that will modify criterion bid - // for the experiment. - ManualCPCAdGroupCriterionExperimentBidMultiplier bidMultiplier = - new ManualCPCAdGroupCriterionExperimentBidMultiplier(); - bidMultiplier.maxCpcMultiplier = new BidMultiplier(); - bidMultiplier.maxCpcMultiplier.multiplier = 1.5; - - // Set experiment data to the criterion. - BiddableAdGroupCriterionExperimentData adGroupCriterionExperimentData = - new BiddableAdGroupCriterionExperimentData(); - adGroupCriterionExperimentData.experimentId = experimentId; - adGroupCriterionExperimentData.experimentDeltaStatus = ExperimentDeltaStatus.MODIFIED; - adGroupCriterionExperimentData.experimentBidMultiplier = bidMultiplier; - - adGroupCriterion.experimentData = adGroupCriterionExperimentData; - - // Create the operation. - AdGroupCriterionOperation adGroupCriterionOperation = new AdGroupCriterionOperation(); - adGroupCriterionOperation.operand = adGroupCriterion; - adGroupCriterionOperation.@operator = Operator.SET; - - // Update the ad group criteria. - AdGroupCriterionReturnValue adGroupCriterionRetVal = adGroupCriterionService.mutate( - new AdGroupCriterionOperation[] {adGroupCriterionOperation}); - - // Display the results. - if (adGroupCriterionRetVal != null && adGroupCriterionRetVal.value != null && - adGroupCriterionRetVal.value.Length > 0) { - AdGroupCriterion updatedAdGroupCriterion = adGroupCriterionRetVal.value[0]; - Console.WriteLine("Ad group criterion with ad group id = \"{0}\", criterion id = " - + "\"{1}\" and type = \"{2}\" was updated for the experiment.\n", - updatedAdGroupCriterion.adGroupId, updatedAdGroupCriterion.criterion.id, - updatedAdGroupCriterion.criterion.CriterionType); - } else { - Console.WriteLine("No ad group criteria were updated."); - } - } else { - Console.WriteLine("No experiments were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add experiment.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/AddKeywordsInBulk.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/AddKeywordsInBulk.cs deleted file mode 100644 index 9277737cd90..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/AddKeywordsInBulk.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text.RegularExpressions; -using System.Threading; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example shows how to add keywords in bulk using the - /// MutateJobService. - /// - /// Tags: MutateJobService.mutate, MutateJobService.get - /// Tags: MutateJobService.getResult - /// - public class AddKeywordsInBulk : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddKeywordsInBulk codeExample = new AddKeywordsInBulk(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to add keywords in bulk using the MutateJobService."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad groups to which keywords are - /// added. - public void Run(AdWordsUser user, long adGroupId) { - // Get the MutateJobService. - MutateJobService mutateJobService = (MutateJobService) user.GetService( - AdWordsService.v201309.MutateJobService); - - const int RETRY_INTERVAL = 30; - const int RETRIES_COUNT = 30; - const int KEYWORD_NUMBER = 100; - const string INDEX_REGEX = "operations\\[(\\d+)\\].operand"; - - List operations = new List(); - - // Create AdGroupCriterionOperation to add keywords. - for (int i = 0; i < KEYWORD_NUMBER; i++) { - Keyword keyword = new Keyword(); - keyword.text = string.Format("mars cruise {0}", i); - keyword.matchType = KeywordMatchType.BROAD; - - BiddableAdGroupCriterion criterion = new BiddableAdGroupCriterion(); - criterion.adGroupId = adGroupId; - criterion.criterion = keyword; - - AdGroupCriterionOperation adGroupCriterionOperation = new AdGroupCriterionOperation(); - adGroupCriterionOperation.@operator = Operator.ADD; - adGroupCriterionOperation.operand = criterion; - - operations.Add(adGroupCriterionOperation); - } - - BulkMutateJobPolicy policy = new BulkMutateJobPolicy(); - // You can specify up to 3 job IDs that must successfully complete before - // this job can be processed. - policy.prerequisiteJobIds = new long[] {}; - - SimpleMutateJob job = mutateJobService.mutate(operations.ToArray(), policy); - - // Wait for the job to complete. - bool completed = false; - int retryCount = 0; - Console.WriteLine("Retrieving job status..."); - - while (completed == false && retryCount < RETRIES_COUNT) { - BulkMutateJobSelector selector = new BulkMutateJobSelector(); - selector.jobIds = new long[] {job.id}; - - try { - Job[] allJobs = mutateJobService.get(selector); - if (allJobs != null && allJobs.Length > 0) { - job = (SimpleMutateJob) allJobs[0]; - if (job.status == BasicJobStatus.COMPLETED || job.status == BasicJobStatus.FAILED) { - completed = true; - break; - } else { - Console.WriteLine("{0}: Current status is {1}, waiting {2} seconds to retry...", - retryCount, job.status, RETRY_INTERVAL); - Thread.Sleep(RETRY_INTERVAL * 1000); - retryCount++; - } - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to fetch simple mutate job with " + - "id = {0}.", ex); - } - } - - if (job.status == BasicJobStatus.COMPLETED) { - // Handle cases where the job completed. - - // Create the job selector. - BulkMutateJobSelector selector = new BulkMutateJobSelector(); - selector.jobIds = new long[] {job.id}; - - // Get the job results. - JobResult jobResult = mutateJobService.getResult(selector); - if (jobResult != null) { - SimpleMutateResult results = (SimpleMutateResult) jobResult.Item; - if (results != null) { - // Display the results. - if (results.results != null) { - for (int i = 0; i < results.results.Length; i++) { - Operand operand = results.results[i]; - Console.WriteLine("Operation {0} - {1}", i, (operand.Item is PlaceHolder) ? - "FAILED" : "SUCCEEDED"); - } - } - - // Display the errors. - if (results.errors != null) { - foreach (ApiError apiError in results.errors) { - Match match = Regex.Match(apiError.fieldPath, INDEX_REGEX, RegexOptions.IgnoreCase); - string index = (match.Success)? match.Groups[1].Value : "???"; - Console.WriteLine("Operation index {0} failed due to reason: '{1}', " + - "trigger: '{2}'", index, apiError.errorString, apiError.trigger); - } - } - } - } - Console.WriteLine("Job completed successfully!"); - } else if (job.status == BasicJobStatus.FAILED) { - // Handle the cases where job failed. - Console.WriteLine("Job failed with reason: " + job.failureReason); - } else if (job.status == BasicJobStatus.PROCESSING || job.status == BasicJobStatus.PENDING) { - // Handle the cases where job didn't complete after wait period. - Console.WriteLine("Job did not complete in {0} secconds.", RETRY_INTERVAL * RETRIES_COUNT); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/AddLocationExtension.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/AddLocationExtension.cs deleted file mode 100644 index 57b5a96d00c..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/AddLocationExtension.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example shows how to add a location extension to an existing - /// campaign. To create a campaign, run AddCampaign.cs. - /// - /// Tags: GeoLocationService.get, CampaignAdExtensionService.mutate - /// - public class AddLocationExtension : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddLocationExtension codeExample = new AddLocationExtension(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to add a location extension to an existing " + - "campaign. To create a campaign, run AddCampaign.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to which location - /// extensions are added. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignAdExtensionService. - CampaignAdExtensionService campaignExtensionService = - (CampaignAdExtensionService) user.GetService(AdWordsService.v201309. - CampaignAdExtensionService); - - // Add location 1: 1600 Amphitheatre Pkwy, Mountain View, US. - Address address1 = new Address(); - address1.streetAddress = "1600 Amphitheatre Parkway"; - address1.cityName = "Mountain View"; - address1.provinceCode = "CA"; - address1.postalCode = "94043"; - address1.countryCode = "US"; - - // Add location 2: 38 avenue de l'Opéra, 75002 Paris, FR. - Address address2 = new Address(); - address2.streetAddress = "38 avenue de l'Opéra"; - address2.cityName = "Paris"; - address2.postalCode = "75002"; - address2.countryCode = "FR"; - - // Get the GeoLocationService. - GeoLocationService geoService = - (GeoLocationService) user.GetService(AdWordsService.v201309.GeoLocationService); - - // Create the selector. - GeoLocationSelector selector = new GeoLocationSelector(); - selector.addresses = new Address[] {address1, address2}; - - // Retrieve the locations. - GeoLocation[] locations = geoService.get(selector); - - List operations = new List(); - - // Phone numbers for US and FR offices. - string[] phoneNumbers = new string[] {"(650) 253-0000", "(0)1 42 68 53 00"}; - int index = 0; - - // Create a location extension for each geo location returned by the - // server. - foreach (GeoLocation location in locations) { - LocationExtension locationExtension = new LocationExtension(); - locationExtension.address = location.address; - locationExtension.geoPoint = location.geoPoint; - locationExtension.encodedLocation = location.encodedLocation; - locationExtension.source = LocationExtensionSource.ADWORDS_FRONTEND; - - // Optional: Set the company name. - locationExtension.companyName = "ACME Inc."; - - // Optional: Set the phone number. - locationExtension.phoneNumber = phoneNumbers[index]; - index++; - - CampaignAdExtension extension = new CampaignAdExtension(); - extension.campaignId = campaignId; - extension.status = CampaignAdExtensionStatus.ACTIVE; - extension.adExtension = locationExtension; - - CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation(); - operation.@operator = Operator.ADD; - operation.operand = extension; - - operations.Add(operation); - } - - try { - CampaignAdExtensionReturnValue retVal = - campaignExtensionService.mutate(operations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - foreach (CampaignAdExtension campaignExtension in retVal.value) { - Console.WriteLine("Created a location extension with id = \"{0}\" and " + - "status = \"{1}\"", campaignExtension.adExtension.id, campaignExtension.status); - } - } else { - Console.WriteLine("No location extensions were created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add location extension.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs deleted file mode 100644 index 30b375616ee..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves all the disapproved ads in a given campaign. - /// - /// Tags: AdGroupAdService.get - /// - public class GetAllDisapprovedAds : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAllDisapprovedAds codeExample = new GetAllDisapprovedAds(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves all the disapproved ads in a given campaign."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign for which disapproved ads - /// are retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "AdGroupCreativeApprovalStatus", - "AdGroupAdDisapprovalReasons"}; - - // Create the filter. - Predicate campaignPredicate = new Predicate(); - campaignPredicate.@operator = PredicateOperator.EQUALS; - campaignPredicate.field = "CampaignId"; - campaignPredicate.values = new string[] {campaignId.ToString()}; - - Predicate approvalPredicate = new Predicate(); - approvalPredicate.@operator = PredicateOperator.EQUALS; - approvalPredicate.field = "AdGroupCreativeApprovalStatus"; - approvalPredicate.values = new string[] {AdGroupAdApprovalStatus.DISAPPROVED.ToString()}; - - selector.predicates = new Predicate[] {campaignPredicate, approvalPredicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupAdPage page = new AdGroupAdPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the disapproved ads. - page = service.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroupAd adGroupAd in page.entries) { - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " + - "reason(s):", i, adGroupAd.ad.id); - foreach (string reason in adGroupAd.disapprovalReasons) { - Console.WriteLine(" {0}", reason); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get disapproved ads.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs deleted file mode 100644 index ba45be8ad01..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves all the disapproved ads in a given campaign - /// using AWQL. See https://developers.google.com/adwords/api/docs/guides/awql - /// for AWQL documentation. - /// - /// Tags: AdGroupAdService.get - /// - public class GetAllDisapprovedAdsWithAwql : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAllDisapprovedAdsWithAwql codeExample = new GetAllDisapprovedAdsWithAwql(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves all the disapproved ads in a given campaign using " + - "AWQL. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL " + - "documentation."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign for which disapproved ads - /// are retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Get all the disapproved ads for this campaign. - string query = string.Format("SELECT Id, AdGroupAdDisapprovalReasons WHERE " + - "CampaignId = {0} AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id", - campaignId); - - int offset = 0; - int pageSize = 500; - - AdGroupAdPage page = new AdGroupAdPage(); - - try { - do { - string queryWithPaging = string.Format("{0} LIMIT {1}, {2}", query, offset, pageSize); - - // Get the disapproved ads. - page = service.query(queryWithPaging); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroupAd adGroupAd in page.entries) { - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " + - "reason(s):", i, adGroupAd.ad.id); - foreach (string reason in adGroupAd.disapprovalReasons) { - Console.WriteLine(" {0}", reason); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get disapproved ads.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/PromoteExperiment.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/PromoteExperiment.cs deleted file mode 100644 index d21ede66a86..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/PromoteExperiment.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This example promotes an experiment, which permanently applies all the - /// experiment changes made to its related ad groups, criteria and ads. To - /// create an experiment, run AddExperiment.vb. - /// - /// Tags: ExperimentService.mutate - /// - public class PromoteExperiment : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - PromoteExperiment codeExample = new PromoteExperiment(); - Console.WriteLine(codeExample.Description); - try { - long experimentId = long.Parse("INSERT_EXPERIMENT_ID_HERE"); - codeExample.Run(new AdWordsUser(), experimentId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This example promotes an experiment, which permanently applies all the experiment" + - " changes made to its related ad groups, criteria and ads. To create an experiment, " + - "run AddExperiment.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the experiment to be promoted. - public void Run(AdWordsUser user, long experimentId) { - // Get the ExperimentService. - ExperimentService experimentService = - (ExperimentService) user.GetService(AdWordsService.v201309.ExperimentService); - - // Set experiment's status to PROMOTED. - Experiment experiment = new Experiment(); - experiment.id = experimentId; - experiment.status = ExperimentStatus.PROMOTED; - - // Create the operation. - ExperimentOperation operation = new ExperimentOperation(); - operation.@operator = Operator.SET; - operation.operand = experiment; - - try { - // Update the experiment. - ExperimentReturnValue retVal = experimentService.mutate( - new ExperimentOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - Experiment promotedExperiment = retVal.value[0]; - Console.WriteLine("Experiment with name = \"{0}\" and id = \"{1}\" was promoted.\n", - promotedExperiment.name, promotedExperiment.id); - } else { - Console.WriteLine("No experiments were promoted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to promote experiment.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/SetAdParameters.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/SetAdParameters.cs deleted file mode 100644 index c105dab91ce..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/SetAdParameters.cs +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to create a text ad with ad parameters. - /// To add an ad group, run AddAdGroup.cs. To add a keyword, run - /// run AddKeyword.cs. - /// - /// Tags: AdGroupAdService.mutate, AdParamService.mutate - /// - public class SetAdParameters : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - SetAdParameters codeExample = new SetAdParameters(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long criterionId = long.Parse("INSERT_CRITERION_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, criterionId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create a text ad with ad parameters." + - " To add an ad group, run AddAdGroup.cs. To add a keyword, run AddKeyword.vb."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the criterion. - /// - /// Id of the keyword for which the ad - /// parameters are set. - public void Run(AdWordsUser user, long adGroupId, long criterionId) { - // Get the AdGroupAdService. - AdGroupAdService adGroupAdService = (AdGroupAdService) user.GetService( - AdWordsService.v201309.AdGroupAdService); - - // Get the AdParamService. - AdParamService adParamService = (AdParamService) user.GetService( - AdWordsService.v201309.AdParamService); - - // Create the text ad. - TextAd textAd = new TextAd(); - textAd.url = "http://www.example.com"; - textAd.displayUrl = "example.com"; - textAd.headline = " Mars Cruises"; - textAd.description1 = "Low-gravity fun for {param1:cheap}."; - textAd.description2 = "Only {param2:a few} seats left!"; - - AdGroupAd adOperand = new AdGroupAd(); - adOperand.adGroupId = adGroupId; - adOperand.status = AdGroupAdStatus.ENABLED; - adOperand.ad = textAd; - - // Create the operation. - AdGroupAdOperation adOperation = new AdGroupAdOperation(); - adOperation.operand = adOperand; - adOperation.@operator = Operator.ADD; - - try { - // Create the text ad. - AdGroupAdReturnValue retVal = adGroupAdService.mutate( - new AdGroupAdOperation[] {adOperation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - Console.WriteLine("Text ad with id ='{0}' was successfully added.", - retVal.value[0].ad.id); - } else { - Console.WriteLine("No text ads were created."); - return; - } - } catch (Exception ex) { - Console.WriteLine("Failed to create text ads. Exception says \"{0}\"", ex.Message); - return; - } - - // Create the ad param for price. - AdParam priceParam = new AdParam(); - priceParam.adGroupId = adGroupId; - priceParam.criterionId = criterionId; - priceParam.paramIndex = 1; - priceParam.insertionText = "$100"; - - // Create the ad param for seats. - AdParam seatParam = new AdParam(); - seatParam.adGroupId = adGroupId; - seatParam.criterionId = criterionId; - seatParam.paramIndex = 2; - seatParam.insertionText = "50"; - - // Create the operations. - AdParamOperation priceOperation = new AdParamOperation(); - priceOperation.@operator = Operator.SET; - priceOperation.operand = priceParam; - - AdParamOperation seatOperation = new AdParamOperation(); - seatOperation.@operator = Operator.SET; - seatOperation.operand = seatParam; - - try { - // Set the ad parameters. - AdParam [] newAdParams = adParamService.mutate(new AdParamOperation[] - {priceOperation, seatOperation}); - - // Display the results. - if (newAdParams != null) { - Console.WriteLine("Ad parameters were successfully updated."); - } else { - Console.WriteLine("No ad parameters were set."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to set ad parameters.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/SetBidModifier.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/SetBidModifier.cs deleted file mode 100644 index 55c1abb5f80..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/SetBidModifier.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example sets a bid modifier for the mobile platform on given - /// campaign. The campaign must be an enhanced type of campaign. To get - /// campaigns, run GetCampaigns.cs. To enhance a campaign, run - /// SetCampaignEnhanced.cs. - /// - /// Tags: CampaignCriterionService.mutate - /// - public class SetBidModifier : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - SetBidModifier codeExample = new SetBidModifier(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - double bidModifier = double.Parse("INSERT_BID_MODIFIER_HERE"); - codeExample.Run(new AdWordsUser(), campaignId, bidModifier); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example sets a bid modifier for the mobile platform on given " + - "campaign. The campaign must be an enhanced type of campaign. To get campaigns, " + - "run GetCampaigns.cs. To enhance a campaign, run SetCampaignEnhanced.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign whose bid should be modified. - /// - /// The bid modifier. - public void Run(AdWordsUser user, long campaignId, double bidModifier) { - // Get the CampaignCriterionService. - CampaignCriterionService campaignCriterionService = - (CampaignCriterionService) user.GetService( - AdWordsService.v201309.CampaignCriterionService); - - // Create mobile platform. The ID can be found in the documentation. - // https://developers.google.com/adwords/api/docs/appendix/platforms - Platform mobile = new Platform(); - mobile.id = 30001; - - // Create criterion with modified bid. - CampaignCriterion criterion = new CampaignCriterion(); - criterion.campaignId = campaignId; - criterion.criterion = mobile; - criterion.bidModifier = bidModifier; - - // Create SET operation. - CampaignCriterionOperation operation = new CampaignCriterionOperation(); - operation.@operator = Operator.SET; - operation.operand = criterion; - - try { - // Update campaign criteria. - CampaignCriterionReturnValue result = campaignCriterionService.mutate( - new CampaignCriterionOperation[] {operation}); - - // Display campaign criteria. - if (result.value != null) { - foreach (CampaignCriterion newCriterion in result.value) { - Console.WriteLine("Campaign criterion with campaign id '{0}', criterion id '{1}', " + - "and type '{2}' was modified with bid {3:F2}.", newCriterion.campaignId, - newCriterion.criterion.id, newCriterion.criterion.type, newCriterion.bidModifier); - } - } else { - Console.WriteLine("No campaign criteria were modified."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to set bid modifier for campaign.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/CampaignManagement/ValidateTextAd.cs b/examples/AdWords/CSharp/v201309/CampaignManagement/ValidateTextAd.cs deleted file mode 100644 index 420a74af71a..00000000000 --- a/examples/AdWords/CSharp/v201309/CampaignManagement/ValidateTextAd.cs +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example shows how to use the validateOnly header to validate - /// a text ad. No objects will be created, but exceptions will still be - /// thrown. - /// - /// Tags: AdGroupAdService.mutate - /// - public class ValidateTextAd : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - ValidateTextAd codeExample = new ValidateTextAd(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to use the validateOnly header to validate a " + - "text ad. No objects will be created, but exceptions will still be thrown."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which text ads are - /// added. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService adGroupAdService = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Set the validateOnly headers. - adGroupAdService.RequestHeader.validateOnly = true; - - // Create your text ad. - TextAd textAd = new TextAd(); - textAd.headline = "Luxury Cruise to Mars"; - textAd.description1 = "Visit the Red Planet in style."; - textAd.description2 = "Low-gravity fun for everyone!!"; - textAd.displayUrl = "www.example.com"; - textAd.url = "http://www.example.com"; - - AdGroupAd textAdGroupAd = new AdGroupAd(); - textAdGroupAd.adGroupId = adGroupId; - textAdGroupAd.ad = textAd; - - AdGroupAdOperation textAdOperation = new AdGroupAdOperation(); - textAdOperation.@operator = Operator.ADD; - textAdOperation.operand = textAdGroupAd; - - try { - AdGroupAdReturnValue retVal = adGroupAdService.mutate( - (new AdGroupAdOperation[] {textAdOperation})); - // Since validation is ON, result will be null. - Console.WriteLine("text ad validated successfully."); - } catch (AdWordsApiException ex) { - // This block will be hit if there is a validation error from the server. - Console.WriteLine("There were validation error(s) while adding text ad."); - - if (ex.ApiException != null) { - foreach (ApiError error in ((ApiException) ex.ApiException).errors) { - Console.WriteLine(" Error type is '{0}' and fieldPath is '{1}'.", - error.ApiErrorType, error.fieldPath); - } - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to validate text ad.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs b/examples/AdWords/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs deleted file mode 100644 index 3703b11c740..00000000000 --- a/examples/AdWords/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example demonstrates how to handle partial failures. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class HandlePartialFailures : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandlePartialFailures codeExample = new HandlePartialFailures(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example demonstrates how to handle partial failures."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which keywords are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Set partial failure mode for the service. - adGroupCriterionService.RequestHeader.partialFailure = true; - - List operations = new List(); - - // Create the keywords. - string[] keywords = new String[] {"mars cruise", "inv@lid cruise", "venus cruise", - "b(a)d keyword cruise"}; - - foreach (String keywordText in keywords) { - Keyword keyword = new Keyword(); - keyword.text = keywordText; - keyword.matchType = KeywordMatchType.BROAD; - - // Create biddable ad group criterion. - BiddableAdGroupCriterion keywordBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); - keywordBiddableAdGroupCriterion.adGroupId = adGroupId; - keywordBiddableAdGroupCriterion.criterion = keyword; - - // Create the operation. - AdGroupCriterionOperation keywordAdGroupCriterionOperation = - new AdGroupCriterionOperation(); - keywordAdGroupCriterionOperation.operand = keywordBiddableAdGroupCriterion; - keywordAdGroupCriterionOperation.@operator = Operator.ADD; - operations.Add(keywordAdGroupCriterionOperation); - } - - try { - // Create the keywords. - AdGroupCriterionReturnValue result = adGroupCriterionService.mutate(operations.ToArray()); - - // Display the results. - if (result != null && result.value != null) { - foreach (AdGroupCriterion adGroupCriterionResult in result.value) { - if (adGroupCriterionResult.criterion != null) { - Console.WriteLine("Keyword with ad group id '{0}', criterion id '{1}', and " + - "text '{2}' was added.\n", adGroupCriterionResult.adGroupId, - adGroupCriterionResult.criterion.id, - ((Keyword) adGroupCriterionResult.criterion).text); - } - } - } else { - Console.WriteLine("No keywords were added."); - } - - // Display the partial failure errors. - if (result != null && result.partialFailureErrors != null) { - foreach (ApiError apiError in result.partialFailureErrors) { - int operationIndex = ErrorUtilities.GetOperationIndex(apiError.fieldPath); - if (operationIndex != -1) { - AdGroupCriterion adGroupCriterion = operations[operationIndex].operand; - Console.WriteLine("Keyword with ad group id '{0}' and text '{1}' " - + "triggered a failure for the following reason: '{2}'.\n", - adGroupCriterion.adGroupId, ((Keyword) adGroupCriterion.criterion).text, - apiError.errorString); - } else { - Console.WriteLine("A failure for the following reason: '{0}' has occurred.\n", - apiError.errorString); - } - } - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add keywords in partial failure mode.", - ex); - } - } - } -} - diff --git a/examples/AdWords/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs b/examples/AdWords/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs deleted file mode 100644 index 06905a49f63..00000000000 --- a/examples/AdWords/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds a text ad, and shows how to handle a policy - /// violation. - /// - /// Tags: AdGroupAdService.mutate - /// - public class HandlePolicyViolationError : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandlePolicyViolationError codeExample = new HandlePolicyViolationError(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds a text ad, and shows how to handle a policy violation."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which ads are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create the text ad. - TextAd textAd = new TextAd(); - textAd.headline = "Luxury Cruise to Mars"; - textAd.description1 = "Visit the Red Planet in style."; - textAd.description2 = "Low-gravity fun for everyone!!"; - textAd.displayUrl = "www.example.com"; - textAd.url = "http://www.example.com"; - - AdGroupAd textadGroupAd = new AdGroupAd(); - textadGroupAd.adGroupId = adGroupId; - textadGroupAd.ad = textAd; - - // Create the operations. - AdGroupAdOperation textAdOperation = new AdGroupAdOperation(); - textAdOperation.@operator = Operator.ADD; - textAdOperation.operand = textadGroupAd; - - try { - AdGroupAdReturnValue retVal = null; - - // Setup two arrays, one to hold the list of all operations to be - // validated, and another to hold the list of operations that cannot be - // fixed after validation. - List allOperations = new List(); - List operationsToBeRemoved = new List(); - - allOperations.Add(textAdOperation); - - try { - // Validate the operations. - service.RequestHeader.validateOnly = true; - retVal = service.mutate(allOperations.ToArray()); - } catch (AdWordsApiException ex) { - ApiException innerException = ex.ApiException as ApiException; - if (innerException == null) { - throw new Exception("Failed to retrieve ApiError. See inner exception for more " + - "details.", ex); - } - - // Examine each ApiError received from the server. - foreach (ApiError apiError in innerException.errors) { - int index = ErrorUtilities.GetOperationIndex(apiError.fieldPath); - if (index == -1) { - // This API error is not associated with an operand, so we cannot - // recover from this error by removing one or more operations. - // Rethrow the exception for manual inspection. - throw; - } - - // Handle policy violation errors. - if (apiError is PolicyViolationError) { - PolicyViolationError policyError = (PolicyViolationError) apiError; - - if (policyError.isExemptable) { - // If the policy violation error is exemptable, add an exemption - // request. - List exemptionRequests = new List(); - if (allOperations[index].exemptionRequests != null) { - exemptionRequests.AddRange(allOperations[index].exemptionRequests); - } - - ExemptionRequest exemptionRequest = new ExemptionRequest(); - exemptionRequest.key = policyError.key; - exemptionRequests.Add(exemptionRequest); - allOperations[index].exemptionRequests = exemptionRequests.ToArray(); - } else { - // Policy violation error is not exemptable, remove this - // operation from the list of operations. - operationsToBeRemoved.Add(allOperations[index]); - } - } else { - // This is not a policy violation error, remove this operation - // from the list of operations. - operationsToBeRemoved.Add(allOperations[index]); - } - } - // Remove all operations that aren't exemptable. - foreach (AdGroupAdOperation operation in operationsToBeRemoved) { - allOperations.Remove(operation); - } - } - - if (allOperations.Count > 0) { - // Perform the operations exemptible of a policy violation. - service.RequestHeader.validateOnly = false; - retVal = service.mutate(allOperations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - foreach (AdGroupAd newAdGroupAd in retVal.value) { - Console.WriteLine("New ad with id = \"{0}\" and displayUrl = \"{1}\" was created.", - newAdGroupAd.ad.id, newAdGroupAd.ad.displayUrl); - } - } else { - Console.WriteLine("No ads were created."); - } - } else { - Console.WriteLine("There are no ads to create after policy violation checks."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create ads.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs b/examples/AdWords/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs deleted file mode 100644 index 50d76d6d8d6..00000000000 --- a/examples/AdWords/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example shows how to handle RateExceededError in your - /// application. To trigger the rate exceeded error, this code example runs - /// 100 threads in parallel, each thread attempting to validate 100 keywords - /// in a single request. Note that spawning 100 parallel threads is for - /// illustrative purposes only, you shouldn't do this in your application. - /// - /// Tags: AdGroupAdService.mutate - /// - public class HandleRateExceededError: ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandleRateExceededError codeExample = new HandleRateExceededError(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to handle RateExceededError in your application. " + - "To trigger the rate exceeded error, this code example runs 100 threads in " + - "parallel, each thread attempting to validate 100 keywords in a single request. " + - "Note that spawning 100 parallel threads is for illustrative purposes only, you " + - "shouldn't do this in your application."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which keywords are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - const int NUM_THREADS = 100; - - // Increase the maximum number of parallel HTTP connections that .NET - // framework allows. By default, this is set to 2 by the .NET framework. - System.Net.ServicePointManager.DefaultConnectionLimit = NUM_THREADS; - - List threads = new List(); - - for (int i = 0; i < NUM_THREADS; i++) { - Thread thread = new Thread(new KeywordThread(user, i, adGroupId).Run); - threads.Add(thread); - } - - for (int i = 0; i < NUM_THREADS; i++) { - threads[i].Start(i); - } - - for (int i = 0; i < NUM_THREADS; i++) { - threads[i].Join(); - } - } - - /// - /// Thread class for validating keywords. - /// - class KeywordThread { - /// - /// Index of this thread, for identifying and debugging. - /// - int threadIndex; - - /// - /// The ad group id to which keywords are added. - /// - long adGroupId; - - /// - /// The AdWords user who owns this ad group. - /// - AdWordsUser user; - - /// - /// Number of keywords to be validated in each API call. - /// - const int NUM_KEYWORDS = 100; - - /// - /// Initializes a new instance of the class. - /// - /// Index of the thread. - /// The ad group id. - /// The AdWords user who owns the ad group. - public KeywordThread(AdWordsUser user, int threadIndex, long adGroupId) { - this.user = user; - this.threadIndex = threadIndex; - this.adGroupId = adGroupId; - } - - /// - /// Main method for the thread. - /// - /// The thread parameter. - public void Run(Object obj) { - // Create the operations. - List operations = new List(); - - for (int j = 0; j < NUM_KEYWORDS; j++) { - // Create the keyword. - Keyword keyword = new Keyword(); - keyword.text = "mars cruise thread " + threadIndex.ToString() + " seed " + j.ToString(); - keyword.matchType = KeywordMatchType.BROAD; - - // Create the biddable ad group criterion. - AdGroupCriterion keywordCriterion = new BiddableAdGroupCriterion(); - keywordCriterion.adGroupId = adGroupId; - keywordCriterion.criterion = keyword; - - // Create the operations. - AdGroupCriterionOperation keywordOperation = new AdGroupCriterionOperation(); - keywordOperation.@operator = Operator.ADD; - keywordOperation.operand = keywordCriterion; - - operations.Add(keywordOperation); - } - - // Get the AdGroupCriterionService. This should be done within the - // thread, since a service can only handle one outgoing HTTP request - // at a time. - AdGroupCriterionService service = (AdGroupCriterionService) user.GetService( - AdWordsService.v201309.AdGroupCriterionService); - service.RequestHeader.validateOnly = true; - int retryCount = 0; - const int NUM_RETRIES = 3; - try { - while (retryCount < NUM_RETRIES) { - try { - // Validate the keywords. - AdGroupCriterionReturnValue retval = service.mutate(operations.ToArray()); - break; - } catch (AdWordsApiException ex) { - // Handle API errors. - ApiException innerException = ex.ApiException as ApiException; - if (innerException == null) { - throw new Exception("Failed to retrieve ApiError. See inner exception for more " + - "details.", ex); - } - foreach (ApiError apiError in innerException.errors) { - if (!(apiError is RateExceededError)) { - // Rethrow any errors other than RateExceededError. - throw; - } - // Handle rate exceeded errors. - RateExceededError rateExceededError = (RateExceededError) apiError; - Console.WriteLine("Got Rate exceeded error - rate name = '{0}', scope = '{1}', " + - "retry After {2} seconds.", rateExceededError.rateScope, - rateExceededError.rateName, rateExceededError.retryAfterSeconds); - Thread.Sleep(rateExceededError.retryAfterSeconds * 1000); - retryCount = retryCount + 1; - } - } finally { - if (retryCount == NUM_RETRIES) { - throw new Exception(String.Format("Could not recover after making {0} attempts.", - retryCount)); - } - } - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to validate keywords.", ex); - } - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs b/examples/AdWords/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs deleted file mode 100644 index b2e89a28b6b..00000000000 --- a/examples/AdWords/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Lib; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to handle 2 factor authorization errors. - /// - /// Tags: CampaignService.get - /// - public class HandleTwoFactorAuthorizationError : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandleTwoFactorAuthorizationError codeExample = new HandleTwoFactorAuthorizationError(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to handle 2 factor authorization errors."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Use a test account for which 2 factor authentication has been enabled. - string loginEmail = "2steptester@gmail.com"; - string password = "testaccount"; - - AdWordsAppConfig config = new AdWordsAppConfig(); - config.Email = loginEmail; - config.Password = password; - AuthToken authToken = new AuthToken(config, "adwords"); - - try { - // Try to obtain an authToken. - string token = authToken.GetToken(); - Console.WriteLine("Retrieved an authToken = {0} for user {1}.", token, loginEmail); - } catch (AuthTokenException ex) { - // Since the test account has 2 factor authentication enabled, this block - // of code will be executed. - if (ex.ErrorCode == AuthTokenErrorCode.BadAuthentication) { - if (ex.Info == "InvalidSecondFactor") { - Console.WriteLine("The user has enabled two factor authentication in this " + - "account. Have the user generate an application-specific password to make " + - "calls against the AdWords API. See " + - "http://adwordsapi.blogspot.com/2011/02/authentication-changes-with-2-step.html" + - " for more details."); - } else { - Console.WriteLine("Invalid credentials."); - } - } else { - throw new System.ApplicationException(String.Format("The server raised an {0} error.", - ex.ErrorCode)); - } - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Express/AddExpressBusinesses.cs b/examples/AdWords/CSharp/v201309/Express/AddExpressBusinesses.cs deleted file mode 100644 index 1a056cc2cc3..00000000000 --- a/examples/AdWords/CSharp/v201309/Express/AddExpressBusinesses.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2014, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example adds express businesses. To get express businesses, run - /// GetExpressBusinesses.cs. - /// - /// Tags: ExpressBusinessService.mutate - /// - public class AddExpressBusinesses : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds express businesses. To get express businesses, run " + - "GetExpressBusinesses.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddExpressBusinesses codeExample = new AddExpressBusinesses(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ExpressBusinessService. - ExpressBusinessService businessService = (ExpressBusinessService) - user.GetService(AdWordsService.v201309.ExpressBusinessService); - - ExpressBusiness business1 = new ExpressBusiness(); - business1.status = ExpressBusinessStatus.ACTIVE; - business1.name = "Express Interplanetary Cruise #" + ExampleUtilities.GetShortRandomString(); - - Address address1 = new Address(); - address1.streetAddress = "1600 Amphitheatre Pkwy"; - address1.cityName = "Mountain View"; - address1.provinceCode = "CA"; - address1.countryCode = "US"; - - business1.address = address1; - business1.website = "http://www.example.com/cruise1"; - - ExpressBusinessOperation operation1 = new ExpressBusinessOperation(); - operation1.@operator = Operator.ADD; - operation1.operand = business1; - - ExpressBusiness business2 = new ExpressBusiness(); - business2.status = (ExpressBusinessStatus.ACTIVE); - business2.name = "Express Interplanetary Cruise #" + ExampleUtilities.GetShortRandomString(); - - Address address2 = new Address(); - address2.streetAddress = "111 8th Ave"; - address2.cityName = "New York"; - address2.provinceCode = "NY"; - address2.countryCode = "US"; - - business2.address = address2; - business2.website = "http://www.example.com/cruise2"; - - ExpressBusinessOperation operation2 = new ExpressBusinessOperation(); - operation2.@operator = Operator.ADD; - operation2.operand = business2; - - try { - ExpressBusiness[] addedBusinesses = businessService.mutate( - new ExpressBusinessOperation[] {operation1, operation2}); - - Console.WriteLine("Added {0} express businesses", addedBusinesses.Length); - foreach (ExpressBusiness addedBusiness in addedBusinesses) { - Console.WriteLine("Added express business with ID = {0} and name '{1}'.", - addedBusiness.id, addedBusiness.name); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add express business.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/Express/AddPromotion.cs b/examples/AdWords/CSharp/v201309/Express/AddPromotion.cs deleted file mode 100644 index ff87e4b2b53..00000000000 --- a/examples/AdWords/CSharp/v201309/Express/AddPromotion.cs +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright 2014, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example adds a new promotion to an express business. To get - /// promotions, run GetPromotions.cs. - /// - /// Tags: ExpressBusinessService.get, PromotionService.mutate - /// - public class AddPromotion : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds a new promotion to an express business. To get " + - "promotions, run GetPromotions.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddPromotion codeExample = new AddPromotion(); - Console.WriteLine(codeExample.Description); - try { - long businessId = long.Parse("INSERT_ADWORDS_EXPRESS_BUSINESS_ID_HERE"); - codeExample.Run(new AdWordsUser(), businessId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The AdWords Express business id. - public void Run(AdWordsUser user, long businessId) { - // Get the ExpressBusinessService. - ExpressBusinessService businessService = (ExpressBusinessService) - user.GetService(AdWordsService.v201309.ExpressBusinessService); - - // Get the PromotionService - PromotionService promotionService = (PromotionService) - user.GetService(AdWordsService.v201309.PromotionService); - - // Get the business for the businessId. We will need its geo point to - // create a Proximity criterion for the new Promotion. - Selector businessSelector = new Selector(); - - Predicate predicate = new Predicate(); - predicate.field = "Id"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] { businessId.ToString() }; - businessSelector.predicates = new Predicate[] { predicate }; - - businessSelector.fields = new string[] { "Id", "GeoPoint" }; - - ExpressBusinessPage businessPage = businessService.get(businessSelector); - - if (businessPage == null || businessPage.entries == null || - businessPage.entries.Length == 0) { - Console.WriteLine("No business was found."); - return; - } - - // Set the business ID to the service. - promotionService.RequestHeader.expressBusinessId = businessId; - - // First promotion - Promotion marsTourPromotion = new Promotion(); - Money budget = new Money(); - budget.microAmount = 1000000L; - marsTourPromotion.name = "Mars Tour Promotion " + ExampleUtilities.GetShortRandomString(); - marsTourPromotion.status = PromotionStatus.PAUSED; - marsTourPromotion.destinationUrl = "http://www.example.com"; - marsTourPromotion.budget = budget; - marsTourPromotion.callTrackingEnabled = true; - - // Criteria - - // Criterion - Travel Agency product service - ProductService productService = new ProductService(); - productService.text = "Travel Agency"; - - // Criterion - English language - // The ID can be found in the documentation: - // https://developers.google.com/adwords/api/docs/appendix/languagecodes - Language language = new Language(); - language.id = 1000L; - - // Criterion - Within 15 miles - Proximity proximity = new Proximity(); - proximity.geoPoint = businessPage.entries[0].geoPoint; - proximity.radiusDistanceUnits = ProximityDistanceUnits.MILES; - proximity.radiusInUnits = 15; - - marsTourPromotion.criteria = new Criterion[] { productService, language, proximity }; - - // Creatives - - Creative creative1 = new Creative(); - creative1.headline = "Standard Mars Trip"; - creative1.line1 = "Fly coach to Mars"; - creative1.line2 = "Free in-flight pretzels"; - - Creative creative2 = new Creative(); - creative2.headline = "Deluxe Mars Trip"; - creative2.line1 = "Fly first class to Mars"; - creative2.line2 = "Unlimited powdered orange drink"; - - marsTourPromotion.creatives = new Creative[] { creative1, creative2 }; - - PromotionOperation operation = new PromotionOperation(); - operation.@operator = Operator.ADD; - operation.operand = marsTourPromotion; - - try { - Promotion[] addedPromotions = promotionService.mutate( - new PromotionOperation[] { operation }); - - Console.WriteLine("Added promotion ID {0} with name {1} to business ID {2}.", - addedPromotions[0].id, addedPromotions[0].name, businessId); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add promotions.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/Express/GetExpressBusinesses.cs b/examples/AdWords/CSharp/v201309/Express/GetExpressBusinesses.cs deleted file mode 100644 index db2f48468f8..00000000000 --- a/examples/AdWords/CSharp/v201309/Express/GetExpressBusinesses.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2014, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Text; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example gets all express businesses. To add an express - /// business, run AddExpressBusinesses.cs. - /// - /// Tags: ExpressBusinessService.get - /// - public class GetExpressBusinesses : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all express businesses. To add an express business, " + - "run AddExpressBusinesses.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetExpressBusinesses codeExample = new GetExpressBusinesses(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ExpressBusinessService. - ExpressBusinessService businessService = (ExpressBusinessService) - user.GetService(AdWordsService.v201309.ExpressBusinessService); - - Selector selector = new Selector(); - selector.fields = new String[] { "Id", "Name", "Website", "Address", "GeoPoint", "Status" }; - - // To get all express businesses owned by the current customer, - // simply skip the call to selector.setPredicates below. - Predicate predicate = new Predicate(); - predicate.field = "Status"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] { "ACTIVE" }; - - selector.predicates = new Predicate[] { predicate }; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - ExpressBusinessPage page = null; - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get all businesses. - page = businessService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (ExpressBusiness business in page.entries) { - Console.WriteLine("{0}) Express business found with name '{1}', id = {2}, " + - "website = {3} and status = {4}.\n", i + 1, business.name, business.id, - business.website, business.status); - Console.WriteLine("Address"); - Console.WriteLine("======="); - Console.WriteLine(FormatAddress(business.address)); - Console.WriteLine("Co-ordinates: {0}\n", FormatGeopoint(business.geoPoint)); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of businesses found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve express business.", ex); - } - } - - /// - /// Formats the address as a printable text. - /// - /// The address object. - /// The formatted text. - private static string FormatAddress(Address address) { - if (address == null) { - return "Not available."; - } - StringBuilder addressBuilder = new StringBuilder(); - - addressBuilder.AppendFormat("Line 1: {0}\n", address.streetAddress ?? ""); - addressBuilder.AppendFormat("Line 2: {0}\n", address.streetAddress2 ?? ""); - addressBuilder.AppendFormat("Province Name: {0}\n", address.provinceName ?? ""); - addressBuilder.AppendFormat("Province Code: {0}\n", address.provinceCode ?? ""); - addressBuilder.AppendFormat("City name: {0}\n", address.cityName ?? ""); - addressBuilder.AppendFormat("Postal code: {0}\n", address.postalCode ?? ""); - addressBuilder.AppendFormat("Country name: {0}\n", address.countryCode ?? ""); - - return addressBuilder.ToString(); - } - - /// - /// Formats the geopoint as a printable text. - /// - /// The geo point. - /// The formatted text. - private string FormatGeopoint(GeoPoint geoPoint) { - if (geoPoint == null) { - return "(Unknown, Unknown)"; - } - return string.Format("({0}, {1})", (decimal) geoPoint.latitudeInMicroDegrees / 1000000, - (decimal) geoPoint.longitudeInMicroDegrees / 1000000); - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/Express/GetProductServices.cs b/examples/AdWords/CSharp/v201309/Express/GetProductServices.cs deleted file mode 100644 index bb222ab4b3a..00000000000 --- a/examples/AdWords/CSharp/v201309/Express/GetProductServices.cs +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2014, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example shows how to retrieve AdWords Express product/service - /// objects related to specific criteria. - /// - /// Tags: ProductServiceService.get - /// - public class GetProductServices : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to retrieve AdWords Express product/service " + - "objects related to specific criteria."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetProductServices codeExample = new GetProductServices(); - Console.WriteLine(codeExample.Description); - try { - string productServiceSuggestion = "INSERT_PRODUCT_SERVICE_SUGGESTION_HERE"; - string localeText = "INSERT_LOCALE_TEXT_HERE"; - codeExample.Run(new AdWordsUser(), productServiceSuggestion, localeText); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The product/service suggestion. - /// - /// The locale text. - public void Run(AdWordsUser user, string productServiceSuggestion, string localeText) { - // Get the service, which loads the required classes. - ProductServiceService productServiceService = (ProductServiceService) user.GetService( - AdWordsService.v201309.ProductServiceService); - - // Create selector. - Selector selector = new Selector(); - selector.fields = new string[] {"ProductServiceText"}; - - // Create predicates. - Predicate textPredicate = new Predicate(); - textPredicate.field = "ProductServiceText"; - textPredicate.@operator = PredicateOperator.EQUALS; - textPredicate.values = new string[] {productServiceSuggestion}; - - Predicate localePredicate = new Predicate(); - localePredicate.field = "Locale"; - localePredicate.@operator = PredicateOperator.EQUALS; - localePredicate.values = new string[]{localeText}; - - selector.predicates = new Predicate[] {textPredicate, localePredicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - ProductServicePage page = null; - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Make the get request. - page = productServiceService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (ProductService productService in page.entries) { - Console.WriteLine("Product/service with text '{0}' found", productService.text); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of products/services found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve products/services.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/Express/GetPromotions.cs b/examples/AdWords/CSharp/v201309/Express/GetPromotions.cs deleted file mode 100644 index 5997a9b8b33..00000000000 --- a/examples/AdWords/CSharp/v201309/Express/GetPromotions.cs +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2014, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Text; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example gets all express businesses. To add an express - /// business, run AddExpressBusinesses.cs. - /// - /// Tags: ExpressBusinessService.get - /// - public class GetPromotions : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all express businesses. To add an express business, " + - "run AddExpressBusinesses.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetPromotions codeExample = new GetPromotions(); - Console.WriteLine(codeExample.Description); - try { - long businessId = long.Parse("INSERT_ADWORDS_EXPRESS_BUSINESS_ID_HERE"); - codeExample.Run(new AdWordsUser(), businessId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The AdWords Express business id. - public void Run(AdWordsUser user, long businessId) { - // Get the PromotionService. - PromotionService promotionService = (PromotionService) - user.GetService(AdWordsService.v201309.PromotionService); - - // Set the business ID to the service. - promotionService.RequestHeader.expressBusinessId = businessId; - - Selector selector = new Selector(); - selector.fields = new String[] {"PromotionId", "Name", "Status", "DestinationUrl", - "StreetAddressVisible", "CallTrackingEnabled", "ContentNetworkOptedOut", "Budget", - "PromotionCriteria", "RemainingBudget", "Creatives", "CampaignIds" }; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - PromotionPage page = null; - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get all promotions for the business. - page = promotionService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (Promotion promotion in page.entries) { - // Summary. - Console.WriteLine("0) Express promotion with name = {1} and id = {2} was found.", - i + 1, promotion.id, promotion.name); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of promotions found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve promotions.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/Express/UpdateExpressBusiness.cs b/examples/AdWords/CSharp/v201309/Express/UpdateExpressBusiness.cs deleted file mode 100644 index 52990629f48..00000000000 --- a/examples/AdWords/CSharp/v201309/Express/UpdateExpressBusiness.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright 2014, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example updates an express business. To add an express - /// business, run AddExpressBusinesses.cs. - /// - /// Tags: ExpressBusinessService.mutate - /// - public class UpdateExpressBusiness : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example updates an express business. To add an express business, run " + - "AddExpressBusinesses.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdateExpressBusiness codeExample = new UpdateExpressBusiness(); - Console.WriteLine(codeExample.Description); - try { - long businessId = long.Parse("INSERT_ADWORDS_EXPRESS_BUSINESS_ID_HERE"); - codeExample.Run(new AdWordsUser(), businessId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The AdWords Express business id. - public void Run(AdWordsUser user, long businessId) { - // Get the ExpressBusinessService. - ExpressBusinessService businessService = (ExpressBusinessService) - user.GetService(AdWordsService.v201309.ExpressBusinessService); - - // Update the website and address for the business - ExpressBusiness business = new ExpressBusiness(); - business.id = businessId; - business.name = "Express Interplanetary Cruise #" + ExampleUtilities.GetShortRandomString(); - business.website = "http://www.example.com/?myParam=" + businessId; - - ExpressBusinessOperation operation = new ExpressBusinessOperation(); - operation.@operator = Operator.SET; - operation.operand = business; - - try { - ExpressBusiness[] updatedBusinesses = - businessService.mutate(new ExpressBusinessOperation[] { operation }); - - Console.WriteLine("Express business with ID {0} and name '{1}' was updated.", - updatedBusinesses[0].id, updatedBusinesses[0].name); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update express business.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/Express/UpdatePromotion.cs b/examples/AdWords/CSharp/v201309/Express/UpdatePromotion.cs deleted file mode 100644 index 2b5b0434d0e..00000000000 --- a/examples/AdWords/CSharp/v201309/Express/UpdatePromotion.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2014, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - - /// - /// This code example updates a promotion for an express businesses. To add - /// a promotion, run UpdatePromotion.cs. - /// - /// Tags: PromotionService.mutate - /// - public class UpdatePromotion : ExampleBase { - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example updates a promotion for an express businesses. To add a " + - "promotion, run UpdatePromotion.cs."; - } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdatePromotion codeExample = new UpdatePromotion(); - Console.WriteLine(codeExample.Description); - try { - long businessId = long.Parse("INSERT_ADWORDS_EXPRESS_BUSINESS_ID_HERE"); - long promotionId = long.Parse("INSERT_PROMOTION_ID_HERE"); - codeExample.Run(new AdWordsUser(), businessId, promotionId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The AdWords Express business id. - /// The promotion id. - public void Run(AdWordsUser user, long businessId, long promotionId) { - // Get the ExpressBusinessService. - ExpressBusinessService businessService = (ExpressBusinessService) - user.GetService(AdWordsService.v201309.ExpressBusinessService); - - // Get the PromotionService - PromotionService promotionService = (PromotionService) - user.GetService(AdWordsService.v201309.PromotionService); - - // Set the business ID to the service. - promotionService.RequestHeader.expressBusinessId = businessId; - - // Update the budget for the promotion - Promotion promotion = new Promotion(); - promotion.id = promotionId; - Money newBudget = new Money(); - newBudget.microAmount = 2000000; - promotion.budget = newBudget; - - PromotionOperation operation = new PromotionOperation(); - operation.@operator = Operator.SET; - operation.operand = promotion; - - try { - Promotion[] updatedPromotions = promotionService.mutate( - new PromotionOperation[] { operation }); - - Console.WriteLine("Promotion ID {0} for business ID {1} now has budget micro " + - "amount {2}.", promotionId, businessId, - updatedPromotions[0].budget.microAmount); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update promotions.", ex); - } - } - } -} \ No newline at end of file diff --git a/examples/AdWords/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs b/examples/AdWords/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs deleted file mode 100644 index 06207c369e4..00000000000 --- a/examples/AdWords/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets all videos and images. To upload video, see - /// http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. - /// To upload image, run UploadImage.cs. - /// - /// Tags: MediaService.get - /// - public class GetAllVideosAndImages : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAllVideosAndImages codeExample = new GetAllVideosAndImages(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all videos and images. To upload video, see " + - "http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. To " + - "upload image, run UploadImage.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the MediaService. - MediaService mediaService = (MediaService) user.GetService( - AdWordsService.v201309.MediaService); - - // Create a selector. - Selector selector = new Selector(); - selector.fields = new string[] {"MediaId", "Width", "Height", "MimeType"}; - - // Set the filter. - Predicate predicate = new Predicate(); - predicate.@operator = PredicateOperator.IN; - predicate.field = "Type"; - predicate.values = new string[] {MediaMediaType.VIDEO.ToString(), - MediaMediaType.IMAGE.ToString()}; - - selector.predicates = new Predicate[] {predicate}; - - // Set selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - MediaPage page = new MediaPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - page = mediaService.get(selector); - - if (page != null && page.entries != null) { - int i = offset; - - foreach (Media media in page.entries) { - if (media is Video) { - Video video = (Video) media; - Console.WriteLine("{0}) Video with id \"{1}\" and name \"{2}\" was found.", - i, video.mediaId, video.name); - } else if (media is Image) { - Image image = (Image) media; - Dictionary dimensions = - CreateMediaDimensionMap(image.dimensions); - Console.WriteLine("{0}) Image with id '{1}', dimensions '{2}x{3}', and MIME type " + - "'{4}' was found.", i, image.mediaId, dimensions[MediaSize.FULL].width, - dimensions[MediaSize.FULL].height, image.mimeType); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of images and videos found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get images and videos.", ex); - } - } - - /// - /// Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - /// - /// The array of Media_Size_DimensionsMapEntry to be - /// converted into a dictionary. - /// A dictionary with key as MediaSize, and value as Dimensions. - /// - private Dictionary CreateMediaDimensionMap( - Media_Size_DimensionsMapEntry[] dimensions) { - Dictionary mediaMap = new Dictionary(); - foreach (Media_Size_DimensionsMapEntry dimension in dimensions) { - mediaMap.Add(dimension.key, dimension.value); - } - return mediaMap; - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Miscellaneous/UploadImage.cs b/examples/AdWords/CSharp/v201309/Miscellaneous/UploadImage.cs deleted file mode 100644 index b44ac5e2189..00000000000 --- a/examples/AdWords/CSharp/v201309/Miscellaneous/UploadImage.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example uploads an image. To get images, run GetAllVideosAndImages.cs. - /// - /// Tags: MediaService.upload - /// - public class UploadImage : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UploadImage codeExample = new UploadImage(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example uploads an image. To get images, run GetAllVideosAndImages.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the MediaService. - MediaService mediaService = (MediaService) user.GetService( - AdWordsService.v201309.MediaService); - - // Create the image. - Image image = new Image(); - image.data = MediaUtilities.GetAssetDataFromUrl("http://goo.gl/HJM3L"); - image.type = MediaMediaType.IMAGE; - - try { - // Upload the image. - Media[] result = mediaService.upload(new Media[] {image}); - - // Display the results. - if (result != null && result.Length > 0) { - Media newImage = result[0]; - Dictionary dimensions = - CreateMediaDimensionMap(newImage.dimensions); - Console.WriteLine("Image with id '{0}', dimensions '{1}x{2}', and MIME type '{3}'" + - " was uploaded.", newImage.mediaId, dimensions[MediaSize.FULL].width, - dimensions[MediaSize.FULL].height, newImage.mimeType); - } else { - Console.WriteLine("No images were uploaded."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to upload image.", ex); - } - } - - /// - /// Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - /// - /// The array of Media_Size_DimensionsMapEntry to be - /// converted into a dictionary. - /// A dictionary with key as MediaSize, and value as Dimensions. - /// - private Dictionary CreateMediaDimensionMap( - Media_Size_DimensionsMapEntry[] dimensions) { - Dictionary mediaMap = new Dictionary(); - foreach (Media_Size_DimensionsMapEntry dimension in dimensions) { - mediaMap.Add(dimension.key, dimension.value); - } - return mediaMap; - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Optimization/EstimateKeywordTraffic.cs b/examples/AdWords/CSharp/v201309/Optimization/EstimateKeywordTraffic.cs deleted file mode 100644 index 14cba2c2282..00000000000 --- a/examples/AdWords/CSharp/v201309/Optimization/EstimateKeywordTraffic.cs +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets keyword traffic estimates. - /// - /// Tags: TrafficEstimatorService.get - /// - public class EstimateKeywordTraffic : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - EstimateKeywordTraffic codeExample = new EstimateKeywordTraffic(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets keyword traffic estimates."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the TrafficEstimatorService. - TrafficEstimatorService trafficEstimatorService = (TrafficEstimatorService) user.GetService( - AdWordsService.v201309.TrafficEstimatorService); - - // Create keywords. Up to 2000 keywords can be passed in a single request. - Keyword keyword1 = new Keyword(); - keyword1.text = "mars cruise"; - keyword1.matchType = KeywordMatchType.BROAD; - - Keyword keyword2 = new Keyword(); - keyword2.text = "cheap cruise"; - keyword2.matchType = KeywordMatchType.PHRASE; - - Keyword keyword3 = new Keyword(); - keyword3.text = "cruise"; - keyword3.matchType = KeywordMatchType.EXACT; - - Keyword[] keywords = new Keyword[] {keyword1, keyword2, keyword3}; - - // Create a keyword estimate request for each keyword. - List keywordEstimateRequests = new List(); - - foreach (Keyword keyword in keywords) { - KeywordEstimateRequest keywordEstimateRequest = new KeywordEstimateRequest(); - keywordEstimateRequest.keyword = keyword; - keywordEstimateRequests.Add(keywordEstimateRequest); - } - - // Create negative keywords. - Keyword negativeKeyword1 = new Keyword(); - negativeKeyword1.text = "moon walk"; - negativeKeyword1.matchType = KeywordMatchType.BROAD; - - KeywordEstimateRequest negativeKeywordEstimateRequest = new KeywordEstimateRequest(); - negativeKeywordEstimateRequest.keyword = negativeKeyword1; - negativeKeywordEstimateRequest.isNegative = true; - keywordEstimateRequests.Add(negativeKeywordEstimateRequest); - - // Create ad group estimate requests. - AdGroupEstimateRequest adGroupEstimateRequest = new AdGroupEstimateRequest(); - adGroupEstimateRequest.keywordEstimateRequests = keywordEstimateRequests.ToArray(); - adGroupEstimateRequest.maxCpc = new Money(); - adGroupEstimateRequest.maxCpc.microAmount = 1000000; - - // Create campaign estimate requests. - CampaignEstimateRequest campaignEstimateRequest = new CampaignEstimateRequest(); - campaignEstimateRequest.adGroupEstimateRequests = new AdGroupEstimateRequest[] { - adGroupEstimateRequest}; - - // See http://code.google.com/apis/adwords/docs/appendix/countrycodes.html - // for a detailed list of country codes. - Location countryCriterion = new Location(); - countryCriterion.id = 2840; //US - - // See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - // for a detailed list of language codes. - Language languageCriterion = new Language(); - languageCriterion.id = 1000; //en - - campaignEstimateRequest.criteria = new Criterion[] {countryCriterion, languageCriterion}; - - // Create the selector. - TrafficEstimatorSelector selector = new TrafficEstimatorSelector(); - selector.campaignEstimateRequests = new CampaignEstimateRequest[] {campaignEstimateRequest}; - - try { - // Get traffic estimates. - TrafficEstimatorResult result = trafficEstimatorService.get(selector); - - // Display traffic estimates. - if (result != null && result.campaignEstimates != null && - result.campaignEstimates.Length > 0) { - CampaignEstimate campaignEstimate = result.campaignEstimates[0]; - if (campaignEstimate.adGroupEstimates != null && - campaignEstimate.adGroupEstimates.Length > 0) { - AdGroupEstimate adGroupEstimate = campaignEstimate.adGroupEstimates[0]; - - if (adGroupEstimate.keywordEstimates != null) { - for (int i = 0; i < adGroupEstimate.keywordEstimates.Length; i++) { - Keyword keyword = keywordEstimateRequests[i].keyword; - KeywordEstimate keywordEstimate = adGroupEstimate.keywordEstimates[i]; - - if (keywordEstimateRequests[i].isNegative) { - continue; - } - - // Find the mean of the min and max values. - long meanAverageCpc = (keywordEstimate.min.averageCpc.microAmount - + keywordEstimate.max.averageCpc.microAmount) / 2; - double meanAveragePosition = (keywordEstimate.min.averagePosition - + keywordEstimate.max.averagePosition) / 2; - float meanClicks = (keywordEstimate.min.clicksPerDay - + keywordEstimate.max.clicksPerDay) / 2; - long meanTotalCost = (keywordEstimate.min.totalCost.microAmount - + keywordEstimate.max.totalCost.microAmount) / 2; - - Console.WriteLine("Results for the keyword with text = '{0}' and match type = " + - "'{1}':", keyword.text, keyword.matchType); - Console.WriteLine(" Estimated average CPC: {0}", meanAverageCpc); - Console.WriteLine(" Estimated ad position: {0:0.00}", meanAveragePosition); - Console.WriteLine(" Estimated daily clicks: {0}", meanClicks); - Console.WriteLine(" Estimated daily cost: {0}", meanTotalCost); - } - } - } - } else { - Console.WriteLine("No traffic estimates were returned.\n"); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve traffic estimates.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Optimization/GetAdGroupBidSimulations.cs b/examples/AdWords/CSharp/v201309/Optimization/GetAdGroupBidSimulations.cs deleted file mode 100644 index beea298d33a..00000000000 --- a/examples/AdWords/CSharp/v201309/Optimization/GetAdGroupBidSimulations.cs +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets bid landscapes for an ad group. To get ad groups, - /// run GetAdGroups.cs. - /// - /// Tags: DataService.getAdGroupBidLandscape - /// - public class GetAdGroupBidSimulations : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAdGroupBidSimulations codeExample = new GetAdGroupBidSimulations(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets bid landscapes for an ad group. To get ad groups, run " + - "GetAdGroups.cs"; - } - } - - /// - /// Runs the specified user. - /// - /// The user. - /// Id of the ad group for which bid simulations are - /// retrieved. - public void Run(AdWordsUser user, long adGroupId) { - // Get the DataService. - DataService dataService = (DataService) user.GetService(AdWordsService.v201309.DataService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"AdGroupId", "LandscapeType", "LandscapeCurrent", "StartDate", - "EndDate", "Bid", "LocalClicks", "LocalCost", "MarginalCpc", "LocalImpressions"}; - - // Set the filters. - Predicate adGroupPredicate = new Predicate(); - adGroupPredicate.field = "AdGroupId"; - adGroupPredicate.@operator = PredicateOperator.IN; - adGroupPredicate.values = new string[] {adGroupId.ToString()}; - - selector.predicates = new Predicate[] {adGroupPredicate}; - - try { - // Get bid landscape for ad group. - AdGroupBidLandscapePage page = dataService.getAdGroupBidLandscape(selector); - if (page != null && page.entries != null && page.entries.Length > 0) { - foreach (AdGroupBidLandscape bidLandscape in page.entries) { - Console.WriteLine("Found ad group bid landscape with ad group id '{0}', type '{1}', " + - "current: '{2}', start date '{3}', end date '{4}', and landscape points", - bidLandscape.adGroupId, bidLandscape.type, bidLandscape.landscapeCurrent, - bidLandscape.startDate, bidLandscape.endDate); - foreach (BidLandscapeLandscapePoint point in bidLandscape.landscapePoints) { - Console.WriteLine("- bid: {0} => clicks: {1}, cost: {2}, marginalCpc: {3}, " + - "impressions: {4}", point.bid.microAmount, point.bid.microAmount, - point.clicks, point.cost.microAmount, point.marginalCpc.microAmount, - point.impressions); - } - } - } else { - Console.WriteLine("No ad group bid landscapes were found."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get ad group bid landscapes.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Optimization/GetKeywordBidSimulations.cs b/examples/AdWords/CSharp/v201309/Optimization/GetKeywordBidSimulations.cs deleted file mode 100644 index 8399c00ab1a..00000000000 --- a/examples/AdWords/CSharp/v201309/Optimization/GetKeywordBidSimulations.cs +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets a bid landscape for an ad group and a keyword. - /// To get ad groups, run GetAdGroups.cs. To get keywords, run - /// GetKeywords.cs. - /// - /// Tags: DataService.getCriterionBidLandscape - /// - public class GetKeywordBidSimulations : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetKeywordBidSimulations codeExample = new GetKeywordBidSimulations(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long keywordId = long.Parse("INSERT_KEYWORD_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, keywordId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets a bid landscape for an ad group and a keyword. " + - "To get ad groups, run GetAdGroups.cs. To get keywords, run GetKeywords.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group for which keyword bid - /// simulations are retrieved. - /// Id of the keyword for which bid simulations are - /// retrieved. - public void Run(AdWordsUser user, long adGroupId, long keywordId) { - // Get the DataService. - DataService dataService = (DataService) user.GetService(AdWordsService.v201309.DataService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"AdGroupId", "CriterionId", "StartDate", "EndDate", "Bid", - "LocalClicks", "LocalCost", "MarginalCpc", "LocalImpressions"}; - - // Create the filters. - Predicate adGroupPredicate = new Predicate(); - adGroupPredicate.field = "AdGroupId"; - adGroupPredicate.@operator = PredicateOperator.IN; - adGroupPredicate.values = new string[] {adGroupId.ToString()}; - - Predicate keywordPredicate = new Predicate(); - keywordPredicate.field = "CriterionId"; - keywordPredicate.@operator = PredicateOperator.IN; - keywordPredicate.values = new string[] {keywordId.ToString()}; - - selector.predicates = new Predicate[] {adGroupPredicate, keywordPredicate}; - - // Set selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - CriterionBidLandscapePage page = new CriterionBidLandscapePage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get bid landscape for keywords. - page = dataService.getCriterionBidLandscape(selector); - - // Display bid landscapes. - if (page != null && page.entries != null) { - int i = offset; - - foreach (CriterionBidLandscape bidLandscape in page.entries) { - Console.WriteLine("{0}) Found criterion bid landscape with ad group id '{1}', " + - "keyword id '{2}', start date '{3}', end date '{4}', and landscape points:", - i, bidLandscape.adGroupId, bidLandscape.criterionId, bidLandscape.startDate, - bidLandscape.endDate); - foreach (BidLandscapeLandscapePoint bidLandscapePoint in - bidLandscape.landscapePoints) { - Console.WriteLine("- bid: {0} => clicks: {1}, cost: {2}, marginalCpc: {3}, " + - "impressions: {4}\n", bidLandscapePoint.bid.microAmount, - bidLandscapePoint.clicks, bidLandscapePoint.cost.microAmount, - bidLandscapePoint.marginalCpc.microAmount, bidLandscapePoint.impressions); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of keyword bid landscapes found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve keyword bid landscapes.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Optimization/GetKeywordIdeas.cs b/examples/AdWords/CSharp/v201309/Optimization/GetKeywordIdeas.cs deleted file mode 100644 index fe8e2e421e2..00000000000 --- a/examples/AdWords/CSharp/v201309/Optimization/GetKeywordIdeas.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves keywords that are related to a given keyword. - /// - /// Tags: TargetingIdeaService.get - /// - public class GetKeywordIdeas : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetKeywordIdeas codeExample = new GetKeywordIdeas(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves keywords that are related to a given keyword."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the TargetingIdeaService. - TargetingIdeaService targetingIdeaService = - (TargetingIdeaService) user.GetService(AdWordsService.v201309.TargetingIdeaService); - - string keywordText = "mars cruise"; - - // Create selector. - TargetingIdeaSelector selector = new TargetingIdeaSelector(); - selector.requestType = RequestType.IDEAS; - selector.ideaType = IdeaType.KEYWORD; - selector.requestedAttributeTypes = new AttributeType[] { - AttributeType.KEYWORD_TEXT, - AttributeType.SEARCH_VOLUME, - AttributeType.CATEGORY_PRODUCTS_AND_SERVICES}; - - // Language setting (optional). - // The ID can be found in the documentation: - // https://developers.google.com/adwords/api/docs/appendix/languagecodes - // Note: As of v201302, only a single language parameter is allowed. - LanguageSearchParameter languageParameter = new LanguageSearchParameter(); - Language english = new Language(); - english.id = 1000; - languageParameter.languages = new Language[] {english}; - - // Create related to query search parameter. - RelatedToQuerySearchParameter relatedToQuerySearchParameter = - new RelatedToQuerySearchParameter(); - relatedToQuerySearchParameter.queries = new String[] {keywordText}; - selector.searchParameters = - new SearchParameter[] {relatedToQuerySearchParameter, languageParameter}; - - // Set selector paging (required for targeting idea service). - Paging paging = new Paging(); - paging.startIndex = 0; - paging.numberResults = 500; - selector.paging = paging; - - int offset = 0; - int pageSize = 500; - - TargetingIdeaPage page = new TargetingIdeaPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - // Get related keywords. - page = targetingIdeaService.get(selector); - - // Display related keywords. - if (page.entries != null && page.entries.Length > 0) { - int i = offset; - foreach (TargetingIdea targetingIdea in page.entries) { - string keyword = null; - string categories = null; - long averageMonthlySearches = 0; - - foreach (Type_AttributeMapEntry entry in targetingIdea.data) { - if (entry.key == AttributeType.KEYWORD_TEXT) { - keyword = (entry.value as StringAttribute).value; - } - if (entry.key == AttributeType.CATEGORY_PRODUCTS_AND_SERVICES) { - IntegerSetAttribute categorySet = entry.value as IntegerSetAttribute; - StringBuilder builder = new StringBuilder(); - if (categorySet.value != null) { - foreach (int value in categorySet.value) { - builder.AppendFormat("{0}, ", value); - } - categories = builder.ToString().Trim(new char[] {',', ' '}); - } - } - if (entry.key == AttributeType.SEARCH_VOLUME) { - averageMonthlySearches = (entry.value as LongAttribute).value; - } - } - Console.WriteLine("Keyword with text '{0}', and average monthly search volume " + - "'{1}' was found with categories: {2}", keyword, averageMonthlySearches, - categories); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of related keywords found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve related keywords.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Optimization/GetPlacementIdeas.cs b/examples/AdWords/CSharp/v201309/Optimization/GetPlacementIdeas.cs deleted file mode 100644 index 7b0462b0c67..00000000000 --- a/examples/AdWords/CSharp/v201309/Optimization/GetPlacementIdeas.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves urls that have content keywords related to a - /// given website. - /// - /// Tags: TargetingIdeaService.get - /// - public class GetPlacementIdeas : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetPlacementIdeas codeExample = new GetPlacementIdeas(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves urls that have content keywords related to a" + - " given website."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the TargetingIdeaService. - TargetingIdeaService targetingIdeaService = - (TargetingIdeaService) user.GetService(AdWordsService.v201309.TargetingIdeaService); - - // Create seed url. - string url = "mars.google.com"; - - // Create the selector. - TargetingIdeaSelector selector = new TargetingIdeaSelector(); - selector.requestType = RequestType.IDEAS; - selector.ideaType = IdeaType.PLACEMENT; - selector.requestedAttributeTypes = new AttributeType[] {AttributeType.CRITERION, - AttributeType.PLACEMENT_TYPE}; - - // Create related to url search parameter. - RelatedToUrlSearchParameter relatedToUrlSearchParameter = new RelatedToUrlSearchParameter(); - relatedToUrlSearchParameter.urls = new string[] {url}; - relatedToUrlSearchParameter.includeSubUrls = false; - selector.searchParameters = new SearchParameter[] {relatedToUrlSearchParameter}; - - // Set selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - TargetingIdeaPage page = new TargetingIdeaPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get placement ideas. - page = targetingIdeaService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - - foreach (TargetingIdea idea in page.entries) { - foreach (Type_AttributeMapEntry entry in idea.data) { - if (entry.key == AttributeType.CRITERION) { - CriterionAttribute placementAttribute = entry.value as CriterionAttribute; - Placement placement = (Placement) placementAttribute.value; - Console.WriteLine("Related placement urls were found at '{0}'.", - (placementAttribute.value as Placement).url); - } - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of related placements found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve related placements.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Remarketing/AddAudience.cs b/examples/AdWords/CSharp/v201309/Remarketing/AddAudience.cs deleted file mode 100644 index c9a9c0ed1db..00000000000 --- a/examples/AdWords/CSharp/v201309/Remarketing/AddAudience.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to create a user list a.k.a. audience. - /// - /// Tags: UserListService.mutate - /// - public class AddAudience : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAudience codeExample = new AddAudience(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create a user list a.k.a. audience."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the UserListService. - AdwordsUserListService userListService = - (AdwordsUserListService) user.GetService(AdWordsService.v201309.AdwordsUserListService); - - // Get the ConversionTrackerService. - ConversionTrackerService conversionTrackerService = - (ConversionTrackerService)user.GetService(AdWordsService.v201309. - ConversionTrackerService); - - BasicUserList userList = new BasicUserList(); - userList.name = "Mars cruise customers #" + ExampleUtilities.GetRandomString(); - userList.description = "A list of mars cruise customers in the last year."; - userList.status = UserListMembershipStatus.OPEN; - userList.membershipLifeSpan = 365; - - UserListConversionType conversionType = new UserListConversionType(); - conversionType.name = userList.name; - userList.conversionTypes = new UserListConversionType[] {conversionType}; - - // Optional: Set the user list status. - userList.status = UserListMembershipStatus.OPEN; - - // Create the operation. - UserListOperation operation = new UserListOperation(); - operation.operand = userList; - operation.@operator = Operator.ADD; - - try { - // Add the user list. - UserListReturnValue retval = userListService.mutate(new UserListOperation[] {operation}); - - UserList[] userLists = null; - if (retval != null && retval.value != null) { - userLists = retval.value; - // Get all conversion snippets - List conversionIds = new List(); - foreach (BasicUserList newUserList in userLists) { - if (newUserList.conversionTypes != null) { - foreach (UserListConversionType newConversionType in newUserList.conversionTypes) { - conversionIds.Add(newConversionType.id.ToString()); - } - } - } - - Dictionary conversionsMap = - new Dictionary(); - - if (conversionIds.Count > 0) { - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id"}; - - Predicate conversionTypePredicate = new Predicate(); - conversionTypePredicate.field = "Id"; - conversionTypePredicate.@operator = PredicateOperator.IN; - conversionTypePredicate.values = conversionIds.ToArray(); - selector.predicates = new Predicate[] {conversionTypePredicate}; - - // Get all conversion trackers. - ConversionTrackerPage page = conversionTrackerService.get(selector); - - if (page != null && page.entries != null) { - foreach (ConversionTracker tracker in page.entries) { - conversionsMap[tracker.id] = tracker; - } - } - } - - // Display the results. - foreach (BasicUserList newUserList in userLists) { - Console.WriteLine("User list with name '{0}' and id '{1}' was added.", - newUserList.name, newUserList.id); - - // Display user list associated conversion code snippets. - if (newUserList.conversionTypes != null) { - foreach (UserListConversionType userListConversionType in - newUserList.conversionTypes) { - if (conversionsMap.ContainsKey(userListConversionType.id)) { - AdWordsConversionTracker conversionTracker = - (AdWordsConversionTracker) conversionsMap[userListConversionType.id]; - Console.WriteLine("Conversion type code snippet associated to the list:\n{0}\n", - conversionTracker.snippet); - } else { - throw new Exception("Failed to associate conversion type code snippet."); - } - } - } - } - } else { - Console.WriteLine("No user lists (a.k.a. audiences) were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add user lists (a.k.a. audiences).", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Remarketing/AddConversionTracker.cs b/examples/AdWords/CSharp/v201309/Remarketing/AddConversionTracker.cs deleted file mode 100644 index ae939e71b0d..00000000000 --- a/examples/AdWords/CSharp/v201309/Remarketing/AddConversionTracker.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds an AdWords conversion tracker. - /// - /// Tags: ConversionTrackerService.mutate - /// - public class AddConversionTracker : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddConversionTracker codeExample = new AddConversionTracker(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds an AdWords conversion tracker."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ConversionTrackerService. - ConversionTrackerService conversionTrackerService = - (ConversionTrackerService)user.GetService(AdWordsService.v201309. - ConversionTrackerService); - - // Create Adwords conversion tracker. - AdWordsConversionTracker conversionTracker = new AdWordsConversionTracker(); - conversionTracker.name = "Earth to Mars Cruises Conversion #" + - ExampleUtilities.GetRandomString(); - conversionTracker.category = ConversionTrackerCategory.DEFAULT; - conversionTracker.markupLanguage = AdWordsConversionTrackerMarkupLanguage.HTML; - conversionTracker.textFormat = AdWordsConversionTrackerTextFormat.HIDDEN; - - // Set optional fields. - conversionTracker.status = ConversionTrackerStatus.ENABLED; - conversionTracker.viewthroughLookbackWindow = 15; - conversionTracker.isProductAdsChargeable = true; - conversionTracker.productAdsChargeableConversionWindow = 15; - conversionTracker.conversionPageLanguage = "en"; - conversionTracker.backgroundColor = "#0000FF"; - conversionTracker.userRevenueValue = "someJavascriptVariable"; - - // Create the operation. - ConversionTrackerOperation operation = new ConversionTrackerOperation(); - operation.@operator = Operator.ADD; - operation.operand = conversionTracker; - - try { - // Add conversion tracker. - ConversionTrackerReturnValue retval = conversionTrackerService.mutate( - new ConversionTrackerOperation[] {operation}); - - // Display the results. - if (retval != null && retval.value != null && retval.value.Length > 0) { - ConversionTracker newConversionTracker = retval.value[0]; - Console.WriteLine("Conversion tracker with id '{0}', name '{1}', status '{2}', " + - "category '{3}' was added.", newConversionTracker.id, newConversionTracker.name, - newConversionTracker.status, newConversionTracker.category); - } else { - Console.WriteLine("No conversion trackers were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add conversion tracker.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReport.cs b/examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReport.cs deleted file mode 100644 index ab5c7dbe9fa..00000000000 --- a/examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReport.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util.Reports; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets and downloads a criteria Ad Hoc report from an XML - /// report definition. - /// - public class DownloadCriteriaReport : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DownloadCriteriaReport codeExample = new DownloadCriteriaReport(); - Console.WriteLine(codeExample.Description); - try { - string fileName = "INSERT_FILE_NAME_HERE"; - codeExample.Run(new AdWordsUser(), fileName); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets and downloads a criteria Ad Hoc report from an XML report " + - "definition."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The file to which the report is downloaded. - /// - public void Run(AdWordsUser user, string fileName) { - ReportDefinition definition = new ReportDefinition(); - - definition.reportName = "Last 7 days CRITERIA_PERFORMANCE_REPORT"; - definition.reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT; - definition.downloadFormat = DownloadFormat.GZIPPED_CSV; - definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS; - - // Create selector. - Selector selector = new Selector(); - selector.fields = new string[] {"CampaignId", "AdGroupId", "Id", "CriteriaType", "Criteria", - "CriteriaDestinationUrl", "Clicks", "Impressions", "Cost"}; - - Predicate predicate = new Predicate(); - predicate.field = "Status"; - predicate.@operator = PredicateOperator.IN; - predicate.values = new string[] {"ACTIVE", "PAUSED"}; - selector.predicates = new Predicate[] {predicate}; - - definition.selector = selector; - definition.includeZeroImpressions = true; - - string filePath = ExampleUtilities.GetHomeDir() + Path.DirectorySeparatorChar + fileName; - - try { - // If you know that your report is small enough to fit in memory, then - // you can instead use - // ReportUtilities utilities = new ReportUtilities(user); - // utilities.ReportVersion = "v201309"; - // ClientReport report = utilities.GetClientReport(definition); - // - // // Get the text report directly if you requested a text format - // // (e.g. xml) - // string reportText = report.Text; - // - // // Get the binary report if you requested a binary format - // // (e.g. gzip) - // byte[] reportBytes = report.Contents; - // - // // Deflate a zipped binary report for further processing. - // string deflatedReportText = Encoding.UTF8.GetString( - // MediaUtilities.DeflateGZipData(report.Contents)); - ReportUtilities utilities = new ReportUtilities(user); - utilities.ReportVersion = "v201309"; - utilities.DownloadClientReport(definition, filePath); - Console.WriteLine("Report was downloaded to '{0}'.", filePath); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to download report.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs b/examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs deleted file mode 100644 index 1bb76a0ebe0..00000000000 --- a/examples/AdWords/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util.Reports; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets and downloads a criteria Ad Hoc report from an AWQL - /// query. See https://developers.google.com/adwords/api/docs/guides/awql for - /// AWQL documentation. - /// - public class DownloadCriteriaReportWithAwql : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DownloadCriteriaReportWithAwql codeExample = new DownloadCriteriaReportWithAwql(); - Console.WriteLine(codeExample.Description); - try { - string fileName = "INSERT_FILE_NAME_HERE"; - codeExample.Run(new AdWordsUser(), fileName); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets and downloads a criteria Ad Hoc report from an AWQL " + - "query. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL " + - "documentation."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The file to which the report is downloaded. - /// - public void Run(AdWordsUser user, string fileName) { - string query = "SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, Impressions, " + - "Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT WHERE Status IN [ACTIVE, PAUSED] " + - "DURING LAST_7_DAYS"; - - string filePath = ExampleUtilities.GetHomeDir() + Path.DirectorySeparatorChar + fileName; - - try { - // If you know that your report is small enough to fit in memory, then - // you can instead use - // ReportUtilities utilities = new ReportUtilities(user); - // utilities.ReportVersion = "v201309"; - // ClientReport report = utilities.GetClientReport(query, format); - // - // // Get the text report directly if you requested a text format - // // (e.g. xml) - // string reportText = report.Text; - // - // // Get the binary report if you requested a binary format - // // (e.g. gzip) - // byte[] reportBytes = report.Contents; - // - // // Deflate a zipped binary report for further processing. - // string deflatedReportText = Encoding.UTF8.GetString( - // MediaUtilities.DeflateGZipData(report.Contents)); - ReportUtilities utilities = new ReportUtilities(user); - utilities.ReportVersion = "v201309"; - utilities.DownloadClientReport(query, DownloadFormat.GZIPPED_CSV.ToString(), filePath); - Console.WriteLine("Report was downloaded to '{0}'.", filePath); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to download report.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Reporting/GetReportFields.cs b/examples/AdWords/CSharp/v201309/Reporting/GetReportFields.cs deleted file mode 100644 index 9cb43bdbe4f..00000000000 --- a/examples/AdWords/CSharp/v201309/Reporting/GetReportFields.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets report fields. - /// - /// Tags: ReportDefinitionService.getReportFields - /// - public class GetReportFields : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetReportFields codeExample = new GetReportFields(); - Console.WriteLine(codeExample.Description); - try { - ReportDefinitionReportType reportType = (ReportDefinitionReportType) Enum.Parse( - typeof(ReportDefinitionReportType), "INSERT_REPORT_TYPE_HERE"); - codeExample.Run(new AdWordsUser(), reportType); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets report fields."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The report type to be run. - public void Run(AdWordsUser user, ReportDefinitionReportType reportType) { - // Get the ReportDefinitionService. - ReportDefinitionService reportDefinitionService = (ReportDefinitionService) user.GetService( - AdWordsService.v201309.ReportDefinitionService); - - try { - // Get the report fields. - ReportDefinitionField[] reportDefinitionFields = reportDefinitionService.getReportFields( - reportType); - if (reportDefinitionFields != null && reportDefinitionFields.Length > 0) { - // Display report fields. - Console.WriteLine("The report type '{0}' contains the following fields:", reportType); - - foreach (ReportDefinitionField reportDefinitionField in reportDefinitionFields) { - Console.Write("- {0} ({1})", reportDefinitionField.fieldName, - reportDefinitionField.fieldType); - if (reportDefinitionField.enumValues != null) { - Console.Write(" := [{0}]", String.Join(", ", reportDefinitionField.enumValues)); - } - Console.WriteLine(); - } - } else { - Console.WriteLine("This report type has no fields."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve fields for report type.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs b/examples/AdWords/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs deleted file mode 100644 index 7abd7d18d28..00000000000 --- a/examples/AdWords/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds various types of targeting criteria to a campaign. - /// To get a list of campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignCriterionService.mutate - /// - public class AddCampaignTargetingCriteria : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddCampaignTargetingCriteria codeExample = new AddCampaignTargetingCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds various types of targeting criteria to a campaign. To " + - "get a list of campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to which targeting criteria - /// are added. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignCriterionService. - CampaignCriterionService campaignCriterionService = - (CampaignCriterionService) user.GetService( - AdWordsService.v201309.CampaignCriterionService); - - // Create language criteria. - // See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - // for a detailed list of language codes. - Language language1 = new Language(); - language1.id = 1002; // French - CampaignCriterion languageCriterion1 = new CampaignCriterion(); - languageCriterion1.campaignId = campaignId; - languageCriterion1.criterion = language1; - - Language language2 = new Language(); - language2.id = 1005; // Japanese - CampaignCriterion languageCriterion2 = new CampaignCriterion(); - languageCriterion2.campaignId = campaignId; - languageCriterion2.criterion = language2; - - // Create location criteria. - // See http://code.google.com/apis/adwords/docs/appendix/countrycodes.html - // for a detailed list of country codes. - Location location1 = new Location(); - location1.id = 2840; // USA - CampaignCriterion locationCriterion1 = new CampaignCriterion(); - locationCriterion1.campaignId = campaignId; - locationCriterion1.criterion = location1; - - Location location2 = new Location(); - location2.id = 2392; // Japan - CampaignCriterion locationCriterion2 = new CampaignCriterion(); - locationCriterion2.campaignId = campaignId; - locationCriterion2.criterion = location2; - - // Add a negative campaign keyword. - NegativeCampaignCriterion negativeCriterion = new NegativeCampaignCriterion(); - negativeCriterion.campaignId = campaignId; - - Keyword keyword = new Keyword(); - keyword.matchType = KeywordMatchType.BROAD; - keyword.text = "jupiter cruise"; - - negativeCriterion.criterion = keyword; - - CampaignCriterion[] criteria = new CampaignCriterion[] {languageCriterion1, - languageCriterion2, locationCriterion1, locationCriterion2, negativeCriterion}; - - List operations = new List(); - - foreach (CampaignCriterion criterion in criteria) { - CampaignCriterionOperation operation = new CampaignCriterionOperation(); - operation.@operator = Operator.ADD; - operation.operand = criterion; - operations.Add(operation); - } - - try { - // Set the campaign targets. - CampaignCriterionReturnValue retVal = campaignCriterionService.mutate(operations.ToArray()); - - if (retVal != null && retVal.value != null) { - // Display campaign targets. - foreach (CampaignCriterion criterion in retVal.value) { - Console.WriteLine("Campaign criteria of type '{0}' was set to campaign with" + - " id = '{1}'.", criterion.criterion.CriterionType, criterion.campaignId); - } - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to set Campaign criteria.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs b/examples/AdWords/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs deleted file mode 100644 index 35354b997c3..00000000000 --- a/examples/AdWords/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets all targeting criteria for a campaign. To set - /// campaign targeting criteria, run AddCampaignTargetingCriteria.cs. To get - /// campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignCriterionService.get - /// - public class GetCampaignTargetingCriteria : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetCampaignTargetingCriteria codeExample = new GetCampaignTargetingCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all targeting criteria for a campaign. To set campaign " + - "targeting criteria, run AddCampaignTargetingCriteria.cs. To get campaigns, run " + - "GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign from which targeting - /// criteria are retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignCriterionService. - CampaignCriterionService campaignCriterionService = - (CampaignCriterionService) user.GetService( - AdWordsService.v201309.CampaignCriterionService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "CriteriaType", "CampaignId"}; - - // Set the filters. - Predicate predicate = new Predicate(); - predicate.field = "CampaignId"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] {campaignId.ToString()}; - - selector.predicates = new Predicate[] {predicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - CampaignCriterionPage page = new CampaignCriterionPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get all campaign targets. - page = campaignCriterionService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (CampaignCriterion campaignCriterion in page.entries) { - string negative = (campaignCriterion is NegativeCampaignCriterion) ? "Negative " : ""; - Console.WriteLine("{0}) {1}Campaign criterion with id = '{2}' and Type = {3} was " + - " found for campaign id '{4}'", i, negative, campaignCriterion.criterion.id, - campaignCriterion.criterion.type, campaignCriterion.campaignId); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of campaign targeting criteria found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get campaign targeting criteria.", ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs b/examples/AdWords/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs deleted file mode 100644 index f384f9bc0ac..00000000000 --- a/examples/AdWords/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to retrieve all carriers and languages - /// available for targeting. - /// - /// Tags: ConstantDataService.getCarrierCriterion - /// Tags: ConstantDataService.getLanguageCriterion - /// - public class GetTargetableLanguagesAndCarriers : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetTargetableLanguagesAndCarriers codeExample = new GetTargetableLanguagesAndCarriers(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve all carriers and languages " + - "available for targeting."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ConstantDataService. - ConstantDataService constantDataService = (ConstantDataService) user.GetService( - AdWordsService.v201309.ConstantDataService); - - try { - // Get all carriers. - Carrier[] carriers = constantDataService.getCarrierCriterion(); - - // Display the results. - if (carriers != null) { - foreach (Carrier carrier in carriers) { - Console.WriteLine("Carrier name is '{0}', ID is {1} and country code is '{2}'.", - carrier.name, carrier.id, carrier.countryCode); - } - } else { - Console.WriteLine("No carriers were retrieved."); - } - - // Get all languages. - Language[] languages = constantDataService.getLanguageCriterion(); - - // Display the results. - if (languages != null) { - foreach (Language language in languages) { - Console.WriteLine("Language name is '{0}', ID is {1} and code is '{2}'.", - language.name, language.id, language.code); - } - } else { - Console.WriteLine("No languages were found."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get targetable carriers and languages.", - ex); - } - } - } -} diff --git a/examples/AdWords/CSharp/v201309/Targeting/LookupLocation.cs b/examples/AdWords/CSharp/v201309/Targeting/LookupLocation.cs deleted file mode 100644 index a3c320738a4..00000000000 --- a/examples/AdWords/CSharp/v201309/Targeting/LookupLocation.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets location criteria by name. - /// - /// Tags: LocationCriterionService.get - /// - public class LookupLocation : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - LookupLocation codeExample = new LookupLocation(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets location criteria by name."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the LocationCriterionService. - LocationCriterionService locationCriterionService = - (LocationCriterionService) user.GetService(AdWordsService.v201309. - LocationCriterionService); - - string[] locationNames = new string[] {"Paris", "Quebec", "Spain", "Deutschland"}; - - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "LocationName", "CanonicalName", "DisplayType", - "ParentLocations", "Reach", "TargetingStatus"}; - - // Location names must match exactly, only EQUALS and IN are supported. - Predicate predicate1 = new Predicate(); - predicate1.field = "LocationName"; - predicate1.@operator = PredicateOperator.IN; - predicate1.values = locationNames; - - // Set the locale of the returned location names. - Predicate predicate2 = new Predicate(); - predicate2.field = "Locale"; - predicate2.@operator = PredicateOperator.EQUALS; - predicate2.values = new string[] {"en"}; - - selector.predicates = new Predicate[] {predicate1, predicate2}; - - try { - // Make the get request. - LocationCriterion[] locationCriteria = locationCriterionService.get(selector); - - // Display the resulting location criteria. - foreach (LocationCriterion locationCriterion in locationCriteria) { - string parentLocations = ""; - if (locationCriterion.location != null && - locationCriterion.location.parentLocations != null) { - foreach (Location location in locationCriterion.location.parentLocations) { - parentLocations += GetLocationString(location) + ", "; - } - parentLocations.TrimEnd(',', ' '); - } else { - parentLocations = "N/A"; - } - Console.WriteLine("The search term '{0}' returned the location '{1}' of type '{2}' " + - "with parent locations '{3}', reach '{4}' and targeting status '{5}.", - locationCriterion.searchTerm, locationCriterion.location.locationName, - locationCriterion.location.displayType, parentLocations, locationCriterion.reach, - locationCriterion.location.targetingStatus); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get location criteria.", ex); - } - } - - /// - /// Gets a string representation for a location. - /// - /// The location - /// The string representation - public string GetLocationString(Location location) { - return string.Format("{0} ({1})", location.locationName, location.displayType); - } - } -} diff --git a/examples/AdWords/CSharp/v201402/BasicOperations/DeleteAdGroup.cs b/examples/AdWords/CSharp/v201402/BasicOperations/DeleteAdGroup.cs index ecdec8a25db..f32594b02de 100644 --- a/examples/AdWords/CSharp/v201402/BasicOperations/DeleteAdGroup.cs +++ b/examples/AdWords/CSharp/v201402/BasicOperations/DeleteAdGroup.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long adGroupId) { // Create ad group with DELETED status. AdGroup adGroup = new AdGroup(); adGroup.id = adGroupId; - - // When deleting an ad group, rename it to avoid name collisions with new - // adgroups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString(); adGroup.status = AdGroupStatus.DELETED; // Create the operation. diff --git a/examples/AdWords/CSharp/v201402/BasicOperations/DeleteCampaign.cs b/examples/AdWords/CSharp/v201402/BasicOperations/DeleteCampaign.cs index 05f1b58c6f0..c6fbd6c409d 100644 --- a/examples/AdWords/CSharp/v201402/BasicOperations/DeleteCampaign.cs +++ b/examples/AdWords/CSharp/v201402/BasicOperations/DeleteCampaign.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long campaignId) { // Create campaign with DELETED status. Campaign campaign = new Campaign(); campaign.id = campaignId; - - // When deleting a campaign, rename it to avoid name collisions with new - // campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString(); campaign.status = CampaignStatus.DELETED; // Create the operation. diff --git a/examples/AdWords/CSharp/v201406/BasicOperations/RemoveAdGroup.cs b/examples/AdWords/CSharp/v201406/BasicOperations/RemoveAdGroup.cs index 29ea835c342..1d6a8876a08 100644 --- a/examples/AdWords/CSharp/v201406/BasicOperations/RemoveAdGroup.cs +++ b/examples/AdWords/CSharp/v201406/BasicOperations/RemoveAdGroup.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long adGroupId) { // Create ad group with REMOVED status. AdGroup adGroup = new AdGroup(); adGroup.id = adGroupId; - - // When deleting an ad group, rename it to avoid name collisions with new - // adgroups. - adGroup.name = "Removed AdGroup - " + ExampleUtilities.GetRandomString(); adGroup.status = AdGroupStatus.REMOVED; // Create the operation. diff --git a/examples/AdWords/CSharp/v201406/BasicOperations/RemoveCampaign.cs b/examples/AdWords/CSharp/v201406/BasicOperations/RemoveCampaign.cs index e6a194bc105..73acf6c4358 100644 --- a/examples/AdWords/CSharp/v201406/BasicOperations/RemoveCampaign.cs +++ b/examples/AdWords/CSharp/v201406/BasicOperations/RemoveCampaign.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long campaignId) { // Create campaign with REMOVED status. Campaign campaign = new Campaign(); campaign.id = campaignId; - - // When removing a campaign, rename it to avoid name collisions with new - // campaigns. - campaign.name = "Removed Campaign - " + ExampleUtilities.GetRandomString(); campaign.status = CampaignStatus.REMOVED; // Create the operation. diff --git a/examples/AdWords/Vb/AdWords.Examples.VB.vbproj b/examples/AdWords/Vb/AdWords.Examples.VB.vbproj index 7b13953257f..4942bb517a5 100644 --- a/examples/AdWords/Vb/AdWords.Examples.VB.vbproj +++ b/examples/AdWords/Vb/AdWords.Examples.VB.vbproj @@ -76,63 +76,6 @@ --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/AdWords/Vb/Properties/AssemblyInfo.vb b/examples/AdWords/Vb/Properties/AssemblyInfo.vb index d41f2f60f15..aea91f5571a 100644 --- a/examples/AdWords/Vb/Properties/AssemblyInfo.vb +++ b/examples/AdWords/Vb/Properties/AssemblyInfo.vb @@ -23,22 +23,22 @@ Imports System.Runtime.InteropServices ' associated with an assembly. - - - + "how to AdWords API using the client library.")> + + + ' Setting ComVisible to false makes the types in this assembly not visible ' to COM components. If you need to access a type in this assembly from ' COM, set the ComVisible attribute to true on that type. - + ' The following GUID is for the ID of the typelib if this project is exposed to COM - + - - - + + + - - + + \ No newline at end of file diff --git a/examples/AdWords/Vb/v201309/AccountManagement/CreateAccount.vb b/examples/AdWords/Vb/v201309/AccountManagement/CreateAccount.vb deleted file mode 100644 index 5d63dacb4b7..00000000000 --- a/examples/AdWords/Vb/v201309/AccountManagement/CreateAccount.vb +++ /dev/null @@ -1,189 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Text - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to create an account. Note by default, - ''' this account will only be accessible via its parent MCC. - ''' - ''' Tags: ManagedCustomerService.mutate - ''' - Public Class CreateAccount - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New CreateAccount - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to create an account. Note by default," & _ - " this account will only be accessible via its parent MCC." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the ManagedCustomerService. - Dim managedCustomerService As ManagedCustomerService = user.GetService( _ - AdWordsService.v201309.ManagedCustomerService) - - ' Create account. - Dim customer As New ManagedCustomer() - customer.name = "Customer created with ManagedCustomerService on " & _ - New DateTime().ToString() - customer.currencyCode = "EUR" - customer.dateTimeZone = "Europe/London" - - ' Create operations. - Dim operation As New ManagedCustomerOperation() - operation.operand = customer - operation.operator = [Operator].ADD - Try - Dim operations As ManagedCustomerOperation() = New ManagedCustomerOperation() {operation} - ' Add account. - Dim result As ManagedCustomerReturnValue = managedCustomerService.mutate(operations) - - ' Display accounts. - If (Not result.value Is Nothing) AndAlso (result.value.Length > 0) Then - Dim customerResult As ManagedCustomer = result.value(0) - Console.WriteLine("Account with customer ID '{0}' was created.", _ - customerResult.customerId) - Else - Console.WriteLine("No accounts were created.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create accounts.", ex) - End Try - End Sub - End Class - - - ''' - '''Example implementation of a node that would exist in an account tree. - ''' - Class ManagedCustomerTreeNode - ''' - ''' The parent node. - ''' - Private _parentNode As ManagedCustomerTreeNode - - ''' - ''' The account associated with this node. - ''' - Private _account As ManagedCustomer - - ''' - ''' The list of child accounts. - ''' - Private _childAccounts As New List(Of ManagedCustomerTreeNode) - - ''' - ''' Gets or sets the parent node. - ''' - Public Property ParentNode() As ManagedCustomerTreeNode - Get - Return _parentNode - End Get - Set(ByVal value As ManagedCustomerTreeNode) - _parentNode = value - End Set - End Property - - - ''' - ''' Gets or sets the account. - ''' - Public Property Account() As ManagedCustomer - Get - Return _account - End Get - Set(ByVal value As ManagedCustomer) - _account = value - End Set - End Property - - ''' - ''' Gets or sets the child accounts. - ''' - Public Property ChildAccounts() As List(Of ManagedCustomerTreeNode) - Get - Return _childAccounts - End Get - Set(ByVal value As List(Of ManagedCustomerTreeNode)) - _childAccounts = value - End Set - End Property - - ''' - ''' Returns a that represents this instance. - ''' - ''' - ''' A that represents this instance. - ''' - Public Overrides Function ToString() As String - Dim login As String = "(no login)" - If (Not String.IsNullOrEmpty(_account.login)) Then - login = _account.login - End If - Return String.Format("{0}, {1}, {2}", login, _account.customerId, _account.name) - End Function - - ''' - ''' Returns a string representation of the current level of the tree and - ''' recursively returns the string representation of the levels below it. - ''' - ''' The depth of the node. - ''' The String Builder containing the tree - ''' representation. - ''' The tree string representation. - Public Function ToTreeString(ByVal depth As Integer, ByVal sb As StringBuilder) As StringBuilder - For i As Integer = 0 To depth * 2 - sb.Append("-") - Next - sb.Append(Me) - sb.Append("\n") - For Each childAccount As ManagedCustomerTreeNode In _childAccounts - childAccount.ToTreeString(depth + 1, sb) - Next - Return sb - End Function - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/AccountManagement/GetAccountAlerts.vb b/examples/AdWords/Vb/v201309/AccountManagement/GetAccountAlerts.vb deleted file mode 100644 index 3c6cce0df4c..00000000000 --- a/examples/AdWords/Vb/v201309/AccountManagement/GetAccountAlerts.vb +++ /dev/null @@ -1,126 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets all alerts for all clients of an MCC account. - ''' The effective user (ClientCustomerId or AuthToken) must be an MCC user - ''' to get results. This code example won't work with Test Accounts. See - ''' https://developers.google.com/adwords/api/docs/test-accounts. - ''' - ''' Tags: AlertService.get - ''' - Public Class GetAccountAlerts - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAccountAlerts - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets all alerts for all clients of an MCC account. The " & _ - "effective user (ClientCustomerId or AuthToken) must be an MCC user to get " & _ - "results. This code example won't work with Test Accounts. See " & _ - "https://developers.google.com/adwords/api/docs/test-accounts" - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the AlertService. - Dim alertService As AlertService = user.GetService(AdWordsService.v201309.AlertService) - - ' Create the selector. - Dim selector As New AlertSelector - - ' Create the alert query. - Dim query As New AlertQuery - query.filterSpec = FilterSpec.ALL - query.clientSpec = ClientSpec.ALL - query.triggerTimeSpec = TriggerTimeSpec.ALL_TIME - query.severities = New AlertSeverity() {AlertSeverity.GREEN, AlertSeverity.YELLOW, _ - AlertSeverity.RED} - - ' Enter all possible values of AlertType to get all alerts. If you are - ' interested only in specific alert types, then you may also do it as - ' follows: - ' query.types = new AlertType() {AlertType.CAMPAIGN_ENDING, - ' AlertType.CAMPAIGN_ENDED} - query.types = [Enum].GetValues(GetType(AlertType)) - selector.query = query - - ' Set paging for selector. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AlertPage - - Try - Do - ' Get account alerts. - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - page = alertService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each alert As Alert In page.entries - Console.WriteLine("{0}) Customer Id is {1:###-###-####}, Alert type is '{2}', " & _ - "Severity is {3}", (i + 1), alert.clientCustomerId, alert.alertType, _ - alert.alertSeverity) - For j As Integer = 0 To alert.details.Length - 1 - Console.WriteLine(" - Triggered at {0}", alert.details(j).triggerTime) - Next j - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of alerts found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve alerts.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/AccountManagement/GetAccountChanges.vb b/examples/AdWords/Vb/v201309/AccountManagement/GetAccountChanges.vb deleted file mode 100644 index f8dc457353b..00000000000 --- a/examples/AdWords/Vb/v201309/AccountManagement/GetAccountChanges.vb +++ /dev/null @@ -1,183 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Text - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets the changes in the account during the last 24 - ''' hours. - ''' - ''' Tags: CustomerSyncService.get - ''' - Public Class GetAccountChanges - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAccountChanges - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets the changes in the account during the last 24 hours." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the CustomerSyncService. - Dim customerSyncService As CustomerSyncService = user.GetService( _ - AdWordsService.v201309.CustomerSyncService) - - ' The date time string should be of the form yyyyMMdd HHmmss zzz. - Dim minDateTime As String = (DateTime.Now.AddDays(-1).ToUniversalTime.ToString( _ - "yyyyMMdd HHmmss") & " UTC") - Dim maxDateTime As String = (DateTime.Now.ToUniversalTime.ToString("yyyyMMdd HHmmss") & _ - " UTC") - - ' Create date time range. - Dim dateTimeRange As New DateTimeRange - dateTimeRange.min = minDateTime - dateTimeRange.max = maxDateTime - - Try - ' Create the selector. - Dim selector As New CustomerSyncSelector - selector.dateTimeRange = dateTimeRange - selector.campaignIds = GetAllCampaignIds(user) - - ' Get all account changes for campaign. - Dim accountChanges As CustomerChangeData = customerSyncService.get(selector) - - ' Display the changes. - If ((Not accountChanges Is Nothing) AndAlso _ - (Not accountChanges.changedCampaigns Is Nothing)) Then - Console.WriteLine("Displaying changes up to: {0}", accountChanges.lastChangeTimestamp) - - For Each campaignChanges As CampaignChangeData In accountChanges.changedCampaigns - Console.WriteLine("Campaign with id ""{0}"" was changed:", campaignChanges.campaignId) - Console.WriteLine(" Campaign changed status: {0}", _ - campaignChanges.campaignChangeStatus) - If (campaignChanges.campaignChangeStatus <> ChangeStatus.NEW) Then - Console.WriteLine(" Added ad extensions: {0}", _ - GetFormattedList(campaignChanges.addedAdExtensions)) - Console.WriteLine(" Added campaign criteria: {0}", _ - GetFormattedList(campaignChanges.addedCampaignCriteria)) - If (campaignChanges.campaignTargetingChanged) Then - Console.WriteLine(" Added campaign targeting: yes") - Else - Console.WriteLine(" Added campaign targeting: no") - End If - - Console.WriteLine(" Deleted ad extensions: {0}", _ - GetFormattedList(campaignChanges.deletedAdExtensions)) - Console.WriteLine(" Deleted campaign criteria: {0}", _ - GetFormattedList(campaignChanges.deletedCampaignCriteria)) - - If (Not campaignChanges.changedAdGroups Is Nothing) Then - For Each adGroupChanges As AdGroupChangeData In campaignChanges.changedAdGroups - Console.WriteLine(" Ad group with id ""{0}"" was changed:", _ - adGroupChanges.adGroupId) - Console.WriteLine(" Ad group changed status: {0}", _ - adGroupChanges.adGroupChangeStatus) - If (adGroupChanges.adGroupChangeStatus <> ChangeStatus.NEW) Then - Console.WriteLine(" Ads changed: {0}", _ - GetFormattedList(adGroupChanges.changedAds)) - Console.WriteLine(" Criteria changed: {0}", _ - GetFormattedList(adGroupChanges.changedCriteria)) - Console.WriteLine(" Criteria deleted: {0}", _ - GetFormattedList(adGroupChanges.deletedCriteria)) - End If - Next - End If - End If - Console.WriteLine() - Next - Else - Console.WriteLine("No account changes were found.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to get account changes.", ex) - End Try - End Sub - - ''' - ''' Formats a list of ids as a comma separated string. - ''' - ''' The list of ids. - ''' The comma separed formatted string, enclosed in square braces. - ''' - Private Function GetFormattedList(ByVal ids As Long()) As String - Dim builder As New StringBuilder - If (Not ids Is Nothing) Then - For Each id As Long In ids - builder.AppendFormat("{0}, ", id) - Next - End If - Return ("[" & builder.ToString.TrimEnd(New Char() {","c, " "c}) & "]") - End Function - - ''' - ''' Gets all campaign ids in the account. - ''' - ''' The user for which campaigns are retrieved. - ''' The list of campaign ids. - Private Function GetAllCampaignIds(ByVal user As AdWordsUser) As Long() - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - Dim allCampaigns As New List(Of Long) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id"} - - ' Get all campaigns. - Dim page As CampaignPage = campaignService.get(selector) - - ' Return the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - For Each campaign As Campaign In page.entries - allCampaigns.Add(campaign.id) - Next - End If - Return allCampaigns.ToArray - End Function - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/AccountManagement/GetAccountHierarchy.vb b/examples/AdWords/Vb/v201309/AccountManagement/GetAccountHierarchy.vb deleted file mode 100644 index 282ba26bc3e..00000000000 --- a/examples/AdWords/Vb/v201309/AccountManagement/GetAccountHierarchy.vb +++ /dev/null @@ -1,126 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Text - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to retrieve the account hierarchy under - ''' an account. This code example won't work with Test Accounts. See - ''' https://developers.google.com/adwords/api/docs/test-accounts - ''' - ''' Tags: ServicedAccountService.get - ''' - Public Class GetAccountHierarchy - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAccountHierarchy - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to retrieve the account hierarchy under " & _ - "an account. This code example won't work with Test Accounts. See " & _ - "https://developers.google.com/adwords/api/docs/test-accounts" - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the ManagedCustomerService. - Dim mcService As ManagedCustomerService = user.GetService( _ - AdWordsService.v201309.ManagedCustomerService) - mcService.RequestHeader.clientCustomerId = Nothing - - ' Create selector. - Dim selector As New Selector() - selector.fields = New String() {"Login", "CustomerId", "Name"} - - Try - ' Get results. - Dim page As ManagedCustomerPage = mcService.get(selector) - - ' Display serviced account graph. - If Not page.entries Is Nothing Then - ' Create map from customerId to customer node. - Dim customerIdToCustomerNode As Dictionary(Of Long, ManagedCustomerTreeNode) = _ - New Dictionary(Of Long, ManagedCustomerTreeNode)() - - ' Create account tree nodes for each customer. - For Each customer As ManagedCustomer In page.entries - Dim node As New ManagedCustomerTreeNode() - node.Account = customer - customerIdToCustomerNode.Add(customer.customerId, node) - Next - - ' For each link, connect nodes in tree. - If (Not page.links Is Nothing) Then - For Each link As ManagedCustomerLink In page.links - Dim managerNode As ManagedCustomerTreeNode = _ - customerIdToCustomerNode(link.managerCustomerId) - Dim childNode As ManagedCustomerTreeNode = _ - customerIdToCustomerNode(link.clientCustomerId) - childNode.ParentNode = managerNode - If (Not managerNode Is Nothing) Then - managerNode.ChildAccounts.Add(childNode) - End If - Next - End If - - ' Find the root account node in the tree. - Dim rootNode As ManagedCustomerTreeNode = Nothing - For Each account As ManagedCustomer In page.entries - If (customerIdToCustomerNode(account.customerId).ParentNode Is Nothing) Then - rootNode = customerIdToCustomerNode(account.customerId) - Exit For - End If - Next - - ' Display account tree. - Console.WriteLine("Login, CustomerId, Name") - Console.WriteLine(rootNode.ToTreeString(0, New StringBuilder())) - Else - Console.WriteLine("No accounts were found.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to get accounts.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb b/examples/AdWords/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb deleted file mode 100644 index ceaeb70039d..00000000000 --- a/examples/AdWords/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb +++ /dev/null @@ -1,111 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: thagikura@gmail.com (Takeshi Hagikura) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to add ad group level mobile bid - ''' modifier override. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class AddAdGroupBidModifier - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAdGroupBidModifier - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim bidModifier As Double = Double.Parse("INSERT_ADGROUP_BID_MODIFIER_HERE") - codeExample.Run(New AdWordsUser, adGroupId, bidModifier) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to add ad group level mobile bid" & _ - " modifier override." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the adgroup for which bid modifier is - ''' set. - ''' The mobile bid modifier for adgroup - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal bidModifier As Double) - ' Get the AdGroupBidModifierService. - Dim adGroupBidModifierService As AdGroupBidModifierService = user.GetService( _ - AdWordsService.v201309.AdGroupBidModifierService) - - ' Mobile criterion ID. - Dim criterionId As Long = 30001 - - ' Create the adgroup bid modifier. - Dim adGroupBidModifier As New AdGroupBidModifier() - adGroupBidModifier.bidModifier = bidModifier - adGroupBidModifier.adGroupId = adGroupId - - Dim platform As New Platform() - platform.id = criterionId - - adGroupBidModifier.criterion = platform - - Dim operation As New AdGroupBidModifierOperation() - operation.operator = [Operator].ADD - operation.operand = adGroupBidModifier - - Try - ' Add ad group level mobile bid modifier. - Dim retval As AdGroupBidModifierReturnValue = adGroupBidModifierService.mutate( _ - New AdGroupBidModifierOperation() {operation}) - - ' Display the results. - If Not retval Is Nothing AndAlso Not retval.value Is Nothing AndAlso _ - retval.value.Length > 0 Then - Dim newBidModifier As AdGroupBidModifier = retval.value(0) - Console.WriteLine("AdGroup ID {1}, Criterion ID {2} was updated with ad group " & _ - "level modifier: {3}", newBidModifier.adGroupId, newBidModifier.criterion.id, _ - newBidModifier.bidModifier) - Else - Console.WriteLine("No bid modifiers were added to the adgroup.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add bid modifiers to adgroup.", ex) - End Try - End Sub - End Class - -End Namespace diff --git a/examples/AdWords/Vb/v201309/AdvancedOperations/AddClickToDownloadAd.vb b/examples/AdWords/Vb/v201309/AdvancedOperations/AddClickToDownloadAd.vb deleted file mode 100644 index 86d5e42f90d..00000000000 --- a/examples/AdWords/Vb/v201309/AdvancedOperations/AddClickToDownloadAd.vb +++ /dev/null @@ -1,149 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: thagikura@gmail.com (Takeshi Hagikura) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example creates a click-to-download ad, also known as an - ''' app promotion ad to a given ad group. To list ad groups, run - ''' GetAdGroups.vb. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class AddClickToDownloadAd - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddClickToDownloadAd - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example creates a click-to-download ad, also known as an app " & _ - "promotion ad to a given ad group. To list ad groups, run GetAdGroups.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which ads are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim adGroupAdService As AdGroupAdService = _ - user.GetService(AdWordsService.v201309.AdGroupAdService) - - ' Create the template ad. - Dim clickToDownloadAppAd As New TemplateAd() - - clickToDownloadAppAd.name = "Ad for demo game" - clickToDownloadAppAd.templateId = 353 - clickToDownloadAppAd.url = _ - "http://play.google.com/store/apps/details?id=com.example.demogame" - clickToDownloadAppAd.displayUrl = "play.google.com" - - ' Create the template elements for the ad. You can refer to - ' https://developers.google.com/adwords/api/docs/appendix/templateads - ' for the list of avaliable template fields. - Dim headline As New TemplateElementField() - headline.name = "headline" - headline.fieldText = "Enjoy your drive in Mars" - headline.type = TemplateElementFieldType.TEXT - - Dim description1 As New TemplateElementField() - description1.name = "description1" - description1.fieldText = "Realistic physics simulation" - description1.type = TemplateElementFieldType.TEXT - - Dim description2 As New TemplateElementField() - description2.name = "description2" - description2.fieldText = "Race against players online" - description2.type = TemplateElementFieldType.TEXT - - Dim appId As New TemplateElementField() - appId.name = "appId" - appId.fieldText = "com.example.demogame" - appId.type = TemplateElementFieldType.TEXT - - Dim appStore As New TemplateElementField() - appStore.name = "appStore" - appStore.fieldText = "2" - appStore.type = TemplateElementFieldType.ENUM - - Dim adData As New TemplateElement() - adData.uniqueName = "adData" - adData.fields = New TemplateElementField() {headline, description1, description2, appId, _ - appStore} - - clickToDownloadAppAd.templateElements = New TemplateElement() {adData} - - ' Create the adgroupad. - Dim clickToDownloadAppAdGroupAd As New AdGroupAd() - clickToDownloadAppAdGroupAd.adGroupId = adGroupId - clickToDownloadAppAdGroupAd.ad = clickToDownloadAppAd - - ' Optional: Set the status. - clickToDownloadAppAdGroupAd.status = AdGroupAdStatus.PAUSED - - ' Create the operation. - Dim operation As New AdGroupAdOperation() - operation.operator = [Operator].ADD - operation.operand = clickToDownloadAppAdGroupAd - - Try - ' Create the ads. - Dim retval As AdGroupAdReturnValue = adGroupAdService.mutate(New AdGroupAdOperation() _ - {operation}) - - ' Display the results. - If Not retval Is Nothing AndAlso Not retval.value Is Nothing Then - For Each adGroupAd As AdGroupAd In retval.value - Console.WriteLine("New click-to-download ad with id = '{0}' and url = '{1}' " & _ - "was created.", adGroupAd.ad.id, adGroupAd.ad.url) - Next - Else - Console.WriteLine("No click-to-download ads were created.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create click-to-download ad.", ex) - End Try - End Sub - End Class - -End Namespace diff --git a/examples/AdWords/Vb/v201309/AdvancedOperations/AddSiteLinks.vb b/examples/AdWords/Vb/v201309/AdvancedOperations/AddSiteLinks.vb deleted file mode 100644 index 8fc0db4f02b..00000000000 --- a/examples/AdWords/Vb/v201309/AdvancedOperations/AddSiteLinks.vb +++ /dev/null @@ -1,319 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: thagikura@gmail.com (Takeshi Hagikura) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - - Public Class SiteLinksDataHolder - Dim siteLinksFeedIdField As Long - Dim linkTextFeedAttributeIdField As Long - Dim linkUrlFeedAttributeIdField As Long - Dim siteLinkFeedItemIdsField As New List(Of Long) - - Public Property SiteLinksFeedId As Long - Get - Return siteLinksFeedIdField - End Get - Set(ByVal value As Long) - siteLinksFeedIdField = value - End Set - End Property - - Public Property LinkTextFeedAttributeId As Long - Get - Return linkTextFeedAttributeIdField - End Get - Set(ByVal value As Long) - linkTextFeedAttributeIdField = value - End Set - End Property - - Public Property LinkUrlFeedAttributeId As Long - Get - Return linkUrlFeedAttributeIdField - End Get - Set(ByVal value As Long) - linkUrlFeedAttributeIdField = value - End Set - End Property - - Public Property SiteLinkFeedItemIds As List(Of Long) - Get - Return siteLinkFeedItemIdsField - End Get - Set(ByVal value As List(Of Long)) - siteLinkFeedItemIdsField = value - End Set - End Property - End Class - - ''' - ''' This code example adds a sitelinks feed and associates it with a campaign. - ''' To create a campaign, run AddCampaign.cs. - ''' - ''' Tags: CampaignFeedService.mutate, FeedService.mutate, FeedItemService.mutate, - ''' Tags: FeedMappingService.mutate - ''' - Public Class AddSiteLinks - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddSiteLinks - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a sitelinks feed and associates it with a campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign with which sitelinks are associated. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - Dim siteLinksData As New SiteLinksDataHolder - createSiteLinksFeed(user, siteLinksData) - createSiteLinksFeedItems(user, siteLinksData) - createSiteLinksFeedMapping(user, siteLinksData) - createSiteLinksCampaignFeed(user, siteLinksData, campaignId) - End Sub - - Private Sub createSiteLinksFeed( _ - ByVal user As AdWordsUser, ByVal siteLinksData As SiteLinksDataHolder) - ' Get the FeedService. - Dim feedService As FeedService = user.GetService(AdWordsService.v201309.FeedService) - - ' Create attributes. - Dim textAttribute As New FeedAttribute - textAttribute.type = FeedAttributeType.STRING - textAttribute.name = "Link Text" - Dim urlAttribute As New FeedAttribute - urlAttribute.type = FeedAttributeType.URL - urlAttribute.name = "Link URL" - - ' Create the feed. - Dim siteLinksFeed As New Feed - siteLinksFeed.name = "Feed For Site Links" - siteLinksFeed.attributes = New FeedAttribute() {textAttribute, urlAttribute} - siteLinksFeed.origin = FeedOrigin.USER - - ' Create operation. - Dim operation As New FeedOperation - operation.operand = siteLinksFeed - operation.operator = [Operator].ADD - - ' Add the feed. - Dim result As FeedReturnValue = feedService.mutate(New FeedOperation() {operation}) - - Dim savedFeed As Feed = result.value(0) - - siteLinksData.SiteLinksFeedId = savedFeed.id - Dim savedAttributes As FeedAttribute() = savedFeed.attributes - siteLinksData.LinkTextFeedAttributeId = savedAttributes(0).id - siteLinksData.LinkUrlFeedAttributeId = savedAttributes(1).id - Console.WriteLine("Feed with name {0} and ID {1} with linkTextAttributeId {2}" & _ - "linkUrlAttributeId {3} was created.", savedFeed.name, savedFeed.id, _ - savedAttributes(0).id, savedAttributes(1).id) - End Sub - - Private Sub createSiteLinksFeedItems( _ - ByVal user As AdWordsUser, ByVal siteLinksData As SiteLinksDataHolder) - ' Get the FeedItemService. - Dim feedItemService As FeedItemService = _ - user.GetService(AdWordsService.v201309.FeedItemService) - - ' Create operations to add FeedItems. - Dim home As FeedItemOperation = _ - newSiteLinkFeedItemAddOperation(siteLinksData, "Home", "http://www.example.com") - Dim stores As FeedItemOperation = _ - newSiteLinkFeedItemAddOperation(siteLinksData, "Stores", "http://www.example.com/stores") - Dim onSale As FeedItemOperation = _ - newSiteLinkFeedItemAddOperation(siteLinksData, "On Sale", "http://www.example.com/sale") - Dim support As FeedItemOperation = _ - newSiteLinkFeedItemAddOperation(siteLinksData, "Support", _ - "http://www.example.com/support") - Dim products As FeedItemOperation = _ - newSiteLinkFeedItemAddOperation(siteLinksData, "Products", "http://www.example.com/prods") - Dim aboutUs As FeedItemOperation = _ - newSiteLinkFeedItemAddOperation(siteLinksData, "About Us", "http://www.example.com/about") - - Dim operations As FeedItemOperation() = _ - New FeedItemOperation() {home, stores, onSale, support, products, aboutUs} - - Dim result As FeedItemReturnValue = feedItemService.mutate(operations) - For Each item As FeedItem In result.value - Console.WriteLine("FeedItem with feedItemId {0} was added.", item.feedItemId) - siteLinksData.SiteLinkFeedItemIds.Add(item.feedItemId) - Next - End Sub - - ' See the Placeholder reference page for a list of all the placeholder types and fields. - ' https://developers.google.com/adwords/api/docs/appendix/placeholders.html - Private Const PLACEHOLDER_SITELINKS As Integer = 1 - - ' See the Placeholder reference page for a list of all the placeholder types and fields. - Private Const PLACEHOLDER_FIELD_SITELINK_LINK_TEXT As Integer = 1 - Private Const PLACEHOLDER_FIELD_SITELINK_URL As Integer = 2 - - Private Sub createSiteLinksFeedMapping( _ - ByVal user As AdWordsUser, ByVal siteLinksData As SiteLinksDataHolder) - ' Get the FeedItemService. - Dim feedMappingService As FeedMappingService = _ - user.GetService(AdWordsService.v201309.FeedMappingService) - - ' Map the FeedAttributeIds to the fieldId constants. - Dim linkTextFieldMapping As New AttributeFieldMapping - linkTextFieldMapping.feedAttributeId = siteLinksData.LinkTextFeedAttributeId - linkTextFieldMapping.fieldId = PLACEHOLDER_FIELD_SITELINK_LINK_TEXT - Dim linkUrlFieldMapping As New AttributeFieldMapping - linkUrlFieldMapping.feedAttributeId = siteLinksData.LinkUrlFeedAttributeId - linkUrlFieldMapping.fieldId = PLACEHOLDER_FIELD_SITELINK_URL - - ' Create the FieldMapping and operation. - Dim feedMapping As New FeedMapping - feedMapping.placeholderType = PLACEHOLDER_SITELINKS - feedMapping.feedId = siteLinksData.SiteLinksFeedId - feedMapping.attributeFieldMappings = _ - New AttributeFieldMapping() {linkTextFieldMapping, linkUrlFieldMapping} - Dim operation As New FeedMappingOperation - operation.operand = feedMapping - operation.operator = [Operator].ADD - - ' Save the field mapping. - Dim result As FeedMappingReturnValue = _ - feedMappingService.mutate(New FeedMappingOperation() {operation}) - For Each savedFeedMapping As FeedMapping In result.value - Console.WriteLine("Feed mapping with ID {0} and placeholderType {1} was saved for " & _ - "feed with ID {2}.", savedFeedMapping.feedMappingId, savedFeedMapping.placeholderType, _ - savedFeedMapping.feedId) - Next - End Sub - - Private Sub createSiteLinksCampaignFeed(ByVal user As AdWordsUser, _ - ByVal siteLinksData As SiteLinksDataHolder, ByVal campaignId As Long) - ' Get the CampaignFeedService. - Dim campaignFeedService As CampaignFeedService = _ - user.GetService(AdWordsService.v201309.CampaignFeedService) - - ' Map the feed item ids to the campaign using an IN operation. - Dim feedItemRequestContextOperand As New RequestContextOperand() - feedItemRequestContextOperand.contextType = RequestContextOperandContextType.FEED_ITEM_ID - - Dim feedItemOperands As New List(Of FunctionArgumentOperand)() - For Each feedItemId As Long In siteLinksData.SiteLinkFeedItemIds - Dim feedItemOperand As New ConstantOperand() - feedItemOperand.longValue = feedItemId - feedItemOperand.type = ConstantOperandConstantType.LONG - feedItemOperands.Add(feedItemOperand) - Next - - Dim feedItemfunction As New [Function]() - feedItemfunction.lhsOperand = New FunctionArgumentOperand() {feedItemRequestContextOperand} - feedItemfunction.operator = FunctionOperator.IN - feedItemfunction.rhsOperand = feedItemOperands.ToArray() - - ' Optional: to target to a platform, define a function and 'AND' it with - ' the feed item ID link: - Dim platformRequestContextOperand As New RequestContextOperand() - platformRequestContextOperand.contextType = RequestContextOperandContextType.DEVICE_PLATFORM - - Dim platformOperand As New ConstantOperand() - platformOperand.stringValue = "Mobile" - platformOperand.type = ConstantOperandConstantType.STRING - - Dim platformFunction As New [Function]() - platformFunction.lhsOperand = New FunctionArgumentOperand() {platformRequestContextOperand} - platformFunction.operator = FunctionOperator.EQUALS - platformFunction.rhsOperand = New FunctionArgumentOperand() {platformOperand} - - ' Combine the two functions using an AND operation. - Dim feedItemFunctionOperand As New FunctionOperand() - feedItemFunctionOperand.value = feedItemfunction - - Dim platformFunctionOperand As New FunctionOperand() - platformFunctionOperand.value = platformFunction - - Dim combinedFunction As New [Function]() - combinedFunction.operator = FunctionOperator.AND - combinedFunction.lhsOperand = New FunctionArgumentOperand() { _ - feedItemFunctionOperand, platformFunctionOperand} - - Dim campaignFeed As New CampaignFeed() - campaignFeed.feedId = siteLinksData.SiteLinksFeedId - campaignFeed.campaignId = campaignId - campaignFeed.matchingFunction = combinedFunction - ' Specifying placeholder types on the CampaignFeed allows the same feed - ' to be used for different placeholders in different Campaigns. - campaignFeed.placeholderTypes = New Integer() {PLACEHOLDER_SITELINKS} - - Dim operation As New CampaignFeedOperation - operation.operand = CampaignFeed - operation.operator = [Operator].ADD - Dim result As CampaignFeedReturnValue = _ - campaignFeedService.mutate(New CampaignFeedOperation() {operation}) - For Each savedCampaignFeed As CampaignFeed In result.value - Console.WriteLine("Campaign with ID {0} was associated with feed with ID {1}", _ - savedCampaignFeed.campaignId, savedCampaignFeed.feedId) - Next - End Sub - - Function newSiteLinkFeedItemAddOperation(ByVal siteLinksData As SiteLinksDataHolder, _ - ByVal text As String, ByVal url As String) As FeedItemOperation - ' Create the FeedItemAttributeValues for our text values. - Dim linkTextAttributeValue As New FeedItemAttributeValue - linkTextAttributeValue.feedAttributeId = siteLinksData.LinkTextFeedAttributeId - linkTextAttributeValue.stringValue = text - Dim linkUrlAttributeValue As New FeedItemAttributeValue - linkUrlAttributeValue.feedAttributeId = siteLinksData.LinkUrlFeedAttributeId - linkUrlAttributeValue.stringValue = url - - ' Create the feed item and operation. - Dim item As New FeedItem - item.feedId = siteLinksData.SiteLinksFeedId - item.attributeValues = _ - New FeedItemAttributeValue() {linkTextAttributeValue, linkUrlAttributeValue} - Dim Operation As New FeedItemOperation - Operation.operand = item - Operation.operator = [Operator].ADD - Return Operation - End Function - End Class - -End Namespace diff --git a/examples/AdWords/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb b/examples/AdWords/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb deleted file mode 100644 index 08ced7dcca1..00000000000 --- a/examples/AdWords/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb +++ /dev/null @@ -1,125 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to retrieve ad group level mobile bid - ''' modifiers for a campaign. - ''' - ''' AdGroupBidModifierService.get - ''' - Public Class GetAdGroupBidModifiers - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAdGroupBidModifiers - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to retrieve ad group level mobile bid" & _ - " modifiers for a campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which adgroup bid - ''' modifiers are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupBidModifierService. - Dim adGroupBidModifierService As AdGroupBidModifierService = user.GetService( _ - AdWordsService.v201309.AdGroupBidModifierService) - - Const PAGE_SIZE As Integer = 500 - - ' Get all ad group bid modifiers for the campaign. - Dim selector As New Selector() - selector.fields = New String() {"CampaignId", "AdGroupId", "BidModifier", _ - "BidModifierSource", "CriteriaType", "Id"} - - Dim predicate As New Predicate() - predicate.field = "CampaignId" - predicate.[operator] = PredicateOperator.EQUALS - predicate.values = New String() {campaignId.ToString()} - selector.predicates = New Predicate() {predicate} - - ' Set the selector paging. - selector.paging = New Paging() - - Dim offset As Integer = 0 - Dim pageSize As Integer = PAGE_SIZE - - Dim page As New AdGroupBidModifierPage() - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the campaigns. - page = adGroupBidModifierService.get(selector) - - ' Display the results. - If (Not page Is Nothing) AndAlso (Not page.entries Is Nothing) Then - Dim i As Integer = offset - For Each adGroupBidModifier As AdGroupBidModifier In page.entries - Dim bidModifier As String = "" - If adGroupBidModifier.bidModifierSpecified Then - bidModifier = adGroupBidModifier.bidModifier.ToString() - Else - bidModifier = "UNSET" - End If - Console.WriteLine("{0}) Campaign ID {1}, AdGroup ID {2}, Criterion ID {3} has " & _ - "ad group level modifier: {4}, source = {5}.", _ - i + 1, adGroupBidModifier.campaignId, _ - adGroupBidModifier.adGroupId, adGroupBidModifier.criterion.id, _ - bidModifier, adGroupBidModifier.bidModifierSource) - i = i + 1 - Next - End If - offset += pageSize - Loop While offset < page.totalNumEntries - Console.WriteLine("Number of adgroup bid modifiers found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve adgroup bid modifiers.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb b/examples/AdWords/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb deleted file mode 100644 index 7e8a174806b..00000000000 --- a/examples/AdWords/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb +++ /dev/null @@ -1,245 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds a Shared Bidding Strategy and uses it to construct - ''' a campaign. - ''' - ''' Tags: BiddingStrategyService.mutate - ''' Tags: BudgetService.mutate, CampaignService.mutate - ''' - Public Class UploadOfflineConversions - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim conversionName As String = "INSERT_CONVERSION_NAME_HERE" - ' GCLID needs to be newer than 30 days. - Dim gClId As String = "INSERT_GOOGLE_CLICK_ID_HERE" - ' The conversion time should be higher than the click time. - Dim conversionTime As String = "INSERT_CONVERSION_TIME_HERE" - Dim conversionValue As Double = Double.Parse("INSERT_CONVERSION_VALUE_HERE") - - Dim codeExample As New UploadOfflineConversions - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser, conversionName, gClId, conversionTime, conversionValue) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a Shared Bidding Strategy and uses it to construct " & _ - "a campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The name of the upload conversion to be - ''' created. - ''' The Google Click ID of the click for which offline - ''' conversions are uploaded. - ''' The conversion value to be uploaded. - ''' - ''' The conversion time, in yyyymmdd hhmmss - ''' format. - Public Sub Run(ByVal user As AdWordsUser, ByVal conversionName As String, _ - ByVal gClid As String, ByVal conversionTime As String, ByVal conversionValue As Double) - ' Get the ConversionTrackerService. - Dim conversionTrackerService As ConversionTrackerService = user.GetService( _ - AdWordsService.v201309.ConversionTrackerService) - - ' Get the OfflineConversionFeedService. - Dim offlineConversionFeedService As OfflineConversionFeedService = user.GetService( _ - AdWordsService.v201309.OfflineConversionFeedService) - - Const VIEWTHROUGH_LOOKBACK_WINDOW As Integer = 30 - Const CTC_LOOKBACK_WINDOW As Integer = 90 - - Try - ' Create an upload conversion. Once created, this entry will be visible - ' under Tools and Analysis->Conversion and will have "Source = Import". - Dim uploadConversion As New UploadConversion() - uploadConversion.category = ConversionTrackerCategory.PAGE_VIEW - uploadConversion.name = conversionName - uploadConversion.viewthroughLookbackWindow = VIEWTHROUGH_LOOKBACK_WINDOW - uploadConversion.ctcLookbackWindow = CTC_LOOKBACK_WINDOW - - Dim uploadConversionOperation As New ConversionTrackerOperation() - uploadConversionOperation.operator = [Operator].ADD - uploadConversionOperation.operand = uploadConversion - - Dim conversionTrackerRetval As ConversionTrackerReturnValue = _ - conversionTrackerService.mutate(New ConversionTrackerOperation() { _ - uploadConversionOperation}) - - Dim newUploadConversion As UploadConversion = conversionTrackerRetval.value(0) - - Console.WriteLine("New upload conversion type with name = '{0}' and id = {1} was " & _ - "created.", newUploadConversion.name, newUploadConversion.id) - - ' Associate offline conversions with the upload conversion we created. - Dim feed As New OfflineConversionFeed() - feed.conversionName = conversionName - feed.conversionTime = conversionTime - feed.conversionValue = conversionValue - feed.googleClickId = gClid - - Dim offlineConversionOperation As New OfflineConversionFeedOperation() - offlineConversionOperation.operator = [Operator].ADD - offlineConversionOperation.operand = feed - - Dim offlineConversionRetval As OfflineConversionFeedReturnValue = _ - offlineConversionFeedService.mutate( _ - New OfflineConversionFeedOperation() {offlineConversionOperation}) - - Dim newFeed As OfflineConversionFeed = offlineConversionRetval.value(0) - - Console.WriteLine("Uploaded offline conversion value of {0} for Google Click ID = " & _ - "'{1}' to '{2}'.", newFeed.conversionValue, newFeed.googleClickId, _ - newFeed.conversionName) - Catch ex As Exception - Throw New System.ApplicationException("Failed to upload offline conversions.", ex) - End Try - End Sub - - - ''' - ''' Creates the shared bidding strategy. - ''' - ''' The bidding strategy service. - ''' The bidding strategy name. - ''' The bid ceiling. - ''' The spend target. - ''' The bidding strategy object. - Private Function CreateBiddingStrategy(ByVal biddingStrategyService As BiddingStrategyService, _ - ByVal name As String, ByVal bidCeiling As Long, ByVal spendTarget As Long) _ - As SharedBiddingStrategy - ' Create a shared bidding strategy. - Dim sharedBiddingStrategy As New SharedBiddingStrategy() - sharedBiddingStrategy.name = name - - Dim biddingScheme As New TargetSpendBiddingScheme() - ' Optionally set additional bidding scheme parameters. - biddingScheme.bidCeiling = New Money() - biddingScheme.bidCeiling.microAmount = bidCeiling - - biddingScheme.spendTarget = New Money() - biddingScheme.spendTarget.microAmount = spendTarget - - sharedBiddingStrategy.biddingScheme = biddingScheme - - ' Create operation. - Dim operation As New BiddingStrategyOperation() - operation.operator = [Operator].ADD - operation.operand = sharedBiddingStrategy - - Return biddingStrategyService.mutate(New BiddingStrategyOperation() {operation}).value(0) - End Function - - ''' - ''' Creates an explicit budget to be used only to create the Campaign. - ''' - ''' The budget service. - ''' The budget name. - ''' The budget amount. - ''' The budget object. - Private Function CreateSharedBudget(ByVal budgetService As BudgetService, _ - ByVal name As String, ByVal amount As Long) As Budget - ' Create a shared budget - Dim budget As New Budget() - budget.name = name - budget.period = BudgetBudgetPeriod.DAILY - budget.amount = New Money() - budget.amount.microAmount = amount - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD - budget.isExplicitlyShared = True - - ' Create operation. - Dim operation As New BudgetOperation() - operation.operand = budget - operation.operator = [Operator].ADD - - ' Make the mutate request. - Return budgetService.mutate(New BudgetOperation() {operation}).value(0) - End Function - - ''' - ''' Creates the campaign with a shared bidding strategy. - ''' - ''' The campaign service. - ''' The campaign name. - ''' The bidding strategy id. - ''' The shared budget id. - ''' The campaign object. - Private Function CreateCampaignWithBiddingStrategy(ByVal campaignService As CampaignService, _ - ByVal name As String, ByVal biddingStrategyId As Long, ByVal sharedBudgetId As Long) _ - As Campaign - ' Create campaign. - Dim campaign As New Campaign() - campaign.name = name - - ' Set the budget. - campaign.budget = New Budget() - campaign.budget.budgetId = sharedBudgetId - - ' Set bidding strategy (required). - Dim biddingStrategyConfiguration As New BiddingStrategyConfiguration() - biddingStrategyConfiguration.biddingStrategyId = biddingStrategyId - - campaign.biddingStrategyConfiguration = biddingStrategyConfiguration - - ' Set keyword matching setting (required). - Dim keywordMatchSetting As New KeywordMatchSetting() - keywordMatchSetting.optIn = True - campaign.settings = New Setting() {keywordMatchSetting} - - ' Set network targeting (recommended). - Dim networkSetting As New NetworkSetting() - networkSetting.targetGoogleSearch = True - networkSetting.targetSearchNetwork = True - networkSetting.targetContentNetwork = True - campaign.networkSetting = networkSetting - - ' Create operation. - Dim operation As New CampaignOperation() - operation.operand = campaign - operation.operator = [Operator].ADD - - Return campaignService.mutate(New CampaignOperation() {operation}).value(0) - End Function - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb b/examples/AdWords/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb deleted file mode 100644 index 49508a7c618..00000000000 --- a/examples/AdWords/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb +++ /dev/null @@ -1,212 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds a Shared Bidding Strategy and uses it to construct - ''' a campaign. - ''' - ''' Tags: BiddingStrategyService.mutate - ''' Tags: BudgetService.mutate, CampaignService.mutate - ''' - Public Class UseSharedBiddingStrategy - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UseSharedBiddingStrategy - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a Shared Bidding Strategy and uses it to construct " & _ - "a campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the services. - Dim biddingStrategyService As BiddingStrategyService = user.GetService( _ - AdWordsService.v201309.BiddingStrategyService) - - Dim budgetService As BudgetService = user.GetService(AdWordsService.v201309.BudgetService) - - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - Dim biddingStrategyName As String = "Maximize Clicks " & ExampleUtilities.GetRandomString() - Dim bidCeiling As Long = 2000000 - Dim spendTarget As Long = 20000000 - - Dim budgetName As String = "Shared Interplanetary Budget #" & _ - ExampleUtilities.GetRandomString() - Dim budgetAmount As Long = 30000000 - - Dim campaignName As String = "Interplanetary Cruise #" + ExampleUtilities.GetRandomString() - - Try - Dim sharedBiddingStrategy As SharedBiddingStrategy = CreateBiddingStrategy( _ - biddingStrategyService, biddingStrategyName, bidCeiling, spendTarget) - Console.WriteLine("Shared bidding strategy with name '{0}' and ID {1} of type {2} " & _ - "was created.", sharedBiddingStrategy.name, sharedBiddingStrategy.id, _ - sharedBiddingStrategy.biddingScheme.BiddingSchemeType) - - Dim sharedBudget As Budget = CreateSharedBudget(budgetService, budgetName, budgetAmount) - - Dim newCampaign As Campaign = CreateCampaignWithBiddingStrategy(campaignService, _ - campaignName, sharedBiddingStrategy.id, sharedBudget.budgetId) - - Console.WriteLine("Campaign with name '{0}', ID {1} and bidding scheme ID {2} was " & _ - "created.", newCampaign.name, newCampaign.id, _ - newCampaign.biddingStrategyConfiguration.biddingStrategyId) - - Catch ex As Exception - Throw New System.ApplicationException("Failed to create campaign that uses shared " & _ - "bidding strategy.", ex) - End Try - End Sub - - - ''' - ''' Creates the shared bidding strategy. - ''' - ''' The bidding strategy service. - ''' The bidding strategy name. - ''' The bid ceiling. - ''' The spend target. - ''' The bidding strategy object. - Private Function CreateBiddingStrategy(ByVal biddingStrategyService As BiddingStrategyService, _ - ByVal name As String, ByVal bidCeiling As Long, ByVal spendTarget As Long) _ - As SharedBiddingStrategy - ' Create a shared bidding strategy. - Dim sharedBiddingStrategy As New SharedBiddingStrategy() - sharedBiddingStrategy.name = name - - Dim biddingScheme As New TargetSpendBiddingScheme() - ' Optionally set additional bidding scheme parameters. - biddingScheme.bidCeiling = New Money() - biddingScheme.bidCeiling.microAmount = bidCeiling - - biddingScheme.spendTarget = New Money() - biddingScheme.spendTarget.microAmount = spendTarget - - sharedBiddingStrategy.biddingScheme = biddingScheme - - ' Create operation. - Dim operation As New BiddingStrategyOperation() - operation.operator = [Operator].ADD - operation.operand = sharedBiddingStrategy - - Return biddingStrategyService.mutate(New BiddingStrategyOperation() {operation}).value(0) - End Function - - ''' - ''' Creates an explicit budget to be used only to create the Campaign. - ''' - ''' The budget service. - ''' The budget name. - ''' The budget amount. - ''' The budget object. - Private Function CreateSharedBudget(ByVal budgetService As BudgetService, _ - ByVal name As String, ByVal amount As Long) As Budget - ' Create a shared budget - Dim budget As New Budget() - budget.name = name - budget.period = BudgetBudgetPeriod.DAILY - budget.amount = New Money() - budget.amount.microAmount = amount - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD - budget.isExplicitlyShared = True - - ' Create operation. - Dim operation As New BudgetOperation() - operation.operand = budget - operation.operator = [Operator].ADD - - ' Make the mutate request. - Return budgetService.mutate(New BudgetOperation() {operation}).value(0) - End Function - - ''' - ''' Creates the campaign with a shared bidding strategy. - ''' - ''' The campaign service. - ''' The campaign name. - ''' The bidding strategy id. - ''' The shared budget id. - ''' The campaign object. - Private Function CreateCampaignWithBiddingStrategy(ByVal campaignService As CampaignService, _ - ByVal name As String, ByVal biddingStrategyId As Long, ByVal sharedBudgetId As Long) _ - As Campaign - ' Create campaign. - Dim campaign As New Campaign() - campaign.name = name - - ' Set the budget. - campaign.budget = New Budget() - campaign.budget.budgetId = sharedBudgetId - - ' Set bidding strategy (required). - Dim biddingStrategyConfiguration As New BiddingStrategyConfiguration() - biddingStrategyConfiguration.biddingStrategyId = biddingStrategyId - - campaign.biddingStrategyConfiguration = biddingStrategyConfiguration - - ' Set keyword matching setting (required). - Dim keywordMatchSetting As New KeywordMatchSetting() - keywordMatchSetting.optIn = True - campaign.settings = New Setting() {keywordMatchSetting} - - ' Set network targeting (recommended). - Dim networkSetting As New NetworkSetting() - networkSetting.targetGoogleSearch = True - networkSetting.targetSearchNetwork = True - networkSetting.targetContentNetwork = True - campaign.networkSetting = networkSetting - - ' Create operation. - Dim operation As New CampaignOperation() - operation.operand = campaign - operation.operator = [Operator].ADD - - Return campaignService.mutate(New CampaignOperation() {operation}).value(0) - End Function - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb b/examples/AdWords/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb deleted file mode 100644 index 0fa257e2f74..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb +++ /dev/null @@ -1,124 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds demographic target criteria to an ad group. To get - ''' ad groups, run AddAdGroup.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class AddAdGroupDemographicCriteria - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAdGroupDemographicCriteria - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds demographic target criteria to an ad group. To get ad " & _ - "groups, run AddAdGroup.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which criteria are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = _ - user.GetService(AdWordsService.v201309.AdGroupCriterionService) - - ' Create biddable ad group criterion for gender - Dim genderTarget As New Gender() - ' Criterion Id for male. The IDs can be found here - ' https://developers.google.com/adwords/api/docs/appendix/genders - genderTarget.id = 10 - - Dim genderBiddableAdGroupCriterion As New BiddableAdGroupCriterion() - genderBiddableAdGroupCriterion.adGroupId = adGroupId - genderBiddableAdGroupCriterion.criterion = genderTarget - - ' Create negative ad group criterion for age range - Dim ageRangeNegative As New AgeRange() - ' Criterion Id for age 18 to 24. The IDs can be found here - ' https://developers.google.com/adwords/api/docs/appendix/ages - - ageRangeNegative.id = 503001 - Dim ageRangeNegativeAdGroupCriterion As New NegativeAdGroupCriterion() - ageRangeNegativeAdGroupCriterion.adGroupId = adGroupId - ageRangeNegativeAdGroupCriterion.criterion = ageRangeNegative - - ' Create operations. - Dim genderBiddableAdGroupCriterionOperation As New AdGroupCriterionOperation() - genderBiddableAdGroupCriterionOperation.operand = genderBiddableAdGroupCriterion - genderBiddableAdGroupCriterionOperation.operator = [Operator].ADD - - Dim ageRangeNegativeAdGroupCriterionOperation As New AdGroupCriterionOperation() - ageRangeNegativeAdGroupCriterionOperation.operand = ageRangeNegativeAdGroupCriterion - ageRangeNegativeAdGroupCriterionOperation.operator = [Operator].ADD - - Dim operations As New List(Of Operation) - operations.Add(genderBiddableAdGroupCriterionOperation) - operations.Add(ageRangeNegativeAdGroupCriterionOperation) - - Try - ' Add ad group criteria. - Dim result As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - operations.ToArray) - - ' Display ad group criteria. - If (Not result Is Nothing) AndAlso Not (result.value Is Nothing) Then - For Each adGroupCriterionResult As AdGroupCriterion In result.value - Console.WriteLine("Ad group criterion with ad group id '{0}', criterion id " & _ - "'{1}', and type '{2}' was added.", adGroupCriterionResult.adGroupId, _ - adGroupCriterionResult.criterion.id, _ - adGroupCriterionResult.criterion.CriterionType) - Next - Else - Console.WriteLine("No ad group criteria were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create ad group criteria.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/AddAdGroups.vb b/examples/AdWords/Vb/v201309/BasicOperations/AddAdGroups.vb deleted file mode 100644 index 2bea0684599..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/AddAdGroups.vb +++ /dev/null @@ -1,142 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to create ad groups. To create - ''' campaigns, run AddCampaigns.vb. - ''' - ''' Tags: AdGroupService.mutate - ''' - Public Class AddAdGroups - Inherits ExampleBase - ''' - ''' Number of items being added / updated in this code example. - ''' - Const NUM_ITEMS As Integer = 5 - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAdGroups - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to create ad groups. To create campaigns," & _ - " run AddCampaigns.vb" - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to which ad groups are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService( _ - AdWordsService.v201309.AdGroupService) - - Dim operations As New List(Of AdGroupOperation) - - For i As Integer = 1 To NUM_ITEMS - ' Create the ad group. - Dim adGroup As New AdGroup - adGroup.name = String.Format("Earth to Mars Cruises #{0}", ExampleUtilities.GetRandomString) - adGroup.status = AdGroupStatus.ENABLED - adGroup.campaignId = campaignId - - ' Set the ad group bids. - Dim biddingConfig As New BiddingStrategyConfiguration() - - Dim cpcBid As New CpcBid() - cpcBid.bid = New Money() - cpcBid.bid.microAmount = 10000000 - - ' Optional: set the content bid. - cpcBid.contentBid = New Money() - cpcBid.contentBid.microAmount = 2000000 - - biddingConfig.bids = New Bids() {cpcBid} - - adGroup.biddingStrategyConfiguration = biddingConfig - - ' Optional: Set targeting restrictions. - ' These setting only affect serving for the Display Network. - Dim targetingSetting As New TargetingSetting() - - Dim placementDetail As New TargetingSettingDetail() - placementDetail.criterionTypeGroup = CriterionTypeGroup.PLACEMENT - placementDetail.targetAll = True - - Dim verticalDetail As New TargetingSettingDetail() - verticalDetail.criterionTypeGroup = CriterionTypeGroup.VERTICAL - verticalDetail.targetAll = False - - targetingSetting.details = New TargetingSettingDetail() {placementDetail, verticalDetail} - - adGroup.settings = New Setting() {targetingSetting} - - ' Create the operation. - Dim operation As New AdGroupOperation - operation.operator = [Operator].ADD - operation.operand = adGroup - - operations.Add(operation) - Next - - Try - ' Create the ad group. - Dim retVal As AdGroupReturnValue = adGroupService.mutate(operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - For Each newAdGroup As AdGroup In retVal.value - Console.WriteLine("Ad group with id = '{0}' and name = '{1}' was created.", _ - newAdGroup.id, newAdGroup.name) - Next - Else - Console.WriteLine("No ad groups were created.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create ad groups.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/AddCampaigns.vb b/examples/AdWords/Vb/v201309/BasicOperations/AddCampaigns.vb deleted file mode 100644 index 06e457e6968..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/AddCampaigns.vb +++ /dev/null @@ -1,174 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds campaigns. To get campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignService.mutate - ''' - Public Class AddCampaigns - Inherits ExampleBase - ''' - ''' Number of items being added / updated in this code example. - ''' - Const NUM_ITEMS As Integer = 5 - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddCampaigns - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds campaigns. To get campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the BudgetService. - Dim budgetService As BudgetService = user.GetService( _ - AdWordsService.v201309.BudgetService) - - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create the campaign budget. - Dim budget As New Budget - budget.name = "Interplanetary Cruise Budget #" & ExampleUtilities.GetRandomString - budget.period = BudgetBudgetPeriod.DAILY - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD - budget.amount = New Money - budget.amount.microAmount = 50000000 - - Dim budgetOperation As New BudgetOperation - budgetOperation.operator = [Operator].ADD - budgetOperation.operand = budget - - Try - Dim budgetRetval As BudgetReturnValue = budgetService.mutate(New BudgetOperation() {budgetOperation}) - budget = budgetRetval.value(0) - Catch ex As Exception - Throw New System.ApplicationException("Failed to add shared budget.", ex) - End Try - - Dim operations As New List(Of CampaignOperation) - - For i As Integer = 1 To NUM_ITEMS - ' Create the campaign. - Dim campaign As New Campaign - campaign.name = "Interplanetary Cruise #" & ExampleUtilities.GetRandomString - campaign.status = CampaignStatus.PAUSED - - Dim biddingConfig As New BiddingStrategyConfiguration() - biddingConfig.biddingStrategyType = BiddingStrategyType.MANUAL_CPC - - ' Optional: provide BiddingScheme. - Dim biddingScheme As New ManualCpcBiddingScheme() - biddingScheme.enhancedCpcEnabled = True - biddingConfig.biddingScheme = biddingScheme - - campaign.biddingStrategyConfiguration = biddingConfig - - ' Set the campaign budget. - campaign.budget = New Budget - campaign.budget.budgetId = budget.budgetId - - ' Set the campaign network options. - campaign.networkSetting = New NetworkSetting - campaign.networkSetting.targetGoogleSearch = True - campaign.networkSetting.targetSearchNetwork = True - campaign.networkSetting.targetContentNetwork = False - campaign.networkSetting.targetPartnerSearchNetwork = False - - ' Set the campaign geo target and keyword match settings. - Dim geoSetting As New GeoTargetTypeSetting - geoSetting.positiveGeoTargetType = GeoTargetTypeSettingPositiveGeoTargetType.DONT_CARE - geoSetting.negativeGeoTargetType = GeoTargetTypeSettingNegativeGeoTargetType.DONT_CARE - - Dim keywordSetting As New KeywordMatchSetting - keywordSetting.optIn = False - - campaign.settings = New Setting() {geoSetting, keywordSetting} - - ' Optional: Set the start date. - campaign.startDate = DateTime.Now.AddDays(1).ToString("yyyyMMdd") - - ' Optional: Set the end date. - campaign.endDate = DateTime.Now.AddYears(1).ToString("yyyyMMdd") - - ' Optional: Set the campaign ad serving optimization status. - campaign.adServingOptimizationStatus = AdServingOptimizationStatus.ROTATE - - ' Optional: Set the frequency cap. - Dim frequencyCap As New FrequencyCap - frequencyCap.impressions = 5 - frequencyCap.level = Level.ADGROUP - frequencyCap.timeUnit = TimeUnit.DAY - campaign.frequencyCap = frequencyCap - - ' Create the operation. - Dim operation As New CampaignOperation - operation.operator = [Operator].ADD - operation.operand = campaign - operations.Add(operation) - Next - - Try - ' Add the campaign. - Dim retVal As CampaignReturnValue = campaignService.mutate(operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - For Each newCampaign As Campaign In retVal.value - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was added.", _ - newCampaign.name, newCampaign.id) - Next - Else - Console.WriteLine("No campaigns were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add campaigns.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/AddKeywords.vb b/examples/AdWords/Vb/v201309/BasicOperations/AddKeywords.vb deleted file mode 100644 index 6a7b4869a50..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/AddKeywords.vb +++ /dev/null @@ -1,129 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds a keyword to an ad group. To get ad groups, run - ''' GetAdGroups.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class AddKeywords - Inherits ExampleBase - ''' - ''' Number of items being added / updated in this code example. - ''' - Const NUM_ITEMS As Integer = 5 - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddKeywords - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a keyword to an ad group. To get ad groups, run " & _ - "GetAdGroups.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which keywords are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - Dim operations As New List(Of AdGroupCriterionOperation) - - For i As Integer = 1 To NUM_ITEMS - ' Create the keyword. - Dim keyword As New Keyword - keyword.text = "mars cruise" - keyword.matchType = KeywordMatchType.BROAD - - ' Create the biddable ad group criterion. - Dim keywordCriterion As New BiddableAdGroupCriterion - keywordCriterion.adGroupId = adGroupId - keywordCriterion.criterion = keyword - - ' Optional: Set the user status. - keywordCriterion.userStatus = UserStatus.PAUSED - - ' Optional: Set the keyword destination url. - keywordCriterion.destinationUrl = "http://example.com/mars/cruise/" & i - - ' Create the operations. - Dim operation As New AdGroupCriterionOperation - operation.operator = [Operator].ADD - operation.operand = keywordCriterion - - operations.Add(operation) - Next - - Try - ' Create the keywords. - Dim retVal As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing)) Then - For Each adGroupCriterion As AdGroupCriterion In retVal.value - ' If you are adding multiple type of criteria, then you may need to - ' check for - ' - ' if (adGroupCriterion is Keyword) { ... } - ' - ' to identify the criterion type. - Console.WriteLine("Keyword with ad group id = '{0}, keyword id = '{1}, text = " & _ - "'{2}' and match type = '{3}' was created.", adGroupCriterion.adGroupId, _ - adGroupCriterion.criterion.id, TryCast(adGroupCriterion.criterion, Keyword).text, _ - TryCast(adGroupCriterion.criterion, Keyword).matchType) - Next - Else - Console.WriteLine("No keywords were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create keywords.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/AddTextAds.vb b/examples/AdWords/Vb/v201309/BasicOperations/AddTextAds.vb deleted file mode 100644 index cf66a0e138b..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/AddTextAds.vb +++ /dev/null @@ -1,130 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 -Imports Google.Api.Ads.Common.Util - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds text ads to a given ad group. To list ad groups, - ''' run GetAdGroups.vb. To learn how to handle policy violations and add - ''' exemption requests, see HandlePolicyViolationError.vb. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class AddTextAds - Inherits ExampleBase - ''' - ''' Number of items being added / updated in this code example. - ''' - Const NUM_ITEMS As Integer = 5 - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddTextAds - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds text ads to a given ad group. To list ad groups, run " & _ - "GetAdGroups.vb. To learn how to handle policy violations and add exemption " & _ - "requests, see HandlePolicyViolationError.cs." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which ads are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - Dim operations As New List(Of AdGroupAdOperation) - - For i As Integer = 1 To NUM_ITEMS - ' Create the text ad. - Dim textAd As New TextAd - textAd.headline = "Luxury Cruise to Mars" - textAd.description1 = "Visit the Red Planet in style." - textAd.description2 = "Low-gravity fun for everyone!" - textAd.displayUrl = "www.example.com" - textAd.url = "http://www.example.com/" & i - - Dim textAdGroupAd As New AdGroupAd - textAdGroupAd.adGroupId = adGroupId - textAdGroupAd.ad = textAd - - ' Optional: Set the status. - textAdGroupAd.status = AdGroupAdStatus.PAUSED - - ' Create the operations. - Dim operation As New AdGroupAdOperation - operation.operator = [Operator].ADD - operation.operand = textAdGroupAd - - operations.Add(operation) - Next - - Dim retVal As AdGroupAdReturnValue = Nothing - - Try - ' Create the ads. - retVal = service.mutate(operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing)) Then - ' If you are adding multiple type of Ads, then you may need to check - ' for - ' - ' if (adGroupAd.ad is TextAd) { ... } - ' - ' to identify the ad type. - For Each adGroupAd As AdGroupAd In retVal.value - Console.WriteLine("New text ad with id = ""{0}"" and displayUrl = ""{1}"" was " & _ - "created.", adGroupAd.ad.id, adGroupAd.ad.displayUrl) - Next - Else - Console.WriteLine("No text ads were created.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create text ads.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/DeleteAd.vb b/examples/AdWords/Vb/v201309/BasicOperations/DeleteAd.vb deleted file mode 100644 index 668b26ddf0d..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/DeleteAd.vb +++ /dev/null @@ -1,105 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes an ad using the 'REMOVE' operator. To list ads, - ''' run GetTextAds.vb. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class DeleteAd - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeleteAd - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim adId As Long = Long.Parse("INSERT_AD_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, adId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes an ad using the 'REMOVE' operator. To list ads, " & _ - "run GetTextAds.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the ad. - ''' Id of the ad being deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal adId As Long) - ' Get the AdGroupAdService. - Dim adGroupAdService As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - ' Since we do not need to update any ad-specific fields, it is enough to - ' create the base type. - Dim ad As New Ad - ad.id = adId - - ' Create the ad group ad. - Dim adGroupAd As New AdGroupAd - adGroupAd.adGroupId = adGroupId - - adGroupAd.ad = ad - - ' Create the operation. - Dim operation As New AdGroupAdOperation - operation.operand = adGroupAd - operation.operator = [Operator].REMOVE - - Try - ' Delete the ad. - Dim retVal As AdGroupAdReturnValue = adGroupAdService.mutate( _ - New AdGroupAdOperation() {operation}) - - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedAdGroupAd As AdGroupAd = retVal.value(0) - Console.WriteLine("Ad with id = ""{0}"" and type = ""{1}"" was deleted.", _ - deletedAdGroupAd.ad.id, deletedAdGroupAd.ad.AdType) - Else - Console.WriteLine("No ads were deleted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to delete ad.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/DeleteAdGroup.vb b/examples/AdWords/Vb/v201309/BasicOperations/DeleteAdGroup.vb deleted file mode 100644 index 324759f0dca..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/DeleteAdGroup.vb +++ /dev/null @@ -1,101 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes an ad group by setting the status to 'DELETED'. - ''' To get ad groups, run GetAdGroups.vb. - ''' - ''' Tags: AdGroupService.mutate - ''' - Public Class DeleteAdGroup - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeleteAdGroup - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes an ad group by setting the status to 'DELETED'. " & _ - "To get ad groups, run GetAdGroups.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to be deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService(AdWordsService.v201309.AdGroupService) - - ' Create ad group with DELETED status. - Dim adGroup As New AdGroup - adGroup.id = adGroupId - - ' When deleting an ad group, rename it to avoid name collisions with new - ' ad groups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString - adGroup.status = AdGroupStatus.DELETED - - ' Create the operation. - Dim operation As New AdGroupOperation - operation.operand = adGroup - operation.operator = [Operator].SET - - Try - ' Delete the ad group. - Dim retVal As AdGroupReturnValue = adGroupService.mutate( _ - New AdGroupOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedAdGroup As AdGroup = retVal.value(0) - Console.WriteLine("Ad group with id = ""{0}"" was renamed to ""{1}"" and deleted.", _ - deletedAdGroup.id, deletedAdGroup.name) - Else - Console.WriteLine("No ad groups were deleted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to delete ad groups.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/DeleteCampaign.vb b/examples/AdWords/Vb/v201309/BasicOperations/DeleteCampaign.vb deleted file mode 100644 index 49a7a798159..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/DeleteCampaign.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes a campaign by setting the status to 'DELETED'. - ''' To get campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignService.mutate - ''' - Public Class DeleteCampaign - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeleteCampaign - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes a campaign by setting the status to 'DELETED'. To " & _ - "get campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to be deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create campaign with DELETED status. - Dim campaign As New Campaign - campaign.id = campaignId - - ' When deleting a campaign, rename it to avoid name collisions with new - ' campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString - campaign.status = CampaignStatus.DELETED - - ' Create the operation. - Dim operation As New CampaignOperation - operation.operand = campaign - operation.operator = [Operator].SET - - Try - ' Delete the campaign. - Dim retVal As CampaignReturnValue = campaignService.mutate( _ - New CampaignOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedCampaign As Campaign = retVal.value(0) - Console.WriteLine("Campaign with id = ""{0}"" was renamed to ""{1}"" and deleted.", _ - deletedCampaign.id, deletedCampaign.name) - Else - Console.WriteLine("No campaigns were deleted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to delete campaigns.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/DeleteKeyword.vb b/examples/AdWords/Vb/v201309/BasicOperations/DeleteKeyword.vb deleted file mode 100644 index e041ab96f48..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/DeleteKeyword.vb +++ /dev/null @@ -1,106 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes a keyword using the 'REMOVE' operator. To get - ''' keywords, run GetKeywords.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class DeleteKeyword - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeleteKeyword - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim keywordId As Long = Long.Parse("INSERT_KEYWORD_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, keywordId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes a keyword using the 'REMOVE' operator. To get " & _ - "keywords, run GetKeywords.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the keyword. - ''' - ''' Id of the keyword to be deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal keywordId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Create base class criterion to avoid setting keyword-specific - ' fields. - Dim criterion As New Criterion - criterion.id = keywordId - - ' Create the ad group criterion. - Dim adGroupCriterion As New BiddableAdGroupCriterion - adGroupCriterion.adGroupId = adGroupId - adGroupCriterion.criterion = criterion - - ' Create the operation. - Dim operation As New AdGroupCriterionOperation - operation.operand = adGroupCriterion - operation.operator = [Operator].REMOVE - - Try - ' Delete the keyword. - Dim retVal As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - New AdGroupCriterionOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedKeyword As AdGroupCriterion = retVal.value(0) - Console.WriteLine("Keyword with ad group id = ""{0}"" and id = ""{1}"" was " & _ - "deleted.", deletedKeyword.adGroupId, deletedKeyword.criterion.id) - Else - Console.WriteLine("No keywords were deleted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to delete keywords.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/GetAdGroups.vb b/examples/AdWords/Vb/v201309/BasicOperations/GetAdGroups.vb deleted file mode 100644 index 5070a4920b8..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/GetAdGroups.vb +++ /dev/null @@ -1,114 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to retrieve all the ad groups for a - ''' campaign. To create an ad group, run AddAdGroup.vb. - ''' - ''' Tags: AdGroupService.get - ''' - Public Class GetAdGroups - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAdGroups - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to retrieve all the ad groups for a " & _ - "campaign. To create an ad group, run AddAdGroup.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which ad groups are - ''' retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService( _ - AdWordsService.v201309.AdGroupService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "Name"} - - ' Create the filters. - Dim predicate As New Predicate - predicate.field = "CampaignId" - predicate.operator = PredicateOperator.EQUALS - predicate.values = New String() {campaignId.ToString} - selector.predicates = New Predicate() {predicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the ad groups. - page = adGroupService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each adGroup As AdGroup In page.entries - Console.WriteLine("{0}) Ad group name is ""{1}"" and id is ""{2}"".", i, _ - adGroup.name, adGroup.id) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of ad groups found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve ad group(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/GetCampaigns.vb b/examples/AdWords/Vb/v201309/BasicOperations/GetCampaigns.vb deleted file mode 100644 index 9aea8a801ab..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/GetCampaigns.vb +++ /dev/null @@ -1,103 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example lists all campaigns. To add a campaign, run - ''' AddCampaign.vb. - ''' - ''' Tags: CampaignService.get - ''' - Public Class GetCampaigns - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetCampaigns - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example lists all campaigns. To add a campaign, run AddCampaign.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "Name", "Status"} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New CampaignPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the campaigns. - page = campaignService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each campaign As Campaign In page.entries - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = " & _ - "'{3}' was found.", i, campaign.id, campaign.name, campaign.status) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve campaign(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb b/examples/AdWords/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb deleted file mode 100644 index a29a8fa61a4..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example lists all campaigns using an AWQL query. See - ''' https://developers.google.com/adwords/api/docs/guides/awql for AWQL - ''' documentation. To add a campaign, run AddCampaign.vb. - ''' - ''' Tags: CampaignService.get - ''' - Public Class GetCampaignsWithAwql - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetCampaignsWithAwql - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example lists all campaigns using an AWQL query. See " & _ - "https://developers.google.com/adwords/api/docs/guides/awql for AWQL " & _ - "documentation. To add a campaign, run AddCampaign.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create the query. - Dim query As String = "SELECT Id, Name, Status ORDER BY Name" - - Dim offset As Long = 0 - Dim pageSize As Long = 500 - - Dim page As New CampaignPage() - - Try - Do - Dim queryWithPaging As String = String.Format("{0} LIMIT {1}, {2}", query, offset, _ - pageSize) - - ' Get the campaigns. - page = campaignService.query(queryWithPaging) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each campaign As Campaign In page.entries - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = " & _ - "'{3}' was found.", i, campaign.id, campaign.name, campaign.status) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve campaign(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/GetKeywords.vb b/examples/AdWords/Vb/v201309/BasicOperations/GetKeywords.vb deleted file mode 100644 index 7f0cc959a01..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/GetKeywords.vb +++ /dev/null @@ -1,128 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets all keywords in an account. To add keywords, run - ''' AddKeywords.vb. - ''' - ''' Tags: AdGroupCriterionService.get - ''' - Public Class GetKeywords - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetKeywords - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets all keywords in an account. To add keywords, run " & _ - "AddKeywords.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Create a selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "AdGroupId", "KeywordText"} - - ' Select only keywords. - Dim predicate As New Predicate - predicate.field = "CriteriaType" - predicate.operator = PredicateOperator.EQUALS - predicate.values = New String() {"KEYWORD"} - selector.predicates = New Predicate() {predicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupCriterionPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the keywords. - page = adGroupCriterionService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each adGroupCriterion As AdGroupCriterion In page.entries - Dim isNegative As Boolean = TypeOf adGroupCriterion Is NegativeAdGroupCriterion - - ' If you are retrieving multiple type of criteria, then you may - ' need to check for - ' - ' if (adGroupCriterion is Keyword) { ... } - ' - ' to identify the criterion type. - Dim keyword As Keyword = adGroupCriterion.criterion - If isNegative Then - Console.WriteLine("{0}) Negative keyword with ad group ID = '{1}', keyword ID " & _ - "= '{2}', and text = '{3}' was found.", i, adGroupCriterion.adGroupId, _ - keyword.id, keyword.text) - Else - Console.WriteLine("{0}) Keyword with ad group ID = '{1}', keyword ID = '{2}', " & _ - "text = '{3}' and matchType = '{4} was found.", i, adGroupCriterion.adGroupId, _ - keyword.id, keyword.text, keyword.matchType) - End If - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of keywords found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve keywords.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/GetTextAds.vb b/examples/AdWords/Vb/v201309/BasicOperations/GetTextAds.vb deleted file mode 100644 index 8732b343391..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/GetTextAds.vb +++ /dev/null @@ -1,140 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves all text ads given an existing ad group. To - ''' add ads to an existing ad group, run AddTextAds.vb. - ''' - ''' Tags: AdGroupAdService.get - ''' - Public Class GetTextAds - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetTextAds - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves all text ads given an existing ad group. To add " & _ - "text ads to an existing ad group, run AddTextAds.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group from which text ads are - ''' retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - ' Create a selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "Status", "Headline", "Description1", _ - "Description2", "DisplayUrl"} - - ' Set the sort order. - Dim orderBy As New OrderBy - orderBy.field = "Id" - orderBy.sortOrder = SortOrder.ASCENDING - selector.ordering = New OrderBy() {orderBy} - - ' Restrict the fetch to only the selected ad group id. - Dim adGroupPredicate As New Predicate - adGroupPredicate.field = "AdGroupId" - adGroupPredicate.operator = PredicateOperator.EQUALS - adGroupPredicate.values = New String() {adGroupId.ToString} - - ' Retrieve only text ads. - Dim typePredicate As New Predicate - typePredicate.field = "AdType" - typePredicate.operator = PredicateOperator.EQUALS - typePredicate.values = New String() {"TEXT_AD"} - - ' By default disabled ads aren't returned by the selector. To return them - ' include the DISABLED status in the statuses field. - Dim statusPredicate As New Predicate - statusPredicate.field = "Status" - statusPredicate.operator = PredicateOperator.IN - - statusPredicate.values = New String() {AdGroupAdStatus.ENABLED.ToString, _ - AdGroupAdStatus.PAUSED.ToString, AdGroupAdStatus.DISABLED.ToString} - - selector.predicates = New Predicate() {adGroupPredicate, statusPredicate, typePredicate} - - ' Select the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupAdPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the text ads. - page = service.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each adGroupAd As AdGroupAd In page.entries - Dim textAd As TextAd = adGroupAd.ad - Console.WriteLine("{0}) Ad id is {1} and status is {2}", i, textAd.id, _ - adGroupAd.status) - Console.WriteLine(" {0}\n {1}\n {2}\n {3}", textAd.headline, _ - textAd.description1, textAd.description2, textAd.displayUrl) - Next - i += 1 - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of text ads found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get text ads.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/PauseAd.vb b/examples/AdWords/Vb/v201309/BasicOperations/PauseAd.vb deleted file mode 100644 index 612ca3f1891..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/PauseAd.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example pauses a given ad. To list all ads, run GetTextAds.cs. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class PauseAd - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New PauseAd - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim adId As Long = Long.Parse("INSERT_AD_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, adId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example pauses a given ad. To list all ads, run GetTextAds.cs." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the ad. - ''' - ''' Id of the ad to be paused. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal adId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - Dim status As AdGroupAdStatus = AdGroupAdStatus.PAUSED - - ' Create the ad group ad. - Dim adGroupAd As New AdGroupAd - adGroupAd.status = status - adGroupAd.adGroupId = adGroupId - - adGroupAd.ad = New Ad - adGroupAd.ad.id = adId - - ' Create the operation. - Dim adGroupAdOperation As New AdGroupAdOperation - adGroupAdOperation.operator = [Operator].SET - adGroupAdOperation.operand = adGroupAd - - Try - ' Update the ad. - Dim retVal As AdGroupAdReturnValue = service.mutate( _ - New AdGroupAdOperation() {adGroupAdOperation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim pausedAdGroupAd As AdGroupAd = retVal.value(0) - Console.WriteLine("Ad with id ""{0}"" was paused.", pausedAdGroupAd.ad.id) - Else - Console.WriteLine("No ads were paused.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to pause ad.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/UpdateAdGroup.vb b/examples/AdWords/Vb/v201309/BasicOperations/UpdateAdGroup.vb deleted file mode 100644 index 4ae847f67f7..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/UpdateAdGroup.vb +++ /dev/null @@ -1,96 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to update an ad group, setting its - ''' status to 'PAUSED'. To create an ad group, run AddAdGroup.vb. - ''' - ''' Tags: AdGroupService.mutate - ''' - Public Class UpdateAdGroup - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UpdateAdGroup - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to update an ad group, setting its status " & _ - "to 'PAUSED'. To create an ad group, run AddAdGroup.vb" - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to be updated. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService(AdWordsService.v201309.AdGroupService) - - ' Create the ad group. - Dim adGroup As New AdGroup - adGroup.status = AdGroupStatus.PAUSED - adGroup.id = adGroupId - - ' Create the operation. - Dim operation As New AdGroupOperation - operation.operator = [Operator].SET - operation.operand = adGroup - - Try - ' Update the ad group. - Dim retVal As AdGroupReturnValue = adGroupService.mutate(New AdGroupOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim pausedAdGroup As AdGroup = retVal.value(0) - Console.WriteLine("Ad group with id = '{0}' was successfully updated.", _ - pausedAdGroup.id) - Else - Console.WriteLine("No ad groups were updated.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to update ad groups.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/UpdateCampaign.vb b/examples/AdWords/Vb/v201309/BasicOperations/UpdateCampaign.vb deleted file mode 100644 index e1849fa4ab2..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/UpdateCampaign.vb +++ /dev/null @@ -1,97 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example updates a campaign. To get campaigns, run - ''' GetCampaigns.vb. - ''' - ''' Tags: CampaignService.mutate - ''' - Public Class UpdateCampaign - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UpdateCampaign - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example updates a campaign. To get campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to be updated. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create campaign with updated budget. - Dim campaign As New Campaign - campaign.id = campaignId - campaign.status = CampaignStatus.PAUSED - - ' Create the operations. - Dim operation As New CampaignOperation - operation.operator = [Operator].SET - operation.operand = campaign - - Try - ' Update the campaign. - Dim retVal As CampaignReturnValue = campaignService.mutate( _ - New CampaignOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim updatedCampaign As Campaign = retVal.value(0) - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was updated.", _ - updatedCampaign.name, updatedCampaign.id) - Else - Console.WriteLine("No campaigns were updated.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to update campaigns.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/BasicOperations/UpdateKeyword.vb b/examples/AdWords/Vb/v201309/BasicOperations/UpdateKeyword.vb deleted file mode 100644 index 6d45d259030..00000000000 --- a/examples/AdWords/Vb/v201309/BasicOperations/UpdateKeyword.vb +++ /dev/null @@ -1,122 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example updates the bid of a keyword. To get keyword, run - ''' GetKeywords.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class UpdateKeyword - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UpdateKeyword - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim keywordId As Long = Long.Parse("INSERT_KEYWORD_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, keywordId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example updates the bid of a keyword. To get keyword, run GetKeywords.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the keyword. - ''' - ''' Id of the keyword to be updated. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal keywordId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Since we are not updating any keyword-specific fields, it is enough to - ' create a criterion object. - Dim criterion As New Criterion - criterion.id = keywordId - - ' Create ad group criterion. - Dim biddableAdGroupCriterion As New BiddableAdGroupCriterion - biddableAdGroupCriterion.adGroupId = adGroupId - biddableAdGroupCriterion.criterion = criterion - - ' Create the bids. - Dim biddingConfig As New BiddingStrategyConfiguration() - Dim cpcBid As New CpcBid() - cpcBid.bid = New Money() - cpcBid.bid.microAmount = 1000000 - biddingConfig.bids = New Bids() {cpcBid} - - biddableAdGroupCriterion.biddingStrategyConfiguration = biddingConfig - - ' Create the operation. - Dim operation As New AdGroupCriterionOperation - operation.operator = [Operator].SET - operation.operand = biddableAdGroupCriterion - - Try - ' Update the keyword. - Dim retVal As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - New AdGroupCriterionOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim adGroupCriterion As BiddableAdGroupCriterion = retVal.value(0) - Dim bidAmount As Long = 0L - For Each bids As Bids In adGroupCriterion.biddingStrategyConfiguration.bids - If TypeOf bids Is CpcBid Then - bidAmount = TryCast(bids, CpcBid).bid.microAmount - End If - Next - - Console.WriteLine("Keyword with ad group id = '{0}', id = '{1}' was updated with " & _ - "bid amount = '{2}' micros.", adGroupCriterion.adGroupId, _ - adGroupCriterion.criterion.id, bidAmount) - Else - Console.WriteLine("No keyword was updated.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to update keyword.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/AddExperiment.vb b/examples/AdWords/Vb/v201309/CampaignManagement/AddExperiment.vb deleted file mode 100644 index 80afbd5a7b1..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/AddExperiment.vb +++ /dev/null @@ -1,216 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example creates an experiment using a query percentage of 10, - ''' which defines what fraction of auctions should go to the control split - ''' (90%) vs. the experiment split (10%), then adds experimental bid changes - ''' for criteria and ad groups. To get campaigns, run GetCampaigns.vb. - ''' To get ad groups, run GetAdGroups.vb. To get criteria, run - ''' GetKeywords.vb. - ''' - ''' Tags: ExperimentService.mutate - ''' - Public Class AddExperiment - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddExperiment - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim criterionId As Long = Long.Parse("INSERT_CRITERION_ID_HERE") - - codeExample.Run(New AdWordsUser, campaignId, adGroupId, criterionId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example creates an experiment using a query percentage of 10, which " & _ - "defines what fraction of auctions should go to the control split (90%) vs. the " & _ - "experiment split (10%), then adds experimental bid changes for criteria and ad " & _ - "groups. To get campaigns, run GetCampaigns.vb. To get ad groups, run " & _ - "GetAdGroups.vb. To get criteria, run GetKeywords.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to which experiments are - ''' added. - ''' Id of the ad group to which experiments are - ''' added. - ''' Id of the criterion for which experiments - ''' are added. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long, ByVal adGroupId As Long, _ - ByVal criterionId As Long) - ' Get the ExperimentService. - Dim experimentService As ExperimentService = user.GetService( _ - AdWordsService.v201309.ExperimentService) - - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService(AdWordsService.v201309.AdGroupService) - - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Create the experiment. - Dim experiment As New Experiment - experiment.campaignId = campaignId - experiment.name = ("Interplanetary Cruise #" & ExampleUtilities.GetRandomString) - experiment.queryPercentage = 10 - experiment.startDateTime = DateTime.Now.AddDays(1).ToString("yyyyMMdd HHmmss") - - ' Optional: Set the end date. - experiment.endDateTime = DateTime.Now.AddDays(30).ToString("yyyyMMdd HHmmss") - - ' Optional: Set the status. - experiment.status = ExperimentStatus.ACTIVE - - ' Create the operation. - Dim experimentOperation As New ExperimentOperation - experimentOperation.operator = [Operator].ADD - experimentOperation.operand = experiment - - Try - ' Add the experiment. - Dim experimentRetVal As ExperimentReturnValue = experimentService.mutate( _ - New ExperimentOperation() {experimentOperation}) - - 'Display the results. - If ((Not experimentRetVal Is Nothing) AndAlso (Not experimentRetVal.value Is Nothing) _ - AndAlso (experimentRetVal.value.Length > 0)) Then - Dim experimentId As Long = 0 - - Dim newExperiment As Experiment = experimentRetVal.value(0) - - Console.WriteLine("Experiment with name = ""{0}"" and id = ""{1}"" was added.", _ - newExperiment.name, newExperiment.id) - experimentId = newExperiment.id - - ' Set ad group for the experiment. - Dim adGroup As New AdGroup - adGroup.id = adGroupId - - ' Create experiment bid multiplier rule that will modify ad group bid - ' for the experiment. - Dim adGroupBidMultiplier As New ManualCPCAdGroupExperimentBidMultipliers - adGroupBidMultiplier.maxCpcMultiplier = New BidMultiplier - adGroupBidMultiplier.maxCpcMultiplier.multiplier = 1.5 - - ' Set experiment data to the ad group. - Dim adGroupExperimentData As New AdGroupExperimentData - adGroupExperimentData.experimentId = experimentId - adGroupExperimentData.experimentDeltaStatus = ExperimentDeltaStatus.MODIFIED - adGroupExperimentData.experimentBidMultipliers = adGroupBidMultiplier - - adGroup.experimentData = adGroupExperimentData - - ' Create the operation. - Dim adGroupOperation As New AdGroupOperation - adGroupOperation.operand = adGroup - adGroupOperation.operator = [Operator].SET - - ' Update the ad group. - Dim adGroupRetVal As AdGroupReturnValue = adGroupService.mutate( _ - New AdGroupOperation() {adGroupOperation}) - - ' Display the results. - If ((Not adGroupRetVal Is Nothing) AndAlso (Not adGroupRetVal.value Is Nothing) _ - AndAlso (adGroupRetVal.value.Length > 0)) Then - Dim updatedAdGroup As AdGroup = adGroupRetVal.value(0) - Console.WriteLine("Ad group with name = ""{0}"", id = ""{1}"" and status = " & _ - """{2}"" was updated for the experiment.", updatedAdGroup.name, _ - updatedAdGroup.id, updatedAdGroup.status) - Else - Console.WriteLine("No ad groups were updated.") - End If - - ' Set ad group criteria for the experiment. - Dim criterion As New Criterion - criterion.id = criterionId - - Dim adGroupCriterion As New BiddableAdGroupCriterion - adGroupCriterion.adGroupId = adGroupId - adGroupCriterion.criterion = criterion - - ' Create experiment bid multiplier rule that will modify criterion bid - ' for the experiment. - Dim bidMultiplier As New ManualCPCAdGroupCriterionExperimentBidMultiplier - bidMultiplier.maxCpcMultiplier = New BidMultiplier - bidMultiplier.maxCpcMultiplier.multiplier = 1.5 - - ' Set experiment data to the criterion. - Dim adGroupCriterionExperimentData As New BiddableAdGroupCriterionExperimentData - adGroupCriterionExperimentData.experimentId = experimentId - adGroupCriterionExperimentData.experimentDeltaStatus = ExperimentDeltaStatus.MODIFIED - adGroupCriterionExperimentData.experimentBidMultiplier = bidMultiplier - - adGroupCriterion.experimentData = adGroupCriterionExperimentData - - ' Create the operation. - Dim adGroupCriterionOperation As New AdGroupCriterionOperation - adGroupCriterionOperation.operand = adGroupCriterion - adGroupCriterionOperation.operator = [Operator].SET - - ' Update the ad group criteria. - Dim adGroupCriterionRetVal As AdGroupCriterionReturnValue = _ - adGroupCriterionService.mutate(New AdGroupCriterionOperation() _ - {adGroupCriterionOperation}) - - ' Display the results. - If ((Not adGroupCriterionRetVal Is Nothing) AndAlso _ - (Not adGroupCriterionRetVal.value Is Nothing) AndAlso _ - (adGroupCriterionRetVal.value.Length > 0)) Then - Dim updatedAdGroupCriterion As AdGroupCriterion = adGroupCriterionRetVal.value(0) - Console.WriteLine("Ad group criterion with ad group id = ""{0}"", criterion id =" & _ - " ""{1}"" and type = ""{2}"" was updated for the experiment.", _ - updatedAdGroupCriterion.adGroupId, updatedAdGroupCriterion.criterion.id, _ - updatedAdGroupCriterion.criterion.CriterionType) - Else - Console.WriteLine("No ad group criteria were updated.") - End If - Else - Console.WriteLine("No experiments were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add experiment(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/AddKeywordsInBulk.vb b/examples/AdWords/Vb/v201309/CampaignManagement/AddKeywordsInBulk.vb deleted file mode 100644 index 829629be41c..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/AddKeywordsInBulk.vb +++ /dev/null @@ -1,186 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Text.RegularExpressions -Imports System.Threading - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example shows how to add keywords in bulk using the - ''' MutateJobService. - ''' - ''' Tags: MutateJobService.mutate, MutateJobService.get - ''' Tags: MutateJobService.getResult - ''' - Public Class AddKeywordsInBulk - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddKeywordsInBulk - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example shows how to add keywords in bulk using the MutateJobService." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad groups to which keywords are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the MutateJobService. - Dim mutateJobService As MutateJobService = user.GetService( _ - AdWordsService.v201309.MutateJobService) - - Const RETRY_INTERVAL As Integer = 30 - Const RETRIES_COUNT As Integer = 30 - Const KEYWORD_NUMBER As Integer = 100 - Const INDEX_REGEX As String = "operations\[(\d+)\].operand" - - Dim operations As New List(Of Operation) - - ' Create AdGroupCriterionOperation to add keywords. - For i As Integer = 0 To KEYWORD_NUMBER - Dim keyword As New Keyword - keyword.text = String.Format("mars cruise {0}", i) - keyword.matchType = KeywordMatchType.BROAD - - Dim criterion As New BiddableAdGroupCriterion - criterion.adGroupId = adGroupId - criterion.criterion = keyword - - Dim adGroupCriterionOperation As New AdGroupCriterionOperation - adGroupCriterionOperation.operator = [Operator].ADD - adGroupCriterionOperation.operand = criterion - - operations.Add(adGroupCriterionOperation) - Next i - - Dim policy As New BulkMutateJobPolicy - ' You can specify up to 3 job IDs that must successfully complete before - ' this job can be processed. - policy.prerequisiteJobIds = New Long() {} - - Dim job As SimpleMutateJob = mutateJobService.mutate(operations.ToArray, policy) - - ' Wait for the job to complete. - Dim completed As Boolean = False - Dim retryCount As Integer = 0 - Console.WriteLine("Retrieving job status...") - - While (completed = False AndAlso retryCount < RETRIES_COUNT) - Dim selector As New BulkMutateJobSelector - selector.jobIds = New Long() {job.id} - - Try - Dim allJobs As Job() = mutateJobService.get(selector) - If ((Not allJobs Is Nothing) AndAlso (allJobs.Length > 0)) Then - job = allJobs(0) - If ((job.status = BasicJobStatus.COMPLETED) OrElse _ - (job.status = BasicJobStatus.FAILED)) Then - completed = True - Exit While - Else - Console.WriteLine("{0}: Current status is {1}, waiting {2} seconds to retry...", _ - retryCount, job.status, RETRY_INTERVAL) - Thread.Sleep(RETRY_INTERVAL * 1000) - retryCount = retryCount + 1 - End If - End If - Catch ex As Exception - Throw New System.ApplicationException(String.Format("Failed to fetch simple mutate " & _ - "job with id = {0}.", job.id), ex) - Return - End Try - End While - - If (job.status = BasicJobStatus.COMPLETED) Then - ' Handle cases where the job completed. - - ' Create the job selector. - Dim selector As New BulkMutateJobSelector - selector.jobIds = New Long() {job.id} - - ' Get the job results. - Dim jobResult As JobResult = mutateJobService.getResult(selector) - If Not jobResult Is Nothing Then - Dim results As SimpleMutateResult = jobResult.Item - If Not results Is Nothing Then - 'Display the results. - If Not results.results Is Nothing Then - For i As Integer = 0 To results.results.Length - 1 - Dim operand As Operand = results.results(i) - Dim status As String - If TypeOf operand.Item Is PlaceHolder Then - status = "FAILED" - Else - status = "SUCCEEDED" - End If - Console.WriteLine("Operation {0} - {1}", i, status) - Next i - End If - - ' Display the errors. - If Not results.errors Is Nothing Then - For Each apiError As ApiError In results.errors - Dim match As Match = Regex.Match(apiError.fieldPath, INDEX_REGEX, _ - RegexOptions.IgnoreCase) - Dim index As String = "???" - If (match.Success) Then - index = match.Groups(1).Value - End If - Console.WriteLine("Operation index {0} failed due to reason: '{1}', " & _ - "trigger: '{2}'", index, apiError.errorString, apiError.trigger) - Next - End If - End If - End If - Console.WriteLine("Job completed successfully!") - ElseIf (job.status = BasicJobStatus.FAILED) Then - ' Handle the cases where job failed. - Console.WriteLine("Job failed with reason: " & job.failureReason.ToString()) - ElseIf (job.status = BasicJobStatus.PROCESSING OrElse job.status = BasicJobStatus.PENDING) _ - Then - ' Handle the cases where job didn't complete after wait period. - Console.WriteLine("Job did not complete in {0} secconds.", RETRY_INTERVAL * RETRIES_COUNT) - End If - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/AddLocationExtension.vb b/examples/AdWords/Vb/v201309/CampaignManagement/AddLocationExtension.vb deleted file mode 100644 index 92c0981913c..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/AddLocationExtension.vb +++ /dev/null @@ -1,150 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example shows how to add a location extension to an existing - ''' campaign. To create a campaign, run AddCampaign.vb. - ''' - ''' Tags: GeoLocationService.get, CampaignAdExtensionService.mutate - ''' - Public Class AddLocationExtension - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddLocationExtension - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example shows how to add a location extension to an existing" & _ - " campaign. To create a campaign, run AddCampaign.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to which location - ''' extensions are added. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignAdExtensionService. - Dim campaignExtensionService As CampaignAdExtensionService = user.GetService( _ - AdWordsService.v201309.CampaignAdExtensionService) - - ' Add location 1: 1600 Amphitheatre Pkwy, Mountain View, US. - Dim address1 As New Address - address1.streetAddress = "1600 Amphitheatre Parkway" - address1.cityName = "Mountain View" - address1.provinceCode = "CA" - address1.postalCode = "94043" - address1.countryCode = "US" - - ' Add location 2: 38 avenue de l'Opéra, 75002 Paris, FR. - Dim address2 As New Address - address2.streetAddress = "38 avenue de l'Opéra" - address2.cityName = "Paris" - address2.postalCode = "75002" - address2.countryCode = "FR" - - ' Get the GeoLocationService. - Dim geoService As GeoLocationService = user.GetService( _ - AdWordsService.v201309.GeoLocationService) - - ' Create the selector. - Dim selector As New GeoLocationSelector - selector.addresses = New Address() {address1, address2} - - ' Retrieve the locations. - Dim locations As GeoLocation() = geoService.get(selector) - - Dim operations As New List(Of CampaignAdExtensionOperation) - - ' Phone numbers for US and FR offices. - Dim phoneNumbers As String() = New String() {"(650) 253-0000", "(0)1 42 68 53 00"} - Dim index As Integer = 0 - - ' Create a location extension for each geo location returned by the - ' server. - For Each location As GeoLocation In locations - Dim locationExtension As New LocationExtension - locationExtension.address = location.address - locationExtension.geoPoint = location.geoPoint - locationExtension.encodedLocation = location.encodedLocation - locationExtension.source = LocationExtensionSource.ADWORDS_FRONTEND - - ' Optional: Set the company name. - locationExtension.companyName = "ACME Inc." - - ' Optional: Set the phone number. - locationExtension.phoneNumber = phoneNumbers(index) - index = index + 1 - - Dim extension As New CampaignAdExtension - extension.campaignId = campaignId - extension.status = CampaignAdExtensionStatus.ACTIVE - extension.adExtension = locationExtension - - Dim operation As New CampaignAdExtensionOperation - operation.operator = [Operator].ADD - operation.operand = extension - - operations.Add(operation) - Next - - Try - ' Create the location extensions. - Dim retVal As CampaignAdExtensionReturnValue = campaignExtensionService.mutate( _ - operations.ToArray) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - For Each campaignExtension As CampaignAdExtension In retVal.value - Console.WriteLine("Created a location extension with id = ""{0}"" and status " & _ - "= ""{1}""", campaignExtension.adExtension.id, campaignExtension.status) - Next - Else - Console.WriteLine("No location extensions were created.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add location extensions.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb b/examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb deleted file mode 100644 index bf964f293a4..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb +++ /dev/null @@ -1,121 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves all the disapproved ads in a given campaign. - ''' - ''' Tags: AdGroupAdService.get - ''' - Public Class GetAllDisapprovedAds - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAllDisapprovedAds - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves all the disapproved ads in a given campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which disapproved ads - ''' are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "AdGroupCreativeApprovalStatus", _ - "AdGroupAdDisapprovalReasons"} - - ' Set the filters. - Dim campaignPredicate As New Predicate - campaignPredicate.operator = PredicateOperator.EQUALS - campaignPredicate.field = "CampaignId" - campaignPredicate.values = New String() {campaignId.ToString} - - Dim approvalPredicate As New Predicate - approvalPredicate.operator = PredicateOperator.EQUALS - approvalPredicate.field = "AdGroupCreativeApprovalStatus" - approvalPredicate.values = New String() {AdGroupAdApprovalStatus.DISAPPROVED.ToString()} - - selector.predicates = New Predicate() {campaignPredicate, approvalPredicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupAdPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the disapproved ads. - page = service.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each adGroupAd As AdGroupAd In page.entries - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " & _ - "reason(s):", i, adGroupAd.ad.id) - For Each reason As String In adGroupAd.disapprovalReasons - Console.WriteLine(" {0}", reason) - Next - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get disapproved ads.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb b/examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb deleted file mode 100644 index 3ea88a32da8..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb +++ /dev/null @@ -1,111 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves all the disapproved ads in a given campaign - ''' using an AWQL query. See - ''' https://developers.google.com/adwords/api/docs/guides/awql for AWQL - ''' documentation. - ''' - ''' Tags: AdGroupAdService.get - ''' - Public Class GetAllDisapprovedAdsWithAwql - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAllDisapprovedAdsWithAwql - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves all the disapproved ads in a given campaign using " & _ - "an AWQL query. See https://developers.google.com/adwords/api/docs/guides/awql for " & _ - "AWQL documentation." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which disapproved ads - ''' are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - ' Get all the disapproved ads for this campaign. - Dim query As String = String.Format("SELECT Id, AdGroupAdDisapprovalReasons WHERE " & _ - "CampaignId = {0} AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id", _ - campaignId) - - Dim offset As Long = 0 - Dim pageSize As Long = 500 - - Dim page As New AdGroupAdPage() - - Try - Do - Dim queryWithPaging As String = String.Format("{0} LIMIT {1}, {2}", query, offset, _ - pageSize) - - ' Get the disapproved ads. - page = service.query(queryWithPaging) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each adGroupAd As AdGroupAd In page.entries - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " & _ - "reason(s):", i, adGroupAd.ad.id) - For Each reason As String In adGroupAd.disapprovalReasons - Console.WriteLine(" {0}", reason) - Next - i = i + 1 - Next - End If - - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get disapproved ads.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/PromoteExperiment.vb b/examples/AdWords/Vb/v201309/CampaignManagement/PromoteExperiment.vb deleted file mode 100644 index 4e9e22372ea..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/PromoteExperiment.vb +++ /dev/null @@ -1,100 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This example promotes an experiment, which permanently applies all the - ''' experiment changes made to its related ad groups, criteria and ads. To - ''' create an experiment, run AddExperiment.vb. - ''' - ''' Tags: ExperimentService.mutate - ''' - Public Class PromoteExperiment - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New PromoteExperiment - Console.WriteLine(codeExample.Description) - Try - Dim experimentId As Long = Long.Parse("INSERT_EXPERIMENT_ID_HERE") - codeExample.Run(New AdWordsUser, experimentId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This example promotes an experiment, which permanently applies all the " & _ - "experiment changes made to its related ad groups, criteria and ads. To create an " & _ - "experiment, run AddExperiment.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the experiment to be promoted. - Public Sub Run(ByVal user As AdWordsUser, ByVal experimentId As Long) - ' Get the ExperimentService. - Dim experimentService As ExperimentService = user.GetService( _ - AdWordsService.v201309.ExperimentService) - - ' Set experiment's status to PROMOTED. - Dim experiment As New Experiment - experiment.id = experimentId - experiment.status = ExperimentStatus.PROMOTED - - ' Create the operation. - Dim operation As New ExperimentOperation - operation.operator = [Operator].SET - operation.operand = experiment - - Try - ' Update the experiment. - Dim retVal As ExperimentReturnValue = experimentService.mutate( _ - New ExperimentOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim promotedExperiment As Experiment = retVal.value(0) - Console.WriteLine("Experiment with name = ""{0}"" and id = ""{1}"" was promoted.", _ - promotedExperiment.name, promotedExperiment.id) - Else - Console.WriteLine("No experiments were promoted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to promote experiment(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/SetAdParameters.vb b/examples/AdWords/Vb/v201309/CampaignManagement/SetAdParameters.vb deleted file mode 100644 index 6263da03fa5..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/SetAdParameters.vb +++ /dev/null @@ -1,155 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to create a text ad with ad parameters. - ''' To add an ad group, run AddAdGroup.vb. To add a keyword, run - ''' AddKeyword.vb. - ''' - ''' Tags: AdGroupAdService.mutate, AdParamService.mutate - ''' - Public Class SetAdParameters - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New SetAdParameters - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim criterionId As Long = Long.Parse("INSERT_CRITERION_ID_HERE") - - codeExample.Run(New AdWordsUser, adGroupId, criterionId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to create a text ad with ad parameters. To " & _ - "add an ad group, run AddAdGroup.vb. To add a keyword, run AddKeyword.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the criterion. - ''' - ''' Id of the keyword for which the ad - ''' parameters are set. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal criterionId As Long) - ' Get the AdGroupAdService. - Dim adGroupAdService As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - ' Get the AdParamService. - Dim adParamService As AdParamService = user.GetService( _ - AdWordsService.v201309.AdParamService) - - ' Create the text ad. - Dim textAd As New TextAd - textAd.url = "http://www.example.com" - textAd.displayUrl = "example.com" - textAd.headline = " Mars Cruises" - textAd.description1 = "Low-gravity fun for {param1:cheap}." - textAd.description2 = "Only {param2:a few} seats left!" - - Dim adOperand As New AdGroupAd - adOperand.adGroupId = adGroupId - adOperand.status = AdGroupAdStatus.ENABLED - adOperand.ad = textAd - - ' Create the operation. - Dim adOperation As New AdGroupAdOperation - adOperation.operand = adOperand - adOperation.operator = [Operator].ADD - - Try - ' Create the text ad. - Dim retVal As AdGroupAdReturnValue = adGroupAdService.mutate( _ - New AdGroupAdOperation() {adOperation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) _ - AndAlso (retVal.value.Length > 0)) Then - Console.WriteLine("Text ad with id = ""{0}"" was successfully added.", _ - retVal.value(0).ad.id) - Else - Console.WriteLine("No text ads were created.") - Return - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create text ads.", ex) - Return - End Try - - ' Create the ad param for price. - Dim priceParam As New AdParam - priceParam.adGroupId = adGroupId - priceParam.criterionId = criterionId - priceParam.paramIndex = 1 - priceParam.insertionText = "$100" - - ' Create the ad param for seats. - Dim seatParam As New AdParam - seatParam.adGroupId = adGroupId - seatParam.criterionId = criterionId - seatParam.paramIndex = 2 - seatParam.insertionText = "50" - - ' Create the operations. - Dim priceOperation As New AdParamOperation - priceOperation.operator = [Operator].SET - priceOperation.operand = priceParam - - Dim seatOperation As New AdParamOperation - seatOperation.operator = [Operator].SET - seatOperation.operand = seatParam - - Try - ' Set the ad parameters. - Dim newAdParams As AdParam() = adParamService.mutate(New AdParamOperation() _ - {priceOperation, seatOperation}) - - 'Display the results. - If (Not newAdParams Is Nothing) Then - Console.WriteLine("Ad parameters were successfully updated.") - Else - Console.WriteLine("No ad parameters were set.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to set ad parameter(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/SetBidModifier.vb b/examples/AdWords/Vb/v201309/CampaignManagement/SetBidModifier.vb deleted file mode 100644 index 42df16a0db4..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/SetBidModifier.vb +++ /dev/null @@ -1,112 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example sets a bid modifier for the mobile platform on given - ''' campaign. The campaign must be an enhanced type of campaign. To get - ''' campaigns, run GetCampaigns.vb. To enhance a campaign, run - ''' SetCampaignEnhanced.vb. - ''' - ''' Tags: CampaignCriterionService.mutate - ''' - Public Class SetBidModifier - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New SetBidModifier - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - Dim bidModifier As Double = Double.Parse("INSERT_BID_MODIFIER_HERE") - codeExample.Run(New AdWordsUser, campaignId, bidModifier) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example sets a bid modifier for the mobile platform on given " & _ - "campaign. The campaign must be an enhanced type of campaign. To get campaigns, " & _ - "run GetCampaigns.vb. To enhance a campaign, run SetCampaignEnhanced.vb." - End Get - End Property - - ''' - ''' Runs the specified user. - ''' - ''' The AdWords user. - ''' Id of the campaign whose bid should be modified. - ''' - ''' The bid modifier. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long, ByVal bidModifier As Double) - ' Get the CampaignCriterionService. - Dim campaignCriterionService As CampaignCriterionService = user.GetService( _ - AdWordsService.v201309.CampaignCriterionService) - - ' Create mobile platform. The ID can be found in the documentation. - ' https://developers.google.com/adwords/api/docs/appendix/platforms - Dim mobile As New Platform() - mobile.id = 30001 - - ' Create criterion with modified bid. - Dim criterion As New CampaignCriterion() - criterion.campaignId = campaignId - criterion.criterion = mobile - criterion.bidModifier = bidModifier - - ' Create SET operation. - Dim operation As New CampaignCriterionOperation() - operation.operator = [Operator].SET - operation.operand = criterion - - Try - ' Update campaign criteria. - Dim result As CampaignCriterionReturnValue = campaignCriterionService.mutate( _ - New CampaignCriterionOperation() {operation}) - - ' Display campaign criteria. - If Not result.value Is Nothing Then - For Each newCriterion As CampaignCriterion In result.value - Console.WriteLine("Campaign criterion with campaign id '{0}', criterion id '{1}' " & _ - "and type '{2}' was modified with bid {3:F2}.", newCriterion.campaignId, _ - newCriterion.criterion.id, newCriterion.criterion.type, newCriterion.bidModifier) - Next - Else - Console.WriteLine("No campaigns were modified.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to set bid modifier.", ex) - End Try - End Sub - End Class -End Namespace \ No newline at end of file diff --git a/examples/AdWords/Vb/v201309/CampaignManagement/ValidateTextAd.vb b/examples/AdWords/Vb/v201309/CampaignManagement/ValidateTextAd.vb deleted file mode 100644 index e5c723d0afe..00000000000 --- a/examples/AdWords/Vb/v201309/CampaignManagement/ValidateTextAd.vb +++ /dev/null @@ -1,110 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example shows how to use the validateOnly header to validate - ''' a text ad. No objects will be created, but exceptions will still be - ''' thrown. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class ValidateTextAd - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New ValidateTextAd - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example shows how to use the validateOnly header to validate a text " & _ - "ad. No objects will be created, but exceptions will still be thrown." - End Get - End Property - - ''' - ''' Runs the specified user. - ''' - ''' The AdWords user. - ''' Id of the ad group to which text ads are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim adGroupAdService As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - ' Set the validateOnly headers. - adGroupAdService.RequestHeader.validateOnly = True - - ' Create your text ad. - Dim textAd As New TextAd - textAd.headline = "Luxury Cruise to Mars" - textAd.description1 = "Visit the Red Planet in style." - textAd.description2 = "Low-gravity fun for everyone!!" - textAd.displayUrl = "www.example.com" - textAd.url = "http://www.example.com" - - Dim textAdGroupAd As New AdGroupAd - textAdGroupAd.adGroupId = adGroupId - textAdGroupAd.ad = textAd - - Dim textAdOperation As New AdGroupAdOperation - textAdOperation.operator = [Operator].ADD - textAdOperation.operand = textAdGroupAd - Try - Dim retVal As AdGroupAdReturnValue = adGroupAdService.mutate( _ - New AdGroupAdOperation() {textAdOperation}) - ' Since validation is ON, result will be null. - Console.WriteLine("text ad validated successfully.") - Catch ex As AdWordsApiException - ' This block will be hit if there is a validation error from the server. - Console.WriteLine("There were validation error(s) while adding text ad.") - - If (Not ex.ApiException Is Nothing) Then - For Each apiError As ApiError In DirectCast(ex.ApiException, ApiException).errors - Console.WriteLine(" Error type is '{0}' and fieldPath is '{1}'.", _ - apiError.ApiErrorType, apiError.fieldPath) - Next - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to validate text ad.", ex) - End Try - End Sub - End Class -End Namespace \ No newline at end of file diff --git a/examples/AdWords/Vb/v201309/ErrorHandling/HandlePartialFailures.vb b/examples/AdWords/Vb/v201309/ErrorHandling/HandlePartialFailures.vb deleted file mode 100644 index 56fe60c105a..00000000000 --- a/examples/AdWords/Vb/v201309/ErrorHandling/HandlePartialFailures.vb +++ /dev/null @@ -1,137 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example demonstrates how to handle partial failures. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class HandlePartialFailures - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandlePartialFailures - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example demonstrates how to handle partial failures." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which keywords are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Set partial failure mode for the service. - adGroupCriterionService.RequestHeader.partialFailure = True - - Dim operations As New List(Of AdGroupCriterionOperation) - - ' Create the keywords. - Dim keywords As String() = New String() {"mars cruise", "inv@lid cruise", "venus cruise", _ - "b(a)d keyword cruise"} - - For Each keywordText As String In keywords - Dim keyword As New Keyword - keyword.text = keywordText - keyword.matchType = KeywordMatchType.BROAD - - ' Create biddable ad group criterion. - Dim keywordBiddableAdGroupCriterion As New BiddableAdGroupCriterion - keywordBiddableAdGroupCriterion.adGroupId = adGroupId - keywordBiddableAdGroupCriterion.criterion = keyword - - ' Create the operation. - Dim keywordAdGroupCriterionOperation As New AdGroupCriterionOperation - keywordAdGroupCriterionOperation.operand = keywordBiddableAdGroupCriterion - keywordAdGroupCriterionOperation.operator = [Operator].ADD - operations.Add(keywordAdGroupCriterionOperation) - Next - - Try - ' Create the keywords. - Dim result As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - operations.ToArray) - - ' Display the results. - If ((Not result Is Nothing) AndAlso (Not result.value Is Nothing)) Then - For Each adGroupCriterionResult As AdGroupCriterion In result.value - If (Not adGroupCriterionResult.criterion Is Nothing) Then - Console.WriteLine("Keyword with ad group id '{0}', and criterion id " & _ - "'{1}', and text '{2}' was added.\n", adGroupCriterionResult.adGroupId, _ - adGroupCriterionResult.criterion.id, _ - DirectCast(adGroupCriterionResult.criterion, Keyword).text) - End If - Next - Else - Console.WriteLine("No keywords were added.") - End If - - ' Display the partial failure errors. - If ((Not result Is Nothing) AndAlso (Not result.partialFailureErrors Is Nothing)) Then - For Each apiError As ApiError In result.partialFailureErrors - Dim operationIndex As Integer = ErrorUtilities.GetOperationIndex(apiError.fieldPath) - If (operationIndex <> -1) Then - Dim adGroupCriterion As AdGroupCriterion = operations(operationIndex).operand - Console.WriteLine("Keyword with ad group id '{0}' and text '{1}' " & _ - "triggered a failure for the following reason: '{2}'.\n", _ - adGroupCriterion.adGroupId, _ - DirectCast(adGroupCriterion.criterion, Keyword).text, _ - apiError.errorString) - Else - Console.WriteLine("A failure for the following reason: '{0}' has occurred.\n", _ - apiError.errorString) - End If - Next - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add keyword(s) in partial failure mode.", _ - ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb b/examples/AdWords/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb deleted file mode 100644 index 60b53be22d4..00000000000 --- a/examples/AdWords/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb +++ /dev/null @@ -1,175 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds a text ad, and shows how to handle a policy - ''' violation. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class HandlePolicyViolationError - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandlePolicyViolationError - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a text ad, and shows how to handle a policy violation." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which ads are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - ' Create the text ad. - Dim textAd As New TextAd - textAd.headline = "Luxury Cruise to Mars" - textAd.description1 = "Visit the Red Planet in style." - textAd.description2 = "Low-gravity fun for everyone!!" - textAd.displayUrl = "www.example.com" - textAd.url = "http://www.example.com" - - Dim textadGroupAd As New AdGroupAd - textadGroupAd.adGroupId = adGroupId - textadGroupAd.ad = textAd - - ' Create the operations. - Dim textAdOperation As New AdGroupAdOperation - textAdOperation.operator = [Operator].ADD - textAdOperation.operand = textadGroupAd - - Try - Dim retVal As AdGroupAdReturnValue = Nothing - - ' Setup two arrays, one to hold the list of all operations to be - ' validated, and another to hold the list of operations that cannot be - ' fixed after validation. - Dim allOperations As New List(Of AdGroupAdOperation) - Dim operationsToBeRemoved As New List(Of AdGroupAdOperation) - - allOperations.Add(textAdOperation) - - Try - ' Validate the operations. - service.RequestHeader.validateOnly = True - retVal = service.mutate(allOperations.ToArray) - Catch ex As AdWordsApiException - Dim innerException As ApiException = TryCast(ex.ApiException, ApiException) - If (innerException Is Nothing) Then - Throw New Exception("Failed to retrieve ApiError. See inner exception for more " & _ - "details.", ex) - End If - - ' Examine each ApiError received from the server. - For Each apiError As ApiError In innerException.errors - Dim index As Integer = ErrorUtilities.GetOperationIndex(apiError.fieldPath) - If (index = -1) Then - ' This API error is not associated with an operand, so we cannot - ' recover from this error by removing one or more operations. - ' Rethrow the exception for manual inspection. - Throw - End If - - ' Handle policy violation errors. - If TypeOf apiError Is PolicyViolationError Then - Dim policyError As PolicyViolationError = apiError - - If policyError.isExemptable Then - ' If the policy violation error is exemptable, add an exemption - ' request. - Dim exemptionRequests As New List(Of ExemptionRequest) - If (Not allOperations.Item(index).exemptionRequests Is Nothing) Then - exemptionRequests.AddRange(allOperations.Item(index).exemptionRequests) - End If - - Dim exemptionRequest As New ExemptionRequest - exemptionRequest.key = policyError.key - exemptionRequests.Add(exemptionRequest) - allOperations.Item(index).exemptionRequests = exemptionRequests.ToArray - Else - ' Policy violation error is not exemptable, remove this - ' operation from the list of operations. - operationsToBeRemoved.Add(allOperations.Item(index)) - End If - Else - ' This is not a policy violation error, remove this operation - ' from the list of operations. - operationsToBeRemoved.Add(allOperations.Item(index)) - End If - Next - - ' Remove all operations that aren't exemptable. - For Each operation As AdGroupAdOperation In operationsToBeRemoved - allOperations.Remove(operation) - Next - End Try - If (allOperations.Count > 0) Then - ' Perform the operations exemptible of a policy violation. - service.RequestHeader.validateOnly = False - retVal = service.mutate(allOperations.ToArray) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) _ - AndAlso (retVal.value.Length > 0)) Then - For Each newAdGroupAd As AdGroupAd In retVal.value - Console.WriteLine("New ad with id = ""{0}"" and displayUrl = ""{1}"" was created.", _ - newAdGroupAd.ad.id, newAdGroupAd.ad.displayUrl) - Next - Else - Console.WriteLine("No ads were created.") - End If - Else - Console.WriteLine("There are no ads to create after policy violation checks.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create Ad(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/ErrorHandling/HandleRateExceededError.vb b/examples/AdWords/Vb/v201309/ErrorHandling/HandleRateExceededError.vb deleted file mode 100644 index 965d10420ee..00000000000 --- a/examples/AdWords/Vb/v201309/ErrorHandling/HandleRateExceededError.vb +++ /dev/null @@ -1,206 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Net -Imports System.Threading - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example shows how to handle RateExceededError in your - ''' application. To trigger the rate exceeded error, this code example runs - ''' 100 threads in parallel, each thread attempting to validate 100 keywords - ''' in a single request. Note that spawning 100 parallel threads is for - ''' illustrative purposes only, you shouldn't do this in your application. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class HandleRateExceededError - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandleRateExceededError - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example shows how to handle RateExceededError in your application. " & _ - "To trigger the rate exceeded error, this code example runs 100 threads in " & _ - "parallel, each thread attempting to validate 100 keywords in a single request. " & _ - "Note that spawning 100 parallel threads is for illustrative purposes only, you " & _ - "shouldn't do this in your application." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which keywords are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - Const NUM_THREADS As Integer = 100 - - ' Increase the maximum number of parallel HTTP connections that .NET - ' framework allows. By default, this is set to 2 by the .NET framework. - ServicePointManager.DefaultConnectionLimit = NUM_THREADS - - Dim threads As New List(Of Thread) - - For i As Integer = 0 To NUM_THREADS - Dim thread As New Thread(AddressOf New KeywordThread(user, i, adGroupId).Run) - threads.Add(thread) - Next i - - For i As Integer = 0 To threads.Count - 1 - threads.Item(i).Start(i) - Next i - - For i As Integer = 0 To threads.Count - 1 - threads.Item(i).Join() - Next i - End Sub - - ''' - ''' Thread class for validating keywords. - ''' - Public Class KeywordThread - ''' - ''' Index of this thread, for identifying and debugging. - ''' - Dim threadIndex As Integer - - ''' - ''' The ad group id to which keywords are added. - ''' - Dim adGroupId As Long - - ''' - ''' The AdWords user who owns this ad group. - ''' - Dim user As AdWordsUser - - ''' - ''' Number of keywords to be validated in each API call. - ''' - Const NUM_KEYWORDS As Integer = 100 - - ''' - ''' Initializes a new instance of the class. - ''' - ''' Index of the thread. - ''' The ad group id. - ''' The AdWords user who owns the ad group. - Public Sub New(ByVal user As AdWordsUser, ByVal threadIndex As Integer, _ - ByVal adGroupId As Long) - Me.user = user - Me.threadIndex = threadIndex - Me.adGroupId = adGroupId - End Sub - - ''' - ''' Main method for the thread. - ''' - ''' The thread parameter. - Public Sub Run(ByVal obj As Object) - ' Create the operations. - Dim operations As New List(Of AdGroupCriterionOperation) - For j As Integer = 0 To NUM_KEYWORDS - ' Create the keyword. - Dim keyword As New Keyword - keyword.text = "mars cruise thread " & threadIndex.ToString & " seed " & j.ToString - keyword.matchType = KeywordMatchType.BROAD - - ' Create the biddable ad group criterion. - Dim keywordCriterion As AdGroupCriterion = New BiddableAdGroupCriterion - keywordCriterion.adGroupId = adGroupId - keywordCriterion.criterion = keyword - - ' Create the operations. - Dim keywordOperation As New AdGroupCriterionOperation - keywordOperation.operator = [Operator].ADD - keywordOperation.operand = keywordCriterion - - operations.Add(keywordOperation) - Next j - - ' Get the AdGroupCriterionService. This should be done within the - ' thread, since a service can only handle one outgoing HTTP request - ' at a time. - Dim service As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - service.RequestHeader.validateOnly = True - Dim retryCount As Integer = 0 - Const NUM_RETRIES As Integer = 3 - Try - While (retryCount < NUM_RETRIES) - Try - ' Validate the keywords. - Dim retval As AdGroupCriterionReturnValue = service.mutate(operations.ToArray) - Exit While - Catch ex As AdWordsApiException - ' Handle API errors. - Dim innerException As ApiException = TryCast(ex.ApiException, ApiException) - If (innerException Is Nothing) Then - Throw New Exception("Failed to retrieve ApiError. See inner exception for more " & _ - "details.", ex) - End If - For Each apiError As ApiError In innerException.errors - If Not TypeOf apiError Is RateExceededError Then - ' Rethrow any errors other than RateExceededError. - Throw - End If - ' Handle rate exceeded errors. - Dim rateExceededError As RateExceededError = DirectCast(apiError, RateExceededError) - Console.WriteLine("Got Rate exceeded error - rate name = '{0}', scope = '{1}', " & _ - "retry After {2} seconds.", rateExceededError.rateScope, _ - rateExceededError.rateName, rateExceededError.retryAfterSeconds) - Thread.Sleep(rateExceededError.retryAfterSeconds) - retryCount = retryCount + 1 - Next - Finally - If (retryCount = NUM_RETRIES) Then - Throw New Exception(String.Format("Could not recover after making {0} attempts.", _ - retryCount)) - End If - End Try - End While - Catch ex As Exception - Throw New System.ApplicationException("Failed to validate keywords.", ex) - End Try - End Sub - End Class - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb b/examples/AdWords/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb deleted file mode 100644 index 4292db476db..00000000000 --- a/examples/AdWords/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb +++ /dev/null @@ -1,95 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.Common.Lib - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to handle 2 factor authorization errors. - ''' - ''' Tags: CampaignService.get - ''' - Public Class HandleTwoFactorAuthorizationError - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandleTwoFactorAuthorizationError - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to handle 2 factor authorization errors." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Use a test account for which 2 factor authentication has been enabled. - Dim loginEmail As String = "2steptester@gmail.com" - Dim password As String = "testaccount" - - Dim config As New AdWordsAppConfig - config.Email = loginEmail - config.Password = password - Dim authToken As New AuthToken(config, "adwords") - - Try - ' Try to obtain an authToken. - Dim token As String = authToken.GetToken - Console.WriteLine("Retrieved an authToken = {0} for user {1}.", token, loginEmail) - Catch ex As AuthTokenException - ' Since the test account has 2 factor authentication enabled, this block - ' of code will be executed. - If (ex.ErrorCode = AuthTokenErrorCode.BadAuthentication) Then - If (ex.Info = "InvalidSecondFactor") Then - Console.WriteLine("The user has enabled two factor authentication in this " & _ - "account. Have the user generate an application-specific password to make " & _ - "calls against the AdWords API. See " & _ - "http://adwordsapi.blogspot.com/2011/02/authentication-changes-with-2-step.html" & _ - "for more details.") - Else - Console.WriteLine("Invalid credentials.") - End If - Else - Throw New System.ApplicationException(String.Format("The server raised an {0} error.", _ - ex.ErrorCode), ex) - End If - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb b/examples/AdWords/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb deleted file mode 100644 index a6ca8b9422c..00000000000 --- a/examples/AdWords/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb +++ /dev/null @@ -1,139 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets all videos and images. To upload video, see - ''' http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. - ''' To upload image, run UploadImage.vb. - ''' - ''' Tags: MediaService.get - ''' - Public Class GetAllVideosAndImages - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAllVideosAndImages - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets all videos and images. To upload video, see " & _ - "http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. To " & _ - "upload image, run UploadImage.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the MediaService. - Dim mediaService As MediaService = user.GetService(AdWordsService.v201309.MediaService) - - ' Create the video selector. - Dim selector As New Selector - selector.fields = New String() {"MediaId", "Width", "Height", "MimeType"} - - ' Set the filter. - Dim predicate As New Predicate - predicate.operator = PredicateOperator.IN - predicate.field = "Type" - predicate.values = New String() {MediaMediaType.VIDEO.ToString(), _ - MediaMediaType.IMAGE.ToString()} - - selector.predicates = New Predicate() {predicate} - - ' Select selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New MediaPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - page = mediaService.get(selector) - - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each media As Media In page.entries - If TypeOf media Is Video Then - Dim video As Video = media - Console.WriteLine("{0}) Video with id '{1}' and name '{2}' was found.", _ - i, video.mediaId, video.name) - ElseIf TypeOf media Is Image Then - Dim image As Image = media - Dim dimensions As Dictionary(Of MediaSize, Dimensions) = _ - CreateMediaDimensionMap(image.dimensions) - Console.WriteLine("{0}) Image with id '{1}', dimensions '{2}x{3}', and MIME " & _ - "type '{4}' was found.", i, image.mediaId, dimensions(MediaSize.FULL).width, _ - dimensions(MediaSize.FULL).height, image.mimeType) - End If - i = i + 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of images and videos found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get images and videos.", ex) - End Try - End Sub - - ''' - ''' Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - ''' - ''' The array of Media_Size_DimensionsMapEntry to be - ''' converted into a dictionary. - ''' A dictionary with key as MediaSize, and value as Dimensions. - ''' - Private Function CreateMediaDimensionMap(ByVal dimensions As Media_Size_DimensionsMapEntry()) _ - As Dictionary(Of MediaSize, Dimensions) - Dim mediaMap As New Dictionary(Of MediaSize, Dimensions) - For Each dimension As Media_Size_DimensionsMapEntry In dimensions - mediaMap.Add(dimension.key, dimension.value) - Next - Return mediaMap - End Function - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Miscellaneous/UploadImage.vb b/examples/AdWords/Vb/v201309/Miscellaneous/UploadImage.vb deleted file mode 100644 index 3c9d5aa3396..00000000000 --- a/examples/AdWords/Vb/v201309/Miscellaneous/UploadImage.vb +++ /dev/null @@ -1,107 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 -Imports Google.Api.Ads.Common.Util - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example uploads an image. To get images, run GetAllVideosAndImages.vb. - ''' - ''' Tags: MediaService.upload - ''' - Public Class UploadImage - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UploadImage - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example uploads an image. To get images, run GetAllVideosAndImages.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the MediaService. - Dim mediaService As MediaService = user.GetService( _ - AdWordsService.v201309.MediaService) - - ' Create the image. - Dim image As New Image - image.data = MediaUtilities.GetAssetDataFromUrl("http://goo.gl/HJM3L") - image.type = MediaMediaType.IMAGE - - Try - ' Upload the image. - Dim result As Media() = mediaService.upload(New Media() {image}) - - ' Display the results. - If ((Not result Is Nothing) AndAlso (result.Length > 0)) Then - Dim newImage As Media = result(0) - Dim dimensions As Dictionary(Of MediaSize, Dimensions) = _ - CreateMediaDimensionMap(newImage.dimensions) - Console.WriteLine("Image with id '{0}', dimensions '{1}x{2}', and MIME type '{3}'" & _ - " was uploaded.", newImage.mediaId, dimensions.Item(MediaSize.FULL).width, _ - dimensions.Item(MediaSize.FULL).height, newImage.mimeType) - Else - Console.WriteLine("No images were uploaded.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to upload images.", ex) - End Try - End Sub - - ''' - ''' Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - ''' - ''' The array of Media_Size_DimensionsMapEntry to - ''' be converted into a dictionary. - ''' A dictionary with key as MediaSize, and value as Dimensions. - ''' - Private Function CreateMediaDimensionMap(ByVal dimensions As Media_Size_DimensionsMapEntry()) _ - As Dictionary(Of MediaSize, Dimensions) - Dim mediaMap As New Dictionary(Of MediaSize, Dimensions) - For Each dimension As Media_Size_DimensionsMapEntry In dimensions - mediaMap.Add(dimension.key, dimension.value) - Next - Return mediaMap - End Function - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Optimization/EstimateKeywordTraffic.vb b/examples/AdWords/Vb/v201309/Optimization/EstimateKeywordTraffic.vb deleted file mode 100644 index 670709a6067..00000000000 --- a/examples/AdWords/Vb/v201309/Optimization/EstimateKeywordTraffic.vb +++ /dev/null @@ -1,174 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets keyword traffic estimates. - ''' - ''' Tags: TrafficEstimatorService.get - ''' - Public Class EstimateKeywordTraffic - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New EstimateKeywordTraffic - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets keyword traffic estimates." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the TrafficEstimatorService. - Dim trafficEstimatorService As TrafficEstimatorService = user.GetService( _ - AdWordsService.v201309.TrafficEstimatorService) - - ' Create keywords. Up to 2000 keywords can be passed in a single request. - Dim keyword1 As New Keyword - keyword1.text = "mars cruise" - keyword1.matchType = KeywordMatchType.BROAD - - Dim keyword2 As New Keyword - keyword2.text = "cheap cruise" - keyword2.matchType = KeywordMatchType.PHRASE - - Dim keyword3 As New Keyword - keyword3.text = "cruise" - keyword3.matchType = KeywordMatchType.EXACT - - Dim keywords As Keyword() = New Keyword() {keyword1, keyword2, keyword3} - - ' Create a keyword estimate request for each keyword. - Dim keywordEstimateRequests As New List(Of KeywordEstimateRequest) - - For Each keyword As Keyword In keywords - Dim keywordEstimateRequest As New KeywordEstimateRequest - keywordEstimateRequest.keyword = keyword - keywordEstimateRequests.Add(keywordEstimateRequest) - Next - - ' Create negative keywords. - Dim negativeKeyword1 As New Keyword - negativeKeyword1.text = "moon walk" - negativeKeyword1.matchType = KeywordMatchType.BROAD - - Dim negativeKeywordEstimateRequest As New KeywordEstimateRequest - negativeKeywordEstimateRequest.keyword = negativeKeyword1 - negativeKeywordEstimateRequest.isNegative = True - keywordEstimateRequests.Add(negativeKeywordEstimateRequest) - - ' Create ad group estimate requests. - Dim adGroupEstimateRequest As New AdGroupEstimateRequest - adGroupEstimateRequest.keywordEstimateRequests = keywordEstimateRequests.ToArray - adGroupEstimateRequest.maxCpc = New Money - adGroupEstimateRequest.maxCpc.microAmount = 1000000 - - ' Create campaign estimate requests. - Dim campaignEstimateRequest As New CampaignEstimateRequest - campaignEstimateRequest.adGroupEstimateRequests = New AdGroupEstimateRequest() _ - {adGroupEstimateRequest} - - ' See http://code.google.com/apis/adwords/docs/appendix/countrycodes.html - ' for a detailed list of country codes. - Dim countryCriterion As New Location - countryCriterion.id = 2840 'US - - ' See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - ' for a detailed list of language codes. - Dim languageCriterion As New Language - languageCriterion.id = 1000 'en - - campaignEstimateRequest.criteria = New Criterion() {countryCriterion, languageCriterion} - - ' Create the selector. - Dim selector As New TrafficEstimatorSelector - selector.campaignEstimateRequests = New CampaignEstimateRequest() {campaignEstimateRequest} - - Try - ' Get traffic estimates. - Dim result As TrafficEstimatorResult = trafficEstimatorService.get(selector) - - ' Display the results. - If ((Not result Is Nothing) AndAlso (Not result.campaignEstimates Is Nothing) _ - AndAlso (result.campaignEstimates.Length > 0)) Then - Dim campaignEstimate As CampaignEstimate = result.campaignEstimates(0) - If ((Not campaignEstimate.adGroupEstimates Is Nothing) AndAlso _ - (campaignEstimate.adGroupEstimates.Length > 0)) Then - Dim adGroupEstimate As AdGroupEstimate = campaignEstimate.adGroupEstimates(0) - - If (Not adGroupEstimate.keywordEstimates Is Nothing) Then - For i As Integer = 0 To adGroupEstimate.keywordEstimates.Length - 1 - Dim keyword As Keyword = keywordEstimateRequests.Item(i).keyword - Dim keywordEstimate As KeywordEstimate = adGroupEstimate.keywordEstimates(i) - - If keywordEstimateRequests.Item(i).isNegative Then - Continue For - End If - - ' Find the mean of the min and max values. - Dim meanAverageCpc As Long = ((keywordEstimate.min.averageCpc.microAmount + _ - keywordEstimate.max.averageCpc.microAmount) / 2) - Dim meanAveragePosition As Double = ((keywordEstimate.min.averagePosition + _ - keywordEstimate.max.averagePosition) / 2) - Dim meanClicks As Single = ((keywordEstimate.min.clicksPerDay + _ - keywordEstimate.max.clicksPerDay) / 2) - Dim meanTotalCost As Long = ((keywordEstimate.min.totalCost.microAmount + _ - keywordEstimate.max.totalCost.microAmount) / 2) - - Console.WriteLine("Results for the keyword with text = '{0}' and match type " & _ - "= '{1}':", keyword.text, keyword.matchType) - Console.WriteLine(" Estimated average CPC: {0}", meanAverageCpc) - Console.WriteLine(" Estimated ad position: {0:0.00}", meanAveragePosition) - Console.WriteLine(" Estimated daily clicks: {0}", meanClicks) - Console.WriteLine(" Estimated daily cost: {0}", meanTotalCost) - Next i - End If - End If - Else - Console.WriteLine("No traffic estimates were returned.\n") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve traffic estimates.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Optimization/GetAdGroupBidSimulations.vb b/examples/AdWords/Vb/v201309/Optimization/GetAdGroupBidSimulations.vb deleted file mode 100644 index 0ec0fcbfaa8..00000000000 --- a/examples/AdWords/Vb/v201309/Optimization/GetAdGroupBidSimulations.vb +++ /dev/null @@ -1,109 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets bid landscapes for an ad group. To get ad groups, - ''' run GetAdGroups.vb. - ''' - ''' Tags: DataService.getAdGroupBidLandscape - ''' - Public Class GetAdGroupBidSimulations - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAdGroupBidSimulations - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets bid landscapes for an ad group. To get ad groups, run " & _ - "GetAdGroups.vb" - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group for which bid simulations are - ''' retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the DataService. - Dim dataService As DataService = user.GetService(AdWordsService.v201309.DataService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"AdGroupId", "LandscapeType", "LandscapeCurrent", _ - "StartDate", "EndDate", "Bid", "LocalClicks", "LocalCost", "MarginalCpc", _ - "LocalImpressions"} - - ' Set the filters. - Dim adGroupPredicate As New Predicate - adGroupPredicate.field = "AdGroupId" - adGroupPredicate.operator = PredicateOperator.IN - adGroupPredicate.values = New String() {adGroupId.ToString} - - selector.predicates = New Predicate() {adGroupPredicate} - - Try - ' Get bid landscape for ad group. - Dim page As AdGroupBidLandscapePage = dataService.getAdGroupBidLandscape(selector) - If (((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) AndAlso _ - (page.entries.Length > 0)) Then - For Each bidLandscape As AdGroupBidLandscape In page.entries - Console.WriteLine("Found ad group bid landscape with ad group id '{0}', " & _ - "type '{1}', current: '{2}', start date '{3}', end date '{4}', and " & _ - "landscape points", bidLandscape.adGroupId, bidLandscape.type, _ - bidLandscape.landscapeCurrent, bidLandscape.startDate, bidLandscape.endDate) - Dim point As BidLandscapeLandscapePoint - For Each point In bidLandscape.landscapePoints - Console.WriteLine("- bid: {0} => clicks: {1}, cost: {2}, marginalCpc: {3}, " & _ - "impressions: {4}", point.bid.microAmount, point.bid.microAmount, _ - point.clicks, point.cost.microAmount, point.marginalCpc.microAmount, _ - point.impressions) - Next - Next - Else - Console.WriteLine("No ad group bid landscapes were found.\n") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to get ad group bid landscapes.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Optimization/GetKeywordBidSimulations.vb b/examples/AdWords/Vb/v201309/Optimization/GetKeywordBidSimulations.vb deleted file mode 100644 index 87ca732e60e..00000000000 --- a/examples/AdWords/Vb/v201309/Optimization/GetKeywordBidSimulations.vb +++ /dev/null @@ -1,134 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets a bid landscape for an ad group and a keyword. - ''' To get ad groups, run GetAdGroups.vb. To get keywords, run - ''' GetKeywords.vb. - ''' - ''' Tags: DataService.getCriterionBidLandscape - ''' - Public Class GetKeywordBidSimulations - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetKeywordBidSimulations - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim keywordId As Long = Long.Parse("INSERT_KEYWORD_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, keywordId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets a bid landscape for an ad group and a keyword. To " & _ - "get ad groups, run GetAdGroups.vb. To get keywords, run GetKeywords.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group for which keyword bid - ''' simulations are retrieved. - ''' Id of the keyword for which bid simulations are - ''' retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal keywordId As Long) - ' Get the DataService. - Dim dataService As DataService = user.GetService(AdWordsService.v201309.DataService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"AdGroupId", "CriterionId", "StartDate", "EndDate", _ - "Bid", "LocalClicks", "LocalCost", "MarginalCpc", "LocalImpressions"} - - ' Set the filters. - Dim adGroupPredicate As New Predicate - adGroupPredicate.field = "AdGroupId" - adGroupPredicate.operator = PredicateOperator.IN - adGroupPredicate.values = New String() {adGroupId.ToString} - - Dim keywordPredicate As New Predicate - keywordPredicate.field = "CriterionId" - keywordPredicate.operator = PredicateOperator.IN - keywordPredicate.values = New String() {keywordId.ToString} - - selector.predicates = New Predicate() {adGroupPredicate, keywordPredicate} - - ' Select selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New CriterionBidLandscapePage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get bid landscape for keywords. - page = dataService.getCriterionBidLandscape(selector) - - ' Display bid landscapes. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each bidLandscape As CriterionBidLandscape In page.entries - Console.WriteLine("{0}) Found keyword bid landscape with ad group id ""{1}"", " & _ - "keyword id ""{2}"", start date ""{3}"", end date ""{4}"", and " & _ - "landscape points:", i, bidLandscape.adGroupId, bidLandscape.criterionId, _ - bidLandscape.startDate, bidLandscape.endDate) - For Each bidLandscapePoint As BidLandscapeLandscapePoint _ - In bidLandscape.landscapePoints - Console.WriteLine("- bid: {0} => clicks: {1}, cost: {2}, marginalCpc: {3}, " & _ - "impressions: {4}", bidLandscapePoint.bid.microAmount, _ - bidLandscapePoint.clicks, bidLandscapePoint.cost.microAmount, _ - bidLandscapePoint.marginalCpc.microAmount, bidLandscapePoint.impressions) - Next - Next - i += 1 - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of keyword bid landscapes found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve keyword bid landscapes.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Optimization/GetKeywordIdeas.vb b/examples/AdWords/Vb/v201309/Optimization/GetKeywordIdeas.vb deleted file mode 100644 index b6c05bd2730..00000000000 --- a/examples/AdWords/Vb/v201309/Optimization/GetKeywordIdeas.vb +++ /dev/null @@ -1,150 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Text - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves keywords that are related to a given keyword. - ''' - ''' Tags: TargetingIdeaService.get - ''' - Public Class GetKeywordIdeas - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetKeywordIdeas - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves keywords that are related to a given keyword." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the TargetingIdeaService. - Dim targetingIdeaService As TargetingIdeaService = user.GetService( _ - AdWordsService.v201309.TargetingIdeaService) - - Dim keywordText As String = "mars cruise" - - ' Create selector. - Dim selector As New TargetingIdeaSelector() - selector.requestType = RequestType.IDEAS - selector.ideaType = IdeaType.KEYWORD - selector.requestedAttributeTypes = New AttributeType() { _ - AttributeType.KEYWORD_TEXT, AttributeType.SEARCH_VOLUME, _ - AttributeType.CATEGORY_PRODUCTS_AND_SERVICES} - - ' Language setting (optional). - ' The ID can be found in the documentation: - ' https://developers.google.com/adwords/api/docs/appendix/languagecodes - ' Note: As of v201302, only a single language parameter is allowed. - Dim languageParameter As New LanguageSearchParameter() - Dim english As New Language() - english.id = 1000 - languageParameter.languages = New Language() {english} - - ' Create related to query search parameter. - Dim relatedToQuerySearchParameter As New RelatedToQuerySearchParameter() - relatedToQuerySearchParameter.queries = New String() {keywordText} - selector.searchParameters = New SearchParameter() {relatedToQuerySearchParameter, _ - languageParameter} - - ' Set selector paging (required for targeting idea service). - Dim paging As New Paging() - paging.startIndex = 0 - paging.numberResults = 500 - selector.paging = paging - - Dim offset As Long = 0 - Dim pageSize As Long = 500 - - Dim page As New TargetingIdeaPage() - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get related keywords. - page = targetingIdeaService.get(selector) - - 'Display the results. - - If Not page.entries Is Nothing AndAlso page.entries.Length > 0 Then - Dim i As Integer = offset - For Each targetingIdea As TargetingIdea In page.entries - Dim keyword As String = Nothing - Dim categories As String = Nothing - Dim averageMonthlySearches As Long = 0 - - For Each entry As Type_AttributeMapEntry In targetingIdea.data - If entry.key = AttributeType.KEYWORD_TEXT Then - keyword = DirectCast(entry.value, StringAttribute).value - End If - If entry.key = AttributeType.CATEGORY_PRODUCTS_AND_SERVICES Then - Dim categorySet As IntegerSetAttribute = entry.value - Dim builder As New StringBuilder() - For Each value As Integer In categorySet.value - builder.AppendFormat("{0}, ", value) - Next - Dim trimChars As Char() = New Char() {",", " "} - categories = builder.ToString().Trim(trimChars) - End If - If entry.key = AttributeType.SEARCH_VOLUME Then - averageMonthlySearches = DirectCast(entry.value, LongAttribute).value - End If - Next - Console.WriteLine("Keyword with text '{0}', and average monthly search volume " & _ - "'{1}' was found with categories: {2}", keyword, averageMonthlySearches, _ - categories) - i = i + 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of related keywords found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve related keywords.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Optimization/GetPlacementIdeas.vb b/examples/AdWords/Vb/v201309/Optimization/GetPlacementIdeas.vb deleted file mode 100644 index e8e83649ada..00000000000 --- a/examples/AdWords/Vb/v201309/Optimization/GetPlacementIdeas.vb +++ /dev/null @@ -1,123 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves urls that have content keywords related to a - ''' given website. - ''' - ''' Tags: TargetingIdeaService.get - ''' - Public Class GetPlacementIdeas - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetPlacementIdeas - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves urls that have content keywords related to a " & _ - "given website." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the TargetingIdeaService. - Dim targetingIdeaService As TargetingIdeaService = user.GetService( _ - AdWordsService.v201309.TargetingIdeaService) - - ' Create seed url. - Dim url As String = "mars.google.com" - - ' Create the selector. - Dim selector As New TargetingIdeaSelector - selector.requestType = RequestType.IDEAS - selector.ideaType = IdeaType.PLACEMENT - selector.requestedAttributeTypes = New AttributeType() {AttributeType.CRITERION, _ - AttributeType.PLACEMENT_TYPE} - - ' Create related to url search parameter. - Dim relatedToUrlSearchParameter As New RelatedToUrlSearchParameter - relatedToUrlSearchParameter.urls = New String() {url} - relatedToUrlSearchParameter.includeSubUrls = False - selector.searchParameters = New SearchParameter() {relatedToUrlSearchParameter} - - ' Select selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New TargetingIdeaPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get placement ideas. - page = targetingIdeaService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each idea As TargetingIdea In page.entries - For Each entry As Type_AttributeMapEntry In idea.data - If (entry.key = AttributeType.CRITERION) Then - Dim placementAttribute As CriterionAttribute = entry.value - Dim placement As Placement = placementAttribute.value - Console.WriteLine("{0}) Related placement urls were found at '{1}'.", _ - i, placement.url) - End If - Next - Next - i += 1 - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of related placements found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve related placements.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Remarketing/AddAudience.vb b/examples/AdWords/Vb/v201309/Remarketing/AddAudience.vb deleted file mode 100644 index fe73d130d76..00000000000 --- a/examples/AdWords/Vb/v201309/Remarketing/AddAudience.vb +++ /dev/null @@ -1,154 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to create a user list a.k.a. audience. - ''' - ''' Tags: UserListService.mutate - ''' - Public Class AddAudience - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAudience - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to create a user list a.k.a. audience." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the UserListService. - Dim userListService As AdwordsUserListService = user.GetService( _ - AdWordsService.v201309.AdwordsUserListService) - - ' Get the ConversionTrackerService. - Dim conversionTrackerService As ConversionTrackerService = user.GetService( _ - AdWordsService.v201309.ConversionTrackerService) - - Dim userList As New BasicUserList - - userList.name = ("Mars cruise customers #" & ExampleUtilities.GetRandomString) - userList.description = "A list of mars cruise customers in the last year." - userList.status = UserListMembershipStatus.OPEN - userList.membershipLifeSpan = 365 - - Dim conversionType As New UserListConversionType - conversionType.name = userList.name - userList.conversionTypes = New UserListConversionType() {conversionType} - - ' Optional: Set the user list status. - userList.status = UserListMembershipStatus.OPEN - - ' Create the operation. - Dim operation As New UserListOperation - operation.operand = userList - operation.operator = [Operator].ADD - - Try - ' Add the user list. - Dim retval As UserListReturnValue = userListService.mutate(New UserListOperation() _ - {operation}) - - Dim userLists As UserList() = Nothing - If ((Not retval Is Nothing) AndAlso (Not retval.value Is Nothing)) Then - userLists = retval.value - ' Get all conversion snippets. - Dim conversionIds As New List(Of String) - For Each newUserList As BasicUserList In userLists - If (Not newUserList.conversionTypes Is Nothing) Then - For Each newConversionType As UserListConversionType In _ - newUserList.conversionTypes - conversionIds.Add(newConversionType.id.ToString) - Next - End If - Next - - Dim conversionsMap As New Dictionary(Of Long, ConversionTracker) - - If (conversionIds.Count > 0) Then - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id"} - - Dim conversionTypePredicate As New Predicate - conversionTypePredicate.field = "Id" - conversionTypePredicate.operator = PredicateOperator.IN - conversionTypePredicate.values = conversionIds.ToArray - selector.predicates = New Predicate() {conversionTypePredicate} - - ' Get all conversion trackers. - Dim page As ConversionTrackerPage = conversionTrackerService.get(selector) - - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - For Each tracker As ConversionTracker In page.entries - conversionsMap.Item(tracker.id) = tracker - Next - End If - End If - - ' Display the results. - For Each newUserList As BasicUserList In userLists - Console.WriteLine("User list with name '{0}' and id '{1}' was added.", _ - newUserList.name, newUserList.id) - - ' Display user list associated conversion code snippets. - If (Not newUserList.conversionTypes Is Nothing) Then - For Each newConversionType As UserListConversionType In newUserList.conversionTypes - Dim conversionTracker As AdWordsConversionTracker = _ - DirectCast(conversionsMap.Item(newConversionType.id), _ - AdWordsConversionTracker) - Console.WriteLine("Conversion type code snippet associated to the list:\n{0}", _ - conversionTracker.snippet) - Next - End If - Next - Else - Console.WriteLine("No user lists (a.k.a. audiences) were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add user lists (a.k.a. audiences).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Remarketing/AddConversionTracker.vb b/examples/AdWords/Vb/v201309/Remarketing/AddConversionTracker.vb deleted file mode 100644 index b41a35d0655..00000000000 --- a/examples/AdWords/Vb/v201309/Remarketing/AddConversionTracker.vb +++ /dev/null @@ -1,108 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds an AdWords conversion tracker. - ''' - ''' Tags: ConversionTrackerService.mutate - ''' - Public Class AddConversionTracker - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddConversionTracker - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds an AdWords conversion tracker." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the ConversionTrackerService. - Dim conversionTrackerService As ConversionTrackerService = user.GetService( _ - AdWordsService.v201309.ConversionTrackerService) - - ' Create AdWords conversion tracker. - Dim conversionTracker As New AdWordsConversionTracker - conversionTracker.name = "Earth to Mars Cruises Conversion #" & _ - ExampleUtilities.GetRandomString - conversionTracker.category = ConversionTrackerCategory.DEFAULT - conversionTracker.markupLanguage = AdWordsConversionTrackerMarkupLanguage.HTML - conversionTracker.textFormat = AdWordsConversionTrackerTextFormat.HIDDEN - - ' Set optional fields. - conversionTracker.status = ConversionTrackerStatus.ENABLED - conversionTracker.viewthroughLookbackWindow = 15 - conversionTracker.isProductAdsChargeable = True - conversionTracker.productAdsChargeableConversionWindow = 15 - conversionTracker.conversionPageLanguage = "en" - conversionTracker.backgroundColor = "#0000FF" - conversionTracker.userRevenueValue = "someJavascriptVariable" - - ' Create the operation. - Dim operation As New ConversionTrackerOperation - operation.operator = [Operator].ADD - operation.operand = conversionTracker - - Try - ' Add conversion tracker. - Dim retval As ConversionTrackerReturnValue = conversionTrackerService.mutate( _ - New ConversionTrackerOperation() {operation}) - - ' Display the results. - If ((Not retval Is Nothing) AndAlso (Not retval.value Is Nothing) AndAlso _ - retval.value.Length > 0) Then - Dim newConversionTracker As ConversionTracker = retval.value(0) - Console.WriteLine("Conversion tracker with id '{0}', name '{1}', status '{2}', " & _ - "category '{3}' was added.", newConversionTracker.id, newConversionTracker.name, _ - newConversionTracker.status, newConversionTracker.category) - Else - Console.WriteLine("No conversion trackers were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add conversion tracker.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReport.vb b/examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReport.vb deleted file mode 100644 index 6d8782131a5..00000000000 --- a/examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReport.vb +++ /dev/null @@ -1,118 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util.Reports -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets and downloads a criteria Ad Hoc report from an XML - ''' report definition. - ''' - Public Class DownloadCriteriaReport - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DownloadCriteriaReport - Console.WriteLine(codeExample.Description) - Try - Dim fileName As String = "INSERT_OUTPUT_FILE_NAME" - codeExample.Run(New AdWordsUser, fileName) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets and downloads a criteria Ad Hoc report from an XML report" & _ - " definition." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The file to which the report is downloaded. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal fileName As String) - Dim definition As New ReportDefinition - - definition.reportName = "Last 7 days CRITERIA_PERFORMANCE_REPORT" - definition.reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT - definition.downloadFormat = DownloadFormat.GZIPPED_CSV - definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"CampaignId", "AdGroupId", "Id", "CriteriaType", "Criteria", _ - "CriteriaDestinationUrl", "Clicks", "Impressions", "Cost"} - - Dim predicate As New Predicate - predicate.field = "Status" - predicate.operator = PredicateOperator.IN - predicate.values = New String() {"ACTIVE", "PAUSED"} - selector.predicates = New Predicate() {predicate} - - definition.selector = selector - definition.includeZeroImpressions = True - - Dim filePath As String = ExampleUtilities.GetHomeDir() & Path.DirectorySeparatorChar & _ - fileName - - Try - ' If you know that your report is small enough to fit in memory, then - ' you can instead use - ' Dim utilities As New ReportUtilities(user) - ' utilities.ReportVersion = "v201309" - ' Dim report As ClientReport = utilities.GetClientReport( _ - ' Of ReportDefinition)(definition) - ' - ' ' Get the text report directly if you requested a text format - ' ' (e.g. xml) - ' Dim reportText As String = report.Text - ' - ' ' Get the binary report if you requested a binary format - ' ' (e.g. gzip) - ' Dim reportBytes As Byte() = report.Contents - ' - ' ' Deflate a zipped binary report for further processing. - ' Dim deflatedReportText As String = Encoding.UTF8.GetString( _ - ' MediaUtilities.DeflateGZipData(report.Contents)) - Dim utilities As New ReportUtilities(user) - utilities.ReportVersion = "v201309" - utilities.DownloadClientReport(Of ReportDefinition)(definition, filePath) - Console.WriteLine("Report was downloaded to '{0}'.", filePath) - Catch ex As Exception - Throw New System.ApplicationException("Failed to download report.", ex) - End Try - - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb b/examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb deleted file mode 100644 index d27e738908b..00000000000 --- a/examples/AdWords/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util.Reports -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets and downloads a criteria Ad Hoc report from an AWQL - ''' query. See https://developers.google.com/adwords/api/docs/guides/awql for - ''' AWQL documentation. - ''' - Public Class DownloadCriteriaReportWithAwql - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DownloadCriteriaReportWithAwql - Console.WriteLine(codeExample.Description) - Try - Dim fileName As String = "INSERT_OUTPUT_FILE_NAME" - codeExample.Run(New AdWordsUser, fileName) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets and downloads a criteria Ad Hoc report from an AWQL" & _ - " query. See https://developers.google.com/adwords/api/docs/guides/awql for" & _ - " AWQL documentation." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The file to which the report is downloaded. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal fileName As String) - Dim query As String = "SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, " & _ - "Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT WHERE Status IN " & _ - "[ACTIVE, PAUSED] DURING LAST_7_DAYS" - - Dim filePath As String = ExampleUtilities.GetHomeDir() + Path.DirectorySeparatorChar & _ - fileName - - Try - ' If you know that your report is small enough to fit in memory, then - ' you can instead use - ' Dim utilities As New ReportUtilities(user) - ' utilities.ReportVersion = "v201309" - ' Dim report As ClientReport = utilities.GetClientReport(query, format) - ' - ' ' Get the text report directly if you requested a text format - ' ' (e.g. xml) - ' Dim reportText As String = report.Text - ' - ' ' Get the binary report if you requested a binary format - ' ' (e.g. gzip) - ' Dim reportBytes As Byte() = report.Contents - ' - ' ' Deflate a zipped binary report for further processing. - ' Dim deflatedReportText As String = Encoding.UTF8.GetString( _ - ' MediaUtilities.DeflateGZipData(report.Contents)) - Dim utilities As New ReportUtilities(user) - utilities.ReportVersion = "v201309" - utilities.DownloadClientReport(query, DownloadFormat.GZIPPED_CSV.ToString(), filePath) - Console.WriteLine("Report was downloaded to '{0}'.", filePath) - Catch ex As Exception - Throw New System.ApplicationException("Failed to download report.", ex) - End Try - - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Reporting/GetReportFields.vb b/examples/AdWords/Vb/v201309/Reporting/GetReportFields.vb deleted file mode 100644 index 43ceb9dd060..00000000000 --- a/examples/AdWords/Vb/v201309/Reporting/GetReportFields.vb +++ /dev/null @@ -1,97 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets report fields. - ''' - ''' Tags: ReportDefinitionService.getReportFields - ''' - Public Class GetReportFields - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetReportFields - Console.WriteLine(codeExample.Description) - Try - Dim reportType As ReportDefinitionReportType = [Enum].Parse( _ - GetType(ReportDefinitionReportType), "INSERT_REPORT_TYPE_HERE") - codeExample.Run(New AdWordsUser, reportType) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets report fields." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The report type to be run. - Public Sub Run(ByVal user As AdWordsUser, ByVal reportType As ReportDefinitionReportType) - ' Get the ReportDefinitionService. - Dim reportDefinitionService As ReportDefinitionService = user.GetService( _ - AdWordsService.v201309.ReportDefinitionService) - - ' The type of the report to get fields for. - ' E.g.: KEYWORDS_PERFORMANCE_REPORT - - Try - ' Get the report fields. - Dim reportDefinitionFields As ReportDefinitionField() = _ - reportDefinitionService.getReportFields(reportType) - - If ((Not reportDefinitionFields Is Nothing) AndAlso _ - (reportDefinitionFields.Length > 0)) Then - ' Display report fields. - Console.WriteLine("The report type '{0}' contains the following fields:", reportType) - - For Each reportDefinitionField As ReportDefinitionField In reportDefinitionFields - Console.Write("- {0} ({1})", reportDefinitionField.fieldName, _ - reportDefinitionField.fieldType) - If (Not reportDefinitionField.enumValues Is Nothing) Then - Console.Write(" := [{0}]", String.Join(", ", reportDefinitionField.enumValues)) - End If - Console.WriteLine() - Next - Else - Console.WriteLine("This report type has no fields.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve fields for report type.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb b/examples/AdWords/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb deleted file mode 100644 index 83e1ab51bff..00000000000 --- a/examples/AdWords/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb +++ /dev/null @@ -1,139 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds various types of targeting criteria to a campaign. - ''' To get a list of campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignCriterionService.mutate - ''' - Public Class AddCampaignTargetingCriteria - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddCampaignTargetingCriteria - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds various types of targeting criteria to a campaign. To " & _ - "get a list of campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to which targeting criteria - ''' are added. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignCriterionService. - Dim campaignCriterionService As CampaignCriterionService = user.GetService( _ - AdWordsService.v201309.CampaignCriterionService) - - ' Create language criteria. - ' See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - ' for a detailed list of language codes. - Dim language1 As New Language - language1.id = 1002 ' French - Dim languageCriterion1 As New CampaignCriterion - languageCriterion1.campaignId = campaignId - languageCriterion1.criterion = language1 - - Dim language2 As New Language - language2.id = 1005 ' Japanese - Dim languageCriterion2 As New CampaignCriterion - languageCriterion2.campaignId = campaignId - languageCriterion2.criterion = language2 - - ' Create location criteria. - ' See http://code.google.com/apis/adwords/docs/appendix/countrycodes.html - ' for a detailed list of country codes. - Dim location1 As New Location - location1.id = 2840 ' USA - Dim locationCriterion1 As New CampaignCriterion - locationCriterion1.campaignId = campaignId - locationCriterion1.criterion = location1 - - Dim location2 As New Location - location2.id = 2392 ' Japan - Dim locationCriterion2 As New CampaignCriterion - locationCriterion2.campaignId = campaignId - locationCriterion2.criterion = location2 - - ' Add a negative campaign keyword. - Dim negativeCriterion As New NegativeCampaignCriterion() - negativeCriterion.campaignId = campaignId - - Dim keyword As New Keyword() - keyword.matchType = KeywordMatchType.BROAD - keyword.text = "jupiter cruise" - - negativeCriterion.criterion = keyword - - Dim criteria() As CampaignCriterion = {languageCriterion1, languageCriterion2, _ - locationCriterion1, locationCriterion2, negativeCriterion} - - Dim operations As New List(Of CampaignCriterionOperation) - - For Each criterion As CampaignCriterion In criteria - Dim operation As New CampaignCriterionOperation - operation.operator = [Operator].ADD - operation.operand = criterion - operations.Add(operation) - Next - - Try - ' Set the campaign targets. - Dim retVal As CampaignCriterionReturnValue = campaignCriterionService.mutate( _ - operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing)) Then - For Each criterion As CampaignCriterion In retVal.value - Console.WriteLine("Campaign criterion of type '{0}' was set to campaign with id " & _ - "= '{1}'.", criterion.criterion.CriterionType, criterion.campaignId) - Next - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to set campaign criteria.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb b/examples/AdWords/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb deleted file mode 100644 index bd65aeec16e..00000000000 --- a/examples/AdWords/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb +++ /dev/null @@ -1,123 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets all targeting criteria for a campaign. To set - ''' campaign targeting criteria, run AddCampaignTargetingCriteria.vb. To get - ''' campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignCriterionService.get - ''' - Public Class GetCampaignTargetingCriteria - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetCampaignTargetingCriteria - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets all targeting criteria for a campaign. To set campaign " & _ - "targeting criteria, run AddCampaignTargetingCriteria.vb. To get campaigns, run " & _ - "GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign from which targeting - ''' criteria are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignCriterionService. - Dim campaignCriterionService As CampaignCriterionService = user.GetService( _ - AdWordsService.v201309.CampaignCriterionService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "CriteriaType", "CampaignId"} - - ' Set the filters. - Dim predicate As New Predicate - predicate.field = "CampaignId" - predicate.operator = PredicateOperator.EQUALS - predicate.values = New String() {campaignId.ToString} - - selector.predicates = New Predicate() {predicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New CampaignCriterionPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get all campaign targets. - page = campaignCriterionService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each campaignCriterion As CampaignCriterion In page.entries - Dim negative As String = "" - If (TypeOf campaignCriterion Is NegativeCampaignCriterion) Then - negative = "Negative " - End If - Console.WriteLine("{0}) {1}Campaign targeting criterion with id = '{2}' and " & _ - "Type = {3} was found for campaign id '{4}'", i, negative, _ - campaignCriterion.criterion.id, campaignCriterion.criterion.type, _ - campaignCriterion.campaignId) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of campaign targeting criteria found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get campaign targeting criteria.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb b/examples/AdWords/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb deleted file mode 100644 index 2c6b08eeb80..00000000000 --- a/examples/AdWords/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb +++ /dev/null @@ -1,100 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to retrieve all carriers and languages - ''' available for targeting. - ''' - ''' Tags: ConstantDataService.getCarrierCriterion - ''' Tags: ConstantDataService.getLanguageCriterion - ''' - Public Class GetTargetableLanguagesAndCarriers - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetTargetableLanguagesAndCarriers - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to retrieve all carriers and languages" & _ - "available for targeting." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the ConstantDataService. - Dim constantDataService As ConstantDataService = user.GetService( _ - AdWordsService.v201309.ConstantDataService) - - Try - ' Get all carriers. - Dim carriers As Carrier() = constantDataService.getCarrierCriterion - - ' Display the results. - If (Not carriers Is Nothing) Then - For Each carrier As Carrier In carriers - Console.WriteLine("Carrier name is '{0}', ID is {1} and country code is '{2}'.", _ - carrier.name, carrier.id, carrier.countryCode) - Next - Else - Console.WriteLine("No carriers were retrieved.") - End If - - ' Get all languages. - Dim languages As Language() = constantDataService.getLanguageCriterion - - ' Display the results. - If (Not languages Is Nothing) Then - For Each language As Language In languages - Console.WriteLine("Language name is '{0}', ID is {1} and code is '{2}'.", _ - language.name, language.id, language.code) - Next - Else - Console.WriteLine("No languages were found.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to get targetable carriers and languages.", _ - ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201309/Targeting/LookupLocation.vb b/examples/AdWords/Vb/v201309/Targeting/LookupLocation.vb deleted file mode 100644 index d0e5d9faf9f..00000000000 --- a/examples/AdWords/Vb/v201309/Targeting/LookupLocation.vb +++ /dev/null @@ -1,121 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets location criteria by name. - ''' - ''' Tags: LocationCriterionService.get - ''' - Public Class LookupLocation - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New LookupLocation - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets location criteria by name." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the LocationCriterionService. - Dim locationCriterionService As LocationCriterionService = user.GetService( _ - AdWordsService.v201309.LocationCriterionService) - - Dim locationNames As String() = New String() {"Paris", "Quebec", "Spain", "Deutschland"} - - Dim selector As New Selector - selector.fields = New String() {"Id", "LocationName", "CanonicalName", "DisplayType", _ - "ParentLocations", "Reach", "TargetingStatus"} - - ' Location names must match exactly, only EQUALS and IN are supported. - Dim predicate1 As New Predicate - predicate1.field = "LocationName" - predicate1.operator = PredicateOperator.IN - predicate1.values = locationNames - - ' Set the locale of the returned location names. - Dim predicate2 As New Predicate - predicate2.field = "Locale" - predicate2.operator = PredicateOperator.EQUALS - predicate2.values = New String() {"en"} - - selector.predicates = New Predicate() {predicate1, predicate2} - - Try - ' Make the get request. - Dim locationCriteria As LocationCriterion() = locationCriterionService.get(selector) - - ' Display the resulting location criteria. - For Each locationCriterion As LocationCriterion In locationCriteria - Dim parentLocations As String = "" - If ((Not locationCriterion.location Is Nothing) AndAlso ( _ - Not locationCriterion.location.parentLocations Is Nothing)) Then - For Each location As Location In locationCriterion.location.parentLocations - parentLocations = (parentLocations & Me.GetLocationString(location) & ", ") - Next - parentLocations.TrimEnd(New Char() {","c, " "c}) - Else - parentLocations = "N/A" - End If - Console.WriteLine("The search term '{0}' returned the location '{1}' of type '{2}' " & _ - "with parent locations '{3}', reach '{4}' and targeting status '{5}.", _ - locationCriterion.searchTerm, locationCriterion.location.locationName, _ - locationCriterion.location.displayType, parentLocations, locationCriterion.reach, _ - locationCriterion.location.targetingStatus) - Next - Catch ex As Exception - Throw New System.ApplicationException("Failed to get location criteria.", ex) - End Try - End Sub - - ''' - ''' Gets a string representation for a location. - ''' - ''' The location - ''' - Public Function GetLocationString(ByVal location As Location) As String - Return String.Format("{0} ({1})", location.locationName, location.displayType) - End Function - End Class -End Namespace diff --git a/examples/AdWords/Vb/v201402/BasicOperations/DeleteAdGroup.vb b/examples/AdWords/Vb/v201402/BasicOperations/DeleteAdGroup.vb index 4f693c365cc..c97b8993d8b 100644 --- a/examples/AdWords/Vb/v201402/BasicOperations/DeleteAdGroup.vb +++ b/examples/AdWords/Vb/v201402/BasicOperations/DeleteAdGroup.vb @@ -68,10 +68,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201402 ' Create ad group with DELETED status. Dim adGroup As New AdGroup adGroup.id = adGroupId - - ' When deleting an ad group, rename it to avoid name collisions with new - ' ad groups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString adGroup.status = AdGroupStatus.DELETED ' Create the operation. diff --git a/examples/AdWords/Vb/v201402/BasicOperations/DeleteCampaign.vb b/examples/AdWords/Vb/v201402/BasicOperations/DeleteCampaign.vb index 0cec143fcfb..de84b7638a2 100644 --- a/examples/AdWords/Vb/v201402/BasicOperations/DeleteCampaign.vb +++ b/examples/AdWords/Vb/v201402/BasicOperations/DeleteCampaign.vb @@ -69,10 +69,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201402 ' Create campaign with DELETED status. Dim campaign As New Campaign campaign.id = campaignId - - ' When deleting a campaign, rename it to avoid name collisions with new - ' campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString campaign.status = CampaignStatus.DELETED ' Create the operation. diff --git a/examples/AdWords/Vb/v201406/BasicOperations/RemoveAdGroup.vb b/examples/AdWords/Vb/v201406/BasicOperations/RemoveAdGroup.vb index 934b4c96e76..57727cea87a 100644 --- a/examples/AdWords/Vb/v201406/BasicOperations/RemoveAdGroup.vb +++ b/examples/AdWords/Vb/v201406/BasicOperations/RemoveAdGroup.vb @@ -68,10 +68,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 ' Create ad group with REMOVED status. Dim adGroup As New AdGroup adGroup.id = adGroupId - - ' When removing an ad group, rename it to avoid name collisions with new - ' ad groups. - adGroup.name = "Removed AdGroup - " + ExampleUtilities.GetRandomString adGroup.status = AdGroupStatus.REMOVED ' Create the operation. diff --git a/examples/AdWords/Vb/v201406/BasicOperations/RemoveCampaign.vb b/examples/AdWords/Vb/v201406/BasicOperations/RemoveCampaign.vb index cb4c0275337..4c11e36ebf8 100644 --- a/examples/AdWords/Vb/v201406/BasicOperations/RemoveCampaign.vb +++ b/examples/AdWords/Vb/v201406/BasicOperations/RemoveCampaign.vb @@ -69,10 +69,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 ' Create campaign with REMOVED status. Dim campaign As New Campaign campaign.id = campaignId - - ' When removing a campaign, rename it to avoid name collisions with new - ' campaigns. - campaign.name = "Removed Campaign - " + ExampleUtilities.GetRandomString campaign.status = CampaignStatus.REMOVED ' Create the operation. diff --git a/examples/AdXBuyer/CSharp/AdWords.Examples.CSharp.csproj b/examples/AdXBuyer/CSharp/AdWords.Examples.CSharp.csproj index d0ce19e5d52..8b11d906ff5 100644 --- a/examples/AdXBuyer/CSharp/AdWords.Examples.CSharp.csproj +++ b/examples/AdXBuyer/CSharp/AdWords.Examples.CSharp.csproj @@ -62,48 +62,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/AdXBuyer/CSharp/OAuth/ConsoleExample.cs b/examples/AdXBuyer/CSharp/OAuth/ConsoleExample.cs index 0a0330df5f4..4c6f7541c1c 100644 --- a/examples/AdXBuyer/CSharp/OAuth/ConsoleExample.cs +++ b/examples/AdXBuyer/CSharp/OAuth/ConsoleExample.cs @@ -15,7 +15,7 @@ // Author: api.anash@gmail.com (Anash P. Oommen) using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; +using Google.Api.Ads.AdWords.v201406; using Google.Api.Ads.Common.Lib; using System; @@ -74,7 +74,7 @@ static void Main(string[] args) { // Get the CampaignService. CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); + (CampaignService) user.GetService(AdWordsService.v201406.CampaignService); // Create the selector. Selector selector = new Selector(); diff --git a/examples/AdXBuyer/CSharp/OAuth/Default.aspx.cs b/examples/AdXBuyer/CSharp/OAuth/Default.aspx.cs index 0b81b03ece1..a110c7b78ae 100644 --- a/examples/AdXBuyer/CSharp/OAuth/Default.aspx.cs +++ b/examples/AdXBuyer/CSharp/OAuth/Default.aspx.cs @@ -16,7 +16,7 @@ using Google.Api.Ads.AdWords.Lib; using Google.Api.Ads.AdWords.Util.Reports; -using Google.Api.Ads.AdWords.v201309; +using Google.Api.Ads.AdWords.v201406; using Google.Api.Ads.Common.Lib; using System; @@ -104,7 +104,7 @@ protected void OnDownloadReportButtonClick(object sender, EventArgs e) { // If you know that your report is small enough to fit in memory, then // you can instead use // ReportUtilities utilities = new ReportUtilities(user); - // utilities.ReportVersion = "v201309"; + // utilities.ReportVersion = "v201406"; // ClientReport report = utilities.GetClientReport(definition); // // // Get the text report directly if you requested a text format @@ -122,7 +122,7 @@ protected void OnDownloadReportButtonClick(object sender, EventArgs e) { // Set the customer id. (user.Config as AdWordsAppConfig).ClientCustomerId = txtCustomerId.Text; ReportUtilities utilities = new ReportUtilities(user); - utilities.ReportVersion = "v201309"; + utilities.ReportVersion = "v201406"; utilities.DownloadClientReport(definition, filePath); } catch (Exception ex) { throw new System.ApplicationException("Failed to download report.", ex); @@ -155,7 +155,7 @@ protected void OnGetCampaignsButtonClick(object sender, EventArgs e) { try { CampaignService service = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); + (CampaignService) user.GetService(AdWordsService.v201406.CampaignService); CampaignPage page = service.get(selector); diff --git a/examples/AdXBuyer/CSharp/OAuth/Properties/Properties.cs b/examples/AdXBuyer/CSharp/OAuth/Properties/Properties.cs index de944c8264a..3f01f1a16a9 100644 --- a/examples/AdXBuyer/CSharp/OAuth/Properties/Properties.cs +++ b/examples/AdXBuyer/CSharp/OAuth/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("AdWords API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/AdXBuyer/CSharp/Properties/Properties.cs b/examples/AdXBuyer/CSharp/Properties/Properties.cs index de944c8264a..3f01f1a16a9 100644 --- a/examples/AdXBuyer/CSharp/Properties/Properties.cs +++ b/examples/AdXBuyer/CSharp/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("AdWords API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/AdXBuyer/CSharp/v201309/AccountManagement/GetAccountChanges.cs b/examples/AdXBuyer/CSharp/v201309/AccountManagement/GetAccountChanges.cs deleted file mode 100644 index eb87a055512..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/AccountManagement/GetAccountChanges.cs +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets the changes in the account during the last 24 - /// hours. - /// - /// Tags: CustomerSyncService.get - /// - public class GetAccountChanges : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAccountChanges codeExample = new GetAccountChanges(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets the changes in the account during the last 24 hours."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the CustomerSyncService. - CustomerSyncService customerSyncService = - (CustomerSyncService) user.GetService(AdWordsService.v201309. - CustomerSyncService); - - // The date time string should be of the form yyyyMMdd HHmmss zzz - string minDateTime = DateTime.Now.AddDays(-1).ToUniversalTime().ToString("yyyyMMdd HHmmss") - + " UTC"; - string maxDateTime = DateTime.Now.ToUniversalTime().ToString("yyyyMMdd HHmmss") + " UTC"; - - // Create date time range. - DateTimeRange dateTimeRange = new DateTimeRange(); - dateTimeRange.min = minDateTime; - dateTimeRange.max = maxDateTime; - - try { - // Create the selector. - CustomerSyncSelector selector = new CustomerSyncSelector(); - selector.dateTimeRange = dateTimeRange; - selector.campaignIds = GetAllCampaignIds(user); - - // Get all account changes for campaign. - CustomerChangeData accountChanges = customerSyncService.get(selector); - - // Display the changes. - if (accountChanges != null && accountChanges.changedCampaigns != null) { - Console.WriteLine("Displaying changes up to: {0}", accountChanges.lastChangeTimestamp); - foreach (CampaignChangeData campaignChanges in accountChanges.changedCampaigns) { - Console.WriteLine("Campaign with id \"{0}\" was changed:", campaignChanges.campaignId); - Console.WriteLine(" Campaign changed status: {0}", - campaignChanges.campaignChangeStatus); - if (campaignChanges.campaignChangeStatus != ChangeStatus.NEW) { - Console.WriteLine(" Added ad extensions: {0}", GetFormattedList( - campaignChanges.addedAdExtensions)); - Console.WriteLine(" Added campaign criteria: {0}", - GetFormattedList(campaignChanges.addedCampaignCriteria)); - Console.WriteLine(" Added campaign targeting: {0}", - campaignChanges.campaignTargetingChanged? "yes" : "no"); - Console.WriteLine(" Deleted ad extensions: {0}", - GetFormattedList(campaignChanges.deletedAdExtensions)); - Console.WriteLine(" Deleted campaign criteria: {0}", - GetFormattedList(campaignChanges.deletedCampaignCriteria)); - - if (campaignChanges.changedAdGroups != null) { - foreach (AdGroupChangeData adGroupChanges in campaignChanges.changedAdGroups) { - Console.WriteLine(" Ad group with id \"{0}\" was changed:", - adGroupChanges.adGroupId); - Console.WriteLine(" Ad group changed status: {0}", - adGroupChanges.adGroupChangeStatus); - if (adGroupChanges.adGroupChangeStatus != ChangeStatus.NEW) { - Console.WriteLine(" Ads changed: {0}", - GetFormattedList(adGroupChanges.changedAds)); - Console.WriteLine(" Criteria changed: {0}", - GetFormattedList(adGroupChanges.changedCriteria)); - Console.WriteLine(" Criteria deleted: {0}", - GetFormattedList(adGroupChanges.deletedCriteria)); - } - } - } - } - Console.WriteLine(); - } - } else { - Console.WriteLine("No account changes were found.");; - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get account changes.", ex); - } - } - - /// - /// Formats a list of ids as a comma separated string. - /// - /// The list of ids. - /// The comma separed formatted string, enclosed in square braces. - /// - private string GetFormattedList(long[] ids) { - StringBuilder builder = new StringBuilder(); - if (ids != null) { - foreach (long id in ids) { - builder.AppendFormat("{0}, ", id); - } - } - return "[" + builder.ToString().TrimEnd(',', ' ') + "]"; - } - - /// - /// Gets all campaign ids in the account. - /// - /// The user for which campaigns are retrieved. - /// The list of campaign ids. - private long[] GetAllCampaignIds(AdWordsUser user) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - List allCampaigns = new List(); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id"}; - - // Get all campaigns. - CampaignPage page = campaignService.get(selector); - - // Return the results. - if (page != null && page.entries != null) { - foreach (Campaign campaign in page.entries) { - allCampaigns.Add(campaign.id); - } - } - return allCampaigns.ToArray(); - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs b/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs deleted file mode 100644 index 8f14ccf109b..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/AddAdGroupBidModifier.cs +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to add ad group level mobile bid - /// modifier override. - /// - /// Tags: AdGroupBidModifierService.mutate - /// - public class AddAdGroupBidModifier : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAdGroupBidModifier codeExample = new AddAdGroupBidModifier(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - double bidModifier = double.Parse("INSERT_ADGROUP_BID_MODIFIER_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, bidModifier); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to add ad group level mobile bid modifier " + - "override."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the adgroup for which bid modifier is - /// set. - /// The mobile bid modifier for adgroup - public void Run(AdWordsUser user, long adGroupId, double bidModifier) { - // Get the AdGroupAdService. - AdGroupBidModifierService adGroupBidModifierService = - (AdGroupBidModifierService) user.GetService( - AdWordsService.v201309.AdGroupBidModifierService); - - // Mobile criterion ID. - long criterionId = 30001; - - - // Create the adgroup bid modifier. - AdGroupBidModifier adGroupBidModifier = new AdGroupBidModifier(); - adGroupBidModifier.bidModifier = bidModifier; - adGroupBidModifier.adGroupId = adGroupId; - - Platform platform = new Platform(); - platform.id = criterionId; - - adGroupBidModifier.criterion = platform; - - AdGroupBidModifierOperation operation = new AdGroupBidModifierOperation(); - operation.@operator = Operator.ADD; - operation.operand = adGroupBidModifier; - - - try { - // Add ad group level mobile bid modifier. - AdGroupBidModifierReturnValue retval = adGroupBidModifierService.mutate( - new AdGroupBidModifierOperation[] {operation}); - - // Display the results. - if (retval != null && retval.value != null && retval.value.Length > 0) { - AdGroupBidModifier newBidModifier = retval.value[0]; - Console.WriteLine("AdGroup ID {0}, Criterion ID {1} was updated with ad group level " + - "modifier: {2}", newBidModifier.adGroupId, newBidModifier.criterion.id, - newBidModifier.bidModifier); - } else { - Console.WriteLine("No bid modifiers were added to the adgroup."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add bid modifiers to adgroup.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs b/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs deleted file mode 100644 index d7495e49651..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/GetAdGroupBidModifiers.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to retrieve ad group level mobile bid - /// modifiers for a campaign. - /// - /// Tags: AdGroupBidModifierService.get - /// - public class GetAdGroupBidModifiers : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAdGroupBidModifiers codeExample = new GetAdGroupBidModifiers(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve ad group level mobile bid " + - "modifiers for a campaign."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which ads are added. - /// - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupAdService. - AdGroupBidModifierService adGroupBidModifierService = - (AdGroupBidModifierService) user.GetService( - AdWordsService.v201309.AdGroupBidModifierService); - - const int PAGE_SIZE = 500; - - // Get all ad group bid modifiers for the campaign. - Selector selector = new Selector(); - selector.fields = new String[] {"CampaignId", "AdGroupId", "BidModifier", "BidModifierSource", - "CriteriaType", "Id"}; - - Predicate predicate = new Predicate(); - predicate.field = "CampaignId"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] {campaignId.ToString()}; - selector.predicates = new Predicate[] {predicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = PAGE_SIZE; - - AdGroupBidModifierPage page = new AdGroupBidModifierPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the campaigns. - page = adGroupBidModifierService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroupBidModifier adGroupBidModifier in page.entries) { - string bidModifier = (adGroupBidModifier.bidModifierSpecified)? - adGroupBidModifier.bidModifier.ToString() : "UNSET"; - Console.WriteLine("{0}) Campaign ID {1}, AdGroup ID {2}, Criterion ID {3} has " + - "ad group level modifier: {4} and source = {5}.", - i + 1, adGroupBidModifier.campaignId, - adGroupBidModifier.adGroupId, adGroupBidModifier.criterion.id, bidModifier, - adGroupBidModifier.bidModifierSource); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of adgroup bid modifiers found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve adgroup bid modifiers.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs b/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs deleted file mode 100644 index 1f58f01f45a..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UploadOfflineConversions.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example imports offline conversion values for specific clicks to - /// your account. To get Google Click ID for a click, run - /// CLICK_PERFORMANCE_REPORT. - /// - /// Tags: ConversionTrackerService.mutate, OfflineConversionFeedService.mutate - /// - public class UploadOfflineConversions : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - string conversionName = "INSERT_CONVERSION_NAME_HERE"; - // GCLID needs to be newer than 30 days. - string gClId = "INSERT_GOOGLE_CLICK_ID_HERE"; - // The conversion time should be higher than the click time. - string conversionTime = "INSERT_CONVERSION_TIME_HERE"; - double conversionValue = double.Parse("INSERT_CONVERSION_VALUE_HERE"); - - UploadOfflineConversions codeExample = new UploadOfflineConversions(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser(), conversionName, gClId, conversionTime, conversionValue); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example imports offline conversion values for specific clicks to " + - "your account. To get Google Click ID for a click, run CLICK_PERFORMANCE_REPORT."; - } - } - - /// - /// Runs the specified user. - /// - /// The user. - /// The name of the upload conversion to be - /// created. - /// The Google Click ID of the click for which offline - /// conversions are uploaded. - /// The conversion value to be uploaded. - /// - /// The conversion time, in yyyymmdd hhmmss - /// format. - public void Run(AdWordsUser user, String conversionName, String gClid, String conversionTime, - double conversionValue) { - // Get the ConversionTrackerService. - ConversionTrackerService conversionTrackerService = - (ConversionTrackerService) user.GetService( - AdWordsService.v201309.ConversionTrackerService); - - // Get the OfflineConversionFeedService. - OfflineConversionFeedService offlineConversionFeedService = - (OfflineConversionFeedService) user.GetService( - AdWordsService.v201309.OfflineConversionFeedService); - - const int VIEWTHROUGH_LOOKBACK_WINDOW = 30; - const int CTC_LOOKBACK_WINDOW = 90; - - try { - // Create an upload conversion. Once created, this entry will be visible - // under Tools and Analysis->Conversion and will have "Source = Import". - UploadConversion uploadConversion = new UploadConversion(); - uploadConversion.category = ConversionTrackerCategory.PAGE_VIEW; - uploadConversion.name = conversionName; - uploadConversion.viewthroughLookbackWindow = VIEWTHROUGH_LOOKBACK_WINDOW; - uploadConversion.ctcLookbackWindow = CTC_LOOKBACK_WINDOW; - - ConversionTrackerOperation uploadConversionOperation = new ConversionTrackerOperation(); - uploadConversionOperation.@operator = Operator.ADD; - uploadConversionOperation.operand = uploadConversion; - - ConversionTrackerReturnValue conversionTrackerRetval = conversionTrackerService.mutate( - new ConversionTrackerOperation[] {uploadConversionOperation}); - - UploadConversion newUploadConversion = (UploadConversion) conversionTrackerRetval.value[0]; - - Console.WriteLine("New upload conversion type with name = '{0}' and id = {1} was created.", - newUploadConversion.name, newUploadConversion.id); - - // Associate offline conversions with the upload conversion we created. - OfflineConversionFeed feed = new OfflineConversionFeed(); - feed.conversionName = conversionName; - feed.conversionTime = conversionTime; - feed.conversionValue = conversionValue; - feed.googleClickId = gClid; - - OfflineConversionFeedOperation offlineConversionOperation = - new OfflineConversionFeedOperation(); - offlineConversionOperation.@operator = Operator.ADD; - offlineConversionOperation.operand = feed; - - OfflineConversionFeedReturnValue offlineConversionRetval = - offlineConversionFeedService.mutate( - new OfflineConversionFeedOperation[] {offlineConversionOperation}); - - OfflineConversionFeed newFeed = offlineConversionRetval.value[0]; - - Console.WriteLine("Uploaded offline conversion value of {0} for Google Click ID = " + - "'{1}' to '{2}'.", newFeed.conversionValue, newFeed.googleClickId, - newFeed.conversionName); - } catch (Exception ex) { - throw new System.ApplicationException("Failed upload offline conversions.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs b/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs deleted file mode 100644 index e6445694e0b..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/AdvancedOperations/UseSharedBiddingStrategy.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds a Shared Bidding Strategy and uses it to construct - /// a campaign. - /// - /// Tags: BiddingStrategyService.mutate - /// Tags: BudgetService.mutate, CampaignService.mutate - /// - public class UseSharedBiddingStrategy : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UseSharedBiddingStrategy codeExample = new UseSharedBiddingStrategy(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds a Shared Bidding Strategy and uses it to construct " + - "a campaign."; - } - } - - /// - /// Runs the specified code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the services. - BiddingStrategyService biddingStrategyService = (BiddingStrategyService) user.GetService( - AdWordsService.v201309.BiddingStrategyService); - - BudgetService budgetService = (BudgetService) user.GetService( - AdWordsService.v201309.BudgetService); - - CampaignService campaignService = (CampaignService) user.GetService( - AdWordsService.v201309.CampaignService); - - String BIDDINGSTRATEGY_NAME = "Maximize Clicks " + ExampleUtilities.GetRandomString(); - const long BID_CEILING = 2000000; - const long SPEND_TARGET = 20000000; - - String BUDGET_NAME = "Shared Interplanetary Budget #" + ExampleUtilities.GetRandomString(); - const long BUDGET_AMOUNT = 30000000; - - String CAMPAIGN_NAME = "Interplanetary Cruise #" + ExampleUtilities.GetRandomString(); - - try { - SharedBiddingStrategy sharedBiddingStrategy = CreateBiddingStrategy(biddingStrategyService, - BIDDINGSTRATEGY_NAME, BID_CEILING, SPEND_TARGET); - Console.WriteLine("Shared bidding strategy with name '{0}' and ID {1} of type {2} was " + - "created.", sharedBiddingStrategy.name, sharedBiddingStrategy.id, - sharedBiddingStrategy.biddingScheme.BiddingSchemeType); - - Budget sharedBudget = CreateSharedBudget(budgetService, BUDGET_NAME, BUDGET_AMOUNT); - - Campaign newCampaign = CreateCampaignWithBiddingStrategy(campaignService, CAMPAIGN_NAME, - sharedBiddingStrategy.id, sharedBudget.budgetId); - - Console.WriteLine("Campaign with name '{0}', ID {1} and bidding scheme ID {2} was " + - "created.", newCampaign.name, newCampaign.id, - newCampaign.biddingStrategyConfiguration.biddingStrategyId); - - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create campaign that uses shared " + - "bidding strategy.", ex); - } - } - - /// - /// Creates the shared bidding strategy. - /// - /// The bidding strategy service. - /// The bidding strategy name. - /// The bid ceiling. - /// The spend target. - /// The bidding strategy object. - private SharedBiddingStrategy CreateBiddingStrategy( - BiddingStrategyService biddingStrategyService, String name, long bidCeiling, - long spendTarget) { - // Create a shared bidding strategy. - SharedBiddingStrategy sharedBiddingStrategy = new SharedBiddingStrategy(); - sharedBiddingStrategy.name = name; - - TargetSpendBiddingScheme biddingScheme = new TargetSpendBiddingScheme(); - // Optionally set additional bidding scheme parameters. - biddingScheme.bidCeiling = new Money(); - biddingScheme.bidCeiling.microAmount = bidCeiling; - - biddingScheme.spendTarget = new Money(); - biddingScheme.spendTarget.microAmount = spendTarget; - - sharedBiddingStrategy.biddingScheme = biddingScheme; - - // Create operation. - BiddingStrategyOperation operation = new BiddingStrategyOperation(); - operation.@operator = Operator.ADD; - operation.operand = sharedBiddingStrategy; - - return biddingStrategyService.mutate(new BiddingStrategyOperation[] {operation}).value[0]; - } - - /// - /// Creates an explicit budget to be used only to create the Campaign. - /// - /// The budget service. - /// The budget name. - /// The budget amount. - /// The budget object. - private Budget CreateSharedBudget(BudgetService budgetService, String name, long amount) { - // Create a shared budget - Budget budget = new Budget(); - budget.name = name; - budget.period = BudgetBudgetPeriod.DAILY; - budget.amount = new Money(); - budget.amount.microAmount = amount; - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD; - budget.isExplicitlyShared = true; - - // Create operation. - BudgetOperation operation = new BudgetOperation(); - operation.operand = budget; - operation.@operator = Operator.ADD; - - // Make the mutate request. - return budgetService.mutate(new BudgetOperation[] {operation}).value[0]; - } - - /// - /// Creates the campaign with a shared bidding strategy. - /// - /// The campaign service. - /// The campaign name. - /// The bidding strategy id. - /// The shared budget id. - /// The campaign object. - private Campaign CreateCampaignWithBiddingStrategy(CampaignService campaignService, string name, - long biddingStrategyId, long sharedBudgetId) { - // Create campaign. - Campaign campaign = new Campaign(); - campaign.name = name; - - // Set the budget. - campaign.budget = new Budget(); - campaign.budget.budgetId = sharedBudgetId; - - // Set bidding strategy (required). - BiddingStrategyConfiguration biddingStrategyConfiguration = - new BiddingStrategyConfiguration(); - biddingStrategyConfiguration.biddingStrategyId = biddingStrategyId; - - campaign.biddingStrategyConfiguration = biddingStrategyConfiguration; - - // Set keyword matching setting (required). - KeywordMatchSetting keywordMatchSetting = new KeywordMatchSetting(); - keywordMatchSetting.optIn = true; - campaign.settings = new Setting[] {keywordMatchSetting}; - - // Set network targeting (recommended). - NetworkSetting networkSetting = new NetworkSetting(); - networkSetting.targetGoogleSearch = true; - networkSetting.targetSearchNetwork = true; - networkSetting.targetContentNetwork = true; - campaign.networkSetting = networkSetting; - - // Create operation. - CampaignOperation operation = new CampaignOperation(); - operation.operand = campaign; - operation.@operator = Operator.ADD; - - return campaignService.mutate(new CampaignOperation[] {operation}).value[0]; - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs deleted file mode 100644 index f6250cea4d3..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroupDemographicCriteria.cs +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds demographic target criteria to an ad group. To get - /// ad groups, run AddAdGroup.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class AddAdGroupDemographicCriteria : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAdGroupDemographicCriteria codeExample = new AddAdGroupDemographicCriteria(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds demographic target criteria to an ad group. To get ad " + - "groups, run AddAdGroup.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which criteria are - /// added. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Create biddable ad group criterion for gender - Gender genderTarget = new Gender(); - // Criterion Id for male. The IDs can be found here - // https://developers.google.com/adwords/api/docs/appendix/genders - genderTarget.id = 10; - - BiddableAdGroupCriterion genderBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); - genderBiddableAdGroupCriterion.adGroupId = adGroupId; - genderBiddableAdGroupCriterion.criterion = genderTarget; - - // Create negative ad group criterion for age range - AgeRange ageRangeNegative = new AgeRange(); - // Criterion Id for age 18 to 24. The IDs can be found here - // https://developers.google.com/adwords/api/docs/appendix/ages - - ageRangeNegative.id = 503001; - NegativeAdGroupCriterion ageRangeNegativeAdGroupCriterion = new NegativeAdGroupCriterion(); - ageRangeNegativeAdGroupCriterion.adGroupId = adGroupId; - ageRangeNegativeAdGroupCriterion.criterion = ageRangeNegative; - - // Create operations. - AdGroupCriterionOperation genderBiddableAdGroupCriterionOperation = - new AdGroupCriterionOperation(); - genderBiddableAdGroupCriterionOperation.operand = genderBiddableAdGroupCriterion; - genderBiddableAdGroupCriterionOperation.@operator = Operator.ADD; - - AdGroupCriterionOperation ageRangeNegativeAdGroupCriterionOperation = - new AdGroupCriterionOperation(); - ageRangeNegativeAdGroupCriterionOperation.operand = ageRangeNegativeAdGroupCriterion; - ageRangeNegativeAdGroupCriterionOperation.@operator = Operator.ADD; - - AdGroupCriterionOperation[] operations = new AdGroupCriterionOperation[] { - genderBiddableAdGroupCriterionOperation, ageRangeNegativeAdGroupCriterionOperation}; - - try { - // Add ad group criteria. - AdGroupCriterionReturnValue result = adGroupCriterionService.mutate(operations); - - // Display ad group criteria. - if (result != null && result.value != null) { - foreach (AdGroupCriterion adGroupCriterionResult in result.value) { - Console.WriteLine("Ad group criterion with ad group id \"{0}\", criterion id " + - "\"{1}\", and type \"{2}\" was added.", adGroupCriterionResult.adGroupId, - adGroupCriterionResult.criterion.id, - adGroupCriterionResult.criterion.CriterionType); - } - } else { - Console.WriteLine("No ad group criteria were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create ad group criteria.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroups.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroups.cs deleted file mode 100644 index b5c282b095c..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddAdGroups.cs +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to create ad groups. To create - /// campaigns, run AddCampaigns.cs. - /// - /// Tags: AdGroupService.mutate - /// - public class AddAdGroups : ExampleBase { - /// - /// Number of items being added / updated in this code example. - /// - const int NUM_ITEMS = 5; - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAdGroups codeExample = new AddAdGroups(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create ad groups. To create campaigns, " + - "run AddCampaigns.cs"; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to which ad groups are - /// added. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - List operations = new List(); - - for (int i = 0; i < NUM_ITEMS; i++) { - // Create the ad group. - AdGroup adGroup = new AdGroup(); - adGroup.name = string.Format("Earth to Mars Cruises #{0}", - ExampleUtilities.GetRandomString()); - adGroup.status = AdGroupStatus.ENABLED; - adGroup.campaignId = campaignId; - - // Set the ad group bids. - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - - CpmBid cpmBid = new CpmBid(); - cpmBid.bid = new Money(); - cpmBid.bid.microAmount = 10000000; - - biddingConfig.bids = new Bids[] {cpmBid}; - - adGroup.biddingStrategyConfiguration = biddingConfig; - - // Optional: Set targeting restrictions. - // These setting only affect serving for the Display Network. - TargetingSetting targetingSetting = new TargetingSetting(); - - TargetingSettingDetail placementDetail = new TargetingSettingDetail(); - placementDetail.criterionTypeGroup = CriterionTypeGroup.PLACEMENT; - placementDetail.targetAll = true; - - TargetingSettingDetail verticalDetail = new TargetingSettingDetail(); - verticalDetail.criterionTypeGroup = CriterionTypeGroup.VERTICAL; - verticalDetail.targetAll = false; - - targetingSetting.details = new TargetingSettingDetail[] {placementDetail, verticalDetail}; - - adGroup.settings = new Setting[] {targetingSetting}; - - // Create the operation. - AdGroupOperation operation = new AdGroupOperation(); - operation.@operator = Operator.ADD; - operation.operand = adGroup; - - operations.Add(operation); - } - - try { - // Create the ad group. - AdGroupReturnValue retVal = adGroupService.mutate(operations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - foreach (AdGroup newAdGroup in retVal.value) { - Console.WriteLine("Ad group with id = '{0}' and name = '{1}' was created.", - newAdGroup.id, newAdGroup.name); - } - } else { - Console.WriteLine("No ad groups were created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create ad groups.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddCampaigns.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddCampaigns.cs deleted file mode 100644 index ed67c22a913..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddCampaigns.cs +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds campaigns. To get campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignService.mutate - /// - public class AddCampaigns : ExampleBase { - /// - /// Number of items being added / updated in this code example. - /// - const int NUM_ITEMS = 5; - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddCampaigns codeExample = new AddCampaigns(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds campaigns. To get campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the CampaignService. - BudgetService budgetService = - (BudgetService) user.GetService(AdWordsService.v201309.BudgetService); - - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - // Create the campaign budget. - Budget budget = new Budget(); - budget.name = "Interplanetary Cruise Budget #" + ExampleUtilities.GetRandomString(); - budget.period = BudgetBudgetPeriod.DAILY; - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD; - budget.amount = new Money(); - budget.amount.microAmount = 500000; - - BudgetOperation budgetOperation = new BudgetOperation(); - budgetOperation.@operator = Operator.ADD; - budgetOperation.operand = budget; - - try { - BudgetReturnValue budgetRetval = budgetService.mutate(new BudgetOperation[] {budgetOperation}); - budget = budgetRetval.value[0]; - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add shared budget.", ex); - } - - List operations = new List(); - - for (int i = 0; i < NUM_ITEMS; i++) { - // Create the campaign. - Campaign campaign = new Campaign(); - campaign.name = "Interplanetary Cruise #" + ExampleUtilities.GetRandomString(); - campaign.status = CampaignStatus.PAUSED; - - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - biddingConfig.biddingStrategyType = BiddingStrategyType.MANUAL_CPM; - - // Optional: also provide matching bidding scheme. - biddingConfig.biddingScheme = new ManualCpmBiddingScheme(); - - campaign.biddingStrategyConfiguration = biddingConfig; - - // Set the campaign budget. - campaign.budget = new Budget(); - campaign.budget.budgetId = budget.budgetId; - - // Set targetContentNetwork true. Other network targeting is not available - // for Ad Exchange Buyers. - campaign.networkSetting = new NetworkSetting(); - campaign.networkSetting.targetGoogleSearch = false; - campaign.networkSetting.targetSearchNetwork = false; - campaign.networkSetting.targetContentNetwork = true; - campaign.networkSetting.targetPartnerSearchNetwork = false; - - // Enable campaign for Real-time bidding. - RealTimeBiddingSetting rtbSetting = new RealTimeBiddingSetting(); - rtbSetting.optIn = true; - - campaign.settings = new Setting[] {rtbSetting}; - - // Optional: Set the start date. - campaign.startDate = DateTime.Now.AddDays(1).ToString("yyyyMMdd"); - - // Optional: Set the end date. - campaign.endDate = DateTime.Now.AddYears(1).ToString("yyyyMMdd"); - - // Optional: Set the campaign ad serving optimization status. - campaign.adServingOptimizationStatus = AdServingOptimizationStatus.ROTATE; - - // Optional: Set the frequency cap. - FrequencyCap frequencyCap = new FrequencyCap(); - frequencyCap.impressions = 5; - frequencyCap.level = Level.ADGROUP; - frequencyCap.timeUnit = TimeUnit.DAY; - campaign.frequencyCap = frequencyCap; - - // Create the operation. - CampaignOperation operation = new CampaignOperation(); - operation.@operator = Operator.ADD; - operation.operand = campaign; - - operations.Add(operation); - } - - try { - // Add the campaign. - CampaignReturnValue retVal = campaignService.mutate(operations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - foreach (Campaign newCampaign in retVal.value) { - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was added.", - newCampaign.name, newCampaign.id); - } - } else { - Console.WriteLine("No campaigns were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add campaigns.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddPlacements.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddPlacements.cs deleted file mode 100644 index 499b908217c..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddPlacements.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds placements to an ad group. To get ad groups, run - /// GetAdGroups.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class AddPlacements : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddPlacements codeExample = new AddPlacements(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds placements to an ad group. To get ad groups, run " + - "GetAdGroups.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which placements are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Create the placement. - Placement placement1 = new Placement(); - placement1.url = "http://mars.google.com"; - - // Create biddable ad group criterion. - AdGroupCriterion placementCriterion1 = new BiddableAdGroupCriterion(); - placementCriterion1.adGroupId = adGroupId; - placementCriterion1.criterion = placement1; - - // Create the placement. - Placement placement2 = new Placement(); - placement2.url = "http://venus.google.com"; - - // Create biddable ad group criterion. - AdGroupCriterion placementCriterion2 = new BiddableAdGroupCriterion(); - placementCriterion2.adGroupId = adGroupId; - placementCriterion2.criterion = placement2; - - // Create the operations. - AdGroupCriterionOperation placementOperation1 = new AdGroupCriterionOperation(); - placementOperation1.@operator = Operator.ADD; - placementOperation1.operand = placementCriterion1; - - AdGroupCriterionOperation placementOperation2 = new AdGroupCriterionOperation(); - placementOperation2.@operator = Operator.ADD; - placementOperation2.operand = placementCriterion2; - - try { - // Create the placements. - AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate( - new AdGroupCriterionOperation[] {placementOperation1, placementOperation2}); - - // Display the results. - if (retVal != null && retVal.value != null) { - foreach (AdGroupCriterion adGroupCriterion in retVal.value) { - // If you are adding multiple type of criteria, then you may need to - // check for - // - // if (adGroupCriterion is Placement) { ... } - // - // to identify the criterion type. - Console.WriteLine("Placement with ad group id = '{0}, placement id = '{1}, url = " + - "'{2}' was created.", adGroupCriterion.adGroupId, - adGroupCriterion.criterion.id, (adGroupCriterion.criterion as Placement).url); - } - } else { - Console.WriteLine("No placements were added."); - } - } catch (Exception ex) { - Console.WriteLine("Failed to create placements.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddThirdPartyRedirectAds.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddThirdPartyRedirectAds.cs deleted file mode 100644 index 3fc1b52a585..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/AddThirdPartyRedirectAds.cs +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds third party redirect ads to an ad group. To get - /// ad groups, run GetAdGroups.cs. - /// - /// Tags: AdGroupAdService.mutate - /// - public class AddThirdPartyRedirectAds : ExampleBase { - /// - /// Number of items being added / updated in this code example. - /// - const int NUM_ITEMS = 5; - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddThirdPartyRedirectAds codeExample = new AddThirdPartyRedirectAds(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds third party redirect ads to an ad group. To get ad " + - "groups, run GetAdGroups.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which ads are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create standard third party redirect ad. - ThirdPartyRedirectAd standardAd = new ThirdPartyRedirectAd(); - standardAd.name = String.Format("Example third party ad #{0}", - ExampleUtilities.GetRandomString()); - standardAd.url = "http://www.example.com"; - - standardAd.dimensions = new Dimensions(); - standardAd.dimensions.height = 250; - standardAd.dimensions.width = 300; - - standardAd.snippet = ""; - - // DoubleClick Rich Media Expandable format ID. - standardAd.certifiedVendorFormatId = 232; - standardAd.isCookieTargeted = false; - standardAd.isUserInterestTargeted = false; - standardAd.isTagged = false; - standardAd.richMediaAdType = RichMediaAdRichMediaAdType.STANDARD; - - // Expandable Ad properties. - standardAd.expandingDirections = new ThirdPartyRedirectAdExpandingDirection[] { - ThirdPartyRedirectAdExpandingDirection.EXPANDING_UP, - ThirdPartyRedirectAdExpandingDirection.EXPANDING_DOWN - }; - - standardAd.adAttributes = new RichMediaAdAdAttribute[] { - RichMediaAdAdAttribute.ROLL_OVER_TO_EXPAND}; - - // Create in-stream third party redirect ad. - ThirdPartyRedirectAd inStreamAd = new ThirdPartyRedirectAd(); - inStreamAd.name = String.Format("Example third party ad #{0}", - ExampleUtilities.GetRandomString()); - inStreamAd.url = "http://www.example.com"; - // Set the duration to 15 secs. - inStreamAd.adDuration = 15000; - inStreamAd.sourceUrl = "http://ad.doubleclick.net/pfadx/N270.126913.6102203221521/B3876671.21;dcadv=2215309;sz=0x0;ord=%5btimestamp%5d;dcmt=text/xml"; - inStreamAd.certifiedVendorFormatId = 303; - inStreamAd.richMediaAdType = RichMediaAdRichMediaAdType.IN_STREAM_VIDEO; - - List operations = new List(); - - foreach (ThirdPartyRedirectAd redirectAd in new - ThirdPartyRedirectAd[] {standardAd, inStreamAd}) { - // Set the ad group id. - AdGroupAd adGroupAd = new AdGroupAd(); - adGroupAd.adGroupId = adGroupId; - adGroupAd.ad = redirectAd; - - // Create the operation. - AdGroupAdOperation operation = new AdGroupAdOperation(); - operation.@operator = Operator.ADD; - operation.operand = adGroupAd; - - operations.Add(operation); - } - - AdGroupAdReturnValue retVal = null; - - try { - // Create the ads - retVal = service.mutate(operations.ToArray()); - if (retVal != null && retVal.value != null) { - // If you are adding multiple type of Ads, then you may need to check - // for - // - // if (adGroupAd.ad is ThirdPartyRedirectAd) { ... } - // - // to identify the ad type. - foreach (AdGroupAd newAdGroupAd in retVal.value) { - Console.WriteLine("New third party redirect ad with url = \"{0}\" and id = {1}" + - " was created.", ((ThirdPartyRedirectAd) newAdGroupAd.ad).url, - newAdGroupAd.ad.id); - } - } else { - Console.WriteLine("No third party redirect ads were created."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create third party redirect ads.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAd.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAd.cs deleted file mode 100644 index 482a0af434d..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAd.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes an ad using the 'REMOVE' operator. To list ads, - /// run GetTextAds.cs. - /// - /// Tags: AdGroupAdService.mutate - /// - public class DeleteAd : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeleteAd codeExample = new DeleteAd(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long adId = long.Parse("INSERT_AD_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, adId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes an ad using the 'REMOVE' operator. To list ads, " + - "run GetTextAds.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the ad. - /// Id of the ad being deleted. - public void Run(AdWordsUser user, long adGroupId, long adId) { - // Get the AdGroupAdService. - AdGroupAdService adGroupAdService = (AdGroupAdService) user.GetService( - AdWordsService.v201309.AdGroupAdService); - - // Since we do not need to update any ad-specific fields, it is enough to - // create the base type. - Ad ad = new Ad(); - ad.id = adId; - - // Create the ad group ad. - AdGroupAd adGroupAd = new AdGroupAd(); - adGroupAd.adGroupId = adGroupId; - - adGroupAd.ad = ad; - - // Create the operation. - AdGroupAdOperation operation = new AdGroupAdOperation(); - operation.operand = adGroupAd; - operation.@operator = Operator.REMOVE; - - try { - // Delete the ad. - AdGroupAdReturnValue retVal = adGroupAdService.mutate( - new AdGroupAdOperation[] {operation}); - - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupAd deletedAdGroupAd = retVal.value[0]; - Console.WriteLine("Ad with id = \"{0}\" and type = \"{1}\" was deleted.", - deletedAdGroupAd.ad.id, deletedAdGroupAd.ad.AdType); - } else { - Console.WriteLine("No ads were deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete ad.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAdGroup.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAdGroup.cs deleted file mode 100644 index 8c2ae667295..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteAdGroup.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes an ad group by setting the status to 'DELETED'. - /// To get ad groups, run GetAdGroups.cs. - /// - /// Tags: AdGroupService.mutate - /// - public class DeleteAdGroup : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeleteAdGroup codeExample = new DeleteAdGroup(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes an ad group by setting the status to 'DELETED'. " + - "To get ad groups, run GetAdGroups.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to be deleted. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupService. - AdGroupService adGroupService = (AdGroupService) user.GetService( - AdWordsService.v201309.AdGroupService); - - // Create ad group with DELETED status. - AdGroup adGroup = new AdGroup(); - adGroup.id = adGroupId; - - // When deleting an ad group, rename it to avoid name collisions with new - // adgroups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString(); - adGroup.status = AdGroupStatus.DELETED; - - // Create the operation. - AdGroupOperation operation = new AdGroupOperation(); - operation.operand = adGroup; - operation.@operator = Operator.SET; - - try { - // Delete the ad group. - AdGroupReturnValue retVal = adGroupService.mutate(new AdGroupOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroup deletedAdGroup = retVal.value[0]; - Console.WriteLine("Ad group with id = \"{0}\" was renamed to \"{1}\" and deleted.", - deletedAdGroup.id, deletedAdGroup.name); - } else { - Console.WriteLine("No ad groups were deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete ad group.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteCampaign.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteCampaign.cs deleted file mode 100644 index 198ef33ca82..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeleteCampaign.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes a campaign by setting the status to 'DELETED'. - /// To get campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignService.mutate - /// - public class DeleteCampaign : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeleteCampaign codeExample = new DeleteCampaign(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes a campaign by setting the status to 'DELETED'. " + - "To get campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to be deleted. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignService. - CampaignService campaignService = (CampaignService) user.GetService( - AdWordsService.v201309.CampaignService); - - // Create campaign with DELETED status. - Campaign campaign = new Campaign(); - campaign.id = campaignId; - - // When deleting a campaign, rename it to avoid name collisions with new - // campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString(); - campaign.status = CampaignStatus.DELETED; - - // Create the operation. - CampaignOperation operation = new CampaignOperation(); - operation.operand = campaign; - operation.@operator = Operator.SET; - - try { - // Delete the campaign. - CampaignReturnValue retVal = campaignService.mutate(new CampaignOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - Campaign deletedCampaign = retVal.value[0]; - Console.WriteLine("Campaign with id = \"{0}\" was renamed to \"{1}\" and deleted.", - deletedCampaign.id, deletedCampaign.name); - } else { - Console.WriteLine("No campaigns were deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete campaign.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeletePlacement.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeletePlacement.cs deleted file mode 100644 index 839210d2e3b..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/DeletePlacement.cs +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example deletes a placement using the 'REMOVE' operator. To get - /// placements, run GetPlacements.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class DeletePlacement : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DeletePlacement codeExample = new DeletePlacement(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long placementId = long.Parse("INSERT_PLACEMENT_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, placementId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example deletes a placement using the 'REMOVE' operator. To get " + - "placements, run GetPlacements.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the placement. - /// - /// Id of the placement to be deleted. - public void Run(AdWordsUser user, long adGroupId, long placementId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = (AdGroupCriterionService)user.GetService( - AdWordsService.v201309.AdGroupCriterionService); - - // Create base class criterion to avoid setting placement-specific fields. - Criterion criterion = new Criterion(); - criterion.id = placementId; - - // Create the ad group criterion. - BiddableAdGroupCriterion adGroupCriterion = new BiddableAdGroupCriterion(); - adGroupCriterion.adGroupId = adGroupId; - adGroupCriterion.criterion = criterion; - - // Create the operation. - AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); - operation.operand = adGroupCriterion; - operation.@operator = Operator.REMOVE; - - try { - // Delete the placement. - AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate( - new AdGroupCriterionOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupCriterion deletedPlacement = retVal.value[0]; - Console.WriteLine("Placement with ad group id = \"{0}\" and id = \"{1}\" was deleted.", - deletedPlacement.adGroupId, deletedPlacement.criterion.id); - } else { - Console.WriteLine("No placement was deleted."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete placement.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetAdGroups.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetAdGroups.cs deleted file mode 100644 index d82eda021a3..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetAdGroups.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to retrieve all the ad groups for a - /// campaign. To create an ad group, run AddAdGroup.cs. - /// - /// Tags: AdGroupService.get - /// - public class GetAdGroups : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAdGroups codeExample = new GetAdGroups(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve all the ad groups for a " + - "campaign. To create an ad group, run AddAdGroup.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign for which ad groups are - /// retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "Name"}; - - // Create the filters. - Predicate predicate = new Predicate(); - predicate.field = "CampaignId"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] {campaignId.ToString()}; - selector.predicates = new Predicate[] {predicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupPage page = new AdGroupPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the ad groups. - page = adGroupService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroup adGroup in page.entries) { - Console.WriteLine("{0}) Ad group name is '{1}' and id is {2}.", i + 1, adGroup.name, - adGroup.id); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of ad groups found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve ad groups.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaigns.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaigns.cs deleted file mode 100644 index e02a6043ae2..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaigns.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example lists all campaigns. To add a campaign, run - /// AddCampaign.cs. - /// - /// Tags: CampaignService.get - /// - public class GetCampaigns : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetCampaigns codeExample = new GetCampaigns(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example lists all campaigns. To add a campaign, run AddCampaign.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "Name", "Status"}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - CampaignPage page = new CampaignPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the campaigns. - page = campaignService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (Campaign campaign in page.entries) { - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = '{3}'" + - " was found.", i + 1, campaign.id, campaign.name, campaign.status); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve campaigns", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs deleted file mode 100644 index e7f463866bb..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetCampaignsWithAwql.cs +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example lists all campaigns using an AWQL query. See - /// https://developers.google.com/adwords/api/docs/guides/awql for AWQL - /// documentation. To add a campaign, run AddCampaign.cs. - /// - /// Tags: CampaignService.get - /// - public class GetCampaignsWithAwql : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetCampaignsWithAwql codeExample = new GetCampaignsWithAwql(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example lists all campaigns using an AWQL query. See " + - "https://developers.google.com/adwords/api/docs/guides/awql for AWQL documentation. " + - "To add a campaign, run AddCampaign.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - // Create the query. - string query = "SELECT Id, Name, Status ORDER BY Name"; - - int offset = 0; - int pageSize = 500; - - CampaignPage page = new CampaignPage(); - - try { - do { - string queryWithPaging = string.Format("{0} LIMIT {1}, {2}", query, offset, pageSize); - - // Get the campaigns. - page = campaignService.query(queryWithPaging); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (Campaign campaign in page.entries) { - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = '{3}'" + - " was found.", i + 1, campaign.id, campaign.name, campaign.status); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve campaigns", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetPlacements.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetPlacements.cs deleted file mode 100644 index c20e7801a31..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetPlacements.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets all placements in an account. To add placements, - /// run AddPlacements.cs. - /// - /// Tags: AdGroupCriterionService.get - /// - public class GetPlacements : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetPlacements codeExample = new GetPlacements(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all placements in an account. To add placements, run " + - "AddPlacements.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService( - AdWordsService.v201309.AdGroupCriterionService); - - // Create a selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "AdGroupId", "PlacementUrl"}; - - // Select only keywords. - Predicate predicate = new Predicate(); - predicate.field = "CriteriaType"; - predicate.@operator = PredicateOperator.EQUALS; - predicate.values = new string[] {"PLACEMENT"}; - selector.predicates = new Predicate[] {predicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupCriterionPage page = new AdGroupCriterionPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the keywords. - page = adGroupCriterionService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - - foreach (AdGroupCriterion adGroupCriterion in page.entries) { - bool isNegative = (adGroupCriterion is NegativeAdGroupCriterion); - - // If you are retrieving multiple type of criteria, then you may - // need to check for - // - // if (adGroupCriterion is Placement) { ... } - // - // to identify the criterion type. - Placement placement = (Placement) adGroupCriterion.criterion; - if (isNegative) { - Console.WriteLine("{0}) Negative placement with ad group ID = '{1}', placement " + - "ID = '{2}', and url = '{3}' was found.", i, adGroupCriterion.adGroupId, - placement.id, placement.url); - } else { - Console.WriteLine("{0}) Placement with ad group ID = '{1}', placement ID = '{2}' " + - "and url = '{3}' was found.", i, adGroupCriterion.adGroupId, - placement.id, placement.url); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of placements found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve placements."); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetThirdPartyRedirectAds.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetThirdPartyRedirectAds.cs deleted file mode 100644 index 3e25531d7cb..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/GetThirdPartyRedirectAds.cs +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves all third party redirect ads given an existing - /// ad group. To add third party redirect ads to an existing ad group, run - /// AddThirdPartyRedirectAd.cs. - /// - /// Tags: AdGroupAdService.get - /// - public class GetThirdPartyRedirectAds : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetThirdPartyRedirectAds codeExample = new GetThirdPartyRedirectAds(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves all third party redirect ads given an existing ad " + - "group. To add third party redirect ads to an existing ad group, run " + - "AddThirdPartyRedirectAd.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group from which third party - /// redirect ads are retrieved. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create a selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "Status", "Url", "DisplayUrl", "RichMediaAdSnippet"}; - - // Set the sort order. - OrderBy orderBy = new OrderBy(); - orderBy.field = "Id"; - orderBy.sortOrder = SortOrder.ASCENDING; - selector.ordering = new OrderBy[] {orderBy}; - - // Restrict the fetch to only the selected ad group id. - Predicate adGroupPredicate = new Predicate(); - adGroupPredicate.field = "AdGroupId"; - adGroupPredicate.@operator = PredicateOperator.EQUALS; - adGroupPredicate.values = new string[] {adGroupId.ToString()}; - - // Retrieve only third party redirect ads. - Predicate typePredicate = new Predicate(); - typePredicate.field = "AdType"; - typePredicate.@operator = PredicateOperator.EQUALS; - typePredicate.values = new string[] {"THIRD_PARTY_REDIRECT_AD"}; - - // By default disabled ads aren't returned by the selector. To return - // them include the DISABLED status in the statuses field. - Predicate statusPredicate = new Predicate(); - statusPredicate.field = "Status"; - statusPredicate.@operator = PredicateOperator.IN; - - statusPredicate.values = new string[] {AdGroupAdStatus.ENABLED.ToString(), - AdGroupAdStatus.PAUSED.ToString(), AdGroupAdStatus.DISABLED.ToString()}; - - selector.predicates = new Predicate[] {adGroupPredicate, statusPredicate, typePredicate}; - - // Select the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupAdPage page = new AdGroupAdPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the third party redirect ads. - page = service.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - - foreach (AdGroupAd adGroupAd in page.entries) { - ThirdPartyRedirectAd thirdPartyRedirectAd = (ThirdPartyRedirectAd) adGroupAd.ad; - Console.WriteLine("{0}) Ad id is {1} and status is {2}", i, thirdPartyRedirectAd.id, - adGroupAd.status); - Console.WriteLine(" Url: {0}\n Display Url: {1}\n Snippet:{2}", - thirdPartyRedirectAd.url, thirdPartyRedirectAd.displayUrl, - thirdPartyRedirectAd.snippet); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of third party redirect ads found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get third party redirect ad(s).", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/PauseAd.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/PauseAd.cs deleted file mode 100644 index 301d21e26a0..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/PauseAd.cs +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example pauses a given ad. To list all ads, run GetTextAds.cs. - /// - /// Tags: AdGroupAdService.mutate - /// - public class PauseAd : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - PauseAd codeExample = new PauseAd(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long adId = long.Parse("INSERT_AD_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, adId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example pauses a given ad. To list all ads, run GetTextAds.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the ad. - /// - /// Id of the ad to be paused. - public void Run(AdWordsUser user, long adGroupId, long adId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - AdGroupAdStatus status = AdGroupAdStatus.PAUSED; - - // Create the ad group ad. - AdGroupAd adGroupAd = new AdGroupAd(); - adGroupAd.status = status; - adGroupAd.adGroupId = adGroupId; - - adGroupAd.ad = new Ad(); - adGroupAd.ad.id = adId; - - // Create the operation. - AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation(); - adGroupAdOperation.@operator = Operator.SET; - adGroupAdOperation.operand = adGroupAd; - - try { - // Update the ad. - AdGroupAdReturnValue retVal = service.mutate(new AdGroupAdOperation[]{adGroupAdOperation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupAd pausedAdGroupAd = retVal.value[0]; - Console.WriteLine("Ad with id \"{0}\" and ad group id \"{1}\"was paused.", - pausedAdGroupAd.ad.id, pausedAdGroupAd.adGroupId); - } else { - Console.WriteLine("No ads were paused."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to pause ad.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateAdGroup.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateAdGroup.cs deleted file mode 100644 index 6d14b870347..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateAdGroup.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to update an ad group, setting its - /// status to 'PAUSED'. To create an ad group, run AddAdGroup.cs. - /// - /// Tags: AdGroupService.mutate - /// - public class UpdateAdGroup : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdateAdGroup codeExample = new UpdateAdGroup(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to update an ad group, setting its status to " + - "'PAUSED'. To create an ad group, run AddAdGroup.cs"; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to be updated. - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - // Create the ad group. - AdGroup adGroup = new AdGroup(); - adGroup.status = AdGroupStatus.PAUSED; - adGroup.id = adGroupId; - - // Create the operation. - AdGroupOperation operation = new AdGroupOperation(); - operation.@operator = Operator.SET; - operation.operand = adGroup; - - try { - // Update the ad group. - AdGroupReturnValue retVal = adGroupService.mutate(new AdGroupOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroup pausedAdGroup = retVal.value[0]; - Console.WriteLine("Ad group with id = '{0}' was successfully updated.", - pausedAdGroup.id); - } else { - Console.WriteLine("No ad groups were updated."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update ad group.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateCampaign.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateCampaign.cs deleted file mode 100644 index 89b26dd6912..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdateCampaign.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example updates a campaign. To get campaigns, run - /// GetCampaigns.cs. - /// - /// Tags: CampaignService.mutate - /// - public class UpdateCampaign : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdateCampaign codeExample = new UpdateCampaign(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example updates a campaign. To get campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to be updated. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignService. - CampaignService campaignService = - (CampaignService)user.GetService(AdWordsService.v201309.CampaignService); - - // Create the campaign. - Campaign campaign = new Campaign(); - campaign.id = campaignId; - campaign.status = CampaignStatus.PAUSED; - - // Create the operation. - CampaignOperation operation = new CampaignOperation(); - operation.@operator = Operator.SET; - operation.operand = campaign; - - try { - // Update the campaign. - CampaignReturnValue retVal = campaignService.mutate((new CampaignOperation[] {operation})); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - Campaign updatedCampaign = retVal.value[0]; - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was updated.", - updatedCampaign.name, updatedCampaign.id); - } else { - Console.WriteLine("No campaigns were updated."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update campaign.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdatePlacement.cs b/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdatePlacement.cs deleted file mode 100644 index 4de416a2f41..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/BasicOperations/UpdatePlacement.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example updates the bid of a placement. To get placement, run - /// GetPlacements.cs. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class UpdatePlacement : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UpdatePlacement codeExample = new UpdatePlacement(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - long placementId = long.Parse("INSERT_PLACEMENT_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId, placementId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example updates the bid of a placement. To get placement, run " + - "GetPlacements.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group that contains the placement. - /// - /// Id of the placement to be updated. - public void Run(AdWordsUser user, long adGroupId, long placementId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Since we are not updating any placement-specific fields, it is enough to - // create a criterion object. - Criterion criterion = new Criterion(); - criterion.id = placementId; - - // Create ad group criterion. - BiddableAdGroupCriterion biddableAdGroupCriterion = new BiddableAdGroupCriterion(); - biddableAdGroupCriterion.adGroupId = adGroupId; - biddableAdGroupCriterion.criterion = criterion; - - // Create the bids. - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - CpmBid cpmBid = new CpmBid(); - cpmBid.bid = new Money(); - cpmBid.bid.microAmount = 1000000; - biddingConfig.bids = new Bids[] {cpmBid}; - - biddableAdGroupCriterion.biddingStrategyConfiguration = biddingConfig; - - // Create the operation. - AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); - operation.@operator = Operator.SET; - operation.operand = biddableAdGroupCriterion; - - try { - // Update the placement. - AdGroupCriterionReturnValue retVal = - adGroupCriterionService.mutate(new AdGroupCriterionOperation[] {operation}); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupCriterion adGroupCriterion = retVal.value[0]; - long bidAmount = 0; - foreach (Bids bids in (adGroupCriterion as BiddableAdGroupCriterion). - biddingStrategyConfiguration.bids) { - if (bids is CpmBid) { - bidAmount = (bids as CpmBid).bid.microAmount; - break; - } - } - Console.WriteLine("Placement with ad group id = '{0}', id = '{1}' was updated with " + - "bid amount = '{2}' micros.", adGroupCriterion.adGroupId, - adGroupCriterion.criterion.id, bidAmount); - } else { - Console.WriteLine("No placement was updated."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to update placement.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/CampaignManagement/AddPlacementsInBulk.cs b/examples/AdXBuyer/CSharp/v201309/CampaignManagement/AddPlacementsInBulk.cs deleted file mode 100644 index 4c9ab83fd80..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/CampaignManagement/AddPlacementsInBulk.cs +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text.RegularExpressions; -using System.Threading; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example shows how to add placements in bulk using the - /// MutateJobService. - /// - /// Tags: MutateJobService.mutate, MutateJobService.get - /// Tags: MutateJobService.getResult - /// - public class AddPlacementsInBulk : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddPlacementsInBulk codeExample = new AddPlacementsInBulk(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to add placements in bulk using the MutateJobService."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad groups to which placements are - /// added. - public void Run(AdWordsUser user, long adGroupId) { - // Get the MutateJobService. - MutateJobService mutateJobService = (MutateJobService) user.GetService( - AdWordsService.v201309.MutateJobService); - - const int RETRY_INTERVAL = 30; - const int RETRIES_COUNT = 30; - const int PLACEMENT_NUMBER = 100; - const string INDEX_REGEX = "operations\\[(\\d+)\\].operand"; - - List operations = new List(); - - // Create AdGroupCriterionOperation to add placements. - for (int i = 0; i < PLACEMENT_NUMBER; i++) { - Placement placement = new Placement(); - placement.url = "http://mars.google.com/" + i.ToString(); - - BiddableAdGroupCriterion criterion = new BiddableAdGroupCriterion(); - criterion.adGroupId = adGroupId; - criterion.criterion = placement; - - AdGroupCriterionOperation adGroupCriterionOperation = new AdGroupCriterionOperation(); - adGroupCriterionOperation.@operator = Operator.ADD; - adGroupCriterionOperation.operand = criterion; - - operations.Add(adGroupCriterionOperation); - } - - BulkMutateJobPolicy policy = new BulkMutateJobPolicy(); - // You can specify up to 3 job IDs that must successfully complete before - // this job can be processed. - policy.prerequisiteJobIds = new long[] {}; - - SimpleMutateJob job = mutateJobService.mutate(operations.ToArray(), policy); - - // Wait for the job to complete. - bool completed = false; - int retryCount = 0; - Console.WriteLine("Retrieving job status..."); - - while (completed == false && retryCount < RETRIES_COUNT) { - BulkMutateJobSelector selector = new BulkMutateJobSelector(); - selector.jobIds = new long[] {job.id}; - - try { - Job[] allJobs = mutateJobService.get(selector); - if (allJobs != null && allJobs.Length > 0) { - job = (SimpleMutateJob) allJobs[0]; - if (job.status == BasicJobStatus.COMPLETED || job.status == BasicJobStatus.FAILED) { - completed = true; - break; - } else { - Console.WriteLine("{0}: Current status is {1}, waiting {2} seconds to retry...", - retryCount, job.status, RETRY_INTERVAL); - Thread.Sleep(RETRY_INTERVAL * 1000); - retryCount++; - } - } - } catch (Exception ex) { - throw new System.ApplicationException(string.Format("Failed to fetch simple mutate " + - "job with id = {0}.", job.id), ex); - } - } - - if (job.status == BasicJobStatus.COMPLETED) { - // Handle cases where the job completed. - - // Create the job selector. - BulkMutateJobSelector selector = new BulkMutateJobSelector(); - selector.jobIds = new long[] {job.id}; - - // Get the job results. - JobResult jobResult = mutateJobService.getResult(selector); - if (jobResult != null) { - SimpleMutateResult results = (SimpleMutateResult) jobResult.Item; - if (results != null) { - // Display the results. - if (results.results != null) { - for (int i = 0; i < results.results.Length; i++) { - Operand operand = results.results[i]; - Console.WriteLine("Operation {0} - {1}", i, (operand.Item is PlaceHolder) ? - "FAILED" : "SUCCEEDED"); - } - } - - // Display the errors. - if (results.errors != null) { - foreach (ApiError apiError in results.errors) { - Match match = Regex.Match(apiError.fieldPath, INDEX_REGEX, RegexOptions.IgnoreCase); - string index = (match.Success)? match.Groups[1].Value : "???"; - Console.WriteLine("Operation index {0} failed due to reason: '{1}', " + - "trigger: '{2}'", index, apiError.errorString, apiError.trigger); - } - } - } - } - Console.WriteLine("Job completed successfully!"); - } else if (job.status == BasicJobStatus.FAILED) { - // Handle the cases where job failed. - Console.WriteLine("Job failed with reason: " + job.failureReason); - } else if (job.status == BasicJobStatus.PROCESSING || job.status == BasicJobStatus.PENDING) { - // Handle the cases where job didn't complete after wait period. - Console.WriteLine("Job did not complete in {0} secconds.", RETRY_INTERVAL * RETRIES_COUNT); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs b/examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs deleted file mode 100644 index 30b375616ee..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAds.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves all the disapproved ads in a given campaign. - /// - /// Tags: AdGroupAdService.get - /// - public class GetAllDisapprovedAds : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAllDisapprovedAds codeExample = new GetAllDisapprovedAds(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves all the disapproved ads in a given campaign."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign for which disapproved ads - /// are retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "AdGroupCreativeApprovalStatus", - "AdGroupAdDisapprovalReasons"}; - - // Create the filter. - Predicate campaignPredicate = new Predicate(); - campaignPredicate.@operator = PredicateOperator.EQUALS; - campaignPredicate.field = "CampaignId"; - campaignPredicate.values = new string[] {campaignId.ToString()}; - - Predicate approvalPredicate = new Predicate(); - approvalPredicate.@operator = PredicateOperator.EQUALS; - approvalPredicate.field = "AdGroupCreativeApprovalStatus"; - approvalPredicate.values = new string[] {AdGroupAdApprovalStatus.DISAPPROVED.ToString()}; - - selector.predicates = new Predicate[] {campaignPredicate, approvalPredicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - AdGroupAdPage page = new AdGroupAdPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get the disapproved ads. - page = service.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroupAd adGroupAd in page.entries) { - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " + - "reason(s):", i, adGroupAd.ad.id); - foreach (string reason in adGroupAd.disapprovalReasons) { - Console.WriteLine(" {0}", reason); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get disapproved ads.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs b/examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs deleted file mode 100644 index ba45be8ad01..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/CampaignManagement/GetAllDisapprovedAdsWihAwql.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves all the disapproved ads in a given campaign - /// using AWQL. See https://developers.google.com/adwords/api/docs/guides/awql - /// for AWQL documentation. - /// - /// Tags: AdGroupAdService.get - /// - public class GetAllDisapprovedAdsWithAwql : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAllDisapprovedAdsWithAwql codeExample = new GetAllDisapprovedAdsWithAwql(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves all the disapproved ads in a given campaign using " + - "AWQL. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL " + - "documentation."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign for which disapproved ads - /// are retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Get all the disapproved ads for this campaign. - string query = string.Format("SELECT Id, AdGroupAdDisapprovalReasons WHERE " + - "CampaignId = {0} AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id", - campaignId); - - int offset = 0; - int pageSize = 500; - - AdGroupAdPage page = new AdGroupAdPage(); - - try { - do { - string queryWithPaging = string.Format("{0} LIMIT {1}, {2}", query, offset, pageSize); - - // Get the disapproved ads. - page = service.query(queryWithPaging); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (AdGroupAd adGroupAd in page.entries) { - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " + - "reason(s):", i, adGroupAd.ad.id); - foreach (string reason in adGroupAd.disapprovalReasons) { - Console.WriteLine(" {0}", reason); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get disapproved ads.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs b/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs deleted file mode 100644 index 2de890bd27f..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePartialFailures.cs +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example demonstrates how to handle partial failures. - /// - /// Tags: AdGroupCriterionService.mutate - /// - public class HandlePartialFailures : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandlePartialFailures codeExample = new HandlePartialFailures(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example demonstrates how to handle partial failures."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which keywords are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Set partial failure mode for the service. - adGroupCriterionService.RequestHeader.partialFailure = true; - - List operations = new List(); - - // Create the placements. - string[] urls = new String[] {"http://mars.google.com", "http:/mars.google.com", - "mars.google.com"}; - - foreach (String url in urls) { - Placement placement = new Placement(); - placement.url = url; - - // Create biddable ad group criterion. - BiddableAdGroupCriterion placementBiddableAdGroupCriterion = new BiddableAdGroupCriterion(); - placementBiddableAdGroupCriterion.adGroupId = adGroupId; - placementBiddableAdGroupCriterion.criterion = placement; - - // Create the operation. - AdGroupCriterionOperation placementAdGroupCriterionOperation = - new AdGroupCriterionOperation(); - placementAdGroupCriterionOperation.operand = placementBiddableAdGroupCriterion; - placementAdGroupCriterionOperation.@operator = Operator.ADD; - operations.Add(placementAdGroupCriterionOperation); - } - - try { - // Create the placements. - AdGroupCriterionReturnValue result = adGroupCriterionService.mutate(operations.ToArray()); - - // Display the results. - if (result != null && result.value != null) { - foreach (AdGroupCriterion adGroupCriterionResult in result.value) { - if (adGroupCriterionResult.criterion != null) { - Console.WriteLine("Placement with ad group id '{0}', and criterion " + - "id '{1}', and url '{2}' was added.\n", adGroupCriterionResult.adGroupId, - adGroupCriterionResult.criterion.id, - ((Placement) adGroupCriterionResult.criterion).url); - } - } - } else { - Console.WriteLine("No placements were added."); - } - - // Display the partial failure errors. - if (result != null && result.partialFailureErrors != null) { - foreach (ApiError apiError in result.partialFailureErrors) { - int operationIndex = ErrorUtilities.GetOperationIndex(apiError.fieldPath); - if (operationIndex != -1) { - AdGroupCriterion adGroupCriterion = operations[operationIndex].operand; - Console.WriteLine("Placement with ad group id '{0}' and url '{1}' " - + "triggered a failure for the following reason: '{2}'.\n", - adGroupCriterion.adGroupId, ((Placement) adGroupCriterion.criterion).url, - apiError.errorString); - } else { - Console.WriteLine("A failure for the following reason: '{0}' has occurred.\n", - apiError.errorString); - } - } - } - } catch (Exception e) { - throw new System.ApplicationException("Failed to add placements in partial failure mode.", - e); - } - } - } -} - diff --git a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs b/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs deleted file mode 100644 index e6dfb17da4e..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandlePolicyViolationError.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds a text ad, and shows how to handle a policy - /// violation. - /// - /// Tags: AdGroupAdService.mutate - /// - public class HandlePolicyViolationError : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandlePolicyViolationError codeExample = new HandlePolicyViolationError(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds a text ad, and shows how to handle a policy violation."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which ads are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - // Get the AdGroupAdService. - AdGroupAdService service = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - - // Create the third party redirect ad that violates a policy. - ThirdPartyRedirectAd redirectAd = new ThirdPartyRedirectAd(); - redirectAd.name = "Policy violation demo ad " + ExampleUtilities.GetRandomString(); - redirectAd.url = "gopher://gopher.google.com"; - redirectAd.dimensions = new Dimensions(); - redirectAd.dimensions.width = 300; - redirectAd.dimensions.height = 250; - - redirectAd.snippet = ""; - redirectAd.impressionBeaconUrl = "http://www.examples.com/beacon1"; - redirectAd.certifiedVendorFormatId = 119; - redirectAd.isCookieTargeted = false; - redirectAd.isUserInterestTargeted = false; - redirectAd.isTagged = false; - - AdGroupAd redirectAdGroupAd = new AdGroupAd(); - redirectAdGroupAd.adGroupId = adGroupId; - redirectAdGroupAd.ad = redirectAd; - - // Create the operations. - AdGroupAdOperation redirectAdOperation = new AdGroupAdOperation(); - redirectAdOperation.@operator = Operator.ADD; - redirectAdOperation.operand = redirectAdGroupAd; - - try { - AdGroupAdReturnValue retVal = null; - - // Setup two arrays, one to hold the list of all operations to be - // validated, and another to hold the list of operations that cannot be - // fixed after validation. - List allOperations = new List(); - List operationsToBeRemoved = new List(); - - allOperations.Add(redirectAdOperation); - - try { - // Validate the operations. - service.RequestHeader.validateOnly = true; - retVal = service.mutate(allOperations.ToArray()); - } catch (AdWordsApiException ex) { - ApiException innerException = ex.ApiException as ApiException; - if (innerException == null) { - throw new Exception("Failed to retrieve ApiError. See inner exception for more " + - "details.", ex); - } - - // Examine each ApiError received from the server. - foreach (ApiError apiError in innerException.errors) { - int index = ErrorUtilities.GetOperationIndex(apiError.fieldPath); - if (index == -1) { - // This API error is not associated with an operand, so we cannot - // recover from this error by removing one or more operations. - // Rethrow the exception for manual inspection. - throw; - } - - // Handle policy violation errors. - if (apiError is PolicyViolationError) { - PolicyViolationError policyError = (PolicyViolationError) apiError; - - if (policyError.isExemptable) { - // If the policy violation error is exemptable, add an exemption - // request. - List exemptionRequests = new List(); - if (allOperations[index].exemptionRequests != null) { - exemptionRequests.AddRange(allOperations[index].exemptionRequests); - } - - ExemptionRequest exemptionRequest = new ExemptionRequest(); - exemptionRequest.key = policyError.key; - exemptionRequests.Add(exemptionRequest); - allOperations[index].exemptionRequests = exemptionRequests.ToArray(); - } else { - // Policy violation error is not exemptable, remove this - // operation from the list of operations. - operationsToBeRemoved.Add(allOperations[index]); - } - } else { - // This is not a policy violation error, remove this operation - // from the list of operations. - operationsToBeRemoved.Add(allOperations[index]); - } - } - // Remove all operations that aren't exemptable. - foreach (AdGroupAdOperation operation in operationsToBeRemoved) { - allOperations.Remove(operation); - } - } - - if (allOperations.Count > 0) { - // Perform the operations exemptible of a policy violation. - service.RequestHeader.validateOnly = false; - retVal = service.mutate(allOperations.ToArray()); - - // Display the results. - if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - foreach (AdGroupAd newAdGroupAd in retVal.value) { - Console.WriteLine("New ad with id = \"{0}\" and displayUrl = \"{1}\" was created.", - newAdGroupAd.ad.id, newAdGroupAd.ad.displayUrl); - } - } else { - Console.WriteLine("No ads were created."); - } - } else { - Console.WriteLine("There are no ads to create after policy violation checks."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to create ads.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs b/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs deleted file mode 100644 index 50d76d6d8d6..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleRateExceededError.cs +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example shows how to handle RateExceededError in your - /// application. To trigger the rate exceeded error, this code example runs - /// 100 threads in parallel, each thread attempting to validate 100 keywords - /// in a single request. Note that spawning 100 parallel threads is for - /// illustrative purposes only, you shouldn't do this in your application. - /// - /// Tags: AdGroupAdService.mutate - /// - public class HandleRateExceededError: ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandleRateExceededError codeExample = new HandleRateExceededError(); - Console.WriteLine(codeExample.Description); - try { - long adGroupId = long.Parse("INSERT_ADGROUP_ID_HERE"); - codeExample.Run(new AdWordsUser(), adGroupId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example shows how to handle RateExceededError in your application. " + - "To trigger the rate exceeded error, this code example runs 100 threads in " + - "parallel, each thread attempting to validate 100 keywords in a single request. " + - "Note that spawning 100 parallel threads is for illustrative purposes only, you " + - "shouldn't do this in your application."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the ad group to which keywords are added. - /// - public void Run(AdWordsUser user, long adGroupId) { - const int NUM_THREADS = 100; - - // Increase the maximum number of parallel HTTP connections that .NET - // framework allows. By default, this is set to 2 by the .NET framework. - System.Net.ServicePointManager.DefaultConnectionLimit = NUM_THREADS; - - List threads = new List(); - - for (int i = 0; i < NUM_THREADS; i++) { - Thread thread = new Thread(new KeywordThread(user, i, adGroupId).Run); - threads.Add(thread); - } - - for (int i = 0; i < NUM_THREADS; i++) { - threads[i].Start(i); - } - - for (int i = 0; i < NUM_THREADS; i++) { - threads[i].Join(); - } - } - - /// - /// Thread class for validating keywords. - /// - class KeywordThread { - /// - /// Index of this thread, for identifying and debugging. - /// - int threadIndex; - - /// - /// The ad group id to which keywords are added. - /// - long adGroupId; - - /// - /// The AdWords user who owns this ad group. - /// - AdWordsUser user; - - /// - /// Number of keywords to be validated in each API call. - /// - const int NUM_KEYWORDS = 100; - - /// - /// Initializes a new instance of the class. - /// - /// Index of the thread. - /// The ad group id. - /// The AdWords user who owns the ad group. - public KeywordThread(AdWordsUser user, int threadIndex, long adGroupId) { - this.user = user; - this.threadIndex = threadIndex; - this.adGroupId = adGroupId; - } - - /// - /// Main method for the thread. - /// - /// The thread parameter. - public void Run(Object obj) { - // Create the operations. - List operations = new List(); - - for (int j = 0; j < NUM_KEYWORDS; j++) { - // Create the keyword. - Keyword keyword = new Keyword(); - keyword.text = "mars cruise thread " + threadIndex.ToString() + " seed " + j.ToString(); - keyword.matchType = KeywordMatchType.BROAD; - - // Create the biddable ad group criterion. - AdGroupCriterion keywordCriterion = new BiddableAdGroupCriterion(); - keywordCriterion.adGroupId = adGroupId; - keywordCriterion.criterion = keyword; - - // Create the operations. - AdGroupCriterionOperation keywordOperation = new AdGroupCriterionOperation(); - keywordOperation.@operator = Operator.ADD; - keywordOperation.operand = keywordCriterion; - - operations.Add(keywordOperation); - } - - // Get the AdGroupCriterionService. This should be done within the - // thread, since a service can only handle one outgoing HTTP request - // at a time. - AdGroupCriterionService service = (AdGroupCriterionService) user.GetService( - AdWordsService.v201309.AdGroupCriterionService); - service.RequestHeader.validateOnly = true; - int retryCount = 0; - const int NUM_RETRIES = 3; - try { - while (retryCount < NUM_RETRIES) { - try { - // Validate the keywords. - AdGroupCriterionReturnValue retval = service.mutate(operations.ToArray()); - break; - } catch (AdWordsApiException ex) { - // Handle API errors. - ApiException innerException = ex.ApiException as ApiException; - if (innerException == null) { - throw new Exception("Failed to retrieve ApiError. See inner exception for more " + - "details.", ex); - } - foreach (ApiError apiError in innerException.errors) { - if (!(apiError is RateExceededError)) { - // Rethrow any errors other than RateExceededError. - throw; - } - // Handle rate exceeded errors. - RateExceededError rateExceededError = (RateExceededError) apiError; - Console.WriteLine("Got Rate exceeded error - rate name = '{0}', scope = '{1}', " + - "retry After {2} seconds.", rateExceededError.rateScope, - rateExceededError.rateName, rateExceededError.retryAfterSeconds); - Thread.Sleep(rateExceededError.retryAfterSeconds * 1000); - retryCount = retryCount + 1; - } - } finally { - if (retryCount == NUM_RETRIES) { - throw new Exception(String.Format("Could not recover after making {0} attempts.", - retryCount)); - } - } - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to validate keywords.", ex); - } - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs b/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs deleted file mode 100644 index b2e89a28b6b..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.cs +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Lib; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to handle 2 factor authorization errors. - /// - /// Tags: CampaignService.get - /// - public class HandleTwoFactorAuthorizationError : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - HandleTwoFactorAuthorizationError codeExample = new HandleTwoFactorAuthorizationError(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to handle 2 factor authorization errors."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Use a test account for which 2 factor authentication has been enabled. - string loginEmail = "2steptester@gmail.com"; - string password = "testaccount"; - - AdWordsAppConfig config = new AdWordsAppConfig(); - config.Email = loginEmail; - config.Password = password; - AuthToken authToken = new AuthToken(config, "adwords"); - - try { - // Try to obtain an authToken. - string token = authToken.GetToken(); - Console.WriteLine("Retrieved an authToken = {0} for user {1}.", token, loginEmail); - } catch (AuthTokenException ex) { - // Since the test account has 2 factor authentication enabled, this block - // of code will be executed. - if (ex.ErrorCode == AuthTokenErrorCode.BadAuthentication) { - if (ex.Info == "InvalidSecondFactor") { - Console.WriteLine("The user has enabled two factor authentication in this " + - "account. Have the user generate an application-specific password to make " + - "calls against the AdWords API. See " + - "http://adwordsapi.blogspot.com/2011/02/authentication-changes-with-2-step.html" + - " for more details."); - } else { - Console.WriteLine("Invalid credentials."); - } - } else { - throw new System.ApplicationException(String.Format("The server raised an {0} error.", - ex.ErrorCode)); - } - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs b/examples/AdXBuyer/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs deleted file mode 100644 index 06207c369e4..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Miscellaneous/GetAllVideosAndImages.cs +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets all videos and images. To upload video, see - /// http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. - /// To upload image, run UploadImage.cs. - /// - /// Tags: MediaService.get - /// - public class GetAllVideosAndImages : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetAllVideosAndImages codeExample = new GetAllVideosAndImages(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all videos and images. To upload video, see " + - "http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. To " + - "upload image, run UploadImage.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the MediaService. - MediaService mediaService = (MediaService) user.GetService( - AdWordsService.v201309.MediaService); - - // Create a selector. - Selector selector = new Selector(); - selector.fields = new string[] {"MediaId", "Width", "Height", "MimeType"}; - - // Set the filter. - Predicate predicate = new Predicate(); - predicate.@operator = PredicateOperator.IN; - predicate.field = "Type"; - predicate.values = new string[] {MediaMediaType.VIDEO.ToString(), - MediaMediaType.IMAGE.ToString()}; - - selector.predicates = new Predicate[] {predicate}; - - // Set selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - MediaPage page = new MediaPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - page = mediaService.get(selector); - - if (page != null && page.entries != null) { - int i = offset; - - foreach (Media media in page.entries) { - if (media is Video) { - Video video = (Video) media; - Console.WriteLine("{0}) Video with id \"{1}\" and name \"{2}\" was found.", - i, video.mediaId, video.name); - } else if (media is Image) { - Image image = (Image) media; - Dictionary dimensions = - CreateMediaDimensionMap(image.dimensions); - Console.WriteLine("{0}) Image with id '{1}', dimensions '{2}x{3}', and MIME type " + - "'{4}' was found.", i, image.mediaId, dimensions[MediaSize.FULL].width, - dimensions[MediaSize.FULL].height, image.mimeType); - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of images and videos found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get images and videos.", ex); - } - } - - /// - /// Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - /// - /// The array of Media_Size_DimensionsMapEntry to be - /// converted into a dictionary. - /// A dictionary with key as MediaSize, and value as Dimensions. - /// - private Dictionary CreateMediaDimensionMap( - Media_Size_DimensionsMapEntry[] dimensions) { - Dictionary mediaMap = new Dictionary(); - foreach (Media_Size_DimensionsMapEntry dimension in dimensions) { - mediaMap.Add(dimension.key, dimension.value); - } - return mediaMap; - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Miscellaneous/UploadImage.cs b/examples/AdXBuyer/CSharp/v201309/Miscellaneous/UploadImage.cs deleted file mode 100644 index b44ac5e2189..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Miscellaneous/UploadImage.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example uploads an image. To get images, run GetAllVideosAndImages.cs. - /// - /// Tags: MediaService.upload - /// - public class UploadImage : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - UploadImage codeExample = new UploadImage(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example uploads an image. To get images, run GetAllVideosAndImages.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the MediaService. - MediaService mediaService = (MediaService) user.GetService( - AdWordsService.v201309.MediaService); - - // Create the image. - Image image = new Image(); - image.data = MediaUtilities.GetAssetDataFromUrl("http://goo.gl/HJM3L"); - image.type = MediaMediaType.IMAGE; - - try { - // Upload the image. - Media[] result = mediaService.upload(new Media[] {image}); - - // Display the results. - if (result != null && result.Length > 0) { - Media newImage = result[0]; - Dictionary dimensions = - CreateMediaDimensionMap(newImage.dimensions); - Console.WriteLine("Image with id '{0}', dimensions '{1}x{2}', and MIME type '{3}'" + - " was uploaded.", newImage.mediaId, dimensions[MediaSize.FULL].width, - dimensions[MediaSize.FULL].height, newImage.mimeType); - } else { - Console.WriteLine("No images were uploaded."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to upload image.", ex); - } - } - - /// - /// Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - /// - /// The array of Media_Size_DimensionsMapEntry to be - /// converted into a dictionary. - /// A dictionary with key as MediaSize, and value as Dimensions. - /// - private Dictionary CreateMediaDimensionMap( - Media_Size_DimensionsMapEntry[] dimensions) { - Dictionary mediaMap = new Dictionary(); - foreach (Media_Size_DimensionsMapEntry dimension in dimensions) { - mediaMap.Add(dimension.key, dimension.value); - } - return mediaMap; - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Optimization/GetPlacementIdeas.cs b/examples/AdXBuyer/CSharp/v201309/Optimization/GetPlacementIdeas.cs deleted file mode 100644 index 7b0462b0c67..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Optimization/GetPlacementIdeas.cs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example retrieves urls that have content keywords related to a - /// given website. - /// - /// Tags: TargetingIdeaService.get - /// - public class GetPlacementIdeas : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetPlacementIdeas codeExample = new GetPlacementIdeas(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example retrieves urls that have content keywords related to a" + - " given website."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the TargetingIdeaService. - TargetingIdeaService targetingIdeaService = - (TargetingIdeaService) user.GetService(AdWordsService.v201309.TargetingIdeaService); - - // Create seed url. - string url = "mars.google.com"; - - // Create the selector. - TargetingIdeaSelector selector = new TargetingIdeaSelector(); - selector.requestType = RequestType.IDEAS; - selector.ideaType = IdeaType.PLACEMENT; - selector.requestedAttributeTypes = new AttributeType[] {AttributeType.CRITERION, - AttributeType.PLACEMENT_TYPE}; - - // Create related to url search parameter. - RelatedToUrlSearchParameter relatedToUrlSearchParameter = new RelatedToUrlSearchParameter(); - relatedToUrlSearchParameter.urls = new string[] {url}; - relatedToUrlSearchParameter.includeSubUrls = false; - selector.searchParameters = new SearchParameter[] {relatedToUrlSearchParameter}; - - // Set selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - TargetingIdeaPage page = new TargetingIdeaPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get placement ideas. - page = targetingIdeaService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - - foreach (TargetingIdea idea in page.entries) { - foreach (Type_AttributeMapEntry entry in idea.data) { - if (entry.key == AttributeType.CRITERION) { - CriterionAttribute placementAttribute = entry.value as CriterionAttribute; - Placement placement = (Placement) placementAttribute.value; - Console.WriteLine("Related placement urls were found at '{0}'.", - (placementAttribute.value as Placement).url); - } - } - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of related placements found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve related placements.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Remarketing/AddAudience.cs b/examples/AdXBuyer/CSharp/v201309/Remarketing/AddAudience.cs deleted file mode 100644 index c9a9c0ed1db..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Remarketing/AddAudience.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to create a user list a.k.a. audience. - /// - /// Tags: UserListService.mutate - /// - public class AddAudience : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddAudience codeExample = new AddAudience(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to create a user list a.k.a. audience."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the UserListService. - AdwordsUserListService userListService = - (AdwordsUserListService) user.GetService(AdWordsService.v201309.AdwordsUserListService); - - // Get the ConversionTrackerService. - ConversionTrackerService conversionTrackerService = - (ConversionTrackerService)user.GetService(AdWordsService.v201309. - ConversionTrackerService); - - BasicUserList userList = new BasicUserList(); - userList.name = "Mars cruise customers #" + ExampleUtilities.GetRandomString(); - userList.description = "A list of mars cruise customers in the last year."; - userList.status = UserListMembershipStatus.OPEN; - userList.membershipLifeSpan = 365; - - UserListConversionType conversionType = new UserListConversionType(); - conversionType.name = userList.name; - userList.conversionTypes = new UserListConversionType[] {conversionType}; - - // Optional: Set the user list status. - userList.status = UserListMembershipStatus.OPEN; - - // Create the operation. - UserListOperation operation = new UserListOperation(); - operation.operand = userList; - operation.@operator = Operator.ADD; - - try { - // Add the user list. - UserListReturnValue retval = userListService.mutate(new UserListOperation[] {operation}); - - UserList[] userLists = null; - if (retval != null && retval.value != null) { - userLists = retval.value; - // Get all conversion snippets - List conversionIds = new List(); - foreach (BasicUserList newUserList in userLists) { - if (newUserList.conversionTypes != null) { - foreach (UserListConversionType newConversionType in newUserList.conversionTypes) { - conversionIds.Add(newConversionType.id.ToString()); - } - } - } - - Dictionary conversionsMap = - new Dictionary(); - - if (conversionIds.Count > 0) { - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id"}; - - Predicate conversionTypePredicate = new Predicate(); - conversionTypePredicate.field = "Id"; - conversionTypePredicate.@operator = PredicateOperator.IN; - conversionTypePredicate.values = conversionIds.ToArray(); - selector.predicates = new Predicate[] {conversionTypePredicate}; - - // Get all conversion trackers. - ConversionTrackerPage page = conversionTrackerService.get(selector); - - if (page != null && page.entries != null) { - foreach (ConversionTracker tracker in page.entries) { - conversionsMap[tracker.id] = tracker; - } - } - } - - // Display the results. - foreach (BasicUserList newUserList in userLists) { - Console.WriteLine("User list with name '{0}' and id '{1}' was added.", - newUserList.name, newUserList.id); - - // Display user list associated conversion code snippets. - if (newUserList.conversionTypes != null) { - foreach (UserListConversionType userListConversionType in - newUserList.conversionTypes) { - if (conversionsMap.ContainsKey(userListConversionType.id)) { - AdWordsConversionTracker conversionTracker = - (AdWordsConversionTracker) conversionsMap[userListConversionType.id]; - Console.WriteLine("Conversion type code snippet associated to the list:\n{0}\n", - conversionTracker.snippet); - } else { - throw new Exception("Failed to associate conversion type code snippet."); - } - } - } - } - } else { - Console.WriteLine("No user lists (a.k.a. audiences) were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add user lists (a.k.a. audiences).", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Remarketing/AddConversionTracker.cs b/examples/AdXBuyer/CSharp/v201309/Remarketing/AddConversionTracker.cs deleted file mode 100644 index ae939e71b0d..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Remarketing/AddConversionTracker.cs +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds an AdWords conversion tracker. - /// - /// Tags: ConversionTrackerService.mutate - /// - public class AddConversionTracker : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddConversionTracker codeExample = new AddConversionTracker(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds an AdWords conversion tracker."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ConversionTrackerService. - ConversionTrackerService conversionTrackerService = - (ConversionTrackerService)user.GetService(AdWordsService.v201309. - ConversionTrackerService); - - // Create Adwords conversion tracker. - AdWordsConversionTracker conversionTracker = new AdWordsConversionTracker(); - conversionTracker.name = "Earth to Mars Cruises Conversion #" + - ExampleUtilities.GetRandomString(); - conversionTracker.category = ConversionTrackerCategory.DEFAULT; - conversionTracker.markupLanguage = AdWordsConversionTrackerMarkupLanguage.HTML; - conversionTracker.textFormat = AdWordsConversionTrackerTextFormat.HIDDEN; - - // Set optional fields. - conversionTracker.status = ConversionTrackerStatus.ENABLED; - conversionTracker.viewthroughLookbackWindow = 15; - conversionTracker.isProductAdsChargeable = true; - conversionTracker.productAdsChargeableConversionWindow = 15; - conversionTracker.conversionPageLanguage = "en"; - conversionTracker.backgroundColor = "#0000FF"; - conversionTracker.userRevenueValue = "someJavascriptVariable"; - - // Create the operation. - ConversionTrackerOperation operation = new ConversionTrackerOperation(); - operation.@operator = Operator.ADD; - operation.operand = conversionTracker; - - try { - // Add conversion tracker. - ConversionTrackerReturnValue retval = conversionTrackerService.mutate( - new ConversionTrackerOperation[] {operation}); - - // Display the results. - if (retval != null && retval.value != null && retval.value.Length > 0) { - ConversionTracker newConversionTracker = retval.value[0]; - Console.WriteLine("Conversion tracker with id '{0}', name '{1}', status '{2}', " + - "category '{3}' was added.", newConversionTracker.id, newConversionTracker.name, - newConversionTracker.status, newConversionTracker.category); - } else { - Console.WriteLine("No conversion trackers were added."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to add conversion tracker.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReport.cs b/examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReport.cs deleted file mode 100644 index ab5c7dbe9fa..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReport.cs +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util.Reports; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets and downloads a criteria Ad Hoc report from an XML - /// report definition. - /// - public class DownloadCriteriaReport : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DownloadCriteriaReport codeExample = new DownloadCriteriaReport(); - Console.WriteLine(codeExample.Description); - try { - string fileName = "INSERT_FILE_NAME_HERE"; - codeExample.Run(new AdWordsUser(), fileName); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets and downloads a criteria Ad Hoc report from an XML report " + - "definition."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The file to which the report is downloaded. - /// - public void Run(AdWordsUser user, string fileName) { - ReportDefinition definition = new ReportDefinition(); - - definition.reportName = "Last 7 days CRITERIA_PERFORMANCE_REPORT"; - definition.reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT; - definition.downloadFormat = DownloadFormat.GZIPPED_CSV; - definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS; - - // Create selector. - Selector selector = new Selector(); - selector.fields = new string[] {"CampaignId", "AdGroupId", "Id", "CriteriaType", "Criteria", - "CriteriaDestinationUrl", "Clicks", "Impressions", "Cost"}; - - Predicate predicate = new Predicate(); - predicate.field = "Status"; - predicate.@operator = PredicateOperator.IN; - predicate.values = new string[] {"ACTIVE", "PAUSED"}; - selector.predicates = new Predicate[] {predicate}; - - definition.selector = selector; - definition.includeZeroImpressions = true; - - string filePath = ExampleUtilities.GetHomeDir() + Path.DirectorySeparatorChar + fileName; - - try { - // If you know that your report is small enough to fit in memory, then - // you can instead use - // ReportUtilities utilities = new ReportUtilities(user); - // utilities.ReportVersion = "v201309"; - // ClientReport report = utilities.GetClientReport(definition); - // - // // Get the text report directly if you requested a text format - // // (e.g. xml) - // string reportText = report.Text; - // - // // Get the binary report if you requested a binary format - // // (e.g. gzip) - // byte[] reportBytes = report.Contents; - // - // // Deflate a zipped binary report for further processing. - // string deflatedReportText = Encoding.UTF8.GetString( - // MediaUtilities.DeflateGZipData(report.Contents)); - ReportUtilities utilities = new ReportUtilities(user); - utilities.ReportVersion = "v201309"; - utilities.DownloadClientReport(definition, filePath); - Console.WriteLine("Report was downloaded to '{0}'.", filePath); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to download report.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs b/examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs deleted file mode 100644 index 1bb76a0ebe0..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Reporting/DownloadCriteriaReportWithAwql.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util.Reports; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets and downloads a criteria Ad Hoc report from an AWQL - /// query. See https://developers.google.com/adwords/api/docs/guides/awql for - /// AWQL documentation. - /// - public class DownloadCriteriaReportWithAwql : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - DownloadCriteriaReportWithAwql codeExample = new DownloadCriteriaReportWithAwql(); - Console.WriteLine(codeExample.Description); - try { - string fileName = "INSERT_FILE_NAME_HERE"; - codeExample.Run(new AdWordsUser(), fileName); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets and downloads a criteria Ad Hoc report from an AWQL " + - "query. See https://developers.google.com/adwords/api/docs/guides/awql for AWQL " + - "documentation."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The file to which the report is downloaded. - /// - public void Run(AdWordsUser user, string fileName) { - string query = "SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, Impressions, " + - "Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT WHERE Status IN [ACTIVE, PAUSED] " + - "DURING LAST_7_DAYS"; - - string filePath = ExampleUtilities.GetHomeDir() + Path.DirectorySeparatorChar + fileName; - - try { - // If you know that your report is small enough to fit in memory, then - // you can instead use - // ReportUtilities utilities = new ReportUtilities(user); - // utilities.ReportVersion = "v201309"; - // ClientReport report = utilities.GetClientReport(query, format); - // - // // Get the text report directly if you requested a text format - // // (e.g. xml) - // string reportText = report.Text; - // - // // Get the binary report if you requested a binary format - // // (e.g. gzip) - // byte[] reportBytes = report.Contents; - // - // // Deflate a zipped binary report for further processing. - // string deflatedReportText = Encoding.UTF8.GetString( - // MediaUtilities.DeflateGZipData(report.Contents)); - ReportUtilities utilities = new ReportUtilities(user); - utilities.ReportVersion = "v201309"; - utilities.DownloadClientReport(query, DownloadFormat.GZIPPED_CSV.ToString(), filePath); - Console.WriteLine("Report was downloaded to '{0}'.", filePath); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to download report.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Reporting/GetReportFields.cs b/examples/AdXBuyer/CSharp/v201309/Reporting/GetReportFields.cs deleted file mode 100644 index 9cb43bdbe4f..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Reporting/GetReportFields.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets report fields. - /// - /// Tags: ReportDefinitionService.getReportFields - /// - public class GetReportFields : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetReportFields codeExample = new GetReportFields(); - Console.WriteLine(codeExample.Description); - try { - ReportDefinitionReportType reportType = (ReportDefinitionReportType) Enum.Parse( - typeof(ReportDefinitionReportType), "INSERT_REPORT_TYPE_HERE"); - codeExample.Run(new AdWordsUser(), reportType); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets report fields."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// The report type to be run. - public void Run(AdWordsUser user, ReportDefinitionReportType reportType) { - // Get the ReportDefinitionService. - ReportDefinitionService reportDefinitionService = (ReportDefinitionService) user.GetService( - AdWordsService.v201309.ReportDefinitionService); - - try { - // Get the report fields. - ReportDefinitionField[] reportDefinitionFields = reportDefinitionService.getReportFields( - reportType); - if (reportDefinitionFields != null && reportDefinitionFields.Length > 0) { - // Display report fields. - Console.WriteLine("The report type '{0}' contains the following fields:", reportType); - - foreach (ReportDefinitionField reportDefinitionField in reportDefinitionFields) { - Console.Write("- {0} ({1})", reportDefinitionField.fieldName, - reportDefinitionField.fieldType); - if (reportDefinitionField.enumValues != null) { - Console.Write(" := [{0}]", String.Join(", ", reportDefinitionField.enumValues)); - } - Console.WriteLine(); - } - } else { - Console.WriteLine("This report type has no fields."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to retrieve fields for report type.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs b/examples/AdXBuyer/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs deleted file mode 100644 index 1f81056a64e..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Targeting/AddCampaignTargetingCriteria.cs +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example adds various types of targeting criteria to a campaign. - /// To get a list of campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignCriterionService.mutate - /// - public class AddCampaignTargetingCriteria : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - AddCampaignTargetingCriteria codeExample = new AddCampaignTargetingCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example adds various types of targeting criteria to a campaign. To " + - "get a list of campaigns, run GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign to which targeting criteria - /// are added. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignCriterionService. - CampaignCriterionService campaignCriterionService = - (CampaignCriterionService) user.GetService( - AdWordsService.v201309.CampaignCriterionService); - - // Create language criteria. - // See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - // for a detailed list of language codes. - Language language1 = new Language(); - language1.id = 1002; // French - CampaignCriterion languageCriterion1 = new CampaignCriterion(); - languageCriterion1.campaignId = campaignId; - languageCriterion1.criterion = language1; - - Language language2 = new Language(); - language2.id = 1005; // Japanese - CampaignCriterion languageCriterion2 = new CampaignCriterion(); - languageCriterion2.campaignId = campaignId; - languageCriterion2.criterion = language2; - - // Create location criteria. - // See http://code.google.com/apis/adwords/docs/appendix/countrycodes.html - // for a detailed list of country codes. - Location location1 = new Location(); - location1.id = 2840; // USA - CampaignCriterion locationCriterion1 = new CampaignCriterion(); - locationCriterion1.campaignId = campaignId; - locationCriterion1.criterion = location1; - - Location location2 = new Location(); - location2.id = 2392; // Japan - CampaignCriterion locationCriterion2 = new CampaignCriterion(); - locationCriterion2.campaignId = campaignId; - locationCriterion2.criterion = location2; - - // Add a negative campaign placement. - NegativeCampaignCriterion negativeCriterion = new NegativeCampaignCriterion(); - negativeCriterion.campaignId = campaignId; - - Placement placement = new Placement(); - placement.url = "http://mars.google.com"; - - negativeCriterion.criterion = placement; - - CampaignCriterion[] criteria = new CampaignCriterion[] {languageCriterion1, - languageCriterion2, locationCriterion1, locationCriterion2, negativeCriterion}; - - List operations = new List(); - - foreach (CampaignCriterion criterion in criteria) { - CampaignCriterionOperation operation = new CampaignCriterionOperation(); - operation.@operator = Operator.ADD; - operation.operand = criterion; - operations.Add(operation); - } - - try { - // Set the campaign targets. - CampaignCriterionReturnValue retVal = campaignCriterionService.mutate(operations.ToArray()); - - if (retVal != null && retVal.value != null) { - // Display campaign targets. - foreach (CampaignCriterion criterion in retVal.value) { - Console.WriteLine("Campaign criteria of type '{0}' was set to campaign with" + - " id = '{1}'.", criterion.criterion.CriterionType, criterion.campaignId); - } - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to set Campaign criteria.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs b/examples/AdXBuyer/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs deleted file mode 100644 index 94cdde18240..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Targeting/GetCampaignTargetingCriteria.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets all targeting criteria for a campaign. To set - /// campaign targeting criteria, run AddCampaignTargetingCriteria.cs. To get - /// campaigns, run GetCampaigns.cs. - /// - /// Tags: CampaignCriterionService.get - /// - public class GetCampaignTargetingCriteria : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetCampaignTargetingCriteria codeExample = new GetCampaignTargetingCriteria(); - Console.WriteLine(codeExample.Description); - try { - long campaignId = long.Parse("INSERT_CAMPAIGN_ID_HERE"); - codeExample.Run(new AdWordsUser(), campaignId); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets all targeting criteria for a campaign. To set campaign " + - "targeting criteria, run AddCampaignTargetingCriteria.cs. To get campaigns, run " + - "GetCampaigns.cs."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - /// Id of the campaign from which targeting - /// criteria are retrieved. - public void Run(AdWordsUser user, long campaignId) { - // Get the CampaignCriterionService. - CampaignCriterionService campaignCriterionService = - (CampaignCriterionService) user.GetService( - AdWordsService.v201309.CampaignCriterionService); - - // Create the selector. - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "CriteriaType", "PlacementUrl"}; - - // Set the filters. - Predicate campaignPredicate = new Predicate(); - campaignPredicate.field = "CampaignId"; - campaignPredicate.@operator = PredicateOperator.EQUALS; - campaignPredicate.values = new string[] {campaignId.ToString()}; - - Predicate placementPredicate = new Predicate(); - placementPredicate.field = "CriteriaType"; - placementPredicate.@operator = PredicateOperator.EQUALS; - placementPredicate.values = new string[] {"PLACEMENT"}; - - selector.predicates = new Predicate[] {campaignPredicate, placementPredicate}; - - // Set the selector paging. - selector.paging = new Paging(); - - int offset = 0; - int pageSize = 500; - - CampaignCriterionPage page = new CampaignCriterionPage(); - - try { - do { - selector.paging.startIndex = offset; - selector.paging.numberResults = pageSize; - - // Get all campaign targets. - page = campaignCriterionService.get(selector); - - // Display the results. - if (page != null && page.entries != null) { - int i = offset; - foreach (CampaignCriterion campaignCriterion in page.entries) { - Placement placement = campaignCriterion.criterion as Placement; - - Console.WriteLine("{0}) Placement with ID {1} and url {2} was found.", i, - placement.id, placement.url); - i++; - } - } - offset += pageSize; - } while (offset < page.totalNumEntries); - Console.WriteLine("Number of placements found: {0}", page.totalNumEntries); - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get campaign targeting criteria.", ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs b/examples/AdXBuyer/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs deleted file mode 100644 index f384f9bc0ac..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Targeting/GetTargetableLanguagesAndCarriers.cs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example illustrates how to retrieve all carriers and languages - /// available for targeting. - /// - /// Tags: ConstantDataService.getCarrierCriterion - /// Tags: ConstantDataService.getLanguageCriterion - /// - public class GetTargetableLanguagesAndCarriers : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - GetTargetableLanguagesAndCarriers codeExample = new GetTargetableLanguagesAndCarriers(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example illustrates how to retrieve all carriers and languages " + - "available for targeting."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the ConstantDataService. - ConstantDataService constantDataService = (ConstantDataService) user.GetService( - AdWordsService.v201309.ConstantDataService); - - try { - // Get all carriers. - Carrier[] carriers = constantDataService.getCarrierCriterion(); - - // Display the results. - if (carriers != null) { - foreach (Carrier carrier in carriers) { - Console.WriteLine("Carrier name is '{0}', ID is {1} and country code is '{2}'.", - carrier.name, carrier.id, carrier.countryCode); - } - } else { - Console.WriteLine("No carriers were retrieved."); - } - - // Get all languages. - Language[] languages = constantDataService.getLanguageCriterion(); - - // Display the results. - if (languages != null) { - foreach (Language language in languages) { - Console.WriteLine("Language name is '{0}', ID is {1} and code is '{2}'.", - language.name, language.id, language.code); - } - } else { - Console.WriteLine("No languages were found."); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get targetable carriers and languages.", - ex); - } - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201309/Targeting/LookupLocation.cs b/examples/AdXBuyer/CSharp/v201309/Targeting/LookupLocation.cs deleted file mode 100644 index a3c320738a4..00000000000 --- a/examples/AdXBuyer/CSharp/v201309/Targeting/LookupLocation.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.IO; - -namespace Google.Api.Ads.AdWords.Examples.CSharp.v201309 { - /// - /// This code example gets location criteria by name. - /// - /// Tags: LocationCriterionService.get - /// - public class LookupLocation : ExampleBase { - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) { - LookupLocation codeExample = new LookupLocation(); - Console.WriteLine(codeExample.Description); - try { - codeExample.Run(new AdWordsUser()); - } catch (Exception ex) { - Console.WriteLine("An exception occurred while running this code example. {0}", - ExampleUtilities.FormatException(ex)); - } - } - - /// - /// Returns a description about the code example. - /// - public override string Description { - get { - return "This code example gets location criteria by name."; - } - } - - /// - /// Runs the code example. - /// - /// The AdWords user. - public void Run(AdWordsUser user) { - // Get the LocationCriterionService. - LocationCriterionService locationCriterionService = - (LocationCriterionService) user.GetService(AdWordsService.v201309. - LocationCriterionService); - - string[] locationNames = new string[] {"Paris", "Quebec", "Spain", "Deutschland"}; - - Selector selector = new Selector(); - selector.fields = new string[] {"Id", "LocationName", "CanonicalName", "DisplayType", - "ParentLocations", "Reach", "TargetingStatus"}; - - // Location names must match exactly, only EQUALS and IN are supported. - Predicate predicate1 = new Predicate(); - predicate1.field = "LocationName"; - predicate1.@operator = PredicateOperator.IN; - predicate1.values = locationNames; - - // Set the locale of the returned location names. - Predicate predicate2 = new Predicate(); - predicate2.field = "Locale"; - predicate2.@operator = PredicateOperator.EQUALS; - predicate2.values = new string[] {"en"}; - - selector.predicates = new Predicate[] {predicate1, predicate2}; - - try { - // Make the get request. - LocationCriterion[] locationCriteria = locationCriterionService.get(selector); - - // Display the resulting location criteria. - foreach (LocationCriterion locationCriterion in locationCriteria) { - string parentLocations = ""; - if (locationCriterion.location != null && - locationCriterion.location.parentLocations != null) { - foreach (Location location in locationCriterion.location.parentLocations) { - parentLocations += GetLocationString(location) + ", "; - } - parentLocations.TrimEnd(',', ' '); - } else { - parentLocations = "N/A"; - } - Console.WriteLine("The search term '{0}' returned the location '{1}' of type '{2}' " + - "with parent locations '{3}', reach '{4}' and targeting status '{5}.", - locationCriterion.searchTerm, locationCriterion.location.locationName, - locationCriterion.location.displayType, parentLocations, locationCriterion.reach, - locationCriterion.location.targetingStatus); - } - } catch (Exception ex) { - throw new System.ApplicationException("Failed to get location criteria.", ex); - } - } - - /// - /// Gets a string representation for a location. - /// - /// The location - /// The string representation - public string GetLocationString(Location location) { - return string.Format("{0} ({1})", location.locationName, location.displayType); - } - } -} diff --git a/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteAdGroup.cs b/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteAdGroup.cs index ecdec8a25db..f32594b02de 100644 --- a/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteAdGroup.cs +++ b/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteAdGroup.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long adGroupId) { // Create ad group with DELETED status. AdGroup adGroup = new AdGroup(); adGroup.id = adGroupId; - - // When deleting an ad group, rename it to avoid name collisions with new - // adgroups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString(); adGroup.status = AdGroupStatus.DELETED; // Create the operation. diff --git a/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteCampaign.cs b/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteCampaign.cs index 05f1b58c6f0..c6fbd6c409d 100644 --- a/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteCampaign.cs +++ b/examples/AdXBuyer/CSharp/v201402/BasicOperations/DeleteCampaign.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long campaignId) { // Create campaign with DELETED status. Campaign campaign = new Campaign(); campaign.id = campaignId; - - // When deleting a campaign, rename it to avoid name collisions with new - // campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString(); campaign.status = CampaignStatus.DELETED; // Create the operation. diff --git a/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveAdGroup.cs b/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveAdGroup.cs index 29ea835c342..1d6a8876a08 100644 --- a/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveAdGroup.cs +++ b/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveAdGroup.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long adGroupId) { // Create ad group with REMOVED status. AdGroup adGroup = new AdGroup(); adGroup.id = adGroupId; - - // When deleting an ad group, rename it to avoid name collisions with new - // adgroups. - adGroup.name = "Removed AdGroup - " + ExampleUtilities.GetRandomString(); adGroup.status = AdGroupStatus.REMOVED; // Create the operation. diff --git a/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveCampaign.cs b/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveCampaign.cs index e6a194bc105..73acf6c4358 100644 --- a/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveCampaign.cs +++ b/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemoveCampaign.cs @@ -68,10 +68,6 @@ public void Run(AdWordsUser user, long campaignId) { // Create campaign with REMOVED status. Campaign campaign = new Campaign(); campaign.id = campaignId; - - // When removing a campaign, rename it to avoid name collisions with new - // campaigns. - campaign.name = "Removed Campaign - " + ExampleUtilities.GetRandomString(); campaign.status = CampaignStatus.REMOVED; // Create the operation. diff --git a/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemovePlacement.cs b/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemovePlacement.cs index 9b83f8361e1..79184e4841b 100644 --- a/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemovePlacement.cs +++ b/examples/AdXBuyer/CSharp/v201406/BasicOperations/RemovePlacement.cs @@ -23,7 +23,7 @@ namespace Google.Api.Ads.AdWords.Examples.CSharp.v201406 { /// - /// This code example deletes a placement using the 'REMOVE' operator. To get + /// This code example removes a placement using the 'REMOVE' operator. To get /// placements, run GetPlacements.cs. /// /// Tags: AdGroupCriterionService.mutate @@ -51,7 +51,7 @@ public static void Main(string[] args) { /// public override string Description { get { - return "This code example deletes a placement using the 'REMOVE' operator. To get " + + return "This code example removes a placement using the 'REMOVE' operator. To get " + "placements, run GetPlacements.cs."; } } @@ -62,7 +62,7 @@ public override string Description { /// The AdWords user. /// Id of the ad group that contains the placement. /// - /// Id of the placement to be deleted. + /// Id of the placement to be removed. public void Run(AdWordsUser user, long adGroupId, long placementId) { // Get the AdGroupCriterionService. AdGroupCriterionService adGroupCriterionService = (AdGroupCriterionService)user.GetService( @@ -83,20 +83,20 @@ public void Run(AdWordsUser user, long adGroupId, long placementId) { operation.@operator = Operator.REMOVE; try { - // Delete the placement. + // Remove the placement. AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate( new AdGroupCriterionOperation[] {operation}); // Display the results. if (retVal != null && retVal.value != null && retVal.value.Length > 0) { - AdGroupCriterion deletedPlacement = retVal.value[0]; - Console.WriteLine("Placement with ad group id = \"{0}\" and id = \"{1}\" was deleted.", - deletedPlacement.adGroupId, deletedPlacement.criterion.id); + AdGroupCriterion removedPlacement = retVal.value[0]; + Console.WriteLine("Placement with ad group id = \"{0}\" and id = \"{1}\" was removed.", + removedPlacement.adGroupId, removedPlacement.criterion.id); } else { - Console.WriteLine("No placement was deleted."); + Console.WriteLine("No placement was removed."); } } catch (Exception ex) { - throw new System.ApplicationException("Failed to delete placement.", ex); + throw new System.ApplicationException("Failed to remove placement.", ex); } } } diff --git a/examples/AdXBuyer/Vb/AdWords.Examples.VB.vbproj b/examples/AdXBuyer/Vb/AdWords.Examples.VB.vbproj index c5d11bb9d23..e4fb7a3075e 100644 --- a/examples/AdXBuyer/Vb/AdWords.Examples.VB.vbproj +++ b/examples/AdXBuyer/Vb/AdWords.Examples.VB.vbproj @@ -75,48 +75,7 @@ --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/examples/AdXBuyer/Vb/Properties/AssemblyInfo.vb b/examples/AdXBuyer/Vb/Properties/AssemblyInfo.vb new file mode 100644 index 00000000000..aea91f5571a --- /dev/null +++ b/examples/AdXBuyer/Vb/Properties/AssemblyInfo.vb @@ -0,0 +1,44 @@ +' Copyright 2011, Google Inc. All Rights Reserved. +' +' Licensed under the Apache License, Version 2.0 (the "License"); +' you may not use this file except in compliance with the License. +' You may obtain a copy of the License at +' +' http://www.apache.org/licenses/LICENSE-2.0 +' +' Unless required by applicable law or agreed to in writing, software +' distributed under the License is distributed on an "AS IS" BASIS, +' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +' See the License for the specific language governing permissions and +' limitations under the License. + +' Author: api.anash@gmail.com (Anash P. Oommen) + +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' General Information about an assembly is controlled through the following +' set of attributes. Change these attribute values to modify the information +' associated with an assembly. + + + + + + +' Setting ComVisible to false makes the types in this assembly not visible +' to COM components. If you need to access a type in this assembly from +' COM, set the ComVisible attribute to true on that type. + + +' The following GUID is for the ID of the typelib if this project is exposed to COM + + + + + + + + \ No newline at end of file diff --git a/examples/AdXBuyer/Vb/v201309/AccountManagement/GetAccountChanges.vb b/examples/AdXBuyer/Vb/v201309/AccountManagement/GetAccountChanges.vb deleted file mode 100644 index f8dc457353b..00000000000 --- a/examples/AdXBuyer/Vb/v201309/AccountManagement/GetAccountChanges.vb +++ /dev/null @@ -1,183 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Text - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets the changes in the account during the last 24 - ''' hours. - ''' - ''' Tags: CustomerSyncService.get - ''' - Public Class GetAccountChanges - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAccountChanges - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets the changes in the account during the last 24 hours." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the CustomerSyncService. - Dim customerSyncService As CustomerSyncService = user.GetService( _ - AdWordsService.v201309.CustomerSyncService) - - ' The date time string should be of the form yyyyMMdd HHmmss zzz. - Dim minDateTime As String = (DateTime.Now.AddDays(-1).ToUniversalTime.ToString( _ - "yyyyMMdd HHmmss") & " UTC") - Dim maxDateTime As String = (DateTime.Now.ToUniversalTime.ToString("yyyyMMdd HHmmss") & _ - " UTC") - - ' Create date time range. - Dim dateTimeRange As New DateTimeRange - dateTimeRange.min = minDateTime - dateTimeRange.max = maxDateTime - - Try - ' Create the selector. - Dim selector As New CustomerSyncSelector - selector.dateTimeRange = dateTimeRange - selector.campaignIds = GetAllCampaignIds(user) - - ' Get all account changes for campaign. - Dim accountChanges As CustomerChangeData = customerSyncService.get(selector) - - ' Display the changes. - If ((Not accountChanges Is Nothing) AndAlso _ - (Not accountChanges.changedCampaigns Is Nothing)) Then - Console.WriteLine("Displaying changes up to: {0}", accountChanges.lastChangeTimestamp) - - For Each campaignChanges As CampaignChangeData In accountChanges.changedCampaigns - Console.WriteLine("Campaign with id ""{0}"" was changed:", campaignChanges.campaignId) - Console.WriteLine(" Campaign changed status: {0}", _ - campaignChanges.campaignChangeStatus) - If (campaignChanges.campaignChangeStatus <> ChangeStatus.NEW) Then - Console.WriteLine(" Added ad extensions: {0}", _ - GetFormattedList(campaignChanges.addedAdExtensions)) - Console.WriteLine(" Added campaign criteria: {0}", _ - GetFormattedList(campaignChanges.addedCampaignCriteria)) - If (campaignChanges.campaignTargetingChanged) Then - Console.WriteLine(" Added campaign targeting: yes") - Else - Console.WriteLine(" Added campaign targeting: no") - End If - - Console.WriteLine(" Deleted ad extensions: {0}", _ - GetFormattedList(campaignChanges.deletedAdExtensions)) - Console.WriteLine(" Deleted campaign criteria: {0}", _ - GetFormattedList(campaignChanges.deletedCampaignCriteria)) - - If (Not campaignChanges.changedAdGroups Is Nothing) Then - For Each adGroupChanges As AdGroupChangeData In campaignChanges.changedAdGroups - Console.WriteLine(" Ad group with id ""{0}"" was changed:", _ - adGroupChanges.adGroupId) - Console.WriteLine(" Ad group changed status: {0}", _ - adGroupChanges.adGroupChangeStatus) - If (adGroupChanges.adGroupChangeStatus <> ChangeStatus.NEW) Then - Console.WriteLine(" Ads changed: {0}", _ - GetFormattedList(adGroupChanges.changedAds)) - Console.WriteLine(" Criteria changed: {0}", _ - GetFormattedList(adGroupChanges.changedCriteria)) - Console.WriteLine(" Criteria deleted: {0}", _ - GetFormattedList(adGroupChanges.deletedCriteria)) - End If - Next - End If - End If - Console.WriteLine() - Next - Else - Console.WriteLine("No account changes were found.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to get account changes.", ex) - End Try - End Sub - - ''' - ''' Formats a list of ids as a comma separated string. - ''' - ''' The list of ids. - ''' The comma separed formatted string, enclosed in square braces. - ''' - Private Function GetFormattedList(ByVal ids As Long()) As String - Dim builder As New StringBuilder - If (Not ids Is Nothing) Then - For Each id As Long In ids - builder.AppendFormat("{0}, ", id) - Next - End If - Return ("[" & builder.ToString.TrimEnd(New Char() {","c, " "c}) & "]") - End Function - - ''' - ''' Gets all campaign ids in the account. - ''' - ''' The user for which campaigns are retrieved. - ''' The list of campaign ids. - Private Function GetAllCampaignIds(ByVal user As AdWordsUser) As Long() - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - Dim allCampaigns As New List(Of Long) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id"} - - ' Get all campaigns. - Dim page As CampaignPage = campaignService.get(selector) - - ' Return the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - For Each campaign As Campaign In page.entries - allCampaigns.Add(campaign.id) - Next - End If - Return allCampaigns.ToArray - End Function - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb b/examples/AdXBuyer/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb deleted file mode 100644 index ceaeb70039d..00000000000 --- a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/AddAdGroupBidModifier.vb +++ /dev/null @@ -1,111 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: thagikura@gmail.com (Takeshi Hagikura) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to add ad group level mobile bid - ''' modifier override. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class AddAdGroupBidModifier - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAdGroupBidModifier - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim bidModifier As Double = Double.Parse("INSERT_ADGROUP_BID_MODIFIER_HERE") - codeExample.Run(New AdWordsUser, adGroupId, bidModifier) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to add ad group level mobile bid" & _ - " modifier override." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the adgroup for which bid modifier is - ''' set. - ''' The mobile bid modifier for adgroup - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal bidModifier As Double) - ' Get the AdGroupBidModifierService. - Dim adGroupBidModifierService As AdGroupBidModifierService = user.GetService( _ - AdWordsService.v201309.AdGroupBidModifierService) - - ' Mobile criterion ID. - Dim criterionId As Long = 30001 - - ' Create the adgroup bid modifier. - Dim adGroupBidModifier As New AdGroupBidModifier() - adGroupBidModifier.bidModifier = bidModifier - adGroupBidModifier.adGroupId = adGroupId - - Dim platform As New Platform() - platform.id = criterionId - - adGroupBidModifier.criterion = platform - - Dim operation As New AdGroupBidModifierOperation() - operation.operator = [Operator].ADD - operation.operand = adGroupBidModifier - - Try - ' Add ad group level mobile bid modifier. - Dim retval As AdGroupBidModifierReturnValue = adGroupBidModifierService.mutate( _ - New AdGroupBidModifierOperation() {operation}) - - ' Display the results. - If Not retval Is Nothing AndAlso Not retval.value Is Nothing AndAlso _ - retval.value.Length > 0 Then - Dim newBidModifier As AdGroupBidModifier = retval.value(0) - Console.WriteLine("AdGroup ID {1}, Criterion ID {2} was updated with ad group " & _ - "level modifier: {3}", newBidModifier.adGroupId, newBidModifier.criterion.id, _ - newBidModifier.bidModifier) - Else - Console.WriteLine("No bid modifiers were added to the adgroup.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add bid modifiers to adgroup.", ex) - End Try - End Sub - End Class - -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb b/examples/AdXBuyer/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb deleted file mode 100644 index 08ced7dcca1..00000000000 --- a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/GetAdGroupBidModifiers.vb +++ /dev/null @@ -1,125 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to retrieve ad group level mobile bid - ''' modifiers for a campaign. - ''' - ''' AdGroupBidModifierService.get - ''' - Public Class GetAdGroupBidModifiers - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAdGroupBidModifiers - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to retrieve ad group level mobile bid" & _ - " modifiers for a campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which adgroup bid - ''' modifiers are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupBidModifierService. - Dim adGroupBidModifierService As AdGroupBidModifierService = user.GetService( _ - AdWordsService.v201309.AdGroupBidModifierService) - - Const PAGE_SIZE As Integer = 500 - - ' Get all ad group bid modifiers for the campaign. - Dim selector As New Selector() - selector.fields = New String() {"CampaignId", "AdGroupId", "BidModifier", _ - "BidModifierSource", "CriteriaType", "Id"} - - Dim predicate As New Predicate() - predicate.field = "CampaignId" - predicate.[operator] = PredicateOperator.EQUALS - predicate.values = New String() {campaignId.ToString()} - selector.predicates = New Predicate() {predicate} - - ' Set the selector paging. - selector.paging = New Paging() - - Dim offset As Integer = 0 - Dim pageSize As Integer = PAGE_SIZE - - Dim page As New AdGroupBidModifierPage() - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the campaigns. - page = adGroupBidModifierService.get(selector) - - ' Display the results. - If (Not page Is Nothing) AndAlso (Not page.entries Is Nothing) Then - Dim i As Integer = offset - For Each adGroupBidModifier As AdGroupBidModifier In page.entries - Dim bidModifier As String = "" - If adGroupBidModifier.bidModifierSpecified Then - bidModifier = adGroupBidModifier.bidModifier.ToString() - Else - bidModifier = "UNSET" - End If - Console.WriteLine("{0}) Campaign ID {1}, AdGroup ID {2}, Criterion ID {3} has " & _ - "ad group level modifier: {4}, source = {5}.", _ - i + 1, adGroupBidModifier.campaignId, _ - adGroupBidModifier.adGroupId, adGroupBidModifier.criterion.id, _ - bidModifier, adGroupBidModifier.bidModifierSource) - i = i + 1 - Next - End If - offset += pageSize - Loop While offset < page.totalNumEntries - Console.WriteLine("Number of adgroup bid modifiers found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve adgroup bid modifiers.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb b/examples/AdXBuyer/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb deleted file mode 100644 index 7e8a174806b..00000000000 --- a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/UploadOfflineConversions.vb +++ /dev/null @@ -1,245 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds a Shared Bidding Strategy and uses it to construct - ''' a campaign. - ''' - ''' Tags: BiddingStrategyService.mutate - ''' Tags: BudgetService.mutate, CampaignService.mutate - ''' - Public Class UploadOfflineConversions - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim conversionName As String = "INSERT_CONVERSION_NAME_HERE" - ' GCLID needs to be newer than 30 days. - Dim gClId As String = "INSERT_GOOGLE_CLICK_ID_HERE" - ' The conversion time should be higher than the click time. - Dim conversionTime As String = "INSERT_CONVERSION_TIME_HERE" - Dim conversionValue As Double = Double.Parse("INSERT_CONVERSION_VALUE_HERE") - - Dim codeExample As New UploadOfflineConversions - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser, conversionName, gClId, conversionTime, conversionValue) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a Shared Bidding Strategy and uses it to construct " & _ - "a campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The name of the upload conversion to be - ''' created. - ''' The Google Click ID of the click for which offline - ''' conversions are uploaded. - ''' The conversion value to be uploaded. - ''' - ''' The conversion time, in yyyymmdd hhmmss - ''' format. - Public Sub Run(ByVal user As AdWordsUser, ByVal conversionName As String, _ - ByVal gClid As String, ByVal conversionTime As String, ByVal conversionValue As Double) - ' Get the ConversionTrackerService. - Dim conversionTrackerService As ConversionTrackerService = user.GetService( _ - AdWordsService.v201309.ConversionTrackerService) - - ' Get the OfflineConversionFeedService. - Dim offlineConversionFeedService As OfflineConversionFeedService = user.GetService( _ - AdWordsService.v201309.OfflineConversionFeedService) - - Const VIEWTHROUGH_LOOKBACK_WINDOW As Integer = 30 - Const CTC_LOOKBACK_WINDOW As Integer = 90 - - Try - ' Create an upload conversion. Once created, this entry will be visible - ' under Tools and Analysis->Conversion and will have "Source = Import". - Dim uploadConversion As New UploadConversion() - uploadConversion.category = ConversionTrackerCategory.PAGE_VIEW - uploadConversion.name = conversionName - uploadConversion.viewthroughLookbackWindow = VIEWTHROUGH_LOOKBACK_WINDOW - uploadConversion.ctcLookbackWindow = CTC_LOOKBACK_WINDOW - - Dim uploadConversionOperation As New ConversionTrackerOperation() - uploadConversionOperation.operator = [Operator].ADD - uploadConversionOperation.operand = uploadConversion - - Dim conversionTrackerRetval As ConversionTrackerReturnValue = _ - conversionTrackerService.mutate(New ConversionTrackerOperation() { _ - uploadConversionOperation}) - - Dim newUploadConversion As UploadConversion = conversionTrackerRetval.value(0) - - Console.WriteLine("New upload conversion type with name = '{0}' and id = {1} was " & _ - "created.", newUploadConversion.name, newUploadConversion.id) - - ' Associate offline conversions with the upload conversion we created. - Dim feed As New OfflineConversionFeed() - feed.conversionName = conversionName - feed.conversionTime = conversionTime - feed.conversionValue = conversionValue - feed.googleClickId = gClid - - Dim offlineConversionOperation As New OfflineConversionFeedOperation() - offlineConversionOperation.operator = [Operator].ADD - offlineConversionOperation.operand = feed - - Dim offlineConversionRetval As OfflineConversionFeedReturnValue = _ - offlineConversionFeedService.mutate( _ - New OfflineConversionFeedOperation() {offlineConversionOperation}) - - Dim newFeed As OfflineConversionFeed = offlineConversionRetval.value(0) - - Console.WriteLine("Uploaded offline conversion value of {0} for Google Click ID = " & _ - "'{1}' to '{2}'.", newFeed.conversionValue, newFeed.googleClickId, _ - newFeed.conversionName) - Catch ex As Exception - Throw New System.ApplicationException("Failed to upload offline conversions.", ex) - End Try - End Sub - - - ''' - ''' Creates the shared bidding strategy. - ''' - ''' The bidding strategy service. - ''' The bidding strategy name. - ''' The bid ceiling. - ''' The spend target. - ''' The bidding strategy object. - Private Function CreateBiddingStrategy(ByVal biddingStrategyService As BiddingStrategyService, _ - ByVal name As String, ByVal bidCeiling As Long, ByVal spendTarget As Long) _ - As SharedBiddingStrategy - ' Create a shared bidding strategy. - Dim sharedBiddingStrategy As New SharedBiddingStrategy() - sharedBiddingStrategy.name = name - - Dim biddingScheme As New TargetSpendBiddingScheme() - ' Optionally set additional bidding scheme parameters. - biddingScheme.bidCeiling = New Money() - biddingScheme.bidCeiling.microAmount = bidCeiling - - biddingScheme.spendTarget = New Money() - biddingScheme.spendTarget.microAmount = spendTarget - - sharedBiddingStrategy.biddingScheme = biddingScheme - - ' Create operation. - Dim operation As New BiddingStrategyOperation() - operation.operator = [Operator].ADD - operation.operand = sharedBiddingStrategy - - Return biddingStrategyService.mutate(New BiddingStrategyOperation() {operation}).value(0) - End Function - - ''' - ''' Creates an explicit budget to be used only to create the Campaign. - ''' - ''' The budget service. - ''' The budget name. - ''' The budget amount. - ''' The budget object. - Private Function CreateSharedBudget(ByVal budgetService As BudgetService, _ - ByVal name As String, ByVal amount As Long) As Budget - ' Create a shared budget - Dim budget As New Budget() - budget.name = name - budget.period = BudgetBudgetPeriod.DAILY - budget.amount = New Money() - budget.amount.microAmount = amount - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD - budget.isExplicitlyShared = True - - ' Create operation. - Dim operation As New BudgetOperation() - operation.operand = budget - operation.operator = [Operator].ADD - - ' Make the mutate request. - Return budgetService.mutate(New BudgetOperation() {operation}).value(0) - End Function - - ''' - ''' Creates the campaign with a shared bidding strategy. - ''' - ''' The campaign service. - ''' The campaign name. - ''' The bidding strategy id. - ''' The shared budget id. - ''' The campaign object. - Private Function CreateCampaignWithBiddingStrategy(ByVal campaignService As CampaignService, _ - ByVal name As String, ByVal biddingStrategyId As Long, ByVal sharedBudgetId As Long) _ - As Campaign - ' Create campaign. - Dim campaign As New Campaign() - campaign.name = name - - ' Set the budget. - campaign.budget = New Budget() - campaign.budget.budgetId = sharedBudgetId - - ' Set bidding strategy (required). - Dim biddingStrategyConfiguration As New BiddingStrategyConfiguration() - biddingStrategyConfiguration.biddingStrategyId = biddingStrategyId - - campaign.biddingStrategyConfiguration = biddingStrategyConfiguration - - ' Set keyword matching setting (required). - Dim keywordMatchSetting As New KeywordMatchSetting() - keywordMatchSetting.optIn = True - campaign.settings = New Setting() {keywordMatchSetting} - - ' Set network targeting (recommended). - Dim networkSetting As New NetworkSetting() - networkSetting.targetGoogleSearch = True - networkSetting.targetSearchNetwork = True - networkSetting.targetContentNetwork = True - campaign.networkSetting = networkSetting - - ' Create operation. - Dim operation As New CampaignOperation() - operation.operand = campaign - operation.operator = [Operator].ADD - - Return campaignService.mutate(New CampaignOperation() {operation}).value(0) - End Function - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb b/examples/AdXBuyer/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb deleted file mode 100644 index 49508a7c618..00000000000 --- a/examples/AdXBuyer/Vb/v201309/AdvancedOperations/UseSharedBiddingStrategy.vb +++ /dev/null @@ -1,212 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License") -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http:'www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds a Shared Bidding Strategy and uses it to construct - ''' a campaign. - ''' - ''' Tags: BiddingStrategyService.mutate - ''' Tags: BudgetService.mutate, CampaignService.mutate - ''' - Public Class UseSharedBiddingStrategy - Inherits ExampleBase - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UseSharedBiddingStrategy - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a Shared Bidding Strategy and uses it to construct " & _ - "a campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the services. - Dim biddingStrategyService As BiddingStrategyService = user.GetService( _ - AdWordsService.v201309.BiddingStrategyService) - - Dim budgetService As BudgetService = user.GetService(AdWordsService.v201309.BudgetService) - - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - Dim biddingStrategyName As String = "Maximize Clicks " & ExampleUtilities.GetRandomString() - Dim bidCeiling As Long = 2000000 - Dim spendTarget As Long = 20000000 - - Dim budgetName As String = "Shared Interplanetary Budget #" & _ - ExampleUtilities.GetRandomString() - Dim budgetAmount As Long = 30000000 - - Dim campaignName As String = "Interplanetary Cruise #" + ExampleUtilities.GetRandomString() - - Try - Dim sharedBiddingStrategy As SharedBiddingStrategy = CreateBiddingStrategy( _ - biddingStrategyService, biddingStrategyName, bidCeiling, spendTarget) - Console.WriteLine("Shared bidding strategy with name '{0}' and ID {1} of type {2} " & _ - "was created.", sharedBiddingStrategy.name, sharedBiddingStrategy.id, _ - sharedBiddingStrategy.biddingScheme.BiddingSchemeType) - - Dim sharedBudget As Budget = CreateSharedBudget(budgetService, budgetName, budgetAmount) - - Dim newCampaign As Campaign = CreateCampaignWithBiddingStrategy(campaignService, _ - campaignName, sharedBiddingStrategy.id, sharedBudget.budgetId) - - Console.WriteLine("Campaign with name '{0}', ID {1} and bidding scheme ID {2} was " & _ - "created.", newCampaign.name, newCampaign.id, _ - newCampaign.biddingStrategyConfiguration.biddingStrategyId) - - Catch ex As Exception - Throw New System.ApplicationException("Failed to create campaign that uses shared " & _ - "bidding strategy.", ex) - End Try - End Sub - - - ''' - ''' Creates the shared bidding strategy. - ''' - ''' The bidding strategy service. - ''' The bidding strategy name. - ''' The bid ceiling. - ''' The spend target. - ''' The bidding strategy object. - Private Function CreateBiddingStrategy(ByVal biddingStrategyService As BiddingStrategyService, _ - ByVal name As String, ByVal bidCeiling As Long, ByVal spendTarget As Long) _ - As SharedBiddingStrategy - ' Create a shared bidding strategy. - Dim sharedBiddingStrategy As New SharedBiddingStrategy() - sharedBiddingStrategy.name = name - - Dim biddingScheme As New TargetSpendBiddingScheme() - ' Optionally set additional bidding scheme parameters. - biddingScheme.bidCeiling = New Money() - biddingScheme.bidCeiling.microAmount = bidCeiling - - biddingScheme.spendTarget = New Money() - biddingScheme.spendTarget.microAmount = spendTarget - - sharedBiddingStrategy.biddingScheme = biddingScheme - - ' Create operation. - Dim operation As New BiddingStrategyOperation() - operation.operator = [Operator].ADD - operation.operand = sharedBiddingStrategy - - Return biddingStrategyService.mutate(New BiddingStrategyOperation() {operation}).value(0) - End Function - - ''' - ''' Creates an explicit budget to be used only to create the Campaign. - ''' - ''' The budget service. - ''' The budget name. - ''' The budget amount. - ''' The budget object. - Private Function CreateSharedBudget(ByVal budgetService As BudgetService, _ - ByVal name As String, ByVal amount As Long) As Budget - ' Create a shared budget - Dim budget As New Budget() - budget.name = name - budget.period = BudgetBudgetPeriod.DAILY - budget.amount = New Money() - budget.amount.microAmount = amount - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD - budget.isExplicitlyShared = True - - ' Create operation. - Dim operation As New BudgetOperation() - operation.operand = budget - operation.operator = [Operator].ADD - - ' Make the mutate request. - Return budgetService.mutate(New BudgetOperation() {operation}).value(0) - End Function - - ''' - ''' Creates the campaign with a shared bidding strategy. - ''' - ''' The campaign service. - ''' The campaign name. - ''' The bidding strategy id. - ''' The shared budget id. - ''' The campaign object. - Private Function CreateCampaignWithBiddingStrategy(ByVal campaignService As CampaignService, _ - ByVal name As String, ByVal biddingStrategyId As Long, ByVal sharedBudgetId As Long) _ - As Campaign - ' Create campaign. - Dim campaign As New Campaign() - campaign.name = name - - ' Set the budget. - campaign.budget = New Budget() - campaign.budget.budgetId = sharedBudgetId - - ' Set bidding strategy (required). - Dim biddingStrategyConfiguration As New BiddingStrategyConfiguration() - biddingStrategyConfiguration.biddingStrategyId = biddingStrategyId - - campaign.biddingStrategyConfiguration = biddingStrategyConfiguration - - ' Set keyword matching setting (required). - Dim keywordMatchSetting As New KeywordMatchSetting() - keywordMatchSetting.optIn = True - campaign.settings = New Setting() {keywordMatchSetting} - - ' Set network targeting (recommended). - Dim networkSetting As New NetworkSetting() - networkSetting.targetGoogleSearch = True - networkSetting.targetSearchNetwork = True - networkSetting.targetContentNetwork = True - campaign.networkSetting = networkSetting - - ' Create operation. - Dim operation As New CampaignOperation() - operation.operand = campaign - operation.operator = [Operator].ADD - - Return campaignService.mutate(New CampaignOperation() {operation}).value(0) - End Function - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb deleted file mode 100644 index 0fa257e2f74..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroupDemographicCriteria.vb +++ /dev/null @@ -1,124 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds demographic target criteria to an ad group. To get - ''' ad groups, run AddAdGroup.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class AddAdGroupDemographicCriteria - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAdGroupDemographicCriteria - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds demographic target criteria to an ad group. To get ad " & _ - "groups, run AddAdGroup.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which criteria are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = _ - user.GetService(AdWordsService.v201309.AdGroupCriterionService) - - ' Create biddable ad group criterion for gender - Dim genderTarget As New Gender() - ' Criterion Id for male. The IDs can be found here - ' https://developers.google.com/adwords/api/docs/appendix/genders - genderTarget.id = 10 - - Dim genderBiddableAdGroupCriterion As New BiddableAdGroupCriterion() - genderBiddableAdGroupCriterion.adGroupId = adGroupId - genderBiddableAdGroupCriterion.criterion = genderTarget - - ' Create negative ad group criterion for age range - Dim ageRangeNegative As New AgeRange() - ' Criterion Id for age 18 to 24. The IDs can be found here - ' https://developers.google.com/adwords/api/docs/appendix/ages - - ageRangeNegative.id = 503001 - Dim ageRangeNegativeAdGroupCriterion As New NegativeAdGroupCriterion() - ageRangeNegativeAdGroupCriterion.adGroupId = adGroupId - ageRangeNegativeAdGroupCriterion.criterion = ageRangeNegative - - ' Create operations. - Dim genderBiddableAdGroupCriterionOperation As New AdGroupCriterionOperation() - genderBiddableAdGroupCriterionOperation.operand = genderBiddableAdGroupCriterion - genderBiddableAdGroupCriterionOperation.operator = [Operator].ADD - - Dim ageRangeNegativeAdGroupCriterionOperation As New AdGroupCriterionOperation() - ageRangeNegativeAdGroupCriterionOperation.operand = ageRangeNegativeAdGroupCriterion - ageRangeNegativeAdGroupCriterionOperation.operator = [Operator].ADD - - Dim operations As New List(Of Operation) - operations.Add(genderBiddableAdGroupCriterionOperation) - operations.Add(ageRangeNegativeAdGroupCriterionOperation) - - Try - ' Add ad group criteria. - Dim result As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - operations.ToArray) - - ' Display ad group criteria. - If (Not result Is Nothing) AndAlso Not (result.value Is Nothing) Then - For Each adGroupCriterionResult As AdGroupCriterion In result.value - Console.WriteLine("Ad group criterion with ad group id '{0}', criterion id " & _ - "'{1}', and type '{2}' was added.", adGroupCriterionResult.adGroupId, _ - adGroupCriterionResult.criterion.id, _ - adGroupCriterionResult.criterion.CriterionType) - Next - Else - Console.WriteLine("No ad group criteria were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create ad group criteria.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroups.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroups.vb deleted file mode 100644 index dedad97283a..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddAdGroups.vb +++ /dev/null @@ -1,138 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to create ad groups. To create - ''' campaigns, run AddCampaigns.vb. - ''' - ''' Tags: AdGroupService.mutate - ''' - Public Class AddAdGroups - Inherits ExampleBase - ''' - ''' Number of items being added / updated in this code example. - ''' - Const NUM_ITEMS As Integer = 5 - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAdGroups - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to create ad groups. To create campaigns," & _ - " run AddCampaigns.vb" - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to which ad groups are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService( _ - AdWordsService.v201309.AdGroupService) - - Dim operations As New List(Of AdGroupOperation) - - For i As Integer = 1 To NUM_ITEMS - ' Create the ad group. - Dim adGroup As New AdGroup - adGroup.name = String.Format("Earth to Mars Cruises #{0}", ExampleUtilities.GetRandomString) - adGroup.status = AdGroupStatus.ENABLED - adGroup.campaignId = campaignId - - ' Set the ad group bids. - Dim biddingConfig As New BiddingStrategyConfiguration() - - Dim cpmBid As New CpmBid() - cpmBid.bid = New Money() - cpmBid.bid.microAmount = 10000000 - - biddingConfig.bids = New Bids() {cpmBid} - - adGroup.biddingStrategyConfiguration = biddingConfig - - ' Optional: Set targeting restrictions. - ' These setting only affect serving for the Display Network. - Dim targetingSetting As New TargetingSetting() - - Dim placementDetail As New TargetingSettingDetail() - placementDetail.criterionTypeGroup = CriterionTypeGroup.PLACEMENT - placementDetail.targetAll = True - - Dim verticalDetail As New TargetingSettingDetail() - verticalDetail.criterionTypeGroup = CriterionTypeGroup.VERTICAL - verticalDetail.targetAll = False - - targetingSetting.details = New TargetingSettingDetail() {placementDetail, verticalDetail} - - adGroup.settings = New Setting() {targetingSetting} - - ' Create the operation. - Dim operation1 As New AdGroupOperation - operation1.operator = [Operator].ADD - operation1.operand = adGroup - - operations.Add(operation1) - Next - - Try - ' Create the ad group. - Dim retVal As AdGroupReturnValue = adGroupService.mutate(operations.ToArray) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - For Each newAdGroup As AdGroup In retVal.value - Console.WriteLine("Ad group with id = '{0}' and name = '{1}' was created.", _ - newAdGroup.id, newAdGroup.name) - Next - Else - Console.WriteLine("No ad groups were created.") - End If - Catch ex As Exception - Console.WriteLine("Failed to create ad groups. Exception says ""{0}""", ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddCampaigns.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/AddCampaigns.vb deleted file mode 100644 index 6cbc674b617..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddCampaigns.vb +++ /dev/null @@ -1,169 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds campaigns. To get campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignService.mutate - ''' - Public Class AddCampaigns - Inherits ExampleBase - ''' - ''' Number of items being added / updated in this code example. - ''' - Const NUM_ITEMS As Integer = 5 - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddCampaigns - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds campaigns. To get campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the BudgetService. - Dim budgetService As BudgetService = user.GetService( _ - AdWordsService.v201309.BudgetService) - - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create the campaign budget. - Dim budget As New Budget - budget.name = "Interplanetary Cruise Budget #" & ExampleUtilities.GetRandomString - budget.period = BudgetBudgetPeriod.DAILY - budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD - budget.amount = New Money - budget.amount.microAmount = 50000000 - - Dim budgetOperation As New BudgetOperation - budgetOperation.operator = [Operator].ADD - budgetOperation.operand = budget - - Try - Dim budgetRetval As BudgetReturnValue = budgetService.mutate(New BudgetOperation() _ - {budgetOperation}) - budget = budgetRetval.value(0) - Catch ex As Exception - Throw New System.ApplicationException("Failed to add shared budget.", ex) - End Try - - Dim operations As New List(Of CampaignOperation) - - For i As Integer = 1 To NUM_ITEMS - ' Create the campaign. - Dim campaign As New Campaign - campaign.name = "Interplanetary Cruise #" & ExampleUtilities.GetRandomString - - campaign.status = CampaignStatus.PAUSED - - Dim biddingConfig As New BiddingStrategyConfiguration() - biddingConfig.biddingStrategyType = BiddingStrategyType.MANUAL_CPM - - ' Optional: also provide matching bidding scheme. - biddingConfig.biddingScheme = New ManualCpmBiddingScheme() - - campaign.biddingStrategyConfiguration = biddingConfig - - ' Set the campaign budget. - campaign.budget = New Budget - campaign.budget.budgetId = budget.budgetId - - ' Set targetContentNetwork true. Other network targeting is not available - ' for Ad Exchange Buyers. - campaign.networkSetting = New NetworkSetting - campaign.networkSetting.targetGoogleSearch = False - campaign.networkSetting.targetSearchNetwork = False - campaign.networkSetting.targetContentNetwork = True - campaign.networkSetting.targetPartnerSearchNetwork = False - - ' Set real time bidding settings. - Dim rtbSetting As New RealTimeBiddingSetting - rtbSetting.optIn = True - - campaign.settings = New Setting() {rtbSetting} - - ' Optional: Set the start date. - campaign.startDate = DateTime.Now.AddDays(1).ToString("yyyyMMdd") - - ' Optional: Set the end date. - campaign.endDate = DateTime.Now.AddYears(1).ToString("yyyyMMdd") - - ' Optional: Set the frequency cap. - Dim frequencyCap As New FrequencyCap - frequencyCap.impressions = 5 - frequencyCap.level = Level.ADGROUP - frequencyCap.timeUnit = TimeUnit.DAY - campaign.frequencyCap = frequencyCap - - ' Create the operation. - Dim operation As New CampaignOperation - operation.operator = [Operator].ADD - operation.operand = campaign - - operations.Add(operation) - Next - - Try - ' Add the campaign. - Dim retVal As CampaignReturnValue = campaignService.mutate(operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - For Each newCampaign As Campaign In retVal.value - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was added.", _ - newCampaign.name, newCampaign.id) - Next - Else - Console.WriteLine("No campaigns were added.") - End If - Catch ex As Exception - Console.WriteLine("Failed to add campaigns. Exception says ""{0}""", ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddPlacements.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/AddPlacements.vb deleted file mode 100644 index ccba6ef7dba..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddPlacements.vb +++ /dev/null @@ -1,121 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds placements to an ad group. To get ad groups, run - ''' GetAdGroups.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class AddPlacements - Inherits ExampleBase - ''' - ''' Number of items being added / updated in this code example. - ''' - Const NUM_ITEMS As Integer = 5 - - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddPlacements - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds placements to an ad group. To get ad groups, run " & _ - "GetAdGroups.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which keywords are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - Dim operations As New List(Of AdGroupCriterionOperation) - - For i As Integer = 1 To NUM_ITEMS - - ' Create the placement. - Dim placement As New Placement - placement.url = "http://mars.google.com/" + i.ToString() - - ' Create the biddable ad group criterion. - Dim placementCriterion As AdGroupCriterion = New BiddableAdGroupCriterion - placementCriterion.adGroupId = adGroupId - placementCriterion.criterion = placement - - ' Create the operations. - Dim operation As New AdGroupCriterionOperation - operation.operator = [Operator].ADD - operation.operand = placementCriterion - - operations.Add(operation) - Next - Try - ' Create the placements. - Dim retVal As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - operations.ToArray) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing)) Then - For Each adGroupCriterion As AdGroupCriterion In retVal.value - ' If you are adding multiple type of criteria, then you may need to - ' check for - ' - ' if (adGroupCriterion is Placement) { ... } - ' - ' to identify the criterion type. - Console.WriteLine("Placement with ad group id = '{0}, placement id = '{1} and url " & _ - "= '{2}' was created.", adGroupCriterion.adGroupId, _ - adGroupCriterion.criterion.id, TryCast(adGroupCriterion.criterion, Placement).url) - Next - Else - Console.WriteLine("No placements were added.") - End If - Catch ex As Exception - Console.WriteLine("Failed to create placements. Exception says ""{0}""", ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddThirdPartyRedirectAds.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/AddThirdPartyRedirectAds.vb deleted file mode 100644 index e7fc146c978..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/AddThirdPartyRedirectAds.vb +++ /dev/null @@ -1,151 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 -Imports Google.Api.Ads.Common.Util - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds third party redirect ads to a given ad group. To - ''' list ad groups, run GetAdGroups.vb. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class AddThirdPartyRedirectAds - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddThirdPartyRedirectAds - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds third party redirect ads to a given ad group. To list " & _ - "ad groups, run GetAdGroups.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which ads are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - ' Create standard third party redirect ad. - Dim standardAd As New ThirdPartyRedirectAd - standardAd.name = String.Format("Example third party ad #{0}", ExampleUtilities.GetRandomString) - standardAd.url = "http://www.example.com" - - standardAd.dimensions = New Dimensions - standardAd.dimensions.height = 250 - standardAd.dimensions.width = 300 - - standardAd.snippet = "" - - ' DoubleClick Rich Media Expandable format ID. - standardAd.certifiedVendorFormatId = 232 - standardAd.isCookieTargeted = False - standardAd.isUserInterestTargeted = False - standardAd.isTagged = False - standardAd.richMediaAdType = RichMediaAdRichMediaAdType.STANDARD - - ' Expandable Ad properties. - standardAd.expandingDirections = New ThirdPartyRedirectAdExpandingDirection() { _ - ThirdPartyRedirectAdExpandingDirection.EXPANDING_UP, _ - ThirdPartyRedirectAdExpandingDirection.EXPANDING_DOWN _ - } - - standardAd.adAttributes = New RichMediaAdAdAttribute() { _ - RichMediaAdAdAttribute.ROLL_OVER_TO_EXPAND} - - ' Create in-stream third party redirect ad. - Dim inStreamAd As New ThirdPartyRedirectAd() - inStreamAd.name = String.Format("Example third party ad #{0}", ExampleUtilities.GetRandomString) - inStreamAd.url = "http://www.example.com" - ' Set the duration to 15 secs. - inStreamAd.adDuration = 15000 - inStreamAd.sourceUrl = "http://ad.doubleclick.net/pfadx/N270.126913.6102203221521/B3876671.21;dcadv=2215309;sz=0x0;ord=%5btimestamp%5d;dcmt=text/xml" - inStreamAd.certifiedVendorFormatId = 303 - inStreamAd.richMediaAdType = RichMediaAdRichMediaAdType.IN_STREAM_VIDEO - - Dim operations As New List(Of AdGroupAdOperation) - Dim ads As ThirdPartyRedirectAd() = New ThirdPartyRedirectAd() {standardAd, inStreamAd} - For Each redirectAd As ThirdPartyRedirectAd In ads - Dim thirdPartyRedirectAdGroupAd As New AdGroupAd - thirdPartyRedirectAdGroupAd.adGroupId = adGroupId - thirdPartyRedirectAdGroupAd.ad = redirectAd - - ' Optional: Set the status. - thirdPartyRedirectAdGroupAd.status = AdGroupAdStatus.PAUSED - - ' Create the operations. - Dim operation As New AdGroupAdOperation - operation.operator = [Operator].ADD - operation.operand = thirdPartyRedirectAdGroupAd - - operations.Add(operation) - Next - - Try - ' Create the ads. - Dim retVal As AdGroupAdReturnValue = service.mutate(operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing)) Then - ' If you are adding multiple type of Ads, then you may need to check - ' for - ' - ' if (adGroupAd.ad is ThirdPartyRedirectAd) { ... } - ' - ' to identify the ad type. - For Each adGroupAd As AdGroupAd In retVal.value - Console.WriteLine("New third party redirect ad with id = ""{0}"" and url = ""{1}"" " & _ - "was created.", adGroupAd.ad.id, DirectCast(adGroupAd.ad, ThirdPartyRedirectAd).url) - Next - Else - Console.WriteLine("No third party redirect ads were created.") - End If - Catch ex As Exception - Console.WriteLine("Failed to create third party redirect ad. Exception says ""{0}""", _ - ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAd.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAd.vb deleted file mode 100644 index 668b26ddf0d..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAd.vb +++ /dev/null @@ -1,105 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes an ad using the 'REMOVE' operator. To list ads, - ''' run GetTextAds.vb. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class DeleteAd - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeleteAd - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim adId As Long = Long.Parse("INSERT_AD_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, adId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes an ad using the 'REMOVE' operator. To list ads, " & _ - "run GetTextAds.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the ad. - ''' Id of the ad being deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal adId As Long) - ' Get the AdGroupAdService. - Dim adGroupAdService As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - ' Since we do not need to update any ad-specific fields, it is enough to - ' create the base type. - Dim ad As New Ad - ad.id = adId - - ' Create the ad group ad. - Dim adGroupAd As New AdGroupAd - adGroupAd.adGroupId = adGroupId - - adGroupAd.ad = ad - - ' Create the operation. - Dim operation As New AdGroupAdOperation - operation.operand = adGroupAd - operation.operator = [Operator].REMOVE - - Try - ' Delete the ad. - Dim retVal As AdGroupAdReturnValue = adGroupAdService.mutate( _ - New AdGroupAdOperation() {operation}) - - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedAdGroupAd As AdGroupAd = retVal.value(0) - Console.WriteLine("Ad with id = ""{0}"" and type = ""{1}"" was deleted.", _ - deletedAdGroupAd.ad.id, deletedAdGroupAd.ad.AdType) - Else - Console.WriteLine("No ads were deleted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to delete ad.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAdGroup.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAdGroup.vb deleted file mode 100644 index 324759f0dca..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteAdGroup.vb +++ /dev/null @@ -1,101 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes an ad group by setting the status to 'DELETED'. - ''' To get ad groups, run GetAdGroups.vb. - ''' - ''' Tags: AdGroupService.mutate - ''' - Public Class DeleteAdGroup - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeleteAdGroup - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes an ad group by setting the status to 'DELETED'. " & _ - "To get ad groups, run GetAdGroups.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to be deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService(AdWordsService.v201309.AdGroupService) - - ' Create ad group with DELETED status. - Dim adGroup As New AdGroup - adGroup.id = adGroupId - - ' When deleting an ad group, rename it to avoid name collisions with new - ' ad groups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString - adGroup.status = AdGroupStatus.DELETED - - ' Create the operation. - Dim operation As New AdGroupOperation - operation.operand = adGroup - operation.operator = [Operator].SET - - Try - ' Delete the ad group. - Dim retVal As AdGroupReturnValue = adGroupService.mutate( _ - New AdGroupOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedAdGroup As AdGroup = retVal.value(0) - Console.WriteLine("Ad group with id = ""{0}"" was renamed to ""{1}"" and deleted.", _ - deletedAdGroup.id, deletedAdGroup.name) - Else - Console.WriteLine("No ad groups were deleted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to delete ad groups.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteCampaign.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteCampaign.vb deleted file mode 100644 index 49a7a798159..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeleteCampaign.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes a campaign by setting the status to 'DELETED'. - ''' To get campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignService.mutate - ''' - Public Class DeleteCampaign - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeleteCampaign - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes a campaign by setting the status to 'DELETED'. To " & _ - "get campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to be deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create campaign with DELETED status. - Dim campaign As New Campaign - campaign.id = campaignId - - ' When deleting a campaign, rename it to avoid name collisions with new - ' campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString - campaign.status = CampaignStatus.DELETED - - ' Create the operation. - Dim operation As New CampaignOperation - operation.operand = campaign - operation.operator = [Operator].SET - - Try - ' Delete the campaign. - Dim retVal As CampaignReturnValue = campaignService.mutate( _ - New CampaignOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedCampaign As Campaign = retVal.value(0) - Console.WriteLine("Campaign with id = ""{0}"" was renamed to ""{1}"" and deleted.", _ - deletedCampaign.id, deletedCampaign.name) - Else - Console.WriteLine("No campaigns were deleted.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to delete campaigns.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeletePlacement.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/DeletePlacement.vb deleted file mode 100644 index 6882f5bdb20..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/DeletePlacement.vb +++ /dev/null @@ -1,106 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example deletes a placement using the 'REMOVE' operator. To get - ''' placements, run GetPlacements.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class DeletePlacement - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DeletePlacement - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim placementId As Long = Long.Parse("INSERT_PLACEMENT_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, placementId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example deletes a placement using the 'REMOVE' operator. To get " & _ - "placements, run GetPlacements.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the keyword. - ''' - ''' Id of the placement to be deleted. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal placementId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Create base class criterion to avoid setting placement-specific - ' fields. - Dim criterion As New Criterion - criterion.id = placementId - - ' Create the ad group criterion. - Dim adGroupCriterion As New BiddableAdGroupCriterion - adGroupCriterion.adGroupId = adGroupId - adGroupCriterion.criterion = criterion - - ' Create the operation. - Dim operation As New AdGroupCriterionOperation - operation.operand = adGroupCriterion - operation.operator = [Operator].REMOVE - - Try - ' Delete the placement. - Dim retVal As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - New AdGroupCriterionOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim deletedPlacement As AdGroupCriterion = retVal.value(0) - Console.WriteLine("Placement with ad group id = ""{0}"" and id = ""{1}"" was " & _ - "deleted.", deletedPlacement.adGroupId, deletedPlacement.criterion.id) - Else - Console.WriteLine("No placement was deleted.") - End If - Catch ex As Exception - Console.WriteLine("Failed to delete placement. Exception says ""{0}""", ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetAdGroups.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/GetAdGroups.vb deleted file mode 100644 index 5070a4920b8..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetAdGroups.vb +++ /dev/null @@ -1,114 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to retrieve all the ad groups for a - ''' campaign. To create an ad group, run AddAdGroup.vb. - ''' - ''' Tags: AdGroupService.get - ''' - Public Class GetAdGroups - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAdGroups - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to retrieve all the ad groups for a " & _ - "campaign. To create an ad group, run AddAdGroup.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which ad groups are - ''' retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService( _ - AdWordsService.v201309.AdGroupService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "Name"} - - ' Create the filters. - Dim predicate As New Predicate - predicate.field = "CampaignId" - predicate.operator = PredicateOperator.EQUALS - predicate.values = New String() {campaignId.ToString} - selector.predicates = New Predicate() {predicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the ad groups. - page = adGroupService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each adGroup As AdGroup In page.entries - Console.WriteLine("{0}) Ad group name is ""{1}"" and id is ""{2}"".", i, _ - adGroup.name, adGroup.id) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of ad groups found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve ad group(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaigns.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaigns.vb deleted file mode 100644 index 9aea8a801ab..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaigns.vb +++ /dev/null @@ -1,103 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example lists all campaigns. To add a campaign, run - ''' AddCampaign.vb. - ''' - ''' Tags: CampaignService.get - ''' - Public Class GetCampaigns - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetCampaigns - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example lists all campaigns. To add a campaign, run AddCampaign.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "Name", "Status"} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New CampaignPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the campaigns. - page = campaignService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each campaign As Campaign In page.entries - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = " & _ - "'{3}' was found.", i, campaign.id, campaign.name, campaign.status) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve campaign(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb deleted file mode 100644 index a29a8fa61a4..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetCampaignsWithAwql.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example lists all campaigns using an AWQL query. See - ''' https://developers.google.com/adwords/api/docs/guides/awql for AWQL - ''' documentation. To add a campaign, run AddCampaign.vb. - ''' - ''' Tags: CampaignService.get - ''' - Public Class GetCampaignsWithAwql - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetCampaignsWithAwql - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example lists all campaigns using an AWQL query. See " & _ - "https://developers.google.com/adwords/api/docs/guides/awql for AWQL " & _ - "documentation. To add a campaign, run AddCampaign.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create the query. - Dim query As String = "SELECT Id, Name, Status ORDER BY Name" - - Dim offset As Long = 0 - Dim pageSize As Long = 500 - - Dim page As New CampaignPage() - - Try - Do - Dim queryWithPaging As String = String.Format("{0} LIMIT {1}, {2}", query, offset, _ - pageSize) - - ' Get the campaigns. - page = campaignService.query(queryWithPaging) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each campaign As Campaign In page.entries - Console.WriteLine("{0}) Campaign with id = '{1}', name = '{2}' and status = " & _ - "'{3}' was found.", i, campaign.id, campaign.name, campaign.status) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of campaigns found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve campaign(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetPlacements.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/GetPlacements.vb deleted file mode 100644 index 278551073cc..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetPlacements.vb +++ /dev/null @@ -1,128 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets all placements in an account. To add placements, run - ''' AddPlacements.vb. - ''' - ''' Tags: AdGroupCriterionService.get - ''' - Public Class GetPlacements - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetPlacements - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets all placements in an account. To add placements, run " & _ - "AddPlacements.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Create a selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "AdGroupId", "PlacementUrl"} - - ' Select only placements. - Dim predicate As New Predicate - predicate.field = "CriteriaType" - predicate.operator = PredicateOperator.EQUALS - predicate.values = New String() {"PLACEMENT"} - selector.predicates = New Predicate() {predicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupCriterionPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the placements. - page = adGroupCriterionService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each adGroupCriterion As AdGroupCriterion In page.entries - Dim isNegative As Boolean = TypeOf adGroupCriterion Is NegativeAdGroupCriterion - - ' If you are retrieving multiple type of criteria, then you may - ' need to check for - ' - ' if (adGroupCriterion is Placement) { ... } - ' - ' to identify the criterion type. - Dim placement As Placement = adGroupCriterion.criterion - If isNegative Then - Console.WriteLine("{0}) Negative placement with ad group ID = '{1}', placement " & _ - "ID = '{2}', and url = '{3}' was found.", i, adGroupCriterion.adGroupId, _ - placement.id, placement.url) - Else - Console.WriteLine("{0}) Placement with ad group ID = '{1}', placement ID = " & _ - "'{2}' and url = '{3}' was found.", i, adGroupCriterion.adGroupId, _ - placement.id, placement.url) - End If - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of placements found: {0}", page.totalNumEntries) - Catch ex As Exception - Console.WriteLine("Failed to retrieve placements. Exception says ""{0}""", ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetThirdPartyRedirectAds.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/GetThirdPartyRedirectAds.vb deleted file mode 100644 index 73087e49137..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/GetThirdPartyRedirectAds.vb +++ /dev/null @@ -1,143 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves all third party redirect ads given an existing - ''' ad group. To add ads to an existing ad group, run - ''' AddThirdPartyRedirectAd.vb. - ''' - ''' Tags: AdGroupAdService.get - ''' - Public Class GetThirdPartyRedirectAds - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetThirdPartyRedirectAds - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves all third party redirect ads given an existing ad " & _ - "group. To add third party redirect ads to an existing ad group, run " & _ - "AddThirdPartyRedirectAd.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group from which text ads are - ''' retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - ' Create a selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "Status", "Url", "DisplayUrl", "RichMediaAdSnippet"} - - ' Set the sort order. - Dim orderBy As New OrderBy - orderBy.field = "Id" - orderBy.sortOrder = SortOrder.ASCENDING - selector.ordering = New OrderBy() {orderBy} - - ' Restrict the fetch to only the selected ad group id. - Dim adGroupPredicate As New Predicate - adGroupPredicate.field = "AdGroupId" - adGroupPredicate.operator = PredicateOperator.EQUALS - adGroupPredicate.values = New String() {adGroupId.ToString} - - ' Retrieve only third party redirect ads. - Dim typePredicate As New Predicate - typePredicate.field = "AdType" - typePredicate.operator = PredicateOperator.EQUALS - typePredicate.values = New String() {"THIRD_PARTY_REDIRECT_AD"} - - ' By default disabled ads aren't returned by the selector. To return them - ' include the DISABLED status in the statuses field. - Dim statusPredicate As New Predicate - statusPredicate.field = "Status" - statusPredicate.operator = PredicateOperator.IN - - statusPredicate.values = New String() {AdGroupAdStatus.ENABLED.ToString, _ - AdGroupAdStatus.PAUSED.ToString, AdGroupAdStatus.DISABLED.ToString} - - selector.predicates = New Predicate() {adGroupPredicate, statusPredicate, typePredicate} - - ' Select the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupAdPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the third party redirect ads. - page = service.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each adGroupAd As AdGroupAd In page.entries - Dim thirdPartyRedirectAd As ThirdPartyRedirectAd = adGroupAd.ad - Console.WriteLine("{0}) Ad id is {1} and status is {2}", i, thirdPartyRedirectAd.id, _ - adGroupAd.status) - Console.WriteLine(" Url: {0}\n Display Url: {1}\n Snippet:{2}", _ - thirdPartyRedirectAd.url, thirdPartyRedirectAd.displayUrl, _ - thirdPartyRedirectAd.snippet) - Next - i += 1 - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of third party redirect ads found: {0}", page.totalNumEntries) - Catch ex As Exception - Console.WriteLine("Failed to get third party redirect ads. Exception says ""{0}""", _ - ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/PauseAd.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/PauseAd.vb deleted file mode 100644 index 612ca3f1891..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/PauseAd.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example pauses a given ad. To list all ads, run GetTextAds.cs. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class PauseAd - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New PauseAd - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim adId As Long = Long.Parse("INSERT_AD_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, adId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example pauses a given ad. To list all ads, run GetTextAds.cs." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the ad. - ''' - ''' Id of the ad to be paused. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal adId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - Dim status As AdGroupAdStatus = AdGroupAdStatus.PAUSED - - ' Create the ad group ad. - Dim adGroupAd As New AdGroupAd - adGroupAd.status = status - adGroupAd.adGroupId = adGroupId - - adGroupAd.ad = New Ad - adGroupAd.ad.id = adId - - ' Create the operation. - Dim adGroupAdOperation As New AdGroupAdOperation - adGroupAdOperation.operator = [Operator].SET - adGroupAdOperation.operand = adGroupAd - - Try - ' Update the ad. - Dim retVal As AdGroupAdReturnValue = service.mutate( _ - New AdGroupAdOperation() {adGroupAdOperation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim pausedAdGroupAd As AdGroupAd = retVal.value(0) - Console.WriteLine("Ad with id ""{0}"" was paused.", pausedAdGroupAd.ad.id) - Else - Console.WriteLine("No ads were paused.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to pause ad.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateAdGroup.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateAdGroup.vb deleted file mode 100644 index 4ae847f67f7..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateAdGroup.vb +++ /dev/null @@ -1,96 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to update an ad group, setting its - ''' status to 'PAUSED'. To create an ad group, run AddAdGroup.vb. - ''' - ''' Tags: AdGroupService.mutate - ''' - Public Class UpdateAdGroup - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UpdateAdGroup - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to update an ad group, setting its status " & _ - "to 'PAUSED'. To create an ad group, run AddAdGroup.vb" - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to be updated. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupService. - Dim adGroupService As AdGroupService = user.GetService(AdWordsService.v201309.AdGroupService) - - ' Create the ad group. - Dim adGroup As New AdGroup - adGroup.status = AdGroupStatus.PAUSED - adGroup.id = adGroupId - - ' Create the operation. - Dim operation As New AdGroupOperation - operation.operator = [Operator].SET - operation.operand = adGroup - - Try - ' Update the ad group. - Dim retVal As AdGroupReturnValue = adGroupService.mutate(New AdGroupOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim pausedAdGroup As AdGroup = retVal.value(0) - Console.WriteLine("Ad group with id = '{0}' was successfully updated.", _ - pausedAdGroup.id) - Else - Console.WriteLine("No ad groups were updated.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to update ad groups.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateCampaign.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateCampaign.vb deleted file mode 100644 index e1849fa4ab2..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdateCampaign.vb +++ /dev/null @@ -1,97 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example updates a campaign. To get campaigns, run - ''' GetCampaigns.vb. - ''' - ''' Tags: CampaignService.mutate - ''' - Public Class UpdateCampaign - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UpdateCampaign - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example updates a campaign. To get campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to be updated. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignService. - Dim campaignService As CampaignService = user.GetService( _ - AdWordsService.v201309.CampaignService) - - ' Create campaign with updated budget. - Dim campaign As New Campaign - campaign.id = campaignId - campaign.status = CampaignStatus.PAUSED - - ' Create the operations. - Dim operation As New CampaignOperation - operation.operator = [Operator].SET - operation.operand = campaign - - Try - ' Update the campaign. - Dim retVal As CampaignReturnValue = campaignService.mutate( _ - New CampaignOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim updatedCampaign As Campaign = retVal.value(0) - Console.WriteLine("Campaign with name = '{0}' and id = '{1}' was updated.", _ - updatedCampaign.name, updatedCampaign.id) - Else - Console.WriteLine("No campaigns were updated.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to update campaigns.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdatePlacement.vb b/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdatePlacement.vb deleted file mode 100644 index 1487f979fe0..00000000000 --- a/examples/AdXBuyer/Vb/v201309/BasicOperations/UpdatePlacement.vb +++ /dev/null @@ -1,123 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example updates the bid of a placement. To get placement, run - ''' GetPlacements.vb. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class UpdatePlacement - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UpdatePlacement - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - Dim placementId As Long = Long.Parse("INSERT_PLACEMENT_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId, placementId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example updates the bid of a placement. To get placement, run " & _ - "GetPlacements.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group that contains the keyword. - ''' - ''' Id of the placement to be updated. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal placementId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Since we are not updating any placement-specific fields, it is enough to - ' create a criterion object. - Dim criterion As New Criterion - criterion.id = placementId - - ' Create ad group criterion. - Dim biddableAdGroupCriterion As New BiddableAdGroupCriterion - biddableAdGroupCriterion.adGroupId = adGroupId - biddableAdGroupCriterion.criterion = criterion - - ' Create the bids. - Dim biddingConfig As New BiddingStrategyConfiguration() - Dim cpmBid As New CpmBid() - cpmBid.bid = New Money() - cpmBid.bid.microAmount = 1000000 - biddingConfig.bids = New Bids() {cpmBid} - - biddableAdGroupCriterion.biddingStrategyConfiguration = biddingConfig - - ' Create the operation. - Dim operation As New AdGroupCriterionOperation - operation.operator = [Operator].SET - operation.operand = biddableAdGroupCriterion - - Try - ' Update the placement. - Dim retVal As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - New AdGroupCriterionOperation() {operation}) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ - (retVal.value.Length > 0)) Then - Dim adGroupCriterion As BiddableAdGroupCriterion = retVal.value(0) - Dim bidAmount As Long = 0L - For Each bids As Bids In adGroupCriterion.biddingStrategyConfiguration.bids - If TypeOf bids Is CpmBid Then - bidAmount = TryCast(bids, CpmBid).bid.microAmount - End If - Next - - Console.WriteLine("Placement with ad group id = '{0}', id = '{1}' was updated with " & _ - "bid amount = '{2}' micros.", adGroupCriterion.adGroupId, _ - adGroupCriterion.criterion.id, bidAmount) - Else - Console.WriteLine("No placements were updated.") - End If - Catch ex As Exception - Console.WriteLine("Failed to update placement. Exception says ""{0}""", ex.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/CampaignManagement/AddPlacementsInBulk.vb b/examples/AdXBuyer/Vb/v201309/CampaignManagement/AddPlacementsInBulk.vb deleted file mode 100644 index 042fd70f9d8..00000000000 --- a/examples/AdXBuyer/Vb/v201309/CampaignManagement/AddPlacementsInBulk.vb +++ /dev/null @@ -1,185 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Text.RegularExpressions -Imports System.Threading - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example shows how to add placements in bulk using the - ''' MutateJobService. - ''' - ''' Tags: MutateJobService.mutate, MutateJobService.get - ''' Tags: MutateJobService.getResult - ''' - Public Class AddPlacementsInBulk - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddPlacementsInBulk - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example shows how to add placements in bulk using the MutateJobService." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad groups to which placements are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the MutateJobService. - Dim mutateJobService As MutateJobService = user.GetService( _ - AdWordsService.v201309.MutateJobService) - - Const RETRY_INTERVAL As Integer = 30 - Const RETRIES_COUNT As Integer = 30 - Const PLACEMENT_NUMBER As Integer = 100 - Const INDEX_REGEX As String = "operations\[(\d+)\].operand" - - Dim operations As New List(Of Operation) - - ' Create AdGroupCriterionOperation to add placements. - For i As Integer = 0 To PLACEMENT_NUMBER - Dim placement As New Placement - placement.url = ("http://mars.google.com/" & i.ToString) - - Dim criterion As New BiddableAdGroupCriterion - criterion.adGroupId = adGroupId - criterion.criterion = placement - - Dim adGroupCriterionOperation As New AdGroupCriterionOperation - adGroupCriterionOperation.operator = [Operator].ADD - adGroupCriterionOperation.operand = criterion - - operations.Add(adGroupCriterionOperation) - Next i - - Dim policy As New BulkMutateJobPolicy - ' You can specify up to 3 job IDs that must successfully complete before - ' this job can be processed. - policy.prerequisiteJobIds = New Long() {} - - Dim job As SimpleMutateJob = mutateJobService.mutate(operations.ToArray, policy) - - ' Wait for the job to complete. - Dim completed As Boolean = False - Dim retryCount As Integer = 0 - Console.WriteLine("Retrieving job status...") - - While (completed = False AndAlso retryCount < RETRIES_COUNT) - Dim selector As New BulkMutateJobSelector - selector.jobIds = New Long() {job.id} - - Try - Dim allJobs As Job() = mutateJobService.get(selector) - If ((Not allJobs Is Nothing) AndAlso (allJobs.Length > 0)) Then - job = allJobs(0) - If ((job.status = BasicJobStatus.COMPLETED) OrElse _ - (job.status = BasicJobStatus.FAILED)) Then - completed = True - Exit While - Else - Console.WriteLine("{0}: Current status is {1}, waiting {2} seconds to retry...", _ - retryCount, job.status, RETRY_INTERVAL) - Thread.Sleep(RETRY_INTERVAL * 1000) - retryCount = retryCount + 1 - End If - End If - Catch ex As Exception - Console.WriteLine("Failed to fetch simple mutate job with id = {0}. Exception " & _ - "says ""{1}"".", job.id, ex.Message) - Return - End Try - End While - - If (job.status = BasicJobStatus.COMPLETED) Then - ' Handle cases where the job completed. - - ' Create the job selector. - Dim selector As New BulkMutateJobSelector - selector.jobIds = New Long() {job.id} - - ' Get the job results. - Dim jobResult As JobResult = mutateJobService.getResult(selector) - If Not jobResult Is Nothing Then - Dim results As SimpleMutateResult = jobResult.Item - If Not results Is Nothing Then - 'Display the results. - If Not results.results Is Nothing Then - For i As Integer = 0 To results.results.Length - 1 - Dim operand As Operand = results.results(i) - Dim status As String - If TypeOf operand.Item Is PlaceHolder Then - status = "FAILED" - Else - status = "SUCCEEDED" - End If - Console.WriteLine("Operation {0} - {1}", i, status) - Next i - End If - - ' Display the errors. - If Not results.errors Is Nothing Then - For Each apiError As ApiError In results.errors - Dim match As Match = Regex.Match(apiError.fieldPath, INDEX_REGEX, _ - RegexOptions.IgnoreCase) - Dim index As String = "???" - If (match.Success) Then - index = match.Groups(1).Value - End If - Console.WriteLine("Operation index {0} failed due to reason: '{1}', " & _ - "trigger: '{2}'", index, apiError.errorString, apiError.trigger) - Next - End If - End If - End If - Console.WriteLine("Job completed successfully!") - ElseIf (job.status = BasicJobStatus.FAILED) Then - ' Handle the cases where job failed. - Console.WriteLine("Job failed with reason: " & job.failureReason.ToString()) - ElseIf (job.status = BasicJobStatus.PROCESSING OrElse job.status = BasicJobStatus.PENDING) _ - Then - ' Handle the cases where job didn't complete after wait period. - Console.WriteLine("Job did not complete in {0} secconds.", RETRY_INTERVAL * RETRIES_COUNT) - End If - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb b/examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb deleted file mode 100644 index bf964f293a4..00000000000 --- a/examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAds.vb +++ /dev/null @@ -1,121 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves all the disapproved ads in a given campaign. - ''' - ''' Tags: AdGroupAdService.get - ''' - Public Class GetAllDisapprovedAds - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAllDisapprovedAds - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves all the disapproved ads in a given campaign." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which disapproved ads - ''' are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "AdGroupCreativeApprovalStatus", _ - "AdGroupAdDisapprovalReasons"} - - ' Set the filters. - Dim campaignPredicate As New Predicate - campaignPredicate.operator = PredicateOperator.EQUALS - campaignPredicate.field = "CampaignId" - campaignPredicate.values = New String() {campaignId.ToString} - - Dim approvalPredicate As New Predicate - approvalPredicate.operator = PredicateOperator.EQUALS - approvalPredicate.field = "AdGroupCreativeApprovalStatus" - approvalPredicate.values = New String() {AdGroupAdApprovalStatus.DISAPPROVED.ToString()} - - selector.predicates = New Predicate() {campaignPredicate, approvalPredicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New AdGroupAdPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get the disapproved ads. - page = service.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each adGroupAd As AdGroupAd In page.entries - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " & _ - "reason(s):", i, adGroupAd.ad.id) - For Each reason As String In adGroupAd.disapprovalReasons - Console.WriteLine(" {0}", reason) - Next - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get disapproved ads.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb b/examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb deleted file mode 100644 index 3ea88a32da8..00000000000 --- a/examples/AdXBuyer/Vb/v201309/CampaignManagement/GetAllDisapprovedAdsWithAwql.vb +++ /dev/null @@ -1,111 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves all the disapproved ads in a given campaign - ''' using an AWQL query. See - ''' https://developers.google.com/adwords/api/docs/guides/awql for AWQL - ''' documentation. - ''' - ''' Tags: AdGroupAdService.get - ''' - Public Class GetAllDisapprovedAdsWithAwql - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAllDisapprovedAdsWithAwql - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves all the disapproved ads in a given campaign using " & _ - "an AWQL query. See https://developers.google.com/adwords/api/docs/guides/awql for " & _ - "AWQL documentation." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign for which disapproved ads - ''' are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService(AdWordsService.v201309.AdGroupAdService) - - ' Get all the disapproved ads for this campaign. - Dim query As String = String.Format("SELECT Id, AdGroupAdDisapprovalReasons WHERE " & _ - "CampaignId = {0} AND AdGroupCreativeApprovalStatus = DISAPPROVED ORDER BY Id", _ - campaignId) - - Dim offset As Long = 0 - Dim pageSize As Long = 500 - - Dim page As New AdGroupAdPage() - - Try - Do - Dim queryWithPaging As String = String.Format("{0} LIMIT {1}, {2}", query, offset, _ - pageSize) - - ' Get the disapproved ads. - page = service.query(queryWithPaging) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each adGroupAd As AdGroupAd In page.entries - Console.WriteLine("{0}) Ad id {1} has been disapproved for the following " & _ - "reason(s):", i, adGroupAd.ad.id) - For Each reason As String In adGroupAd.disapprovalReasons - Console.WriteLine(" {0}", reason) - Next - i = i + 1 - Next - End If - - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of disapproved ads found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get disapproved ads.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePartialFailures.vb b/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePartialFailures.vb deleted file mode 100644 index 54133ebe8d9..00000000000 --- a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePartialFailures.vb +++ /dev/null @@ -1,136 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example demonstrates how to handle partial failures. - ''' - ''' Tags: AdGroupCriterionService.mutate - ''' - Public Class HandlePartialFailures - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandlePartialFailures - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example demonstrates how to handle partial failures." - End Get - End Property - - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which placements are - ''' added. - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupCriterionService. - Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - - ' Set partial failure mode for the service. - adGroupCriterionService.RequestHeader.partialFailure = True - - Dim operations As New List(Of AdGroupCriterionOperation) - - ' Create the placements. - Dim urls As String() = New String() {"http://mars.google.com", "http:/mars.google.com", _ - "mars.google.com"} - For Each url As String In urls - Dim placement As New Placement - placement.url = url - - ' Create biddable ad group criterion. - Dim placementBiddableAdGroupCriterion As New BiddableAdGroupCriterion - placementBiddableAdGroupCriterion.adGroupId = adGroupId - placementBiddableAdGroupCriterion.criterion = placement - - ' Create the operation. - Dim placementAdGroupCriterionOperation As New AdGroupCriterionOperation - placementAdGroupCriterionOperation.operand = placementBiddableAdGroupCriterion - placementAdGroupCriterionOperation.operator = [Operator].ADD - operations.Add(placementAdGroupCriterionOperation) - Next - - Try - ' Create the placements. - Dim result As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ - operations.ToArray) - - ' Display the results. - If ((Not result Is Nothing) AndAlso (Not result.value Is Nothing)) Then - For Each adGroupCriterionResult As AdGroupCriterion In result.value - If (Not adGroupCriterionResult.criterion Is Nothing) Then - Console.WriteLine("Placement with ad group id '{0}', criterion id " & _ - "'{1}', and url '{2}' was added.\n", adGroupCriterionResult.adGroupId, _ - adGroupCriterionResult.criterion.id, _ - DirectCast(adGroupCriterionResult.criterion, Placement).url) - End If - Next - Else - Console.WriteLine("No placements were added.") - End If - - ' Display the partial failure errors. - If ((Not result Is Nothing) AndAlso (Not result.partialFailureErrors Is Nothing)) Then - For Each apiError As ApiError In result.partialFailureErrors - Dim operationIndex As Integer = ErrorUtilities.GetOperationIndex(apiError.fieldPath) - If (operationIndex <> -1) Then - Dim adGroupCriterion As AdGroupCriterion = operations(operationIndex).operand - Console.WriteLine("Placement with ad group id '{0}' and url '{1}' " & _ - "triggered a failure for the following reason: '{2}'.\n", _ - adGroupCriterion.adGroupId, _ - DirectCast(adGroupCriterion.criterion, Placement).url, _ - apiError.errorString) - Else - Console.WriteLine("A failure for the following reason: '{0}' has occurred.\n", _ - apiError.errorString) - End If - Next - End If - Catch e As Exception - Console.WriteLine("Failed to add placement(s) in partial failure mode. Exception " & _ - "says '{0}'", e.Message) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb b/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb deleted file mode 100644 index bcdb78a69a4..00000000000 --- a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandlePolicyViolationError.vb +++ /dev/null @@ -1,184 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds a text ad, and shows how to handle a policy - ''' violation. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class HandlePolicyViolationError - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandlePolicyViolationError - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds a text ad, and shows how to handle a policy violation." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which ads are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - ' Get the AdGroupAdService. - Dim service As AdGroupAdService = user.GetService( _ - AdWordsService.v201309.AdGroupAdService) - - ' Create a third party redirect ad that violates a policy. - ' Create the third party redirect ad. - Dim redirectAd As New ThirdPartyRedirectAd - redirectAd.name = String.Format("Policy violation demo ad ", ExampleUtilities.GetRandomString) - redirectAd.url = "gopher://gopher.google.com" - - redirectAd.dimensions = New Dimensions - redirectAd.dimensions.height = 250 - redirectAd.dimensions.width = 300 - - redirectAd.snippet = "" - redirectAd.impressionBeaconUrl = "http://www.examples.com/beacon" - redirectAd.certifiedVendorFormatId = 119 - redirectAd.isCookieTargeted = False - redirectAd.isUserInterestTargeted = False - redirectAd.isTagged = False - - Dim redirectAdGroupAd As New AdGroupAd - redirectAdGroupAd.adGroupId = adGroupId - redirectAdGroupAd.ad = redirectAd - - ' Create the operations. - Dim redirectAdOperation As New AdGroupAdOperation - redirectAdOperation.operator = [Operator].ADD - redirectAdOperation.operand = redirectAdGroupAd - - Try - Dim retVal As AdGroupAdReturnValue = Nothing - - ' Setup two arrays, one to hold the list of all operations to be - ' validated, and another to hold the list of operations that cannot be - ' fixed after validation. - Dim allOperations As New List(Of AdGroupAdOperation) - Dim operationsToBeRemoved As New List(Of AdGroupAdOperation) - - allOperations.Add(redirectAdOperation) - - Try - ' Validate the operations. - service.RequestHeader.validateOnly = True - retVal = service.mutate(allOperations.ToArray) - Catch ex As AdWordsApiException - Dim innerException As ApiException = TryCast(ex.ApiException, ApiException) - If (innerException Is Nothing) Then - Throw New Exception("Failed to retrieve ApiError. See inner exception for more " & _ - "details.", ex) - End If - - ' Examine each ApiError received from the server. - For Each apiError As ApiError In innerException.errors - Dim index As Integer = ErrorUtilities.GetOperationIndex(apiError.fieldPath) - If (index = -1) Then - ' This API error is not associated with an operand, so we cannot - ' recover from this error by removing one or more operations. - ' Rethrow the exception for manual inspection. - Throw - End If - - ' Handle policy violation errors. - If TypeOf apiError Is PolicyViolationError Then - Dim policyError As PolicyViolationError = apiError - - If policyError.isExemptable Then - ' If the policy violation error is exemptable, add an exemption - ' request. - Dim exemptionRequests As New List(Of ExemptionRequest) - If (Not allOperations.Item(index).exemptionRequests Is Nothing) Then - exemptionRequests.AddRange(allOperations.Item(index).exemptionRequests) - End If - - Dim exemptionRequest As New ExemptionRequest - exemptionRequest.key = policyError.key - exemptionRequests.Add(exemptionRequest) - allOperations.Item(index).exemptionRequests = exemptionRequests.ToArray - Else - ' Policy violation error is not exemptable, remove this - ' operation from the list of operations. - operationsToBeRemoved.Add(allOperations.Item(index)) - End If - Else - ' This is not a policy violation error, remove this operation - ' from the list of operations. - operationsToBeRemoved.Add(allOperations.Item(index)) - End If - Next - - ' Remove all operations that aren't exemptable. - For Each operation As AdGroupAdOperation In operationsToBeRemoved - allOperations.Remove(operation) - Next - End Try - If (allOperations.Count > 0) Then - ' Perform the operations exemptible of a policy violation. - service.RequestHeader.validateOnly = False - retVal = service.mutate(allOperations.ToArray) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) _ - AndAlso (retVal.value.Length > 0)) Then - For Each newAdGroupAd As AdGroupAd In retVal.value - Console.WriteLine("New ad with id = ""{0}"" and displayUrl = ""{1}"" was created.", _ - newAdGroupAd.ad.id, newAdGroupAd.ad.displayUrl) - Next - Else - Console.WriteLine("No ads were created.") - End If - Else - Console.WriteLine("There are no ads to create after policy violation checks.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to create Ad(s).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleRateExceededError.vb b/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleRateExceededError.vb deleted file mode 100644 index 965d10420ee..00000000000 --- a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleRateExceededError.vb +++ /dev/null @@ -1,206 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO -Imports System.Net -Imports System.Threading - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example shows how to handle RateExceededError in your - ''' application. To trigger the rate exceeded error, this code example runs - ''' 100 threads in parallel, each thread attempting to validate 100 keywords - ''' in a single request. Note that spawning 100 parallel threads is for - ''' illustrative purposes only, you shouldn't do this in your application. - ''' - ''' Tags: AdGroupAdService.mutate - ''' - Public Class HandleRateExceededError - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandleRateExceededError - Console.WriteLine(codeExample.Description) - Try - Dim adGroupId As Long = Long.Parse("INSERT_ADGROUP_ID_HERE") - codeExample.Run(New AdWordsUser, adGroupId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example shows how to handle RateExceededError in your application. " & _ - "To trigger the rate exceeded error, this code example runs 100 threads in " & _ - "parallel, each thread attempting to validate 100 keywords in a single request. " & _ - "Note that spawning 100 parallel threads is for illustrative purposes only, you " & _ - "shouldn't do this in your application." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the ad group to which keywords are added. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long) - Const NUM_THREADS As Integer = 100 - - ' Increase the maximum number of parallel HTTP connections that .NET - ' framework allows. By default, this is set to 2 by the .NET framework. - ServicePointManager.DefaultConnectionLimit = NUM_THREADS - - Dim threads As New List(Of Thread) - - For i As Integer = 0 To NUM_THREADS - Dim thread As New Thread(AddressOf New KeywordThread(user, i, adGroupId).Run) - threads.Add(thread) - Next i - - For i As Integer = 0 To threads.Count - 1 - threads.Item(i).Start(i) - Next i - - For i As Integer = 0 To threads.Count - 1 - threads.Item(i).Join() - Next i - End Sub - - ''' - ''' Thread class for validating keywords. - ''' - Public Class KeywordThread - ''' - ''' Index of this thread, for identifying and debugging. - ''' - Dim threadIndex As Integer - - ''' - ''' The ad group id to which keywords are added. - ''' - Dim adGroupId As Long - - ''' - ''' The AdWords user who owns this ad group. - ''' - Dim user As AdWordsUser - - ''' - ''' Number of keywords to be validated in each API call. - ''' - Const NUM_KEYWORDS As Integer = 100 - - ''' - ''' Initializes a new instance of the class. - ''' - ''' Index of the thread. - ''' The ad group id. - ''' The AdWords user who owns the ad group. - Public Sub New(ByVal user As AdWordsUser, ByVal threadIndex As Integer, _ - ByVal adGroupId As Long) - Me.user = user - Me.threadIndex = threadIndex - Me.adGroupId = adGroupId - End Sub - - ''' - ''' Main method for the thread. - ''' - ''' The thread parameter. - Public Sub Run(ByVal obj As Object) - ' Create the operations. - Dim operations As New List(Of AdGroupCriterionOperation) - For j As Integer = 0 To NUM_KEYWORDS - ' Create the keyword. - Dim keyword As New Keyword - keyword.text = "mars cruise thread " & threadIndex.ToString & " seed " & j.ToString - keyword.matchType = KeywordMatchType.BROAD - - ' Create the biddable ad group criterion. - Dim keywordCriterion As AdGroupCriterion = New BiddableAdGroupCriterion - keywordCriterion.adGroupId = adGroupId - keywordCriterion.criterion = keyword - - ' Create the operations. - Dim keywordOperation As New AdGroupCriterionOperation - keywordOperation.operator = [Operator].ADD - keywordOperation.operand = keywordCriterion - - operations.Add(keywordOperation) - Next j - - ' Get the AdGroupCriterionService. This should be done within the - ' thread, since a service can only handle one outgoing HTTP request - ' at a time. - Dim service As AdGroupCriterionService = user.GetService( _ - AdWordsService.v201309.AdGroupCriterionService) - service.RequestHeader.validateOnly = True - Dim retryCount As Integer = 0 - Const NUM_RETRIES As Integer = 3 - Try - While (retryCount < NUM_RETRIES) - Try - ' Validate the keywords. - Dim retval As AdGroupCriterionReturnValue = service.mutate(operations.ToArray) - Exit While - Catch ex As AdWordsApiException - ' Handle API errors. - Dim innerException As ApiException = TryCast(ex.ApiException, ApiException) - If (innerException Is Nothing) Then - Throw New Exception("Failed to retrieve ApiError. See inner exception for more " & _ - "details.", ex) - End If - For Each apiError As ApiError In innerException.errors - If Not TypeOf apiError Is RateExceededError Then - ' Rethrow any errors other than RateExceededError. - Throw - End If - ' Handle rate exceeded errors. - Dim rateExceededError As RateExceededError = DirectCast(apiError, RateExceededError) - Console.WriteLine("Got Rate exceeded error - rate name = '{0}', scope = '{1}', " & _ - "retry After {2} seconds.", rateExceededError.rateScope, _ - rateExceededError.rateName, rateExceededError.retryAfterSeconds) - Thread.Sleep(rateExceededError.retryAfterSeconds) - retryCount = retryCount + 1 - Next - Finally - If (retryCount = NUM_RETRIES) Then - Throw New Exception(String.Format("Could not recover after making {0} attempts.", _ - retryCount)) - End If - End Try - End While - Catch ex As Exception - Throw New System.ApplicationException("Failed to validate keywords.", ex) - End Try - End Sub - End Class - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb b/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb deleted file mode 100644 index 4292db476db..00000000000 --- a/examples/AdXBuyer/Vb/v201309/ErrorHandling/HandleTwoFactorAuthorizationError.vb +++ /dev/null @@ -1,95 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.Common.Lib - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to handle 2 factor authorization errors. - ''' - ''' Tags: CampaignService.get - ''' - Public Class HandleTwoFactorAuthorizationError - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New HandleTwoFactorAuthorizationError - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to handle 2 factor authorization errors." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Use a test account for which 2 factor authentication has been enabled. - Dim loginEmail As String = "2steptester@gmail.com" - Dim password As String = "testaccount" - - Dim config As New AdWordsAppConfig - config.Email = loginEmail - config.Password = password - Dim authToken As New AuthToken(config, "adwords") - - Try - ' Try to obtain an authToken. - Dim token As String = authToken.GetToken - Console.WriteLine("Retrieved an authToken = {0} for user {1}.", token, loginEmail) - Catch ex As AuthTokenException - ' Since the test account has 2 factor authentication enabled, this block - ' of code will be executed. - If (ex.ErrorCode = AuthTokenErrorCode.BadAuthentication) Then - If (ex.Info = "InvalidSecondFactor") Then - Console.WriteLine("The user has enabled two factor authentication in this " & _ - "account. Have the user generate an application-specific password to make " & _ - "calls against the AdWords API. See " & _ - "http://adwordsapi.blogspot.com/2011/02/authentication-changes-with-2-step.html" & _ - "for more details.") - Else - Console.WriteLine("Invalid credentials.") - End If - Else - Throw New System.ApplicationException(String.Format("The server raised an {0} error.", _ - ex.ErrorCode), ex) - End If - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb b/examples/AdXBuyer/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb deleted file mode 100644 index a6ca8b9422c..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Miscellaneous/GetAllVideosAndImages.vb +++ /dev/null @@ -1,139 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets all videos and images. To upload video, see - ''' http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. - ''' To upload image, run UploadImage.vb. - ''' - ''' Tags: MediaService.get - ''' - Public Class GetAllVideosAndImages - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetAllVideosAndImages - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets all videos and images. To upload video, see " & _ - "http://adwords.google.com/support/aw/bin/answer.py?hl=en&answer=39454. To " & _ - "upload image, run UploadImage.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the MediaService. - Dim mediaService As MediaService = user.GetService(AdWordsService.v201309.MediaService) - - ' Create the video selector. - Dim selector As New Selector - selector.fields = New String() {"MediaId", "Width", "Height", "MimeType"} - - ' Set the filter. - Dim predicate As New Predicate - predicate.operator = PredicateOperator.IN - predicate.field = "Type" - predicate.values = New String() {MediaMediaType.VIDEO.ToString(), _ - MediaMediaType.IMAGE.ToString()} - - selector.predicates = New Predicate() {predicate} - - ' Select selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New MediaPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - page = mediaService.get(selector) - - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each media As Media In page.entries - If TypeOf media Is Video Then - Dim video As Video = media - Console.WriteLine("{0}) Video with id '{1}' and name '{2}' was found.", _ - i, video.mediaId, video.name) - ElseIf TypeOf media Is Image Then - Dim image As Image = media - Dim dimensions As Dictionary(Of MediaSize, Dimensions) = _ - CreateMediaDimensionMap(image.dimensions) - Console.WriteLine("{0}) Image with id '{1}', dimensions '{2}x{3}', and MIME " & _ - "type '{4}' was found.", i, image.mediaId, dimensions(MediaSize.FULL).width, _ - dimensions(MediaSize.FULL).height, image.mimeType) - End If - i = i + 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of images and videos found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get images and videos.", ex) - End Try - End Sub - - ''' - ''' Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - ''' - ''' The array of Media_Size_DimensionsMapEntry to be - ''' converted into a dictionary. - ''' A dictionary with key as MediaSize, and value as Dimensions. - ''' - Private Function CreateMediaDimensionMap(ByVal dimensions As Media_Size_DimensionsMapEntry()) _ - As Dictionary(Of MediaSize, Dimensions) - Dim mediaMap As New Dictionary(Of MediaSize, Dimensions) - For Each dimension As Media_Size_DimensionsMapEntry In dimensions - mediaMap.Add(dimension.key, dimension.value) - Next - Return mediaMap - End Function - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Miscellaneous/UploadImage.vb b/examples/AdXBuyer/Vb/v201309/Miscellaneous/UploadImage.vb deleted file mode 100644 index 3c9d5aa3396..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Miscellaneous/UploadImage.vb +++ /dev/null @@ -1,107 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 -Imports Google.Api.Ads.Common.Util - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example uploads an image. To get images, run GetAllVideosAndImages.vb. - ''' - ''' Tags: MediaService.upload - ''' - Public Class UploadImage - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New UploadImage - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example uploads an image. To get images, run GetAllVideosAndImages.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the MediaService. - Dim mediaService As MediaService = user.GetService( _ - AdWordsService.v201309.MediaService) - - ' Create the image. - Dim image As New Image - image.data = MediaUtilities.GetAssetDataFromUrl("http://goo.gl/HJM3L") - image.type = MediaMediaType.IMAGE - - Try - ' Upload the image. - Dim result As Media() = mediaService.upload(New Media() {image}) - - ' Display the results. - If ((Not result Is Nothing) AndAlso (result.Length > 0)) Then - Dim newImage As Media = result(0) - Dim dimensions As Dictionary(Of MediaSize, Dimensions) = _ - CreateMediaDimensionMap(newImage.dimensions) - Console.WriteLine("Image with id '{0}', dimensions '{1}x{2}', and MIME type '{3}'" & _ - " was uploaded.", newImage.mediaId, dimensions.Item(MediaSize.FULL).width, _ - dimensions.Item(MediaSize.FULL).height, newImage.mimeType) - Else - Console.WriteLine("No images were uploaded.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to upload images.", ex) - End Try - End Sub - - ''' - ''' Converts an array of Media_Size_DimensionsMapEntry into a dictionary. - ''' - ''' The array of Media_Size_DimensionsMapEntry to - ''' be converted into a dictionary. - ''' A dictionary with key as MediaSize, and value as Dimensions. - ''' - Private Function CreateMediaDimensionMap(ByVal dimensions As Media_Size_DimensionsMapEntry()) _ - As Dictionary(Of MediaSize, Dimensions) - Dim mediaMap As New Dictionary(Of MediaSize, Dimensions) - For Each dimension As Media_Size_DimensionsMapEntry In dimensions - mediaMap.Add(dimension.key, dimension.value) - Next - Return mediaMap - End Function - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Optimization/GetPlacementIdeas.vb b/examples/AdXBuyer/Vb/v201309/Optimization/GetPlacementIdeas.vb deleted file mode 100644 index e8e83649ada..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Optimization/GetPlacementIdeas.vb +++ /dev/null @@ -1,123 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example retrieves urls that have content keywords related to a - ''' given website. - ''' - ''' Tags: TargetingIdeaService.get - ''' - Public Class GetPlacementIdeas - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetPlacementIdeas - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example retrieves urls that have content keywords related to a " & _ - "given website." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the TargetingIdeaService. - Dim targetingIdeaService As TargetingIdeaService = user.GetService( _ - AdWordsService.v201309.TargetingIdeaService) - - ' Create seed url. - Dim url As String = "mars.google.com" - - ' Create the selector. - Dim selector As New TargetingIdeaSelector - selector.requestType = RequestType.IDEAS - selector.ideaType = IdeaType.PLACEMENT - selector.requestedAttributeTypes = New AttributeType() {AttributeType.CRITERION, _ - AttributeType.PLACEMENT_TYPE} - - ' Create related to url search parameter. - Dim relatedToUrlSearchParameter As New RelatedToUrlSearchParameter - relatedToUrlSearchParameter.urls = New String() {url} - relatedToUrlSearchParameter.includeSubUrls = False - selector.searchParameters = New SearchParameter() {relatedToUrlSearchParameter} - - ' Select selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New TargetingIdeaPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get placement ideas. - page = targetingIdeaService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - - For Each idea As TargetingIdea In page.entries - For Each entry As Type_AttributeMapEntry In idea.data - If (entry.key = AttributeType.CRITERION) Then - Dim placementAttribute As CriterionAttribute = entry.value - Dim placement As Placement = placementAttribute.value - Console.WriteLine("{0}) Related placement urls were found at '{1}'.", _ - i, placement.url) - End If - Next - Next - i += 1 - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of related placements found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve related placements.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Remarketing/AddAudience.vb b/examples/AdXBuyer/Vb/v201309/Remarketing/AddAudience.vb deleted file mode 100644 index fe73d130d76..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Remarketing/AddAudience.vb +++ /dev/null @@ -1,154 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to create a user list a.k.a. audience. - ''' - ''' Tags: UserListService.mutate - ''' - Public Class AddAudience - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddAudience - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to create a user list a.k.a. audience." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the UserListService. - Dim userListService As AdwordsUserListService = user.GetService( _ - AdWordsService.v201309.AdwordsUserListService) - - ' Get the ConversionTrackerService. - Dim conversionTrackerService As ConversionTrackerService = user.GetService( _ - AdWordsService.v201309.ConversionTrackerService) - - Dim userList As New BasicUserList - - userList.name = ("Mars cruise customers #" & ExampleUtilities.GetRandomString) - userList.description = "A list of mars cruise customers in the last year." - userList.status = UserListMembershipStatus.OPEN - userList.membershipLifeSpan = 365 - - Dim conversionType As New UserListConversionType - conversionType.name = userList.name - userList.conversionTypes = New UserListConversionType() {conversionType} - - ' Optional: Set the user list status. - userList.status = UserListMembershipStatus.OPEN - - ' Create the operation. - Dim operation As New UserListOperation - operation.operand = userList - operation.operator = [Operator].ADD - - Try - ' Add the user list. - Dim retval As UserListReturnValue = userListService.mutate(New UserListOperation() _ - {operation}) - - Dim userLists As UserList() = Nothing - If ((Not retval Is Nothing) AndAlso (Not retval.value Is Nothing)) Then - userLists = retval.value - ' Get all conversion snippets. - Dim conversionIds As New List(Of String) - For Each newUserList As BasicUserList In userLists - If (Not newUserList.conversionTypes Is Nothing) Then - For Each newConversionType As UserListConversionType In _ - newUserList.conversionTypes - conversionIds.Add(newConversionType.id.ToString) - Next - End If - Next - - Dim conversionsMap As New Dictionary(Of Long, ConversionTracker) - - If (conversionIds.Count > 0) Then - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id"} - - Dim conversionTypePredicate As New Predicate - conversionTypePredicate.field = "Id" - conversionTypePredicate.operator = PredicateOperator.IN - conversionTypePredicate.values = conversionIds.ToArray - selector.predicates = New Predicate() {conversionTypePredicate} - - ' Get all conversion trackers. - Dim page As ConversionTrackerPage = conversionTrackerService.get(selector) - - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - For Each tracker As ConversionTracker In page.entries - conversionsMap.Item(tracker.id) = tracker - Next - End If - End If - - ' Display the results. - For Each newUserList As BasicUserList In userLists - Console.WriteLine("User list with name '{0}' and id '{1}' was added.", _ - newUserList.name, newUserList.id) - - ' Display user list associated conversion code snippets. - If (Not newUserList.conversionTypes Is Nothing) Then - For Each newConversionType As UserListConversionType In newUserList.conversionTypes - Dim conversionTracker As AdWordsConversionTracker = _ - DirectCast(conversionsMap.Item(newConversionType.id), _ - AdWordsConversionTracker) - Console.WriteLine("Conversion type code snippet associated to the list:\n{0}", _ - conversionTracker.snippet) - Next - End If - Next - Else - Console.WriteLine("No user lists (a.k.a. audiences) were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add user lists (a.k.a. audiences).", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Remarketing/AddConversionTracker.vb b/examples/AdXBuyer/Vb/v201309/Remarketing/AddConversionTracker.vb deleted file mode 100644 index b41a35d0655..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Remarketing/AddConversionTracker.vb +++ /dev/null @@ -1,108 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds an AdWords conversion tracker. - ''' - ''' Tags: ConversionTrackerService.mutate - ''' - Public Class AddConversionTracker - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddConversionTracker - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds an AdWords conversion tracker." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the ConversionTrackerService. - Dim conversionTrackerService As ConversionTrackerService = user.GetService( _ - AdWordsService.v201309.ConversionTrackerService) - - ' Create AdWords conversion tracker. - Dim conversionTracker As New AdWordsConversionTracker - conversionTracker.name = "Earth to Mars Cruises Conversion #" & _ - ExampleUtilities.GetRandomString - conversionTracker.category = ConversionTrackerCategory.DEFAULT - conversionTracker.markupLanguage = AdWordsConversionTrackerMarkupLanguage.HTML - conversionTracker.textFormat = AdWordsConversionTrackerTextFormat.HIDDEN - - ' Set optional fields. - conversionTracker.status = ConversionTrackerStatus.ENABLED - conversionTracker.viewthroughLookbackWindow = 15 - conversionTracker.isProductAdsChargeable = True - conversionTracker.productAdsChargeableConversionWindow = 15 - conversionTracker.conversionPageLanguage = "en" - conversionTracker.backgroundColor = "#0000FF" - conversionTracker.userRevenueValue = "someJavascriptVariable" - - ' Create the operation. - Dim operation As New ConversionTrackerOperation - operation.operator = [Operator].ADD - operation.operand = conversionTracker - - Try - ' Add conversion tracker. - Dim retval As ConversionTrackerReturnValue = conversionTrackerService.mutate( _ - New ConversionTrackerOperation() {operation}) - - ' Display the results. - If ((Not retval Is Nothing) AndAlso (Not retval.value Is Nothing) AndAlso _ - retval.value.Length > 0) Then - Dim newConversionTracker As ConversionTracker = retval.value(0) - Console.WriteLine("Conversion tracker with id '{0}', name '{1}', status '{2}', " & _ - "category '{3}' was added.", newConversionTracker.id, newConversionTracker.name, _ - newConversionTracker.status, newConversionTracker.category) - Else - Console.WriteLine("No conversion trackers were added.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to add conversion tracker.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReport.vb b/examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReport.vb deleted file mode 100644 index 6d8782131a5..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReport.vb +++ /dev/null @@ -1,118 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util.Reports -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets and downloads a criteria Ad Hoc report from an XML - ''' report definition. - ''' - Public Class DownloadCriteriaReport - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DownloadCriteriaReport - Console.WriteLine(codeExample.Description) - Try - Dim fileName As String = "INSERT_OUTPUT_FILE_NAME" - codeExample.Run(New AdWordsUser, fileName) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets and downloads a criteria Ad Hoc report from an XML report" & _ - " definition." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The file to which the report is downloaded. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal fileName As String) - Dim definition As New ReportDefinition - - definition.reportName = "Last 7 days CRITERIA_PERFORMANCE_REPORT" - definition.reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT - definition.downloadFormat = DownloadFormat.GZIPPED_CSV - definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"CampaignId", "AdGroupId", "Id", "CriteriaType", "Criteria", _ - "CriteriaDestinationUrl", "Clicks", "Impressions", "Cost"} - - Dim predicate As New Predicate - predicate.field = "Status" - predicate.operator = PredicateOperator.IN - predicate.values = New String() {"ACTIVE", "PAUSED"} - selector.predicates = New Predicate() {predicate} - - definition.selector = selector - definition.includeZeroImpressions = True - - Dim filePath As String = ExampleUtilities.GetHomeDir() & Path.DirectorySeparatorChar & _ - fileName - - Try - ' If you know that your report is small enough to fit in memory, then - ' you can instead use - ' Dim utilities As New ReportUtilities(user) - ' utilities.ReportVersion = "v201309" - ' Dim report As ClientReport = utilities.GetClientReport( _ - ' Of ReportDefinition)(definition) - ' - ' ' Get the text report directly if you requested a text format - ' ' (e.g. xml) - ' Dim reportText As String = report.Text - ' - ' ' Get the binary report if you requested a binary format - ' ' (e.g. gzip) - ' Dim reportBytes As Byte() = report.Contents - ' - ' ' Deflate a zipped binary report for further processing. - ' Dim deflatedReportText As String = Encoding.UTF8.GetString( _ - ' MediaUtilities.DeflateGZipData(report.Contents)) - Dim utilities As New ReportUtilities(user) - utilities.ReportVersion = "v201309" - utilities.DownloadClientReport(Of ReportDefinition)(definition, filePath) - Console.WriteLine("Report was downloaded to '{0}'.", filePath) - Catch ex As Exception - Throw New System.ApplicationException("Failed to download report.", ex) - End Try - - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb b/examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb deleted file mode 100644 index d27e738908b..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Reporting/DownloadCriteriaReportWithAwql.vb +++ /dev/null @@ -1,102 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.Util.Reports -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets and downloads a criteria Ad Hoc report from an AWQL - ''' query. See https://developers.google.com/adwords/api/docs/guides/awql for - ''' AWQL documentation. - ''' - Public Class DownloadCriteriaReportWithAwql - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New DownloadCriteriaReportWithAwql - Console.WriteLine(codeExample.Description) - Try - Dim fileName As String = "INSERT_OUTPUT_FILE_NAME" - codeExample.Run(New AdWordsUser, fileName) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets and downloads a criteria Ad Hoc report from an AWQL" & _ - " query. See https://developers.google.com/adwords/api/docs/guides/awql for" & _ - " AWQL documentation." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The file to which the report is downloaded. - ''' - Public Sub Run(ByVal user As AdWordsUser, ByVal fileName As String) - Dim query As String = "SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, " & _ - "Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT WHERE Status IN " & _ - "[ACTIVE, PAUSED] DURING LAST_7_DAYS" - - Dim filePath As String = ExampleUtilities.GetHomeDir() + Path.DirectorySeparatorChar & _ - fileName - - Try - ' If you know that your report is small enough to fit in memory, then - ' you can instead use - ' Dim utilities As New ReportUtilities(user) - ' utilities.ReportVersion = "v201309" - ' Dim report As ClientReport = utilities.GetClientReport(query, format) - ' - ' ' Get the text report directly if you requested a text format - ' ' (e.g. xml) - ' Dim reportText As String = report.Text - ' - ' ' Get the binary report if you requested a binary format - ' ' (e.g. gzip) - ' Dim reportBytes As Byte() = report.Contents - ' - ' ' Deflate a zipped binary report for further processing. - ' Dim deflatedReportText As String = Encoding.UTF8.GetString( _ - ' MediaUtilities.DeflateGZipData(report.Contents)) - Dim utilities As New ReportUtilities(user) - utilities.ReportVersion = "v201309" - utilities.DownloadClientReport(query, DownloadFormat.GZIPPED_CSV.ToString(), filePath) - Console.WriteLine("Report was downloaded to '{0}'.", filePath) - Catch ex As Exception - Throw New System.ApplicationException("Failed to download report.", ex) - End Try - - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Reporting/GetReportFields.vb b/examples/AdXBuyer/Vb/v201309/Reporting/GetReportFields.vb deleted file mode 100644 index 43ceb9dd060..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Reporting/GetReportFields.vb +++ /dev/null @@ -1,97 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets report fields. - ''' - ''' Tags: ReportDefinitionService.getReportFields - ''' - Public Class GetReportFields - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetReportFields - Console.WriteLine(codeExample.Description) - Try - Dim reportType As ReportDefinitionReportType = [Enum].Parse( _ - GetType(ReportDefinitionReportType), "INSERT_REPORT_TYPE_HERE") - codeExample.Run(New AdWordsUser, reportType) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets report fields." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' The report type to be run. - Public Sub Run(ByVal user As AdWordsUser, ByVal reportType As ReportDefinitionReportType) - ' Get the ReportDefinitionService. - Dim reportDefinitionService As ReportDefinitionService = user.GetService( _ - AdWordsService.v201309.ReportDefinitionService) - - ' The type of the report to get fields for. - ' E.g.: KEYWORDS_PERFORMANCE_REPORT - - Try - ' Get the report fields. - Dim reportDefinitionFields As ReportDefinitionField() = _ - reportDefinitionService.getReportFields(reportType) - - If ((Not reportDefinitionFields Is Nothing) AndAlso _ - (reportDefinitionFields.Length > 0)) Then - ' Display report fields. - Console.WriteLine("The report type '{0}' contains the following fields:", reportType) - - For Each reportDefinitionField As ReportDefinitionField In reportDefinitionFields - Console.Write("- {0} ({1})", reportDefinitionField.fieldName, _ - reportDefinitionField.fieldType) - If (Not reportDefinitionField.enumValues Is Nothing) Then - Console.Write(" := [{0}]", String.Join(", ", reportDefinitionField.enumValues)) - End If - Console.WriteLine() - Next - Else - Console.WriteLine("This report type has no fields.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to retrieve fields for report type.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb b/examples/AdXBuyer/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb deleted file mode 100644 index 53f2d3d8c5a..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Targeting/AddCampaignTargetingCriteria.vb +++ /dev/null @@ -1,138 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example adds various types of targeting criteria to a campaign. - ''' To get a list of campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignCriterionService.mutate - ''' - Public Class AddCampaignTargetingCriteria - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New AddCampaignTargetingCriteria - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example adds various types of targeting criteria to a campaign. To " & _ - "get a list of campaigns, run GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign to which targeting criteria - ''' are added. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignCriterionService. - Dim campaignCriterionService As CampaignCriterionService = user.GetService( _ - AdWordsService.v201309.CampaignCriterionService) - - ' Create language criteria. - ' See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - ' for a detailed list of language codes. - Dim language1 As New Language - language1.id = 1002 ' French - Dim languageCriterion1 As New CampaignCriterion - languageCriterion1.campaignId = campaignId - languageCriterion1.criterion = language1 - - Dim language2 As New Language - language2.id = 1005 ' Japanese - Dim languageCriterion2 As New CampaignCriterion - languageCriterion2.campaignId = campaignId - languageCriterion2.criterion = language2 - - ' Create location criteria. - ' See http://code.google.com/apis/adwords/docs/appendix/countrycodes.html - ' for a detailed list of country codes. - Dim location1 As New Location - location1.id = 2840 ' USA - Dim locationCriterion1 As New CampaignCriterion - locationCriterion1.campaignId = campaignId - locationCriterion1.criterion = location1 - - Dim location2 As New Location - location2.id = 2392 ' Japan - Dim locationCriterion2 As New CampaignCriterion - locationCriterion2.campaignId = campaignId - locationCriterion2.criterion = location2 - - ' Add a negative campaign placement. - Dim negativeCriterion As New NegativeCampaignCriterion() - negativeCriterion.campaignId = campaignId - - Dim placement As New Placement() - placement.url = "http://mars.google.com" - - negativeCriterion.criterion = placement - - Dim criteria() As CampaignCriterion = {languageCriterion1, languageCriterion2, _ - locationCriterion1, locationCriterion2, negativeCriterion} - - Dim operations As New List(Of CampaignCriterionOperation) - - For Each criterion As CampaignCriterion In criteria - Dim operation As New CampaignCriterionOperation - operation.operator = [Operator].ADD - operation.operand = criterion - operations.Add(operation) - Next - - Try - ' Set the campaign targets. - Dim retVal As CampaignCriterionReturnValue = campaignCriterionService.mutate( _ - operations.ToArray()) - - ' Display the results. - If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing)) Then - For Each criterion As CampaignCriterion In retVal.value - Console.WriteLine("Campaign criterion of type '{0}' was set to campaign with id " & _ - "= '{1}'.", criterion.criterion.CriterionType, criterion.campaignId) - Next - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to set campaign criteria.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb b/examples/AdXBuyer/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb deleted file mode 100644 index e5337c59f33..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Targeting/GetCampaignTargetingCriteria.vb +++ /dev/null @@ -1,123 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets all targeting criteria for a campaign. To set - ''' campaign targeting criteria, run AddCampaignTargetingCriteria.vb. To get - ''' campaigns, run GetCampaigns.vb. - ''' - ''' Tags: CampaignCriterionService.get - ''' - Public Class GetCampaignTargetingCriteria - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetCampaignTargetingCriteria - Console.WriteLine(codeExample.Description) - Try - Dim campaignId As Long = Long.Parse("INSERT_CAMPAIGN_ID_HERE") - codeExample.Run(New AdWordsUser, campaignId) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets all targeting criteria for a campaign. To set campaign " & _ - "targeting criteria, run AddCampaignTargetingCriteria.vb. To get campaigns, run " & _ - "GetCampaigns.vb." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - ''' Id of the campaign from which targeting - ''' criteria are retrieved. - Public Sub Run(ByVal user As AdWordsUser, ByVal campaignId As Long) - ' Get the CampaignCriterionService. - Dim campaignCriterionService As CampaignCriterionService = user.GetService( _ - AdWordsService.v201309.CampaignCriterionService) - - ' Create the selector. - Dim selector As New Selector - selector.fields = New String() {"Id", "CriteriaType", "PlacementUrl"} - - ' Set the filters. - Dim campaignPredicate As New Predicate - campaignPredicate.field = "CampaignId" - campaignPredicate.operator = PredicateOperator.EQUALS - campaignPredicate.values = New String() {campaignId.ToString} - - Dim placementPredicate As New Predicate - placementPredicate.field = "CriteriaType" - placementPredicate.operator = PredicateOperator.EQUALS - placementPredicate.values = New String() {"PLACEMENT"} - - selector.predicates = New Predicate() {campaignPredicate, placementPredicate} - - ' Set the selector paging. - selector.paging = New Paging - - Dim offset As Integer = 0 - Dim pageSize As Integer = 500 - - Dim page As New CampaignCriterionPage - - Try - Do - selector.paging.startIndex = offset - selector.paging.numberResults = pageSize - - ' Get all campaign targets. - page = campaignCriterionService.get(selector) - - ' Display the results. - If ((Not page Is Nothing) AndAlso (Not page.entries Is Nothing)) Then - Dim i As Integer = offset - For Each campaignCriterion As CampaignCriterion In page.entries - Dim placement As Placement = campaignCriterion.criterion - Console.WriteLine("{0}) Placement with ID {1} and url {2} was found.", i, _ - placement.id, placement.url) - i += 1 - Next - End If - offset = offset + pageSize - Loop While (offset < page.totalNumEntries) - Console.WriteLine("Number of placements found: {0}", page.totalNumEntries) - Catch ex As Exception - Throw New System.ApplicationException("Failed to get placements.", ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb b/examples/AdXBuyer/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb deleted file mode 100644 index 2c6b08eeb80..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Targeting/GetTargetableLanguagesAndCarriers.vb +++ /dev/null @@ -1,100 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example illustrates how to retrieve all carriers and languages - ''' available for targeting. - ''' - ''' Tags: ConstantDataService.getCarrierCriterion - ''' Tags: ConstantDataService.getLanguageCriterion - ''' - Public Class GetTargetableLanguagesAndCarriers - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New GetTargetableLanguagesAndCarriers - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example illustrates how to retrieve all carriers and languages" & _ - "available for targeting." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the ConstantDataService. - Dim constantDataService As ConstantDataService = user.GetService( _ - AdWordsService.v201309.ConstantDataService) - - Try - ' Get all carriers. - Dim carriers As Carrier() = constantDataService.getCarrierCriterion - - ' Display the results. - If (Not carriers Is Nothing) Then - For Each carrier As Carrier In carriers - Console.WriteLine("Carrier name is '{0}', ID is {1} and country code is '{2}'.", _ - carrier.name, carrier.id, carrier.countryCode) - Next - Else - Console.WriteLine("No carriers were retrieved.") - End If - - ' Get all languages. - Dim languages As Language() = constantDataService.getLanguageCriterion - - ' Display the results. - If (Not languages Is Nothing) Then - For Each language As Language In languages - Console.WriteLine("Language name is '{0}', ID is {1} and code is '{2}'.", _ - language.name, language.id, language.code) - Next - Else - Console.WriteLine("No languages were found.") - End If - Catch ex As Exception - Throw New System.ApplicationException("Failed to get targetable carriers and languages.", _ - ex) - End Try - End Sub - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201309/Targeting/LookupLocation.vb b/examples/AdXBuyer/Vb/v201309/Targeting/LookupLocation.vb deleted file mode 100644 index d0e5d9faf9f..00000000000 --- a/examples/AdXBuyer/Vb/v201309/Targeting/LookupLocation.vb +++ /dev/null @@ -1,121 +0,0 @@ -' Copyright 2013, Google Inc. All Rights Reserved. -' -' Licensed under the Apache License, Version 2.0 (the "License"); -' you may not use this file except in compliance with the License. -' You may obtain a copy of the License at -' -' http://www.apache.org/licenses/LICENSE-2.0 -' -' Unless required by applicable law or agreed to in writing, software -' distributed under the License is distributed on an "AS IS" BASIS, -' WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -' See the License for the specific language governing permissions and -' limitations under the License. - -' Author: api.anash@gmail.com (Anash P. Oommen) - -Imports Google.Api.Ads.AdWords.Lib -Imports Google.Api.Ads.AdWords.v201309 - -Imports System -Imports System.Collections.Generic -Imports System.IO - -Namespace Google.Api.Ads.AdWords.Examples.VB.v201309 - ''' - ''' This code example gets location criteria by name. - ''' - ''' Tags: LocationCriterionService.get - ''' - Public Class LookupLocation - Inherits ExampleBase - ''' - ''' Main method, to run this code example as a standalone application. - ''' - ''' The command line arguments. - Public Shared Sub Main(ByVal args As String()) - Dim codeExample As New LookupLocation - Console.WriteLine(codeExample.Description) - Try - codeExample.Run(New AdWordsUser) - Catch ex As Exception - Console.WriteLine("An exception occurred while running this code example. {0}", _ - ExampleUtilities.FormatException(ex)) - End Try - End Sub - - ''' - ''' Returns a description about the code example. - ''' - Public Overrides ReadOnly Property Description() As String - Get - Return "This code example gets location criteria by name." - End Get - End Property - - ''' - ''' Runs the code example. - ''' - ''' The AdWords user. - Public Sub Run(ByVal user As AdWordsUser) - ' Get the LocationCriterionService. - Dim locationCriterionService As LocationCriterionService = user.GetService( _ - AdWordsService.v201309.LocationCriterionService) - - Dim locationNames As String() = New String() {"Paris", "Quebec", "Spain", "Deutschland"} - - Dim selector As New Selector - selector.fields = New String() {"Id", "LocationName", "CanonicalName", "DisplayType", _ - "ParentLocations", "Reach", "TargetingStatus"} - - ' Location names must match exactly, only EQUALS and IN are supported. - Dim predicate1 As New Predicate - predicate1.field = "LocationName" - predicate1.operator = PredicateOperator.IN - predicate1.values = locationNames - - ' Set the locale of the returned location names. - Dim predicate2 As New Predicate - predicate2.field = "Locale" - predicate2.operator = PredicateOperator.EQUALS - predicate2.values = New String() {"en"} - - selector.predicates = New Predicate() {predicate1, predicate2} - - Try - ' Make the get request. - Dim locationCriteria As LocationCriterion() = locationCriterionService.get(selector) - - ' Display the resulting location criteria. - For Each locationCriterion As LocationCriterion In locationCriteria - Dim parentLocations As String = "" - If ((Not locationCriterion.location Is Nothing) AndAlso ( _ - Not locationCriterion.location.parentLocations Is Nothing)) Then - For Each location As Location In locationCriterion.location.parentLocations - parentLocations = (parentLocations & Me.GetLocationString(location) & ", ") - Next - parentLocations.TrimEnd(New Char() {","c, " "c}) - Else - parentLocations = "N/A" - End If - Console.WriteLine("The search term '{0}' returned the location '{1}' of type '{2}' " & _ - "with parent locations '{3}', reach '{4}' and targeting status '{5}.", _ - locationCriterion.searchTerm, locationCriterion.location.locationName, _ - locationCriterion.location.displayType, parentLocations, locationCriterion.reach, _ - locationCriterion.location.targetingStatus) - Next - Catch ex As Exception - Throw New System.ApplicationException("Failed to get location criteria.", ex) - End Try - End Sub - - ''' - ''' Gets a string representation for a location. - ''' - ''' The location - ''' - Public Function GetLocationString(ByVal location As Location) As String - Return String.Format("{0} ({1})", location.locationName, location.displayType) - End Function - End Class -End Namespace diff --git a/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteAdGroup.vb b/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteAdGroup.vb index 4f693c365cc..c97b8993d8b 100644 --- a/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteAdGroup.vb +++ b/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteAdGroup.vb @@ -68,10 +68,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201402 ' Create ad group with DELETED status. Dim adGroup As New AdGroup adGroup.id = adGroupId - - ' When deleting an ad group, rename it to avoid name collisions with new - ' ad groups. - adGroup.name = "Deleted AdGroup - " + ExampleUtilities.GetRandomString adGroup.status = AdGroupStatus.DELETED ' Create the operation. diff --git a/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteCampaign.vb b/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteCampaign.vb index 0cec143fcfb..de84b7638a2 100644 --- a/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteCampaign.vb +++ b/examples/AdXBuyer/Vb/v201402/BasicOperations/DeleteCampaign.vb @@ -69,10 +69,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201402 ' Create campaign with DELETED status. Dim campaign As New Campaign campaign.id = campaignId - - ' When deleting a campaign, rename it to avoid name collisions with new - ' campaigns. - campaign.name = "Deleted Campaign - " + ExampleUtilities.GetRandomString campaign.status = CampaignStatus.DELETED ' Create the operation. diff --git a/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveAdGroup.vb b/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveAdGroup.vb index 934b4c96e76..57727cea87a 100644 --- a/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveAdGroup.vb +++ b/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveAdGroup.vb @@ -68,10 +68,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 ' Create ad group with REMOVED status. Dim adGroup As New AdGroup adGroup.id = adGroupId - - ' When removing an ad group, rename it to avoid name collisions with new - ' ad groups. - adGroup.name = "Removed AdGroup - " + ExampleUtilities.GetRandomString adGroup.status = AdGroupStatus.REMOVED ' Create the operation. diff --git a/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveCampaign.vb b/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveCampaign.vb index cb4c0275337..4c11e36ebf8 100644 --- a/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveCampaign.vb +++ b/examples/AdXBuyer/Vb/v201406/BasicOperations/RemoveCampaign.vb @@ -69,10 +69,6 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 ' Create campaign with REMOVED status. Dim campaign As New Campaign campaign.id = campaignId - - ' When removing a campaign, rename it to avoid name collisions with new - ' campaigns. - campaign.name = "Removed Campaign - " + ExampleUtilities.GetRandomString campaign.status = CampaignStatus.REMOVED ' Create the operation. diff --git a/examples/AdXBuyer/Vb/v201406/BasicOperations/RemovePlacement.vb b/examples/AdXBuyer/Vb/v201406/BasicOperations/RemovePlacement.vb index cbb013b7b51..d7b716e9da8 100644 --- a/examples/AdXBuyer/Vb/v201406/BasicOperations/RemovePlacement.vb +++ b/examples/AdXBuyer/Vb/v201406/BasicOperations/RemovePlacement.vb @@ -23,7 +23,7 @@ Imports System.IO Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 ''' - ''' This code example deletes a placement using the 'REMOVE' operator. To get + ''' This code example removes a placement using the 'REMOVE' operator. To get ''' placements, run GetPlacements.vb. ''' ''' Tags: AdGroupCriterionService.mutate @@ -52,7 +52,7 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 ''' Public Overrides ReadOnly Property Description() As String Get - Return "This code example deletes a placement using the 'REMOVE' operator. To get " & _ + Return "This code example removes a placement using the 'REMOVE' operator. To get " & _ "placements, run GetPlacements.vb." End Get End Property @@ -63,7 +63,7 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 ''' The AdWords user. ''' Id of the ad group that contains the keyword. ''' - ''' Id of the placement to be deleted. + ''' Id of the placement to be removed. Public Sub Run(ByVal user As AdWordsUser, ByVal adGroupId As Long, ByVal placementId As Long) ' Get the AdGroupCriterionService. Dim adGroupCriterionService As AdGroupCriterionService = user.GetService( _ @@ -85,21 +85,21 @@ Namespace Google.Api.Ads.AdWords.Examples.VB.v201406 operation.operator = [Operator].REMOVE Try - ' Delete the placement. + ' Remove the placement. Dim retVal As AdGroupCriterionReturnValue = adGroupCriterionService.mutate( _ New AdGroupCriterionOperation() {operation}) ' Display the results. If ((Not retVal Is Nothing) AndAlso (Not retVal.value Is Nothing) AndAlso _ (retVal.value.Length > 0)) Then - Dim deletedPlacement As AdGroupCriterion = retVal.value(0) + Dim removedPlacement As AdGroupCriterion = retVal.value(0) Console.WriteLine("Placement with ad group id = ""{0}"" and id = ""{1}"" was " & _ - "deleted.", deletedPlacement.adGroupId, deletedPlacement.criterion.id) + "removed.", removedPlacement.adGroupId, removedPlacement.criterion.id) Else - Console.WriteLine("No placement was deleted.") + Console.WriteLine("No placement was removed.") End If Catch ex As Exception - Console.WriteLine("Failed to delete placement. Exception says ""{0}""", ex.Message) + Console.WriteLine("Failed to remove placement. Exception says ""{0}""", ex.Message) End Try End Sub End Class diff --git a/examples/Dfa/CSharp/OAuth/Properties/Properties.cs b/examples/Dfa/CSharp/OAuth/Properties/Properties.cs index e227e002fbb..4be9de93061 100644 --- a/examples/Dfa/CSharp/OAuth/Properties/Properties.cs +++ b/examples/Dfa/CSharp/OAuth/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("DoubleClick for Advertisers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/Dfa/CSharp/Properties/Properties.cs b/examples/Dfa/CSharp/Properties/Properties.cs index e227e002fbb..4be9de93061 100644 --- a/examples/Dfa/CSharp/Properties/Properties.cs +++ b/examples/Dfa/CSharp/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("DoubleClick for Advertisers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/Dfa/Wcf/WcfService/Properties/Properties.cs b/examples/Dfa/Wcf/WcfService/Properties/Properties.cs index e227e002fbb..4be9de93061 100644 --- a/examples/Dfa/Wcf/WcfService/Properties/Properties.cs +++ b/examples/Dfa/Wcf/WcfService/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("DoubleClick for Advertisers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/Dfa/Wcf/WcfServiceConsumer/Properties/Properties.cs b/examples/Dfa/Wcf/WcfServiceConsumer/Properties/Properties.cs index e227e002fbb..4be9de93061 100644 --- a/examples/Dfa/Wcf/WcfServiceConsumer/Properties/Properties.cs +++ b/examples/Dfa/Wcf/WcfServiceConsumer/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("DoubleClick for Advertisers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/Dfp/CSharp/OAuth/Properties/Properties.cs b/examples/Dfp/CSharp/OAuth/Properties/Properties.cs index 0d4995b8074..aaf32aca627 100644 --- a/examples/Dfp/CSharp/OAuth/Properties/Properties.cs +++ b/examples/Dfp/CSharp/OAuth/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("Google's DoubleClick for Publishers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/examples/Dfp/CSharp/Properties/Properties.cs b/examples/Dfp/CSharp/Properties/Properties.cs index 0d4995b8074..aaf32aca627 100644 --- a/examples/Dfp/CSharp/Properties/Properties.cs +++ b/examples/Dfp/CSharp/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("Google's DoubleClick for Publishers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/src/AdWords/AdWords.csproj b/src/AdWords/AdWords.csproj index cefdaff0e6a..23583b823b7 100644 --- a/src/AdWords/AdWords.csproj +++ b/src/AdWords/AdWords.csproj @@ -55,7 +55,6 @@ - @@ -73,9 +72,6 @@ - - - diff --git a/src/AdWords/Properties/Properties.cs b/src/AdWords/Properties/Properties.cs index de944c8264a..3f01f1a16a9 100644 --- a/src/AdWords/Properties/Properties.cs +++ b/src/AdWords/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("AdWords API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/src/AdWords/Util/v201309/MapUtilities.cs b/src/AdWords/Util/v201309/MapUtilities.cs deleted file mode 100644 index 6e5c0f4e680..00000000000 --- a/src/AdWords/Util/v201309/MapUtilities.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.Text; - -namespace Google.Api.Ads.AdWords.Util.v201309 { - /// - /// Provides utility functions for creating and handling - /// String_StringMapEntry[] fields. - /// - public class MapUtilities { - /// - /// Dictionary to hold the key-value pairs. - /// - Dictionary values = new Dictionary(); - - /// - /// Adds the specified key to the map. - /// - /// The settings key. - /// The settings value. - /// The maputils instance, for chaining calls. - public MapUtilities Add(string key, string value) { - values[key] = value; - return this; - } - - /// - /// Adds the specified string map entry to the map. - /// - /// The string map entry. - /// The maputils instance, for chaining calls. - public MapUtilities AddEntry(String_StringMapEntry entry) { - values[entry.key] = entry.value; - return this; - } - - /// - /// Adds an array of string map entries to the map. - /// - /// The list of string map entries. - /// The maputils instance, for chaining calls. - public MapUtilities AddEntries(String_StringMapEntry[] entries) { - foreach (String_StringMapEntry entry in entries) { - AddEntry(entry); - } - return this; - } - - /// - /// Returns the settings as a list of string map entries. - /// - /// The settings, as a list of string map entries. - public String_StringMapEntry[] AsArray() { - List entries = new List(); - foreach (string key in values.Keys) { - String_StringMapEntry entry = new String_StringMapEntry(); - entry.key = key; - entry.value = values[key]; - entries.Add(entry); - } - return entries.ToArray(); - } - - /// - /// Returns the settings as a dictionary. - /// - /// The dictionary that contains the settings. - public Dictionary AsDict() { - return values; - } - } -} diff --git a/src/AdWords/v201309/AdWordsApi.cs b/src/AdWords/v201309/AdWordsApi.cs deleted file mode 100644 index 907b4f6bd90..00000000000 --- a/src/AdWords/v201309/AdWordsApi.cs +++ /dev/null @@ -1,31152 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -#pragma warning disable 1591 - -namespace Google.Api.Ads.AdWords.v201309 { - using Google.Api.Ads.AdWords.Headers; - using Google.Api.Ads.AdWords.Lib; - - using System.Web.Services.Protocols; - using System; - using System.ComponentModel; - using System.Diagnostics; - using System.Web.Services; - using System.Xml.Serialization; - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "BudgetServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class BudgetService : AdWordsSoapClient, IBudgetService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public BudgetService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/BudgetService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual BudgetPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((BudgetPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual BudgetReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -BudgetOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((BudgetReturnValue) (results[0])); - } - } - - - - - - - - - - - - - - - - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetReturnValue))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignAdExtensionReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignCriterionReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignFeedReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ConversionTrackerReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExperimentReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedItemReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedMappingReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OfflineConversionFeedReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedCriterionReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedSetReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupBidModifierReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingStrategyReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetOrderReturnValue))] - public abstract partial class ListReturnValue { - private string listReturnValueTypeField; - - [System.Xml.Serialization.XmlElementAttribute("ListReturnValue.Type")] - public string ListReturnValueType { - get { return this.listReturnValueTypeField; } - set { this.listReturnValueTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BudgetReturnValue : ListReturnValue { - private Budget[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public Budget[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Budget { - private long budgetIdField; - - private bool budgetIdFieldSpecified; - - private string nameField; - - private BudgetBudgetPeriod periodField; - - private bool periodFieldSpecified; - - private Money amountField; - - private BudgetBudgetDeliveryMethod deliveryMethodField; - - private bool deliveryMethodFieldSpecified; - - private int referenceCountField; - - private bool referenceCountFieldSpecified; - - private bool isExplicitlySharedField; - - private bool isExplicitlySharedFieldSpecified; - - private BudgetBudgetStatus statusField; - - private bool statusFieldSpecified; - - public long budgetId { - get { return this.budgetIdField; } - set { - this.budgetIdField = value; - this.budgetIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool budgetIdSpecified { - get { return this.budgetIdFieldSpecified; } - set { this.budgetIdFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public BudgetBudgetPeriod period { - get { return this.periodField; } - set { - this.periodField = value; - this.periodSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool periodSpecified { - get { return this.periodFieldSpecified; } - set { this.periodFieldSpecified = value; } - } - - public Money amount { - get { return this.amountField; } - set { this.amountField = value; } - } - - public BudgetBudgetDeliveryMethod deliveryMethod { - get { return this.deliveryMethodField; } - set { - this.deliveryMethodField = value; - this.deliveryMethodSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryMethodSpecified { - get { return this.deliveryMethodFieldSpecified; } - set { this.deliveryMethodFieldSpecified = value; } - } - - public int referenceCount { - get { return this.referenceCountField; } - set { - this.referenceCountField = value; - this.referenceCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool referenceCountSpecified { - get { return this.referenceCountFieldSpecified; } - set { this.referenceCountFieldSpecified = value; } - } - - public bool isExplicitlyShared { - get { return this.isExplicitlySharedField; } - set { - this.isExplicitlySharedField = value; - this.isExplicitlySharedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isExplicitlySharedSpecified { - get { return this.isExplicitlySharedFieldSpecified; } - set { this.isExplicitlySharedFieldSpecified = value; } - } - - public BudgetBudgetStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Budget.BudgetPeriod", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BudgetBudgetPeriod { - DAILY - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Money : ComparableValue { - private long microAmountField; - - private bool microAmountFieldSpecified; - - public long microAmount { - get { return this.microAmountField; } - set { - this.microAmountField = value; - this.microAmountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool microAmountSpecified { - get { return this.microAmountFieldSpecified; } - set { this.microAmountFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NumberValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DoubleValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Money))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class ComparableValue { - private string comparableValueTypeField; - - [System.Xml.Serialization.XmlElementAttribute("ComparableValue.Type")] - public string ComparableValueType { - get { return this.comparableValueTypeField; } - set { this.comparableValueTypeField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DoubleValue))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class NumberValue : ComparableValue { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class LongValue : NumberValue { - private long numberField; - - private bool numberFieldSpecified; - - public long number { - get { return this.numberField; } - set { - this.numberField = value; - this.numberSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numberSpecified { - get { return this.numberFieldSpecified; } - set { this.numberFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DoubleValue : NumberValue { - private double numberField; - - private bool numberFieldSpecified; - - public double number { - get { return this.numberField; } - set { - this.numberField = value; - this.numberSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numberSpecified { - get { return this.numberFieldSpecified; } - set { this.numberFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Budget.BudgetDeliveryMethod", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BudgetBudgetDeliveryMethod { - STANDARD, - ACCELERATED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Budget.BudgetStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BudgetBudgetStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DatabaseError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(StringLengthError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SizeLimitError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SelectorError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequiredError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RejectedError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReadOnlyError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RateExceededError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RangeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(QuotaCheckError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperationAccessDenied))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NullError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NotWhitelistedError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NotEmptyError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NewEntityCreationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InternalApiError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(IdError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityNotFound))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityCountLimitExceeded))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DistinctError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DateError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClientTermsError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AuthorizationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AuthenticationError))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RegionCodeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PagingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatorError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignAdExtensionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BetaError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdxError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExtensionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(QueryError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignCriterionLimitExceeded))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignCriterionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(StatsQueryError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SettingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(QuotaError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ForwardCompatibilityError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingTransitionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingErrors))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FunctionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CollectionSizeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignFeedError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ConversionTrackingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomerSyncError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PolicyViolationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MediaError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdCountLimitExceeded))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DataError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExperimentServiceError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedItemError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityAccessDenied))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedMappingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(GeoLocationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LocationCriterionServiceError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManagedCustomerServiceError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudioError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionPolicyError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(JobError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionLimitExceeded))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BulkMutateJobError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupServiceError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExtensionOverrideError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OfflineConversionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MatchesRegexError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CurrencyCodeError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportDefinitionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedCriterionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedSetError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TrafficEstimatorError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingIdeaError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TimeSeriesError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SortingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SegmentationError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PersistenceError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityNotFoundError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdsApiError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AccessError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoBudgetError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoBiddingError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoServiceError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressBusinessError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PromotionError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdParamPolicyError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdParamError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AlertError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingStrategyError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CustomerOrderLineError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetOrderError))] - public abstract partial class ApiError { - private string fieldPathField; - - private string triggerField; - - private string errorStringField; - - private string apiErrorTypeField; - - public string fieldPath { - get { return this.fieldPathField; } - set { this.fieldPathField = value; } - } - - public string trigger { - get { return this.triggerField; } - set { this.triggerField = value; } - } - - public string errorString { - get { return this.errorStringField; } - set { this.errorStringField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("ApiError.Type")] - public string ApiErrorType { - get { return this.apiErrorTypeField; } - set { this.apiErrorTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DatabaseError : ApiError { - private DatabaseErrorReason reasonField; - - private bool reasonFieldSpecified; - - public DatabaseErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DatabaseError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum DatabaseErrorReason { - CONCURRENT_MODIFICATION, - PERMISSION_DENIED, - CAMPAIGN_PRODUCT_NOT_SUPPORTED, - DUPLICATE_KEY, - DATABASE_ERROR, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class StringLengthError : ApiError { - private StringLengthErrorReason reasonField; - - private bool reasonFieldSpecified; - - public StringLengthErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StringLengthError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum StringLengthErrorReason { - TOO_SHORT, - TOO_LONG - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SizeLimitError : ApiError { - private SizeLimitErrorReason reasonField; - - private bool reasonFieldSpecified; - - public SizeLimitErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SizeLimitError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SizeLimitErrorReason { - REQUEST_SIZE_LIMIT_EXCEEDED, - RESPONSE_SIZE_LIMIT_EXCEEDED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SelectorError : ApiError { - private SelectorErrorReason reasonField; - - private bool reasonFieldSpecified; - - public SelectorErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SelectorError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SelectorErrorReason { - INVALID_FIELD_NAME, - MISSING_FIELDS, - MISSING_PREDICATES, - OPERATOR_DOES_NOT_SUPPORT_MULTIPLE_VALUES, - INVALID_PREDICATE_ENUM_VALUE, - MISSING_PREDICATE_OPERATOR, - MISSING_PREDICATE_VALUES, - INVALID_PREDICATE_FIELD_NAME, - INVALID_PREDICATE_OPERATOR, - INVALID_FIELD_SELECTION, - INVALID_PREDICATE_VALUE, - INVALID_SORT_FIELD_NAME, - SELECTOR_ERROR, - FILTER_BY_DATE_RANGE_NOT_SUPPORTED, - START_INDEX_IS_TOO_HIGH, - UNKNOWN_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RequiredError : ApiError { - private RequiredErrorReason reasonField; - - private bool reasonFieldSpecified; - - public RequiredErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequiredError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RequiredErrorReason { - REQUIRED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RequestError : ApiError { - private RequestErrorReason reasonField; - - private bool reasonFieldSpecified; - - public RequestErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RequestErrorReason { - UNKNOWN, - INVALID_INPUT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RejectedError : ApiError { - private RejectedErrorReason reasonField; - - private bool reasonFieldSpecified; - - public RejectedErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RejectedError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RejectedErrorReason { - UNKNOWN_VALUE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ReadOnlyError : ApiError { - private ReadOnlyErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ReadOnlyErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReadOnlyError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ReadOnlyErrorReason { - READ_ONLY - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RateExceededError : ApiError { - private RateExceededErrorReason reasonField; - - private bool reasonFieldSpecified; - - private string rateNameField; - - private string rateScopeField; - - private int retryAfterSecondsField; - - private bool retryAfterSecondsFieldSpecified; - - public RateExceededErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - public string rateName { - get { return this.rateNameField; } - set { this.rateNameField = value; } - } - - public string rateScope { - get { return this.rateScopeField; } - set { this.rateScopeField = value; } - } - - public int retryAfterSeconds { - get { return this.retryAfterSecondsField; } - set { - this.retryAfterSecondsField = value; - this.retryAfterSecondsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool retryAfterSecondsSpecified { - get { return this.retryAfterSecondsFieldSpecified; } - set { this.retryAfterSecondsFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RateExceededError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RateExceededErrorReason { - RATE_EXCEEDED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RangeError : ApiError { - private RangeErrorReason reasonField; - - private bool reasonFieldSpecified; - - public RangeErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RangeError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RangeErrorReason { - TOO_LOW, - TOO_HIGH - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class QuotaCheckError : ApiError { - private QuotaCheckErrorReason reasonField; - - private bool reasonFieldSpecified; - - public QuotaCheckErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "QuotaCheckError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum QuotaCheckErrorReason { - INVALID_TOKEN_HEADER, - ACCOUNT_DELINQUENT, - ACCOUNT_INACCESSIBLE, - ACCOUNT_INACTIVE, - INCOMPLETE_SIGNUP, - INCOMPLETE_SIGNUP_LATEST_ADWORDS_API_TNC_NOT_AGREED, - INCOMPLETE_SIGNUP_NO_BILLING_INFO, - INCOMPLETE_SIGNUP_USER_INFO_MISSING, - INCOMPLETE_SIGNUP_USER_INFO_PENDING, - INCOMPLETE_SIGNUP_USER_INFO_REJECTED, - MONTHLY_BUDGET_REACHED, - QUOTA_EXCEEDED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OperationAccessDenied : ApiError { - private OperationAccessDeniedReason reasonField; - - private bool reasonFieldSpecified; - - public OperationAccessDeniedReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OperationAccessDenied.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum OperationAccessDeniedReason { - ACTION_NOT_PERMITTED, - ADD_OPERATION_NOT_PERMITTED, - REMOVE_OPERATION_NOT_PERMITTED, - SET_OPERATION_NOT_PERMITTED, - MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT, - OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class NullError : ApiError { - private NullErrorReason reasonField; - - private bool reasonFieldSpecified; - - public NullErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NullError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum NullErrorReason { - NULL_CONTENT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class NotWhitelistedError : ApiError { - private NotWhitelistedErrorReason reasonField; - - private bool reasonFieldSpecified; - - public NotWhitelistedErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NotWhitelistedError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum NotWhitelistedErrorReason { - CUSTOMER_NOT_WHITELISTED_FOR_API - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class NotEmptyError : ApiError { - private NotEmptyErrorReason reasonField; - - private bool reasonFieldSpecified; - - public NotEmptyErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NotEmptyError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum NotEmptyErrorReason { - EMPTY_LIST - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class NewEntityCreationError : ApiError { - private NewEntityCreationErrorReason reasonField; - - private bool reasonFieldSpecified; - - public NewEntityCreationErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NewEntityCreationError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum NewEntityCreationErrorReason { - CANNOT_SET_ID_FOR_ADD - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class InternalApiError : ApiError { - private InternalApiErrorReason reasonField; - - private bool reasonFieldSpecified; - - public InternalApiErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InternalApiError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum InternalApiErrorReason { - UNEXPECTED_INTERNAL_API_ERROR, - UNKNOWN, - DOWNTIME - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class IdError : ApiError { - private IdErrorReason reasonField; - - private bool reasonFieldSpecified; - - public IdErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "IdError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum IdErrorReason { - NOT_FOUND - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class EntityNotFound : ApiError { - private EntityNotFoundReason reasonField; - - private bool reasonFieldSpecified; - - public EntityNotFoundReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityNotFound.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum EntityNotFoundReason { - INVALID_ID - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignCriterionLimitExceeded))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdCountLimitExceeded))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionLimitExceeded))] - public partial class EntityCountLimitExceeded : ApiError { - private EntityCountLimitExceededReason reasonField; - - private bool reasonFieldSpecified; - - private string enclosingIdField; - - private int limitField; - - private bool limitFieldSpecified; - - private string accountLimitTypeField; - - private int existingCountField; - - private bool existingCountFieldSpecified; - - public EntityCountLimitExceededReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - public string enclosingId { - get { return this.enclosingIdField; } - set { this.enclosingIdField = value; } - } - - public int limit { - get { return this.limitField; } - set { - this.limitField = value; - this.limitSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool limitSpecified { - get { return this.limitFieldSpecified; } - set { this.limitFieldSpecified = value; } - } - - public string accountLimitType { - get { return this.accountLimitTypeField; } - set { this.accountLimitTypeField = value; } - } - - public int existingCount { - get { return this.existingCountField; } - set { - this.existingCountField = value; - this.existingCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool existingCountSpecified { - get { return this.existingCountFieldSpecified; } - set { this.existingCountFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityCountLimitExceeded.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum EntityCountLimitExceededReason { - ACCOUNT_LIMIT, - CAMPAIGN_LIMIT, - ADGROUP_LIMIT, - ADGROUP_TEXT_AD_LIMIT, - ADGROUP_DISPLAY_AD_LIMIT, - MATCHING_FUNCTION_LIMIT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DistinctError : ApiError { - private DistinctErrorReason reasonField; - - private bool reasonFieldSpecified; - - public DistinctErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DistinctError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum DistinctErrorReason { - DUPLICATE_ELEMENT, - DUPLICATE_TYPE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DateError : ApiError { - private DateErrorReason reasonField; - - private bool reasonFieldSpecified; - - public DateErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DateError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum DateErrorReason { - INVALID_FIELD_VALUES_IN_DATE, - INVALID_FIELD_VALUES_IN_DATE_TIME, - INVALID_STRING_DATE, - INVALID_STRING_DATE_RANGE, - INVALID_STRING_DATE_TIME, - EARLIER_THAN_MINIMUM_DATE, - LATER_THAN_MAXIMUM_DATE, - DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE, - DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ClientTermsError : ApiError { - private ClientTermsErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ClientTermsErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ClientTermsError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ClientTermsErrorReason { - INCOMPLETE_SIGNUP_CURRENT_ADWORDS_TNC_NOT_AGREED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BudgetError : ApiError { - private BudgetErrorReason reasonField; - - private bool reasonFieldSpecified; - - public BudgetErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BudgetError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BudgetErrorReason { - BUDGET_DELETED, - BUDGET_ERROR, - BUDGET_IN_USE, - BUDGET_PERIOD_NOT_AVAILABLE, - CANNOT_EDIT_SHARED_BUDGET, - CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_BUDGET, - CANNOT_UPDATE_BUDGET_TO_IMPLICITLY_SHARED, - CANNOT_USE_IMPLICITLY_SHARED_BUDGET_WITH_MULTIPLE_CAMPAIGNS, - DUPLICATE_NAME, - MONEY_AMOUNT_IN_WRONG_CURRENCY, - MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC, - MONEY_AMOUNT_TOO_LARGE, - NEGATIVE_MONEY_AMOUNT, - NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AuthorizationError : ApiError { - private AuthorizationErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AuthorizationErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AuthorizationError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AuthorizationErrorReason { - UNABLE_TO_AUTHORIZE, - NO_ADWORDS_ACCOUNT_FOR_CUSTOMER, - USER_PERMISSION_DENIED, - EFFECTIVE_USER_PERMISSION_DENIED, - USER_HAS_READONLY_PERMISSION, - NO_CUSTOMER_FOUND, - SERVICE_ACCESS_DENIED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AuthenticationError : ApiError { - private AuthenticationErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AuthenticationErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AuthenticationError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AuthenticationErrorReason { - AUTHENTICATION_FAILED, - CLIENT_CUSTOMER_ID_IS_REQUIRED, - CLIENT_EMAIL_REQUIRED, - CLIENT_CUSTOMER_ID_INVALID, - CLIENT_EMAIL_INVALID, - CLIENT_EMAIL_FAILED_TO_AUTHENTICATE, - CUSTOMER_NOT_FOUND, - GOOGLE_ACCOUNT_DELETED, - GOOGLE_ACCOUNT_COOKIE_INVALID, - FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT, - GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH, - LOGIN_COOKIE_REQUIRED, - NOT_ADS_USER, - OAUTH_TOKEN_INVALID, - OAUTH_TOKEN_EXPIRED, - OAUTH_TOKEN_DISABLED, - OAUTH_TOKEN_REVOKED, - OAUTH_TOKEN_HEADER_INVALID, - LOGIN_COOKIE_INVALID, - FAILED_TO_RETRIEVE_LOGIN_COOKIE, - USER_ID_INVALID - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetOperation))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignAdExtensionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignCriterionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignFeedOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ConversionTrackerOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExperimentOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedItemOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedMappingOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManagedCustomerOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MoveOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LinkOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignTargetOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupBidModifierOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdExtensionOverrideOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OfflineConversionFeedOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedCriterionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedSetOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCallToActionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressBusinessOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PromotionOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdParamOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingStrategyOperation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetOrderOperation))] - public abstract partial class Operation { - private Operator operatorField; - - private bool operatorFieldSpecified; - - private string operationTypeField; - - public Operator @operator { - get { return this.operatorField; } - set { - this.operatorField = value; - this.operatorSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { - get { return this.operatorFieldSpecified; } - set { this.operatorFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("Operation.Type")] - public string OperationType { - get { return this.operationTypeField; } - set { this.operationTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum Operator { - ADD, - REMOVE, - SET - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BudgetOperation : Operation { - private Budget operandField; - - public Budget operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetPage))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignAdExtensionPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignCriterionPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NullStatsPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignFeedPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NoStatsPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ConversionTrackerPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionBidLandscapePage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupBidLandscapePage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExperimentPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedItemPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedMappingPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManagedCustomerPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedCriterionPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedSetPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignReportPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoSearchPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupReportPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressNoStatsPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressBusinessPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PromotionPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductServicePage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupBidModifierPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(McmNoStatsPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AlertPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingStrategyPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetOrderPage))] - public abstract partial class Page { - private int totalNumEntriesField; - - private bool totalNumEntriesFieldSpecified; - - private string pageTypeField; - - public int totalNumEntries { - get { return this.totalNumEntriesField; } - set { - this.totalNumEntriesField = value; - this.totalNumEntriesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalNumEntriesSpecified { - get { return this.totalNumEntriesFieldSpecified; } - set { this.totalNumEntriesFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("Page.Type")] - public string PageType { - get { return this.pageTypeField; } - set { this.pageTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BudgetPage : Page { - private Budget[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public Budget[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Paging { - private int startIndexField; - - private bool startIndexFieldSpecified; - - private int numberResultsField; - - private bool numberResultsFieldSpecified; - - public int startIndex { - get { return this.startIndexField; } - set { - this.startIndexField = value; - this.startIndexSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startIndexSpecified { - get { return this.startIndexFieldSpecified; } - set { this.startIndexFieldSpecified = value; } - } - - public int numberResults { - get { return this.numberResultsField; } - set { - this.numberResultsField = value; - this.numberResultsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numberResultsSpecified { - get { return this.numberResultsFieldSpecified; } - set { this.numberResultsFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OrderBy { - private string fieldField; - - private SortOrder sortOrderField; - - private bool sortOrderFieldSpecified; - - public string field { - get { return this.fieldField; } - set { this.fieldField = value; } - } - - public SortOrder sortOrder { - get { return this.sortOrderField; } - set { - this.sortOrderField = value; - this.sortOrderSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sortOrderSpecified { - get { return this.sortOrderFieldSpecified; } - set { this.sortOrderFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SortOrder { - ASCENDING, - DESCENDING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DateRange { - private string minField; - - private string maxField; - - public string min { - get { return this.minField; } - set { this.minField = value; } - } - - public string max { - get { return this.maxField; } - set { this.maxField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Predicate { - private string fieldField; - - private PredicateOperator operatorField; - - private bool operatorFieldSpecified; - - private string[] valuesField; - - public string field { - get { return this.fieldField; } - set { this.fieldField = value; } - } - - public PredicateOperator @operator { - get { return this.operatorField; } - set { - this.operatorField = value; - this.operatorSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { - get { return this.operatorFieldSpecified; } - set { this.operatorFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("values")] - public string[] values { - get { return this.valuesField; } - set { this.valuesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Predicate.Operator", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum PredicateOperator { - 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 - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Selector { - private string[] fieldsField; - - private Predicate[] predicatesField; - - private DateRange dateRangeField; - - private OrderBy[] orderingField; - - private Paging pagingField; - - [System.Xml.Serialization.XmlElementAttribute("fields")] - public string[] fields { - get { return this.fieldsField; } - set { this.fieldsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("predicates")] - public Predicate[] predicates { - get { return this.predicatesField; } - set { this.predicatesField = value; } - } - - public DateRange dateRange { - get { return this.dateRangeField; } - set { this.dateRangeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("ordering")] - public OrderBy[] ordering { - get { return this.orderingField; } - set { this.orderingField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApiException))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ApplicationException { - private string messageField; - - private string applicationExceptionTypeField; - - public string message { - get { return this.messageField; } - set { this.messageField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("ApplicationException.Type")] - public string ApplicationExceptionType { - get { return this.applicationExceptionTypeField; } - set { this.applicationExceptionTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ApiException : ApplicationException { - private ApiError[] errorsField; - - [System.Xml.Serialization.XmlElementAttribute("errors")] - public ApiError[] errors { - get { return this.errorsField; } - set { this.errorsField = value; } - } - } - - - - - - - - - - - - - - - - - - - - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "CampaignAdExtensionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class CampaignAdExtensionService : AdWordsSoapClient, ICampaignAdExtensionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public CampaignAdExtensionService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/CampaignAdExtensionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignAdExtensionPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((CampaignAdExtensionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignAdExtensionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -CampaignAdExtensionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((CampaignAdExtensionReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignAdExtensionReturnValue : ListReturnValue { - private CampaignAdExtension[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public CampaignAdExtension[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignAdExtension { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private AdExtension adExtensionField; - - private CampaignAdExtensionStatus statusField; - - private bool statusFieldSpecified; - - private CampaignAdExtensionApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public AdExtension adExtension { - get { return this.adExtensionField; } - set { this.adExtensionField = value; } - } - - public CampaignAdExtensionStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public CampaignAdExtensionApprovalStatus approvalStatus { - get { return this.approvalStatusField; } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { - get { return this.approvalStatusFieldSpecified; } - set { this.approvalStatusFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LocationSyncExtension))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LocationExtension))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SitelinksExtension))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileExtension))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InAppLinkExtension))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DomainInfoExtension))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdExtension { - private long idField; - - private bool idFieldSpecified; - - private string adExtensionTypeField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("AdExtension.Type")] - public string AdExtensionType { - get { return this.adExtensionTypeField; } - set { this.adExtensionTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class LocationSyncExtension : AdExtension { - private string emailField; - - private string authTokenField; - - private OAuthInfo oAuthInfoField; - - private long iconMediaIdField; - - private bool iconMediaIdFieldSpecified; - - private bool shouldSyncUrlField; - - private bool shouldSyncUrlFieldSpecified; - - public string email { - get { return this.emailField; } - set { this.emailField = value; } - } - - public string authToken { - get { return this.authTokenField; } - set { this.authTokenField = value; } - } - - public OAuthInfo oAuthInfo { - get { return this.oAuthInfoField; } - set { this.oAuthInfoField = value; } - } - - public long iconMediaId { - get { return this.iconMediaIdField; } - set { - this.iconMediaIdField = value; - this.iconMediaIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool iconMediaIdSpecified { - get { return this.iconMediaIdFieldSpecified; } - set { this.iconMediaIdFieldSpecified = value; } - } - - public bool shouldSyncUrl { - get { return this.shouldSyncUrlField; } - set { - this.shouldSyncUrlField = value; - this.shouldSyncUrlSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool shouldSyncUrlSpecified { - get { return this.shouldSyncUrlFieldSpecified; } - set { this.shouldSyncUrlFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OAuthInfo { - private string httpMethodField; - - private string httpRequestUrlField; - - private string httpAuthorizationHeaderField; - - public string httpMethod { - get { return this.httpMethodField; } - set { this.httpMethodField = value; } - } - - public string httpRequestUrl { - get { return this.httpRequestUrlField; } - set { this.httpRequestUrlField = value; } - } - - public string httpAuthorizationHeader { - get { return this.httpAuthorizationHeaderField; } - set { this.httpAuthorizationHeaderField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class LocationExtension : AdExtension { - private Address addressField; - - private GeoPoint geoPointField; - - private byte[] encodedLocationField; - - private string companyNameField; - - private string phoneNumberField; - - private LocationExtensionSource sourceField; - - private bool sourceFieldSpecified; - - private long iconMediaIdField; - - private bool iconMediaIdFieldSpecified; - - private long imageMediaIdField; - - private bool imageMediaIdFieldSpecified; - - public Address address { - get { return this.addressField; } - set { this.addressField = value; } - } - - public GeoPoint geoPoint { - get { return this.geoPointField; } - set { this.geoPointField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] - public byte[] encodedLocation { - get { return this.encodedLocationField; } - set { this.encodedLocationField = value; } - } - - public string companyName { - get { return this.companyNameField; } - set { this.companyNameField = value; } - } - - public string phoneNumber { - get { return this.phoneNumberField; } - set { this.phoneNumberField = value; } - } - - public LocationExtensionSource source { - get { return this.sourceField; } - set { - this.sourceField = value; - this.sourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sourceSpecified { - get { return this.sourceFieldSpecified; } - set { this.sourceFieldSpecified = value; } - } - - public long iconMediaId { - get { return this.iconMediaIdField; } - set { - this.iconMediaIdField = value; - this.iconMediaIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool iconMediaIdSpecified { - get { return this.iconMediaIdFieldSpecified; } - set { this.iconMediaIdFieldSpecified = value; } - } - - public long imageMediaId { - get { return this.imageMediaIdField; } - set { - this.imageMediaIdField = value; - this.imageMediaIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool imageMediaIdSpecified { - get { return this.imageMediaIdFieldSpecified; } - set { this.imageMediaIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Address { - private string streetAddressField; - - private string streetAddress2Field; - - private string cityNameField; - - private string provinceCodeField; - - private string provinceNameField; - - private string postalCodeField; - - private string countryCodeField; - - public string streetAddress { - get { return this.streetAddressField; } - set { this.streetAddressField = value; } - } - - public string streetAddress2 { - get { return this.streetAddress2Field; } - set { this.streetAddress2Field = value; } - } - - public string cityName { - get { return this.cityNameField; } - set { this.cityNameField = value; } - } - - public string provinceCode { - get { return this.provinceCodeField; } - set { this.provinceCodeField = value; } - } - - public string provinceName { - get { return this.provinceNameField; } - set { this.provinceNameField = value; } - } - - public string postalCode { - get { return this.postalCodeField; } - set { this.postalCodeField = value; } - } - - public string countryCode { - get { return this.countryCodeField; } - set { this.countryCodeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class GeoPoint { - private int latitudeInMicroDegreesField; - - private bool latitudeInMicroDegreesFieldSpecified; - - private int longitudeInMicroDegreesField; - - private bool longitudeInMicroDegreesFieldSpecified; - - public int latitudeInMicroDegrees { - get { return this.latitudeInMicroDegreesField; } - set { - this.latitudeInMicroDegreesField = value; - this.latitudeInMicroDegreesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool latitudeInMicroDegreesSpecified { - get { return this.latitudeInMicroDegreesFieldSpecified; } - set { this.latitudeInMicroDegreesFieldSpecified = value; } - } - - public int longitudeInMicroDegrees { - get { return this.longitudeInMicroDegreesField; } - set { - this.longitudeInMicroDegreesField = value; - this.longitudeInMicroDegreesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool longitudeInMicroDegreesSpecified { - get { return this.longitudeInMicroDegreesFieldSpecified; } - set { this.longitudeInMicroDegreesFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LocationExtension.Source", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum LocationExtensionSource { - ADWORDS_FRONTEND, - LBC_SYNC - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SitelinksExtension : AdExtension { - private Sitelink[] sitelinksField; - - [System.Xml.Serialization.XmlElementAttribute("sitelinks")] - public Sitelink[] sitelinks { - get { return this.sitelinksField; } - set { this.sitelinksField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Sitelink { - private string displayTextField; - - private string destinationUrlField; - - public string displayText { - get { return this.displayTextField; } - set { this.displayTextField = value; } - } - - public string destinationUrl { - get { return this.destinationUrlField; } - set { this.destinationUrlField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MobileExtension : AdExtension { - private string phoneNumberField; - - private string countryCodeField; - - private bool isCallTrackingEnabledField; - - private bool isCallTrackingEnabledFieldSpecified; - - private bool isCallOnlyField; - - private bool isCallOnlyFieldSpecified; - - public string phoneNumber { - get { return this.phoneNumberField; } - set { this.phoneNumberField = value; } - } - - public string countryCode { - get { return this.countryCodeField; } - set { this.countryCodeField = value; } - } - - public bool isCallTrackingEnabled { - get { return this.isCallTrackingEnabledField; } - set { - this.isCallTrackingEnabledField = value; - this.isCallTrackingEnabledSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isCallTrackingEnabledSpecified { - get { return this.isCallTrackingEnabledFieldSpecified; } - set { this.isCallTrackingEnabledFieldSpecified = value; } - } - - public bool isCallOnly { - get { return this.isCallOnlyField; } - set { - this.isCallOnlyField = value; - this.isCallOnlySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isCallOnlySpecified { - get { return this.isCallOnlyFieldSpecified; } - set { this.isCallOnlyFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class InAppLinkExtension : AdExtension { - private string inAppLinkTextField; - - private string inAppLinkUrlField; - - private InAppLinkExtensionAppStore appStoreField; - - private bool appStoreFieldSpecified; - - private string appIdField; - - public string inAppLinkText { - get { return this.inAppLinkTextField; } - set { this.inAppLinkTextField = value; } - } - - public string inAppLinkUrl { - get { return this.inAppLinkUrlField; } - set { this.inAppLinkUrlField = value; } - } - - public InAppLinkExtensionAppStore appStore { - get { return this.appStoreField; } - set { - this.appStoreField = value; - this.appStoreSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool appStoreSpecified { - get { return this.appStoreFieldSpecified; } - set { this.appStoreFieldSpecified = value; } - } - - public string appId { - get { return this.appIdField; } - set { this.appIdField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InAppLinkExtension.AppStore", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum InAppLinkExtensionAppStore { - GOOGLE_PLAY, - ITUNES - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DomainInfoExtension : AdExtension { - private string domainNameField; - - private string languageCodeField; - - public string domainName { - get { return this.domainNameField; } - set { this.domainNameField = value; } - } - - public string languageCode { - get { return this.languageCodeField; } - set { this.languageCodeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignAdExtension.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignAdExtensionStatus { - ACTIVE, - DELETED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignAdExtension.ApprovalStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignAdExtensionApprovalStatus { - APPROVED, - UNCHECKED, - DISAPPROVED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RegionCodeError : ApiError { - private RegionCodeErrorReason reasonField; - - private bool reasonFieldSpecified; - - public RegionCodeErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RegionCodeError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RegionCodeErrorReason { - INVALID_REGION_CODE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class PagingError : ApiError { - private PagingErrorReason reasonField; - - private bool reasonFieldSpecified; - - public PagingErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PagingError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum PagingErrorReason { - START_INDEX_CANNOT_BE_NEGATIVE, - NUMBER_OF_RESULTS_CANNOT_BE_NEGATIVE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OperatorError : ApiError { - private OperatorErrorReason reasonField; - - private bool reasonFieldSpecified; - - public OperatorErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OperatorError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum OperatorErrorReason { - OPERATOR_NOT_SUPPORTED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignAdExtensionError : ApiError { - private CampaignAdExtensionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CampaignAdExtensionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignAdExtensionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignAdExtensionErrorReason { - ADEXTENSION_NOT_UNDER_CAMPAIGN, - CANNOT_ADD_DELETED_CAMPAIGN_ADEXTENSION, - CANNOT_OPERATE_ON_DELETED_CAMPAIGN_ADEXTENSION, - INVALID_ADEXTENSION_ID, - MISSING_ADEXTENSION_ID, - MUST_USE_CONCRETE_ADEXTENSION_DURING_ADD, - MUST_USE_CONCRETE_ADEXTENSION, - UNKNOWN_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BetaError : ApiError { - private BetaErrorReason reasonField; - - private bool reasonFieldSpecified; - - public BetaErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BetaError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BetaErrorReason { - BETA_FEATURE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdxError : ApiError { - private AdxErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdxErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdxError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdxErrorReason { - UNSUPPORTED_FEATURE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdExtensionError : ApiError { - private AdExtensionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdExtensionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdExtensionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdExtensionErrorReason { - ACCOUNT_DELETED, - AD_EXTENSION_NO_LONGER_ACTIVE, - CANNOT_HAVE_MULTIPLE_LOCATION_SYNC_EXTENSIONS_PER_CAMPAIGN, - CANNOT_HAVE_MULTIPLE_MOBILE_EXTENSIONS_PER_CAMPAIGN, - CANNOT_HAVE_MULTIPLE_PRODUCT_EXTENSIONS_PER_CAMPAIGN, - CANNOT_HAVE_MULTIPLE_SITELINKS_EXTENSIONS_PER_CAMPAIGN, - CANNOT_HAVE_MULTIPLE_IN_APP_LINK_EXTENSIONS_PER_CAMPAIGN_PER_APPSTORE, - INVALID_ADEXTENSION_TYPE, - INVALID_AUTH_TOKEN_FOR_EMAIL, - INVALID_COUNTRY_CODE, - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT, - INVALID_DESTINATION_URL, - INVALID_EMAIL, - INVALID_ENCODED_LOCATION, - INVALID_ENUM_CONDITION_OPERATOR, - INVALID_ICON_DIMENSIONS, - INVALID_ID, - INVALID_IMAGE_DIMENSIONS, - INVALID_INPUT, - INVALID_LATITUDE, - INVALID_LONGITUDE, - INVALID_PHONE_NUMBER, - INVALID_STRING_CONDITION_OPERATOR, - INVALID_TOLL_PHONE_NUMBER_FORMAT, - MEDIA_DOES_NOT_BELONG_TO_ACCOUNT, - MEDIA_NOT_ICON_TYPE, - MEDIA_NOT_IMAGE_TYPE, - MISSING_ADVERTISER_NAME, - MISSING_AUTH_TOKEN, - MISSING_COUNTRY_CODE, - MISSING_CITY_NAME, - MISSING_EMAIL, - MISSING_ENCODED_LOCATION, - MISSING_CONDITION_OPERAND, - MISSING_CONDITION_STRING_VALUE, - MISSING_POSTAL_CODE, - MISSING_STREET_ADDRESS, - NUM_AND_GROUPS_OVER_LIMIT, - NUM_CONDITIONS_OVER_LIMIT, - NUM_LOCATION_EXTENSIONS_OVER_LIMIT, - NOT_AUTHORIZED_TO_CREATE_EXTENSION, - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY, - DISALLOWED_NUMBER_TYPE, - PREMIUM_RATE_NUMBER_NOT_ALLOWED, - TOO_LONG, - USER_NOT_PERMITTED_TO_CREATE_LBC_SYNC_LOCATION_EXTENSION - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignAdExtensionOperation : Operation { - private CampaignAdExtension operandField; - - public CampaignAdExtension operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignAdExtensionPage : Page { - private CampaignAdExtension[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public CampaignAdExtension[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "CampaignCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class CampaignCriterionService : AdWordsSoapClient, ICampaignCriterionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public CampaignCriterionService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/CampaignCriterionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignCriterionPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((CampaignCriterionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -CampaignCriterionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((CampaignCriterionReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignCriterionPage query([System.Xml.Serialization.XmlElementAttribute("query")] -string query1) { - object[] results = this.Invoke("query", new object[] { query1 }); - return ((CampaignCriterionPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignCriterionReturnValue : ListReturnValue { - private CampaignCriterion[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public CampaignCriterion[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeCampaignCriterion))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignCriterion { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private bool isNegativeField; - - private bool isNegativeFieldSpecified; - - private Criterion criterionField; - - private double bidModifierField; - - private bool bidModifierFieldSpecified; - - private String_StringMapEntry[] forwardCompatibilityMapField; - - private string campaignCriterionTypeField; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public bool isNegative { - get { return this.isNegativeField; } - set { - this.isNegativeField = value; - this.isNegativeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNegativeSpecified { - get { return this.isNegativeFieldSpecified; } - set { this.isNegativeFieldSpecified = value; } - } - - public Criterion criterion { - get { return this.criterionField; } - set { this.criterionField = value; } - } - - public double bidModifier { - get { return this.bidModifierField; } - set { - this.bidModifierField = value; - this.bidModifierSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidModifierSpecified { - get { return this.bidModifierFieldSpecified; } - set { this.bidModifierFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("forwardCompatibilityMap")] - public String_StringMapEntry[] forwardCompatibilityMap { - get { return this.forwardCompatibilityMapField; } - set { this.forwardCompatibilityMapField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("CampaignCriterion.Type")] - public string CampaignCriterionType { - get { return this.campaignCriterionTypeField; } - set { this.campaignCriterionTypeField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Webpage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Vertical))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionUserList))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionUserInterest))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Proximity))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Product))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Platform))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Placement))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystemVersion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileDevice))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileApplication))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileAppCategory))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Location))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Language))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Keyword))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Gender))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentLabel))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Carrier))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AgeRange))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSchedule))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeKeyword))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductService))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(KeywordSet))] - public partial class Criterion { - private long idField; - - private bool idFieldSpecified; - - private CriterionType typeField; - - private bool typeFieldSpecified; - - private string criterionTypeField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public CriterionType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("Criterion.Type")] - public string CriterionType { - get { return this.criterionTypeField; } - set { this.criterionTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Criterion.Type", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CriterionType { - CONTENT_LABEL, - KEYWORD, - PLACEMENT, - VERTICAL, - USER_LIST, - USER_INTEREST, - MOBILE_APPLICATION, - MOBILE_APP_CATEGORY, - PRODUCT, - WEBPAGE, - LANGUAGE, - LOCATION, - AGE_RANGE, - CARRIER, - OPERATING_SYSTEM_VERSION, - MOBILE_DEVICE, - GENDER, - PROXIMITY, - PLATFORM, - AD_SCHEDULE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Webpage : Criterion { - private WebpageParameter parameterField; - - private double criteriaCoverageField; - - private bool criteriaCoverageFieldSpecified; - - private string[] criteriaSamplesField; - - public WebpageParameter parameter { - get { return this.parameterField; } - set { this.parameterField = value; } - } - - public double criteriaCoverage { - get { return this.criteriaCoverageField; } - set { - this.criteriaCoverageField = value; - this.criteriaCoverageSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criteriaCoverageSpecified { - get { return this.criteriaCoverageFieldSpecified; } - set { this.criteriaCoverageFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("criteriaSamples")] - public string[] criteriaSamples { - get { return this.criteriaSamplesField; } - set { this.criteriaSamplesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class WebpageParameter : CriterionParameter { - private string criterionNameField; - - private WebpageCondition[] conditionsField; - - public string criterionName { - get { return this.criterionNameField; } - set { this.criterionNameField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("conditions")] - public WebpageCondition[] conditions { - get { return this.conditionsField; } - set { this.conditionsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class WebpageCondition { - private WebpageConditionOperand operandField; - - private bool operandFieldSpecified; - - private string argumentField; - - public WebpageConditionOperand operand { - get { return this.operandField; } - set { - this.operandField = value; - this.operandSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operandSpecified { - get { return this.operandFieldSpecified; } - set { this.operandFieldSpecified = value; } - } - - public string argument { - get { return this.argumentField; } - set { this.argumentField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum WebpageConditionOperand { - URL, - CATEGORY, - PAGE_TITLE, - PAGE_CONTENT, - UNKNOWN - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(WebpageParameter))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class CriterionParameter { - private string criterionParameterTypeField; - - [System.Xml.Serialization.XmlElementAttribute("CriterionParameter.Type")] - public string CriterionParameterType { - get { return this.criterionParameterTypeField; } - set { this.criterionParameterTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Vertical : Criterion { - private long verticalIdField; - - private bool verticalIdFieldSpecified; - - private long verticalParentIdField; - - private bool verticalParentIdFieldSpecified; - - private string[] pathField; - - public long verticalId { - get { return this.verticalIdField; } - set { - this.verticalIdField = value; - this.verticalIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool verticalIdSpecified { - get { return this.verticalIdFieldSpecified; } - set { this.verticalIdFieldSpecified = value; } - } - - public long verticalParentId { - get { return this.verticalParentIdField; } - set { - this.verticalParentIdField = value; - this.verticalParentIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool verticalParentIdSpecified { - get { return this.verticalParentIdFieldSpecified; } - set { this.verticalParentIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("path")] - public string[] path { - get { return this.pathField; } - set { this.pathField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CriterionUserList : Criterion { - private long userListIdField; - - private bool userListIdFieldSpecified; - - private string userListNameField; - - private CriterionUserListMembershipStatus userListMembershipStatusField; - - private bool userListMembershipStatusFieldSpecified; - - public long userListId { - get { return this.userListIdField; } - set { - this.userListIdField = value; - this.userListIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userListIdSpecified { - get { return this.userListIdFieldSpecified; } - set { this.userListIdFieldSpecified = value; } - } - - public string userListName { - get { return this.userListNameField; } - set { this.userListNameField = value; } - } - - public CriterionUserListMembershipStatus userListMembershipStatus { - get { return this.userListMembershipStatusField; } - set { - this.userListMembershipStatusField = value; - this.userListMembershipStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userListMembershipStatusSpecified { - get { return this.userListMembershipStatusFieldSpecified; } - set { this.userListMembershipStatusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CriterionUserList.MembershipStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CriterionUserListMembershipStatus { - OPEN, - CLOSED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CriterionUserInterest : Criterion { - private long userInterestIdField; - - private bool userInterestIdFieldSpecified; - - private string userInterestNameField; - - public long userInterestId { - get { return this.userInterestIdField; } - set { - this.userInterestIdField = value; - this.userInterestIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userInterestIdSpecified { - get { return this.userInterestIdFieldSpecified; } - set { this.userInterestIdFieldSpecified = value; } - } - - public string userInterestName { - get { return this.userInterestNameField; } - set { this.userInterestNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Proximity : Criterion { - private GeoPoint geoPointField; - - private ProximityDistanceUnits radiusDistanceUnitsField; - - private bool radiusDistanceUnitsFieldSpecified; - - private double radiusInUnitsField; - - private bool radiusInUnitsFieldSpecified; - - private Address addressField; - - public GeoPoint geoPoint { - get { return this.geoPointField; } - set { this.geoPointField = value; } - } - - public ProximityDistanceUnits radiusDistanceUnits { - get { return this.radiusDistanceUnitsField; } - set { - this.radiusDistanceUnitsField = value; - this.radiusDistanceUnitsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool radiusDistanceUnitsSpecified { - get { return this.radiusDistanceUnitsFieldSpecified; } - set { this.radiusDistanceUnitsFieldSpecified = value; } - } - - public double radiusInUnits { - get { return this.radiusInUnitsField; } - set { - this.radiusInUnitsField = value; - this.radiusInUnitsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool radiusInUnitsSpecified { - get { return this.radiusInUnitsFieldSpecified; } - set { this.radiusInUnitsFieldSpecified = value; } - } - - public Address address { - get { return this.addressField; } - set { this.addressField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Proximity.DistanceUnits", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ProximityDistanceUnits { - KILOMETERS, - MILES - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Product : Criterion { - private ProductCondition[] conditionsField; - - private string textField; - - [System.Xml.Serialization.XmlElementAttribute("conditions")] - public ProductCondition[] conditions { - get { return this.conditionsField; } - set { this.conditionsField = value; } - } - - public string text { - get { return this.textField; } - set { this.textField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ProductCondition { - private string argumentField; - - private ProductConditionOperand operandField; - - public string argument { - get { return this.argumentField; } - set { this.argumentField = value; } - } - - public ProductConditionOperand operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ProductConditionOperand { - private string operandField; - - public string operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Platform : Criterion { - private string platformNameField; - - public string platformName { - get { return this.platformNameField; } - set { this.platformNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Placement : Criterion { - private string urlField; - - public string url { - get { return this.urlField; } - set { this.urlField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OperatingSystemVersion : Criterion { - private string nameField; - - private int osMajorVersionField; - - private bool osMajorVersionFieldSpecified; - - private int osMinorVersionField; - - private bool osMinorVersionFieldSpecified; - - private OperatingSystemVersionOperatorType operatorTypeField; - - private bool operatorTypeFieldSpecified; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public int osMajorVersion { - get { return this.osMajorVersionField; } - set { - this.osMajorVersionField = value; - this.osMajorVersionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool osMajorVersionSpecified { - get { return this.osMajorVersionFieldSpecified; } - set { this.osMajorVersionFieldSpecified = value; } - } - - public int osMinorVersion { - get { return this.osMinorVersionField; } - set { - this.osMinorVersionField = value; - this.osMinorVersionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool osMinorVersionSpecified { - get { return this.osMinorVersionFieldSpecified; } - set { this.osMinorVersionFieldSpecified = value; } - } - - public OperatingSystemVersionOperatorType operatorType { - get { return this.operatorTypeField; } - set { - this.operatorTypeField = value; - this.operatorTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorTypeSpecified { - get { return this.operatorTypeFieldSpecified; } - set { this.operatorTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OperatingSystemVersion.OperatorType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum OperatingSystemVersionOperatorType { - GREATER_THAN_EQUAL_TO, - EQUAL_TO, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MobileDevice : Criterion { - private string deviceNameField; - - private string manufacturerNameField; - - private MobileDeviceDeviceType deviceTypeField; - - private bool deviceTypeFieldSpecified; - - private string operatingSystemNameField; - - public string deviceName { - get { return this.deviceNameField; } - set { this.deviceNameField = value; } - } - - public string manufacturerName { - get { return this.manufacturerNameField; } - set { this.manufacturerNameField = value; } - } - - public MobileDeviceDeviceType deviceType { - get { return this.deviceTypeField; } - set { - this.deviceTypeField = value; - this.deviceTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deviceTypeSpecified { - get { return this.deviceTypeFieldSpecified; } - set { this.deviceTypeFieldSpecified = value; } - } - - public string operatingSystemName { - get { return this.operatingSystemNameField; } - set { this.operatingSystemNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MobileDevice.DeviceType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MobileDeviceDeviceType { - DEVICE_TYPE_MOBILE, - DEVICE_TYPE_TABLET - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MobileApplication : Criterion { - private string appIdField; - - private string displayNameField; - - public string appId { - get { return this.appIdField; } - set { this.appIdField = value; } - } - - public string displayName { - get { return this.displayNameField; } - set { this.displayNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MobileAppCategory : Criterion { - private int mobileAppCategoryIdField; - - private bool mobileAppCategoryIdFieldSpecified; - - private string displayNameField; - - public int mobileAppCategoryId { - get { return this.mobileAppCategoryIdField; } - set { - this.mobileAppCategoryIdField = value; - this.mobileAppCategoryIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mobileAppCategoryIdSpecified { - get { return this.mobileAppCategoryIdFieldSpecified; } - set { this.mobileAppCategoryIdFieldSpecified = value; } - } - - public string displayName { - get { return this.displayNameField; } - set { this.displayNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Location : Criterion { - private string locationNameField; - - private string displayTypeField; - - private LocationTargetingStatus targetingStatusField; - - private bool targetingStatusFieldSpecified; - - private Location[] parentLocationsField; - - public string locationName { - get { return this.locationNameField; } - set { this.locationNameField = value; } - } - - public string displayType { - get { return this.displayTypeField; } - set { this.displayTypeField = value; } - } - - public LocationTargetingStatus targetingStatus { - get { return this.targetingStatusField; } - set { - this.targetingStatusField = value; - this.targetingStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingStatusSpecified { - get { return this.targetingStatusFieldSpecified; } - set { this.targetingStatusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("parentLocations")] - public Location[] parentLocations { - get { return this.parentLocationsField; } - set { this.parentLocationsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum LocationTargetingStatus { - ACTIVE, - OBSOLETE, - PHASING_OUT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Language : Criterion { - private string codeField; - - private string nameField; - - public string code { - get { return this.codeField; } - set { this.codeField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeKeyword))] - public partial class Keyword : Criterion { - private string textField; - - private KeywordMatchType matchTypeField; - - private bool matchTypeFieldSpecified; - - public string text { - get { return this.textField; } - set { this.textField = value; } - } - - public KeywordMatchType matchType { - get { return this.matchTypeField; } - set { - this.matchTypeField = value; - this.matchTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchTypeSpecified { - get { return this.matchTypeFieldSpecified; } - set { this.matchTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum KeywordMatchType { - EXACT, - PHRASE, - BROAD - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Gender : Criterion { - private GenderGenderType genderTypeField; - - private bool genderTypeFieldSpecified; - - public GenderGenderType genderType { - get { return this.genderTypeField; } - set { - this.genderTypeField = value; - this.genderTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool genderTypeSpecified { - get { return this.genderTypeFieldSpecified; } - set { this.genderTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Gender.GenderType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum GenderGenderType { - GENDER_MALE, - GENDER_FEMALE, - GENDER_UNDETERMINED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ContentLabel : Criterion { - private ContentLabelType contentLabelTypeField; - - private bool contentLabelTypeFieldSpecified; - - public ContentLabelType contentLabelType { - get { return this.contentLabelTypeField; } - set { - this.contentLabelTypeField = value; - this.contentLabelTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool contentLabelTypeSpecified { - get { return this.contentLabelTypeFieldSpecified; } - set { this.contentLabelTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ContentLabelType { - ADULTISH, - AFE, - BELOW_THE_FOLD, - CONFLICT, - DP, - EMBEDDED_VIDEO, - GAMES, - JACKASS, - PROFANITY, - UGC_FORUMS, - UGC_IMAGES, - UGC_SOCIAL, - UGC_VIDEOS, - SIRENS, - TRAGEDY, - VIDEO, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Carrier : Criterion { - private string nameField; - - private string countryCodeField; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public string countryCode { - get { return this.countryCodeField; } - set { this.countryCodeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AgeRange : Criterion { - private AgeRangeAgeRangeType ageRangeTypeField; - - private bool ageRangeTypeFieldSpecified; - - public AgeRangeAgeRangeType ageRangeType { - get { return this.ageRangeTypeField; } - set { - this.ageRangeTypeField = value; - this.ageRangeTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ageRangeTypeSpecified { - get { return this.ageRangeTypeFieldSpecified; } - set { this.ageRangeTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AgeRange.AgeRangeType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AgeRangeAgeRangeType { - AGE_RANGE_18_24, - AGE_RANGE_25_34, - AGE_RANGE_35_44, - AGE_RANGE_45_54, - AGE_RANGE_55_64, - AGE_RANGE_65_UP, - AGE_RANGE_UNDETERMINED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdSchedule : Criterion { - private DayOfWeek dayOfWeekField; - - private bool dayOfWeekFieldSpecified; - - private int startHourField; - - private bool startHourFieldSpecified; - - private MinuteOfHour startMinuteField; - - private bool startMinuteFieldSpecified; - - private int endHourField; - - private bool endHourFieldSpecified; - - private MinuteOfHour endMinuteField; - - private bool endMinuteFieldSpecified; - - public DayOfWeek dayOfWeek { - get { return this.dayOfWeekField; } - set { - this.dayOfWeekField = value; - this.dayOfWeekSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dayOfWeekSpecified { - get { return this.dayOfWeekFieldSpecified; } - set { this.dayOfWeekFieldSpecified = value; } - } - - public int startHour { - get { return this.startHourField; } - set { - this.startHourField = value; - this.startHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startHourSpecified { - get { return this.startHourFieldSpecified; } - set { this.startHourFieldSpecified = value; } - } - - public MinuteOfHour startMinute { - get { return this.startMinuteField; } - set { - this.startMinuteField = value; - this.startMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startMinuteSpecified { - get { return this.startMinuteFieldSpecified; } - set { this.startMinuteFieldSpecified = value; } - } - - public int endHour { - get { return this.endHourField; } - set { - this.endHourField = value; - this.endHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endHourSpecified { - get { return this.endHourFieldSpecified; } - set { this.endHourFieldSpecified = value; } - } - - public MinuteOfHour endMinute { - get { return this.endMinuteField; } - set { - this.endMinuteField = value; - this.endMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endMinuteSpecified { - get { return this.endMinuteFieldSpecified; } - set { this.endMinuteFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum DayOfWeek { - MONDAY, - TUESDAY, - WEDNESDAY, - THURSDAY, - FRIDAY, - SATURDAY, - SUNDAY - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MinuteOfHour { - ZERO, - FIFTEEN, - THIRTY, - FORTY_FIVE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class String_StringMapEntry { - private string keyField; - - private string valueField; - - public string key { - get { return this.keyField; } - set { this.keyField = value; } - } - - public string value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class NegativeCampaignCriterion : CampaignCriterion { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class QueryError : ApiError { - private QueryErrorReason reasonField; - - private bool reasonFieldSpecified; - - private string messageField; - - public QueryErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - public string message { - get { return this.messageField; } - set { this.messageField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "QueryError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum QueryErrorReason { - PARSING_FAILED, - MISSING_QUERY, - MISSING_SELECT_CLAUSE, - MISSING_FROM_CLAUSE, - INVALID_SELECT_CLAUSE, - INVALID_FROM_CLAUSE, - INVALID_WHERE_CLAUSE, - INVALID_ORDER_BY_CLAUSE, - INVALID_LIMIT_CLAUSE, - INVALID_START_INDEX_IN_LIMIT_CLAUSE, - INVALID_PAGE_SIZE_IN_LIMIT_CLAUSE, - INVALID_DURING_CLAUSE, - INVALID_MIN_DATE_IN_DURING_CLAUSE, - INVALID_MAX_DATE_IN_DURING_CLAUSE, - MAX_LESS_THAN_MIN_IN_DURING_CLAUSE, - VALIDATION_FAILED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignCriterionLimitExceeded : EntityCountLimitExceeded { - private CampaignCriterionLimitExceededCriteriaLimitType limitTypeField; - - private bool limitTypeFieldSpecified; - - public CampaignCriterionLimitExceededCriteriaLimitType limitType { - get { return this.limitTypeField; } - set { - this.limitTypeField = value; - this.limitTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool limitTypeSpecified { - get { return this.limitTypeFieldSpecified; } - set { this.limitTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignCriterionLimitExceeded.CriteriaLimitType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignCriterionLimitExceededCriteriaLimitType { - CAMPAIGN_CRITERIA, - CAMPAIGN_NEGATIVE_KEYWORD, - CAMPAIGN_NEGATIVE_WEBSITE, - CAMPAIGN_LOCATION_CRITERIA, - CAMPAIGN_PROXIMITY_CRITERIA - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CriterionError : ApiError { - private CriterionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CriterionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CriterionErrorReason { - CONCRETE_TYPE_REQUIRED, - INVALID_EXCLUDED_CATEGORY, - INVALID_KEYWORD_TEXT, - KEYWORD_TEXT_TOO_LONG, - KEYWORD_HAS_TOO_MANY_WORDS, - KEYWORD_HAS_INVALID_CHARS, - INVALID_PLACEMENT_URL, - INVALID_USER_LIST, - INVALID_USER_INTEREST, - INVALID_FORMAT_FOR_PLACEMENT_URL, - PLACEMENT_URL_IS_TOO_LONG, - PLACEMENT_URL_HAS_ILLEGAL_CHAR, - PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE, - PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION, - INVALID_VERTICAL_PATH, - YOUTUBE_VERTICAL_CHANNEL_DEPRECATED, - YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED, - CANNOT_EXCLUDE_CRITERIA_TYPE, - CANNOT_ADD_CRITERIA_TYPE, - INVALID_PRODUCT_FILTER, - PRODUCT_FILTER_TOO_LONG, - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS, - INVALID_CRITERION_ID, - CANNOT_TARGET_CRITERION, - CRITERION_ID_AND_TYPE_MISMATCH, - INVALID_PROXIMITY_RADIUS, - INVALID_PROXIMITY_RADIUS_UNITS, - INVALID_STREETADDRESS_LENGTH, - INVALID_CITYNAME_LENGTH, - INVALID_REGIONCODE_LENGTH, - INVALID_REGIONNAME_LENGTH, - INVALID_POSTALCODE_LENGTH, - INVALID_COUNTRY_CODE, - INVALID_LATITUDE, - INVALID_LONGITUDE, - PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL, - INVALID_PROXIMITY_ADDRESS, - AD_SCHEDULE_TIME_INTERVALS_OVERLAP, - AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS, - AD_SCHEDULE_INVALID_TIME_INTERVAL, - AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT, - AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS, - CANNOT_BID_MODIFY_CRITERION_TYPE, - CANNOT_BID_MODIFY_NEGATIVE_CRITERION, - CANNOT_ADD_BID_MODIFIER_FOR_BIDDING_STRATEGY, - CANNOT_BID_MODIFY_DESKTOP, - ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE, - CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY, - CANNOT_ATTACH_CRITERIA_BIDDING_STRATEGY_ON_CONTENT_NETWORK_ONLY_CAMPAIGN, - CANNOT_EXCLUDE_CRITERION, - CANNOT_REMOVE_CRITERION, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignCriterionError : ApiError { - private CampaignCriterionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CampaignCriterionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignCriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignCriterionErrorReason { - CRITERIA_QUOTA_EXCEEDED, - CONCRETE_TYPE_REQUIRED, - ID_FILTERS_HAVE_DIFF_FIELDS_SET, - INVALID_EXCLUDED_CATEGORY, - INVALID_KEYWORD_TEXT, - INVALID_PLACEMENT_URL, - INVALID_VERTICAL_PATH, - LICENSED_USERLISTS_NOT_ALLOWED, - CANNOT_EXCLUDE_ALL_PLATFORMS, - CANNOT_EXCLUDE_CRITERIA_TYPE, - CANNOT_EXCLUDE_PLATFORM_CRITERION, - CANNOT_TARGET_AND_EXCLUDE, - TOO_MANY_OPERTAIONS, - OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignCriterionOperation : Operation { - private CampaignCriterion operandField; - - public CampaignCriterion operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignCriterionPage : Page { - private CampaignCriterion[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public CampaignCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "CampaignServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class CampaignService : AdWordsSoapClient, ICampaignService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public CampaignService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/CampaignService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((CampaignPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -CampaignOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((CampaignReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignPage query([System.Xml.Serialization.XmlElementAttribute("query")] -string query1) { - object[] results = this.Invoke("query", new object[] { query1 }); - return ((CampaignPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignReturnValue : ListReturnValue { - private Campaign[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public Campaign[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Campaign { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private CampaignStatus statusField; - - private bool statusFieldSpecified; - - private ServingStatus servingStatusField; - - private bool servingStatusFieldSpecified; - - private string startDateField; - - private string endDateField; - - private Budget budgetField; - - private ConversionOptimizerEligibility conversionOptimizerEligibilityField; - - private AdServingOptimizationStatus adServingOptimizationStatusField; - - private bool adServingOptimizationStatusFieldSpecified; - - private FrequencyCap frequencyCapField; - - private Setting[] settingsField; - - private NetworkSetting networkSettingField; - - private BiddingStrategyConfiguration biddingStrategyConfigurationField; - - private String_StringMapEntry[] forwardCompatibilityMapField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public CampaignStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public ServingStatus servingStatus { - get { return this.servingStatusField; } - set { - this.servingStatusField = value; - this.servingStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool servingStatusSpecified { - get { return this.servingStatusFieldSpecified; } - set { this.servingStatusFieldSpecified = value; } - } - - public string startDate { - get { return this.startDateField; } - set { this.startDateField = value; } - } - - public string endDate { - get { return this.endDateField; } - set { this.endDateField = value; } - } - - public Budget budget { - get { return this.budgetField; } - set { this.budgetField = value; } - } - - public ConversionOptimizerEligibility conversionOptimizerEligibility { - get { return this.conversionOptimizerEligibilityField; } - set { this.conversionOptimizerEligibilityField = value; } - } - - public AdServingOptimizationStatus adServingOptimizationStatus { - get { return this.adServingOptimizationStatusField; } - set { - this.adServingOptimizationStatusField = value; - this.adServingOptimizationStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adServingOptimizationStatusSpecified { - get { return this.adServingOptimizationStatusFieldSpecified; } - set { this.adServingOptimizationStatusFieldSpecified = value; } - } - - public FrequencyCap frequencyCap { - get { return this.frequencyCapField; } - set { this.frequencyCapField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("settings")] - public Setting[] settings { - get { return this.settingsField; } - set { this.settingsField = value; } - } - - public NetworkSetting networkSetting { - get { return this.networkSettingField; } - set { this.networkSettingField = value; } - } - - public BiddingStrategyConfiguration biddingStrategyConfiguration { - get { return this.biddingStrategyConfigurationField; } - set { this.biddingStrategyConfigurationField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("forwardCompatibilityMap")] - public String_StringMapEntry[] forwardCompatibilityMap { - get { return this.forwardCompatibilityMapField; } - set { this.forwardCompatibilityMapField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignStatus { - ACTIVE, - PAUSED, - DELETED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ServingStatus { - SERVING, - NONE, - ENDED, - PENDING, - SUSPENDED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConversionOptimizerEligibility { - private bool eligibleField; - - private bool eligibleFieldSpecified; - - private ConversionOptimizerEligibilityRejectionReason[] rejectionReasonsField; - - public bool eligible { - get { return this.eligibleField; } - set { - this.eligibleField = value; - this.eligibleSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool eligibleSpecified { - get { return this.eligibleFieldSpecified; } - set { this.eligibleFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("rejectionReasons")] - public ConversionOptimizerEligibilityRejectionReason[] rejectionReasons { - get { return this.rejectionReasonsField; } - set { this.rejectionReasonsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConversionOptimizerEligibility.RejectionReason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ConversionOptimizerEligibilityRejectionReason { - CAMPAIGN_IS_NOT_ACTIVE, - NOT_CPC_CAMPAIGN, - CONVERSION_TRACKING_NOT_ENABLED, - NOT_ENOUGH_CONVERSIONS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdServingOptimizationStatus { - OPTIMIZE, - CONVERSION_OPTIMIZE, - ROTATE, - ROTATE_INDEFINITELY, - UNAVAILABLE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FrequencyCap { - private long impressionsField; - - private bool impressionsFieldSpecified; - - private TimeUnit timeUnitField; - - private bool timeUnitFieldSpecified; - - private Level levelField; - - private bool levelFieldSpecified; - - public long impressions { - get { return this.impressionsField; } - set { - this.impressionsField = value; - this.impressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsSpecified { - get { return this.impressionsFieldSpecified; } - set { this.impressionsFieldSpecified = value; } - } - - public TimeUnit timeUnit { - get { return this.timeUnitField; } - set { - this.timeUnitField = value; - this.timeUnitSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool timeUnitSpecified { - get { return this.timeUnitFieldSpecified; } - set { this.timeUnitFieldSpecified = value; } - } - - public Level level { - get { return this.levelField; } - set { - this.levelField = value; - this.levelSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool levelSpecified { - get { return this.levelFieldSpecified; } - set { this.levelFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum TimeUnit { - MINUTE, - HOUR, - DAY, - WEEK, - MONTH, - LIFETIME - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum Level { - CREATIVE, - ADGROUP, - CAMPAIGN, - UNKNOWN - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TrackingSetting))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RealTimeBiddingSetting))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(KeywordMatchSetting))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(GeoTargetTypeSetting))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingSetting))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExplorerAutoOptimizerSetting))] - public abstract partial class Setting { - private string settingTypeField; - - [System.Xml.Serialization.XmlElementAttribute("Setting.Type")] - public string SettingType { - get { return this.settingTypeField; } - set { this.settingTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TrackingSetting : Setting { - private string trackingUrlField; - - public string trackingUrl { - get { return this.trackingUrlField; } - set { this.trackingUrlField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RealTimeBiddingSetting : Setting { - private bool optInField; - - private bool optInFieldSpecified; - - public bool optIn { - get { return this.optInField; } - set { - this.optInField = value; - this.optInSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool optInSpecified { - get { return this.optInFieldSpecified; } - set { this.optInFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class KeywordMatchSetting : Setting { - private bool optInField; - - private bool optInFieldSpecified; - - public bool optIn { - get { return this.optInField; } - set { - this.optInField = value; - this.optInSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool optInSpecified { - get { return this.optInFieldSpecified; } - set { this.optInFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class GeoTargetTypeSetting : Setting { - private GeoTargetTypeSettingPositiveGeoTargetType positiveGeoTargetTypeField; - - private bool positiveGeoTargetTypeFieldSpecified; - - private GeoTargetTypeSettingNegativeGeoTargetType negativeGeoTargetTypeField; - - private bool negativeGeoTargetTypeFieldSpecified; - - public GeoTargetTypeSettingPositiveGeoTargetType positiveGeoTargetType { - get { return this.positiveGeoTargetTypeField; } - set { - this.positiveGeoTargetTypeField = value; - this.positiveGeoTargetTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool positiveGeoTargetTypeSpecified { - get { return this.positiveGeoTargetTypeFieldSpecified; } - set { this.positiveGeoTargetTypeFieldSpecified = value; } - } - - public GeoTargetTypeSettingNegativeGeoTargetType negativeGeoTargetType { - get { return this.negativeGeoTargetTypeField; } - set { - this.negativeGeoTargetTypeField = value; - this.negativeGeoTargetTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool negativeGeoTargetTypeSpecified { - get { return this.negativeGeoTargetTypeFieldSpecified; } - set { this.negativeGeoTargetTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GeoTargetTypeSetting.PositiveGeoTargetType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum GeoTargetTypeSettingPositiveGeoTargetType { - DONT_CARE, - AREA_OF_INTEREST, - LOCATION_OF_PRESENCE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GeoTargetTypeSetting.NegativeGeoTargetType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum GeoTargetTypeSettingNegativeGeoTargetType { - DONT_CARE, - LOCATION_OF_PRESENCE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class NetworkSetting { - private bool targetGoogleSearchField; - - private bool targetGoogleSearchFieldSpecified; - - private bool targetSearchNetworkField; - - private bool targetSearchNetworkFieldSpecified; - - private bool targetContentNetworkField; - - private bool targetContentNetworkFieldSpecified; - - private bool targetPartnerSearchNetworkField; - - private bool targetPartnerSearchNetworkFieldSpecified; - - public bool targetGoogleSearch { - get { return this.targetGoogleSearchField; } - set { - this.targetGoogleSearchField = value; - this.targetGoogleSearchSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetGoogleSearchSpecified { - get { return this.targetGoogleSearchFieldSpecified; } - set { this.targetGoogleSearchFieldSpecified = value; } - } - - public bool targetSearchNetwork { - get { return this.targetSearchNetworkField; } - set { - this.targetSearchNetworkField = value; - this.targetSearchNetworkSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetSearchNetworkSpecified { - get { return this.targetSearchNetworkFieldSpecified; } - set { this.targetSearchNetworkFieldSpecified = value; } - } - - public bool targetContentNetwork { - get { return this.targetContentNetworkField; } - set { - this.targetContentNetworkField = value; - this.targetContentNetworkSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetContentNetworkSpecified { - get { return this.targetContentNetworkFieldSpecified; } - set { this.targetContentNetworkFieldSpecified = value; } - } - - public bool targetPartnerSearchNetwork { - get { return this.targetPartnerSearchNetworkField; } - set { - this.targetPartnerSearchNetworkField = value; - this.targetPartnerSearchNetworkSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetPartnerSearchNetworkSpecified { - get { return this.targetPartnerSearchNetworkFieldSpecified; } - set { this.targetPartnerSearchNetworkFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingStrategyConfiguration { - private long biddingStrategyIdField; - - private bool biddingStrategyIdFieldSpecified; - - private string biddingStrategyNameField; - - private BiddingStrategyType biddingStrategyTypeField; - - private bool biddingStrategyTypeFieldSpecified; - - private BiddingStrategySource biddingStrategySourceField; - - private bool biddingStrategySourceFieldSpecified; - - private BiddingScheme biddingSchemeField; - - private Bids[] bidsField; - - public long biddingStrategyId { - get { return this.biddingStrategyIdField; } - set { - this.biddingStrategyIdField = value; - this.biddingStrategyIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool biddingStrategyIdSpecified { - get { return this.biddingStrategyIdFieldSpecified; } - set { this.biddingStrategyIdFieldSpecified = value; } - } - - public string biddingStrategyName { - get { return this.biddingStrategyNameField; } - set { this.biddingStrategyNameField = value; } - } - - public BiddingStrategyType biddingStrategyType { - get { return this.biddingStrategyTypeField; } - set { - this.biddingStrategyTypeField = value; - this.biddingStrategyTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool biddingStrategyTypeSpecified { - get { return this.biddingStrategyTypeFieldSpecified; } - set { this.biddingStrategyTypeFieldSpecified = value; } - } - - public BiddingStrategySource biddingStrategySource { - get { return this.biddingStrategySourceField; } - set { - this.biddingStrategySourceField = value; - this.biddingStrategySourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool biddingStrategySourceSpecified { - get { return this.biddingStrategySourceFieldSpecified; } - set { this.biddingStrategySourceFieldSpecified = value; } - } - - public BiddingScheme biddingScheme { - get { return this.biddingSchemeField; } - set { this.biddingSchemeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("bids")] - public Bids[] bids { - get { return this.bidsField; } - set { this.bidsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BiddingStrategyType { - BUDGET_OPTIMIZER, - CONVERSION_OPTIMIZER, - MANUAL_CPC, - MANUAL_CPM, - PAGE_ONE_PROMOTED, - PERCENT_CPA, - TARGET_SPEND, - ENHANCED_CPC, - TARGET_CPA, - NONE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BiddingStrategySource { - CAMPAIGN, - ADGROUP, - CRITERION - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BudgetOptimizerBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetSpendBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetCpaBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PageOnePromotedBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PercentCpaBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManualCpmBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManualCpcBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EnhancedCpcBiddingScheme))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ConversionOptimizerBiddingScheme))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class BiddingScheme { - private string biddingSchemeTypeField; - - [System.Xml.Serialization.XmlElementAttribute("BiddingScheme.Type")] - public string BiddingSchemeType { - get { return this.biddingSchemeTypeField; } - set { this.biddingSchemeTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BudgetOptimizerBiddingScheme : BiddingScheme { - private Money bidCeilingField; - - private bool enhancedCpcEnabledField; - - private bool enhancedCpcEnabledFieldSpecified; - - public Money bidCeiling { - get { return this.bidCeilingField; } - set { this.bidCeilingField = value; } - } - - public bool enhancedCpcEnabled { - get { return this.enhancedCpcEnabledField; } - set { - this.enhancedCpcEnabledField = value; - this.enhancedCpcEnabledSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool enhancedCpcEnabledSpecified { - get { return this.enhancedCpcEnabledFieldSpecified; } - set { this.enhancedCpcEnabledFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TargetSpendBiddingScheme : BiddingScheme { - private Money bidCeilingField; - - private Money spendTargetField; - - public Money bidCeiling { - get { return this.bidCeilingField; } - set { this.bidCeilingField = value; } - } - - public Money spendTarget { - get { return this.spendTargetField; } - set { this.spendTargetField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TargetCpaBiddingScheme : BiddingScheme { - private Money targetCpaField; - - public Money targetCpa { - get { return this.targetCpaField; } - set { this.targetCpaField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class PageOnePromotedBiddingScheme : BiddingScheme { - private PageOnePromotedBiddingSchemeStrategyGoal strategyGoalField; - - private bool strategyGoalFieldSpecified; - - private Money bidCeilingField; - - private double bidModifierField; - - private bool bidModifierFieldSpecified; - - private bool bidChangesForRaisesOnlyField; - - private bool bidChangesForRaisesOnlyFieldSpecified; - - private bool raiseBidWhenBudgetConstainedField; - - private bool raiseBidWhenBudgetConstainedFieldSpecified; - - private bool raiseBidWhenLowQualityScoreField; - - private bool raiseBidWhenLowQualityScoreFieldSpecified; - - public PageOnePromotedBiddingSchemeStrategyGoal strategyGoal { - get { return this.strategyGoalField; } - set { - this.strategyGoalField = value; - this.strategyGoalSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool strategyGoalSpecified { - get { return this.strategyGoalFieldSpecified; } - set { this.strategyGoalFieldSpecified = value; } - } - - public Money bidCeiling { - get { return this.bidCeilingField; } - set { this.bidCeilingField = value; } - } - - public double bidModifier { - get { return this.bidModifierField; } - set { - this.bidModifierField = value; - this.bidModifierSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidModifierSpecified { - get { return this.bidModifierFieldSpecified; } - set { this.bidModifierFieldSpecified = value; } - } - - public bool bidChangesForRaisesOnly { - get { return this.bidChangesForRaisesOnlyField; } - set { - this.bidChangesForRaisesOnlyField = value; - this.bidChangesForRaisesOnlySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidChangesForRaisesOnlySpecified { - get { return this.bidChangesForRaisesOnlyFieldSpecified; } - set { this.bidChangesForRaisesOnlyFieldSpecified = value; } - } - - public bool raiseBidWhenBudgetConstained { - get { return this.raiseBidWhenBudgetConstainedField; } - set { - this.raiseBidWhenBudgetConstainedField = value; - this.raiseBidWhenBudgetConstainedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool raiseBidWhenBudgetConstainedSpecified { - get { return this.raiseBidWhenBudgetConstainedFieldSpecified; } - set { this.raiseBidWhenBudgetConstainedFieldSpecified = value; } - } - - public bool raiseBidWhenLowQualityScore { - get { return this.raiseBidWhenLowQualityScoreField; } - set { - this.raiseBidWhenLowQualityScoreField = value; - this.raiseBidWhenLowQualityScoreSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool raiseBidWhenLowQualityScoreSpecified { - get { return this.raiseBidWhenLowQualityScoreFieldSpecified; } - set { this.raiseBidWhenLowQualityScoreFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PageOnePromotedBiddingScheme.StrategyGoal", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum PageOnePromotedBiddingSchemeStrategyGoal { - PAGE_ONE, - PAGE_ONE_PROMOTED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class PercentCpaBiddingScheme : BiddingScheme { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ManualCpmBiddingScheme : BiddingScheme { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ManualCpcBiddingScheme : BiddingScheme { - private bool enhancedCpcEnabledField; - - private bool enhancedCpcEnabledFieldSpecified; - - public bool enhancedCpcEnabled { - get { return this.enhancedCpcEnabledField; } - set { - this.enhancedCpcEnabledField = value; - this.enhancedCpcEnabledSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool enhancedCpcEnabledSpecified { - get { return this.enhancedCpcEnabledFieldSpecified; } - set { this.enhancedCpcEnabledFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class EnhancedCpcBiddingScheme : BiddingScheme { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConversionOptimizerBiddingScheme : BiddingScheme { - private ConversionOptimizerBiddingSchemePricingMode pricingModeField; - - private bool pricingModeFieldSpecified; - - private ConversionOptimizerBiddingSchemeBidType bidTypeField; - - private bool bidTypeFieldSpecified; - - public ConversionOptimizerBiddingSchemePricingMode pricingMode { - get { return this.pricingModeField; } - set { - this.pricingModeField = value; - this.pricingModeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool pricingModeSpecified { - get { return this.pricingModeFieldSpecified; } - set { this.pricingModeFieldSpecified = value; } - } - - public ConversionOptimizerBiddingSchemeBidType bidType { - get { return this.bidTypeField; } - set { - this.bidTypeField = value; - this.bidTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidTypeSpecified { - get { return this.bidTypeFieldSpecified; } - set { this.bidTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConversionOptimizerBiddingScheme.PricingMode", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ConversionOptimizerBiddingSchemePricingMode { - CLICKS, - CONVERSIONS - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConversionOptimizerBiddingScheme.BidType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ConversionOptimizerBiddingSchemeBidType { - TARGET_CPA - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CpmBid))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CpcBid))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CpaBid))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PercentCpaBid))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class Bids { - private string bidsTypeField; - - [System.Xml.Serialization.XmlElementAttribute("Bids.Type")] - public string BidsType { - get { return this.bidsTypeField; } - set { this.bidsTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CpmBid : Bids { - private Money bidField; - - private BidSource cpmBidSourceField; - - private bool cpmBidSourceFieldSpecified; - - public Money bid { - get { return this.bidField; } - set { this.bidField = value; } - } - - public BidSource cpmBidSource { - get { return this.cpmBidSourceField; } - set { - this.cpmBidSourceField = value; - this.cpmBidSourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool cpmBidSourceSpecified { - get { return this.cpmBidSourceFieldSpecified; } - set { this.cpmBidSourceFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BidSource { - ADGROUP, - CRITERION - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CpcBid : Bids { - private Money bidField; - - private Money contentBidField; - - private BidSource cpcBidSourceField; - - private bool cpcBidSourceFieldSpecified; - - public Money bid { - get { return this.bidField; } - set { this.bidField = value; } - } - - public Money contentBid { - get { return this.contentBidField; } - set { this.contentBidField = value; } - } - - public BidSource cpcBidSource { - get { return this.cpcBidSourceField; } - set { - this.cpcBidSourceField = value; - this.cpcBidSourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool cpcBidSourceSpecified { - get { return this.cpcBidSourceFieldSpecified; } - set { this.cpcBidSourceFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CpaBid : Bids { - private Money bidField; - - public Money bid { - get { return this.bidField; } - set { this.bidField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class PercentCpaBid : Bids { - private int bidField; - - private bool bidFieldSpecified; - - private BidSource percentCpaBidSourceField; - - private bool percentCpaBidSourceFieldSpecified; - - public int bid { - get { return this.bidField; } - set { - this.bidField = value; - this.bidSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidSpecified { - get { return this.bidFieldSpecified; } - set { this.bidFieldSpecified = value; } - } - - public BidSource percentCpaBidSource { - get { return this.percentCpaBidSourceField; } - set { - this.percentCpaBidSourceField = value; - this.percentCpaBidSourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool percentCpaBidSourceSpecified { - get { return this.percentCpaBidSourceFieldSpecified; } - set { this.percentCpaBidSourceFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TargetError : ApiError { - private TargetErrorReason reasonField; - - private bool reasonFieldSpecified; - - public TargetErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum TargetErrorReason { - AD_SCHEDULE_ADVANCED_INCOMPATIBLE_WITH_CONVERSION_OPTIMIZER, - AD_SCHEDULE_BID_MULTIPLIER_MALFORMED, - AD_SCHEDULE_BID_MULTIPLIER_TOO_BIG, - AD_SCHEDULE_BID_MULTIPLIER_TOO_SMALL, - AD_SCHEDULE_BID_MULTIPLIER_TOO_MANY_FRACTION_DIGITS, - AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT, - AD_SCHEDULE_EXCEEDS_PAST_END_OF_WEEK, - AD_SCHEDULE_INCOMPATIBILITY, - AD_SCHEDULE_INCOMPATIBLE_WITH_BUDGET_OPTIMIZER, - AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS, - AD_SCHEDULE_INVALID_DAY_OF_THE_WEEK, - AD_SCHEDULE_INVALID_TIME_INTERVAL, - AD_SCHEDULE_NO_INTERVALS_WHILE_ENABLED, - AD_SCHEDULE_NOT_MULTIPLE_OF_15_MINUTES, - AD_SCHEDULE_TIME_INTERVALS_OVERLAP, - CANNOT_EXCLUDE_CITY, - CANNOT_EXCLUDE_IF_NOT_TARGETED, - CANNOT_EXCLUDE_METRO, - CANNOT_EXCLUDE_PROVINCE, - CANNOT_OPT_OUT_GOOGLE_SEARCH_WHILE_BID_TO_POSITION_ENABLE, - CANNOT_TARGET_AGE_WITHOUT_GENDER, - CANNOT_TARGET_CITY, - CANNOT_TARGET_CONTENT_CONTEXTUAL_WITHOUT_CONTENT_NETWORK, - CANNOT_MODIFY_CONTENT_CONTEXTUAL, - CANNOT_TARGET_COUNTRY, - CANNOT_TARGET_COVERAGE, - CANNOT_TARGET_GENDER_WITHOUT_AGE, - CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN, - CANNOT_CHANGE_GOOGLE_SEARCH_SETTING, - CANNOT_TARGET_LANGUAGE, - CANNOT_TARGET_METRO, - CANNOT_TARGET_MOBILE_CARRIER, - CANNOT_TARGET_PROVINCE, - CANNOT_TARGET_SEARCH_SYNDICATION_WITHOUT_GOOGLE_SEARCH, - CANNOT_TARGET_SYNDICATABLE_TYPES, - CANNOT_TARGET_THE_SAME_TARGET_LIST_TYPE_MULTIPLE_TIMES, - DEMOGRAPHIC_BID_MODIFIER_SHOULD_BE_IN_BETWEEN_0_AND_500, - INVALID_CITY_CODE, - INVALID_CITYNAME_LENGTH, - INVALID_EXCLUDED_POLYGON_TARGET, - INVALID_EXCLUDED_PROXIMITY_TARGET, - INVALID_LANGUAGE_CODE, - INVALID_LATITUDE, - INVALID_LONGITUDE, - INVALID_METRO_CODE, - INVALID_MOBILE_CARRIER, - INVALID_MOBILE_PLATFORM, - INVALID_POSTALCODE_LENGTH, - INVALID_PROVINCE_CODE, - INVALID_PROXIMITY_RADIUS, - INVALID_REGIONCODE_LENGTH, - INVALID_REGIONNAME_LENGTH, - INVALID_STREETADDRESS_LENGTH, - MULTIPLE_OCCURRENCES_OF_SAME_TARGET, - POLYGON_DUPLICATE_VERTICES, - POLYGON_EDGES_INTERSECT, - POLYGON_TOO_FEW_VERTICES, - POLYGON_TOO_MANY_VERTICES, - POLYGON_TOO_LARGE, - TARGETING_VALIDATION_FAILED, - TARGETING_CROSS_COUNTRY_REGIONAL, - TARGETING_EXCLUSION_NOT_SUPPORTED, - TARGETING_INCOMPATIBLE_LOCATION_TYPES, - TARGETING_NOT_SUPPORTED, - TARGETING_TOO_MANY_REGIONS, - TOO_MANY_EXCLUDED_LOCATIONS, - TOO_MANY_TARGETED_LOCATIONS, - WARNING_MAY_NOW_REQUIRE_CHINESE_APPROVAL, - WARNING_NOW_REQUIRES_CHINESE_APPROVAL, - WARNING_NOW_TARGETS_CHINA, - WARNING_NOW_TARGETS_CHINESE, - TARGET_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class StatsQueryError : ApiError { - private StatsQueryErrorReason reasonField; - - private bool reasonFieldSpecified; - - public StatsQueryErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StatsQueryError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum StatsQueryErrorReason { - DATE_NOT_IN_VALID_RANGE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SettingError : ApiError { - private SettingErrorReason reasonField; - - private bool reasonFieldSpecified; - - public SettingErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SettingError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SettingErrorReason { - DUPLICATE_SETTING_TYPE, - SETTING_TYPE_IS_NOT_AVAILABLE, - SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN, - TARGETING_SETTING_REQUIRES_CAMPAIGN_TARGET_RESTRICT_SETTING, - TARGET_RESTRICT_SETTING_CANNOT_BE_REVERSED, - TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class QuotaError : ApiError { - private QuotaErrorReason reasonField; - - private bool reasonFieldSpecified; - - private int limitField; - - private bool limitFieldSpecified; - - public QuotaErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - public int limit { - get { return this.limitField; } - set { - this.limitField = value; - this.limitSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool limitSpecified { - get { return this.limitFieldSpecified; } - set { this.limitFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "QuotaError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum QuotaErrorReason { - TOO_MANY_ADGROUPS_PER_CAMPAIGN, - TOO_MANY_CAMPAIGNS_PER_ACCOUNT, - TOO_MANY_CONVERSION_TYPES_PER_ACCOUNT, - TOO_MANY_KEYWORDS_PER_ADGROUP, - TOO_MANY_KEYWORDS_PER_CAMPAIGN, - TOO_MANY_KEYWORDS_PER_CUSTOMER, - TOO_MANY_SITES_PER_ADGROUP, - TOO_MANY_SITES_PER_CAMPAIGN, - TOO_MANY_CRITERIA_PER_ACCOUNT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ForwardCompatibilityError : ApiError { - private ForwardCompatibilityErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ForwardCompatibilityErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ForwardCompatibilityError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ForwardCompatibilityErrorReason { - INVALID_FORWARD_COMPATIBILITY_MAP_VALUE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignError : ApiError { - private CampaignErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CampaignErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignErrorReason { - AFTER_MAXIMUM_ALLOWABLE_DATE, - CANNOT_GO_BACK_TO_INCOMPLETE, - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED, - CANNOT_SET_END_DATE_BEFORE_EXPERIMENT_END_DATE, - CANNOT_SET_DATE_TO_PAST, - DUPLICATE_CAMPAIGN_NAME, - INCOMPATIBLE_CAMPAIGN_FIELD, - INVALID_CAMPAIGN_NAME, - INVALID_AD_SERVING_OPTIMIZATION_STATUS, - INVALID_TRACKING_URL, - MAX_IMPRESSIONS_NOT_IN_RANGE, - START_DATE_AFTER_END_DATE, - TIME_UNIT_NOT_SUPPORTED, - INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED, - BUDGET_CANNOT_BE_SHARED, - CANNOT_SET_BUDGET, - CAMPAIGN_CANNOT_USE_SHARED_BUDGET, - MUST_SPECIFY_KEYWORD_MATCH_SETTINGS, - BIDDING_STRATEGY_NOT_SUPPORTED_WITH_BID_MODIFIER, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingTransitionError : ApiError { - private BiddingTransitionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public BiddingTransitionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BiddingTransitionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BiddingTransitionErrorReason { - BID_TO_POSITION_ENABLED, - BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE, - BUDGET_OPTIMIZER_IS_ENABLED, - CONVERSION_OPTIMIZER_IS_ENABLED, - CONVERSION_TRACKING_NOT_ENABLED, - CONVERSION_TRACKING_NOT_AVAILABLE_FOR_ACCOUNT_TYPE, - USE_POSITION_PREFERENCE_IN_MANUALCPC_INSTEAD_TO_DISABLE_POSITION_PREFERENCE, - INVALID_BID, - CANNOT_SET_EXPLICIT_BID, - EXPLICIT_BID_REQUIRED_FOR_TRANSITION, - EXPLICIT_BID_TYPE_DOES_NOT_MATCH_CAMPAIGN_BIDDING_STRATEGY, - MISSING_REQUIRED_BID, - INVALID_STATUS, - IS_CPM_CAMPAIGN, - IS_PERCENT_CPA_CAMPAIGN, - NOT_THE_PREVIOUS_BIDDING_STRATEGY, - NOT_ENOUGH_CONVERSION_DATA, - NOT_ENOUGH_CONVERSIONS, - OPTED_IN_SEARCH, - PROXY_BIDDING_ON, - SITE_REMNANT_RESERVATION_ALLOWED, - TRANSITION_TO_ITSELF, - UNKNOWN_BIDDING_STRATEGY, - UNSUPPORTED_TRANSITION, - VCG_ENABLED, - BIDDING_TRANSITION_FAILED, - ACCELERATED_DELIVERY_NOT_SUPPORTED_FOR_BUDGET_OPTIMIZER, - HAS_ACTIVE_EXPERIMENT, - INCOMPATIBLE_WITH_CAMPAIGN_SETTING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingErrors : ApiError { - private BiddingErrorsReason reasonField; - - private bool reasonFieldSpecified; - - public BiddingErrorsReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BiddingErrors.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BiddingErrorsReason { - BIDDING_STRATEGY_OVERRIDE_NOT_ALLOWED, - BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED, - BIDDING_STRATEGY_NOT_COMPATIBLE_WITH_ADGROUP_OVERRIDES, - BIDDING_STRATEGY_NOT_COMPATIBLE_WITH_ADGROUP_CRITERIA_OVERRIDES, - CAMPAIGN_BIDDING_STRATEGY_CANNOT_BE_OVERRIDDEN, - ADGROUP_BIDDING_STRATEGY_CANNOT_BE_OVERRIDDEN, - CANNOT_ATTACH_BIDDING_STRATEGY_TO_ADGROUP, - CANNOT_ATTACH_BIDDING_STRATEGY_TO_ADGROUP_CRITERIA, - PERCENT_CPA_NOT_AVAILABLE_FOR_CUSTOMER, - INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE, - BIDS_NOT_ALLLOWED, - DUPLICATE_BIDS, - INVALID_BIDDING_SCHEME, - INVALID_BIDDING_STRATEGY_TYPE, - MISSING_BIDDING_STRATEGY_TYPE, - NULL_BID, - INVALID_BID, - BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE, - CONVERSION_TRACKING_NOT_ENABLED, - NOT_ENOUGH_CONVERSIONS, - NOT_ENOUGH_CONVERSION_DATA, - CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER, - CANNOT_ATTACH_POP_BIDDING_STRATEGY_FOR_CONTENT_NETWORK_ONLY_CAMPAIGN, - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_AD_GROUP_LEVEL_POP_BIDDING_STRATEGY, - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY, - BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE, - PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER, - PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA, - BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS, - BIDDING_STRATEGY_NOT_SUPPORTED_FOR_CAMPAIGNS_WITH_EXPERIMENTS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingError : ApiError { - private BiddingErrorReason reasonField; - - private bool reasonFieldSpecified; - - public BiddingErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BiddingError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BiddingErrorReason { - BID_AMOUNT_REQUIRED, - BID_TOO_SMALL, - BID_TOO_BIG, - BID_TOO_MANY_FRACTIONAL_DIGITS, - NON_POSITIVE_BID, - BID_TOO_HIGH_FOR_DAILY_BUDGET, - BID_TOO_HIGH_FOR_MONTHLY_BUDGET, - MUST_EXCLUDE_0_TO_17_WITH_OTHER_AGE_EXCLUSIONS, - CAMPAIGN_MUST_HAVE_A_BUDGET_TO_ENABLE_BUDGET_OPTIMIZER, - CANNOT_SET_CONTENT_BID_WITHOUT_SETTING_KEYWORD_MAX_CPC_AS_WELL, - CANNOT_CREATE_CAMPAIGN_WITH_CONVERSION_OPTIMIZER, - PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER, - PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA, - PAY_PER_CONVERSION_NOT_ALLOWED_WITH_MANY_PER_CLICK, - TARGET_CPA_NOT_AVAILABLE_FOR_CUSTOMER, - MANY_PER_CLICK_NOT_AVAILABLE_FOR_CUSTOMER, - CANNOT_SET_SITE_MAX_CPC, - BID_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignOperation : Operation { - private Campaign operandField; - - public Campaign operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignPage : Page { - private Campaign[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public Campaign[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "CampaignFeedServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class CampaignFeedService : AdWordsSoapClient, ICampaignFeedService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public CampaignFeedService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/CampaignFeedService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignFeedPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((CampaignFeedPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignFeedReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -CampaignFeedOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((CampaignFeedReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignFeedReturnValue : ListReturnValue { - private CampaignFeed[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public CampaignFeed[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignFeed { - private long feedIdField; - - private bool feedIdFieldSpecified; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private Function matchingFunctionField; - - private int[] placeholderTypesField; - - private CampaignFeedStatus statusField; - - private bool statusFieldSpecified; - - public long feedId { - get { return this.feedIdField; } - set { - this.feedIdField = value; - this.feedIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedIdSpecified { - get { return this.feedIdFieldSpecified; } - set { this.feedIdFieldSpecified = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public Function matchingFunction { - get { return this.matchingFunctionField; } - set { this.matchingFunctionField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("placeholderTypes")] - public int[] placeholderTypes { - get { return this.placeholderTypesField; } - set { this.placeholderTypesField = value; } - } - - public CampaignFeedStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Function { - private FunctionOperator operatorField; - - private bool operatorFieldSpecified; - - private FunctionArgumentOperand[] lhsOperandField; - - private FunctionArgumentOperand[] rhsOperandField; - - public FunctionOperator @operator { - get { return this.operatorField; } - set { - this.operatorField = value; - this.operatorSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { - get { return this.operatorFieldSpecified; } - set { this.operatorFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("lhsOperand")] - public FunctionArgumentOperand[] lhsOperand { - get { return this.lhsOperandField; } - set { this.lhsOperandField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("rhsOperand")] - public FunctionArgumentOperand[] rhsOperand { - get { return this.rhsOperandField; } - set { this.rhsOperandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Function.Operator", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FunctionOperator { - IN, - IDENTITY, - EQUALS, - AND, - UNKNOWN - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RequestContextOperand))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FunctionOperand))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedAttributeOperand))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ConstantOperand))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class FunctionArgumentOperand { - private string functionArgumentOperandTypeField; - - [System.Xml.Serialization.XmlElementAttribute("FunctionArgumentOperand.Type")] - public string FunctionArgumentOperandType { - get { return this.functionArgumentOperandTypeField; } - set { this.functionArgumentOperandTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class RequestContextOperand : FunctionArgumentOperand { - private RequestContextOperandContextType contextTypeField; - - private bool contextTypeFieldSpecified; - - public RequestContextOperandContextType contextType { - get { return this.contextTypeField; } - set { - this.contextTypeField = value; - this.contextTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool contextTypeSpecified { - get { return this.contextTypeFieldSpecified; } - set { this.contextTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RequestContextOperand.ContextType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RequestContextOperandContextType { - CAMPAIGN_ID, - ADGROUP_ID, - AD_ID, - FEED_ITEM_ID, - DEVICE_PLATFORM, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FunctionOperand : FunctionArgumentOperand { - private Function valueField; - - public Function value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedAttributeOperand : FunctionArgumentOperand { - private long feedIdField; - - private bool feedIdFieldSpecified; - - private long feedAttributeIdField; - - private bool feedAttributeIdFieldSpecified; - - public long feedId { - get { return this.feedIdField; } - set { - this.feedIdField = value; - this.feedIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedIdSpecified { - get { return this.feedIdFieldSpecified; } - set { this.feedIdFieldSpecified = value; } - } - - public long feedAttributeId { - get { return this.feedAttributeIdField; } - set { - this.feedAttributeIdField = value; - this.feedAttributeIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedAttributeIdSpecified { - get { return this.feedAttributeIdFieldSpecified; } - set { this.feedAttributeIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConstantOperand : FunctionArgumentOperand { - private ConstantOperandConstantType typeField; - - private bool typeFieldSpecified; - - private long longValueField; - - private bool longValueFieldSpecified; - - private bool booleanValueField; - - private bool booleanValueFieldSpecified; - - private double doubleValueField; - - private bool doubleValueFieldSpecified; - - private string stringValueField; - - public ConstantOperandConstantType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public long longValue { - get { return this.longValueField; } - set { - this.longValueField = value; - this.longValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool longValueSpecified { - get { return this.longValueFieldSpecified; } - set { this.longValueFieldSpecified = value; } - } - - public bool booleanValue { - get { return this.booleanValueField; } - set { - this.booleanValueField = value; - this.booleanValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool booleanValueSpecified { - get { return this.booleanValueFieldSpecified; } - set { this.booleanValueFieldSpecified = value; } - } - - public double doubleValue { - get { return this.doubleValueField; } - set { - this.doubleValueField = value; - this.doubleValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool doubleValueSpecified { - get { return this.doubleValueFieldSpecified; } - set { this.doubleValueFieldSpecified = value; } - } - - public string stringValue { - get { return this.stringValueField; } - set { this.stringValueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConstantOperand.ConstantType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ConstantOperandConstantType { - BOOLEAN, - DOUBLE, - LONG, - STRING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignFeed.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignFeedStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignFeedOperation : Operation { - private CampaignFeed operandField; - - public CampaignFeed operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignFeedPage))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedItemPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FeedMappingPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedSetPage))] - public abstract partial class NullStatsPage : Page { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignFeedPage : NullStatsPage { - private CampaignFeed[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public CampaignFeed[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FunctionError : ApiError { - private FunctionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public FunctionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FunctionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FunctionErrorReason { - DATA_TYPE_MISMATCH, - INVALID_CONJUNCTION_OPERANDS, - INVALID_NUMBER_OF_OPERANDS, - INVALID_OPERAND_TYPE, - INVALID_OPERATOR, - INVALID_REQUEST_CONTEXT_TYPE, - INVALID_FUNCTION_FOR_CALL_PLACEHOLDER, - INVALID_OPERAND, - MISSING_CONSTANT_OPERAND_VALUE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CollectionSizeError : ApiError { - private CollectionSizeErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CollectionSizeErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CollectionSizeError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CollectionSizeErrorReason { - TOO_FEW, - TOO_MANY - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignFeedError : ApiError { - private CampaignFeedErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CampaignFeedErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignFeedError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignFeedErrorReason { - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, - INVALID_ID, - CANNOT_ADD_ALREADY_EXISTING_CAMPAIGN_FEED, - CANNOT_OPERATE_ON_DELETED_CAMPAIGN_FEED, - INVALID_PLACEHOLDER_TYPES, - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "CampaignSharedSetServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class CampaignSharedSetService : AdWordsSoapClient, ICampaignSharedSetService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public CampaignSharedSetService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/CampaignSharedSetService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignSharedSetPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((CampaignSharedSetPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CampaignSharedSetReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -CampaignSharedSetOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((CampaignSharedSetReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignSharedSetReturnValue : ListReturnValue { - private CampaignSharedSet[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public CampaignSharedSet[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignSharedSet { - private long sharedSetIdField; - - private bool sharedSetIdFieldSpecified; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string sharedSetNameField; - - private SharedSetType sharedSetTypeField; - - private bool sharedSetTypeFieldSpecified; - - private string campaignNameField; - - private CampaignSharedSetStatus statusField; - - private bool statusFieldSpecified; - - public long sharedSetId { - get { return this.sharedSetIdField; } - set { - this.sharedSetIdField = value; - this.sharedSetIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sharedSetIdSpecified { - get { return this.sharedSetIdFieldSpecified; } - set { this.sharedSetIdFieldSpecified = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public string sharedSetName { - get { return this.sharedSetNameField; } - set { this.sharedSetNameField = value; } - } - - public SharedSetType sharedSetType { - get { return this.sharedSetTypeField; } - set { - this.sharedSetTypeField = value; - this.sharedSetTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sharedSetTypeSpecified { - get { return this.sharedSetTypeFieldSpecified; } - set { this.sharedSetTypeFieldSpecified = value; } - } - - public string campaignName { - get { return this.campaignNameField; } - set { this.campaignNameField = value; } - } - - public CampaignSharedSetStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SharedSetType { - NEGATIVE_KEYWORDS, - NEGATIVE_PLACEMENTS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignSharedSet.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignSharedSetStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignSharedSetOperation : Operation { - private CampaignSharedSet operandField; - - public CampaignSharedSet operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignSharedSetPage : NullStatsPage { - private CampaignSharedSet[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public CampaignSharedSet[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignSharedSetError : ApiError { - private CampaignSharedSetErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CampaignSharedSetErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CampaignSharedSetError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CampaignSharedSetErrorReason { - CAMPAIGN_SHARED_SET_DOES_NOT_EXIST, - SHARED_SET_NOT_ACTIVE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ConstantDataServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Criterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ConstantDataService : AdWordsSoapClient, IConstantDataService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public ConstantDataService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/ConstantDataService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AgeRange[] getAgeRangeCriterion() { - object[] results = this.Invoke("getAgeRangeCriterion", new object[0]); - return ((AgeRange[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Carrier[] getCarrierCriterion() { - object[] results = this.Invoke("getCarrierCriterion", new object[0]); - return ((Carrier[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Gender[] getGenderCriterion() { - object[] results = this.Invoke("getGenderCriterion", new object[0]); - return ((Gender[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Language[] getLanguageCriterion() { - object[] results = this.Invoke("getLanguageCriterion", new object[0]); - return ((Language[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual MobileDevice[] getMobileDeviceCriterion() { - object[] results = this.Invoke("getMobileDeviceCriterion", new object[0]); - return ((MobileDevice[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual OperatingSystemVersion[] getOperatingSystemVersionCriterion() { - object[] results = this.Invoke("getOperatingSystemVersionCriterion", new object[0]); - return ((OperatingSystemVersion[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CriterionUserInterest[] getUserInterestCriterion() { - object[] results = this.Invoke("getUserInterestCriterion", new object[0]); - return ((CriterionUserInterest[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Vertical[] getVerticalCriterion() { - object[] results = this.Invoke("getVerticalCriterion", new object[0]); - return ((Vertical[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ConversionTrackerServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ConversionTrackerService : AdWordsSoapClient, IConversionTrackerService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public ConversionTrackerService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/ConversionTrackerService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ConversionTrackerPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((ConversionTrackerPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ConversionTrackerReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -ConversionTrackerOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((ConversionTrackerReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConversionTrackerReturnValue : ListReturnValue { - private ConversionTracker[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public ConversionTracker[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UploadConversion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AppConversion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdWordsConversionTracker))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class ConversionTracker { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private ConversionTrackerStatus statusField; - - private bool statusFieldSpecified; - - private ConversionTrackerCategory categoryField; - - private bool categoryFieldSpecified; - - private ConversionTrackerStats statsField; - - private int viewthroughLookbackWindowField; - - private bool viewthroughLookbackWindowFieldSpecified; - - private bool isProductAdsChargeableField; - - private bool isProductAdsChargeableFieldSpecified; - - private int productAdsChargeableConversionWindowField; - - private bool productAdsChargeableConversionWindowFieldSpecified; - - private int ctcLookbackWindowField; - - private bool ctcLookbackWindowFieldSpecified; - - private string conversionTrackerTypeField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public ConversionTrackerStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public ConversionTrackerCategory category { - get { return this.categoryField; } - set { - this.categoryField = value; - this.categorySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool categorySpecified { - get { return this.categoryFieldSpecified; } - set { this.categoryFieldSpecified = value; } - } - - public ConversionTrackerStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - public int viewthroughLookbackWindow { - get { return this.viewthroughLookbackWindowField; } - set { - this.viewthroughLookbackWindowField = value; - this.viewthroughLookbackWindowSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool viewthroughLookbackWindowSpecified { - get { return this.viewthroughLookbackWindowFieldSpecified; } - set { this.viewthroughLookbackWindowFieldSpecified = value; } - } - - public bool isProductAdsChargeable { - get { return this.isProductAdsChargeableField; } - set { - this.isProductAdsChargeableField = value; - this.isProductAdsChargeableSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isProductAdsChargeableSpecified { - get { return this.isProductAdsChargeableFieldSpecified; } - set { this.isProductAdsChargeableFieldSpecified = value; } - } - - public int productAdsChargeableConversionWindow { - get { return this.productAdsChargeableConversionWindowField; } - set { - this.productAdsChargeableConversionWindowField = value; - this.productAdsChargeableConversionWindowSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool productAdsChargeableConversionWindowSpecified { - get { return this.productAdsChargeableConversionWindowFieldSpecified; } - set { this.productAdsChargeableConversionWindowFieldSpecified = value; } - } - - public int ctcLookbackWindow { - get { return this.ctcLookbackWindowField; } - set { - this.ctcLookbackWindowField = value; - this.ctcLookbackWindowSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ctcLookbackWindowSpecified { - get { return this.ctcLookbackWindowFieldSpecified; } - set { this.ctcLookbackWindowFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("ConversionTracker.Type")] - public string ConversionTrackerType { - get { return this.conversionTrackerTypeField; } - set { this.conversionTrackerTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConversionTracker.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ConversionTrackerStatus { - ENABLED, - DISABLED, - HIDDEN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConversionTracker.Category", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ConversionTrackerCategory { - DEFAULT, - PAGE_VIEW, - PURCHASE, - SIGNUP, - LEAD, - REMARKETING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConversionTrackerStats { - private int numConversionEventsField; - - private bool numConversionEventsFieldSpecified; - - private Money conversionValueField; - - private string mostRecentConversionDateField; - - private int numConvertedClicksField; - - private bool numConvertedClicksFieldSpecified; - - public int numConversionEvents { - get { return this.numConversionEventsField; } - set { - this.numConversionEventsField = value; - this.numConversionEventsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numConversionEventsSpecified { - get { return this.numConversionEventsFieldSpecified; } - set { this.numConversionEventsFieldSpecified = value; } - } - - public Money conversionValue { - get { return this.conversionValueField; } - set { this.conversionValueField = value; } - } - - public string mostRecentConversionDate { - get { return this.mostRecentConversionDateField; } - set { this.mostRecentConversionDateField = value; } - } - - public int numConvertedClicks { - get { return this.numConvertedClicksField; } - set { - this.numConvertedClicksField = value; - this.numConvertedClicksSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numConvertedClicksSpecified { - get { return this.numConvertedClicksFieldSpecified; } - set { this.numConvertedClicksFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class UploadConversion : ConversionTracker { - private string userRevenueValueField; - - public string userRevenueValue { - get { return this.userRevenueValueField; } - set { this.userRevenueValueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AppConversion : ConversionTracker { - private string appIdField; - - private AppConversionAppPlatform appPlatformField; - - private bool appPlatformFieldSpecified; - - private string userRevenueValueField; - - private string snippetField; - - private AppConversionAppConversionType appConversionTypeField; - - private bool appConversionTypeFieldSpecified; - - public string appId { - get { return this.appIdField; } - set { this.appIdField = value; } - } - - public AppConversionAppPlatform appPlatform { - get { return this.appPlatformField; } - set { - this.appPlatformField = value; - this.appPlatformSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool appPlatformSpecified { - get { return this.appPlatformFieldSpecified; } - set { this.appPlatformFieldSpecified = value; } - } - - public string userRevenueValue { - get { return this.userRevenueValueField; } - set { this.userRevenueValueField = value; } - } - - public string snippet { - get { return this.snippetField; } - set { this.snippetField = value; } - } - - public AppConversionAppConversionType appConversionType { - get { return this.appConversionTypeField; } - set { - this.appConversionTypeField = value; - this.appConversionTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool appConversionTypeSpecified { - get { return this.appConversionTypeFieldSpecified; } - set { this.appConversionTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AppConversion.AppPlatform", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AppConversionAppPlatform { - NONE, - ITUNES, - ANDROID_MARKET, - MOBILE_APP_CHANNEL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AppConversion.AppConversionType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AppConversionAppConversionType { - NONE, - DOWNLOAD, - IN_APP_PURCHASE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdWordsConversionTracker : ConversionTracker { - private string snippetField; - - private AdWordsConversionTrackerMarkupLanguage markupLanguageField; - - private bool markupLanguageFieldSpecified; - - private AdWordsConversionTrackerTextFormat textFormatField; - - private bool textFormatFieldSpecified; - - private string conversionPageLanguageField; - - private string backgroundColorField; - - private string userRevenueValueField; - - private AdWordsConversionTrackerTrackingCodeType trackingCodeTypeField; - - private bool trackingCodeTypeFieldSpecified; - - public string snippet { - get { return this.snippetField; } - set { this.snippetField = value; } - } - - public AdWordsConversionTrackerMarkupLanguage markupLanguage { - get { return this.markupLanguageField; } - set { - this.markupLanguageField = value; - this.markupLanguageSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool markupLanguageSpecified { - get { return this.markupLanguageFieldSpecified; } - set { this.markupLanguageFieldSpecified = value; } - } - - public AdWordsConversionTrackerTextFormat textFormat { - get { return this.textFormatField; } - set { - this.textFormatField = value; - this.textFormatSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool textFormatSpecified { - get { return this.textFormatFieldSpecified; } - set { this.textFormatFieldSpecified = value; } - } - - public string conversionPageLanguage { - get { return this.conversionPageLanguageField; } - set { this.conversionPageLanguageField = value; } - } - - public string backgroundColor { - get { return this.backgroundColorField; } - set { this.backgroundColorField = value; } - } - - public string userRevenueValue { - get { return this.userRevenueValueField; } - set { this.userRevenueValueField = value; } - } - - public AdWordsConversionTrackerTrackingCodeType trackingCodeType { - get { return this.trackingCodeTypeField; } - set { - this.trackingCodeTypeField = value; - this.trackingCodeTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool trackingCodeTypeSpecified { - get { return this.trackingCodeTypeFieldSpecified; } - set { this.trackingCodeTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdWordsConversionTracker.MarkupLanguage", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdWordsConversionTrackerMarkupLanguage { - HTML, - CHTML, - XHTML, - WML - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdWordsConversionTracker.TextFormat", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdWordsConversionTrackerTextFormat { - ONE_LINE, - TWO_LINE, - HIDDEN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdWordsConversionTracker.TrackingCodeType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdWordsConversionTrackerTrackingCodeType { - WEBPAGE, - CLICK_TO_CALL, - ANDROID_REMARKETING, - APPLE_IOS_REMARKETING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConversionTrackerOperation : Operation { - private ConversionTracker operandField; - - public ConversionTracker operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ConversionTrackerPage))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionBidLandscapePage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupBidLandscapePage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductServicePage))] - public abstract partial class NoStatsPage : Page { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConversionTrackerPage : NoStatsPage { - private ConversionTracker[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public ConversionTracker[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ConversionTrackingError : ApiError { - private ConversionTrackingErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ConversionTrackingErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConversionTrackingError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ConversionTrackingErrorReason { - ANALYTICS_NOT_ALLOWED, - CANNOT_ADD_CONVERSION_TYPE_SUBCLASS, - CANNOT_CHANGE_APP_CONVERSION_TYPE, - CANNOT_CHANGE_APP_PLATFORM, - CANNNOT_CHANGE_CONVERSION_SUBCLASS, - CANNOT_SET_HIDDEN_STATUS, - CONVERSION_TYPE_NOT_FOUND, - DOMAIN_EXCEPTION, - DUPLICATE_APP_ID, - DUPLICATE_NAME, - EMAIL_FAILED, - EXCEEDED_CONVERSION_TYPE_LIMIT, - ID_IS_NULL, - INVALID_APP_ID, - INVALID_COLOR, - INVALID_CONVERSION, - INVALID_DATE_RANGE, - INVALID_EMAIL_ADDRESS, - MUST_SET_APP_PLATFORM_AND_APP_CONVERSION_TYPE_TOGETHER, - NAME_ALREADY_EXISTS, - NO_RECIPIENTS, - NO_SNIPPET, - REMARKETING_TYPE_NOT_ALLOWED, - TOO_MANY_WEBPAGES, - UNKNOWN_SORTING_TYPE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "CustomerServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class CustomerService : AdWordsSoapClient, ICustomerService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public CustomerService() { - this.Url = "https://adwords.google.com/api/adwords/mcm/v201309/CustomerService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Customer get() { - object[] results = this.Invoke("get", new object[0]); - return ((Customer) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class Customer { - private long customerIdField; - - private bool customerIdFieldSpecified; - - private string currencyCodeField; - - private string dateTimeZoneField; - - private string descriptiveNameField; - - private bool canManageClientsField; - - private bool canManageClientsFieldSpecified; - - private bool testAccountField; - - private bool testAccountFieldSpecified; - - public long customerId { - get { return this.customerIdField; } - set { - this.customerIdField = value; - this.customerIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customerIdSpecified { - get { return this.customerIdFieldSpecified; } - set { this.customerIdFieldSpecified = value; } - } - - public string currencyCode { - get { return this.currencyCodeField; } - set { this.currencyCodeField = value; } - } - - public string dateTimeZone { - get { return this.dateTimeZoneField; } - set { this.dateTimeZoneField = value; } - } - - public string descriptiveName { - get { return this.descriptiveNameField; } - set { this.descriptiveNameField = value; } - } - - public bool canManageClients { - get { return this.canManageClientsField; } - set { - this.canManageClientsField = value; - this.canManageClientsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool canManageClientsSpecified { - get { return this.canManageClientsFieldSpecified; } - set { this.canManageClientsFieldSpecified = value; } - } - - public bool testAccount { - get { return this.testAccountField; } - set { - this.testAccountField = value; - this.testAccountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool testAccountSpecified { - get { return this.testAccountFieldSpecified; } - set { this.testAccountFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "CustomerSyncServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class CustomerSyncService : AdWordsSoapClient, ICustomerSyncService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public CustomerSyncService() { - this.Url = "https://adwords.google.com/api/adwords/ch/v201309/CustomerSyncService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/ch/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/ch/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CustomerChangeData get(CustomerSyncSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((CustomerChangeData) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public partial class FeedChangeData { - private long feedIdField; - - private bool feedIdFieldSpecified; - - private ChangeStatus feedChangeStatusField; - - private bool feedChangeStatusFieldSpecified; - - private long[] changedFeedItemsField; - - private long[] deletedFeedItemsField; - - public long feedId { - get { return this.feedIdField; } - set { - this.feedIdField = value; - this.feedIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedIdSpecified { - get { return this.feedIdFieldSpecified; } - set { this.feedIdFieldSpecified = value; } - } - - public ChangeStatus feedChangeStatus { - get { return this.feedChangeStatusField; } - set { - this.feedChangeStatusField = value; - this.feedChangeStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedChangeStatusSpecified { - get { return this.feedChangeStatusFieldSpecified; } - set { this.feedChangeStatusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedFeedItems")] - public long[] changedFeedItems { - get { return this.changedFeedItemsField; } - set { this.changedFeedItemsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("deletedFeedItems")] - public long[] deletedFeedItems { - get { return this.deletedFeedItemsField; } - set { this.deletedFeedItemsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public enum ChangeStatus { - FIELDS_UNCHANGED, - FIELDS_CHANGED, - NEW - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public partial class AdGroupChangeData { - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private ChangeStatus adGroupChangeStatusField; - - private bool adGroupChangeStatusFieldSpecified; - - private long[] changedAdsField; - - private long[] changedCriteriaField; - - private long[] deletedCriteriaField; - - private long[] changedFeedsField; - - private long[] deletedFeedsField; - - private long[] changedAdGroupBidModifierCriteriaField; - - private long[] deletedAdGroupBidModifierCriteriaField; - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - public ChangeStatus adGroupChangeStatus { - get { return this.adGroupChangeStatusField; } - set { - this.adGroupChangeStatusField = value; - this.adGroupChangeStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupChangeStatusSpecified { - get { return this.adGroupChangeStatusFieldSpecified; } - set { this.adGroupChangeStatusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedAds")] - public long[] changedAds { - get { return this.changedAdsField; } - set { this.changedAdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedCriteria")] - public long[] changedCriteria { - get { return this.changedCriteriaField; } - set { this.changedCriteriaField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("deletedCriteria")] - public long[] deletedCriteria { - get { return this.deletedCriteriaField; } - set { this.deletedCriteriaField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedFeeds")] - public long[] changedFeeds { - get { return this.changedFeedsField; } - set { this.changedFeedsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("deletedFeeds")] - public long[] deletedFeeds { - get { return this.deletedFeedsField; } - set { this.deletedFeedsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedAdGroupBidModifierCriteria")] - public long[] changedAdGroupBidModifierCriteria { - get { return this.changedAdGroupBidModifierCriteriaField; } - set { this.changedAdGroupBidModifierCriteriaField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("deletedAdGroupBidModifierCriteria")] - public long[] deletedAdGroupBidModifierCriteria { - get { return this.deletedAdGroupBidModifierCriteriaField; } - set { this.deletedAdGroupBidModifierCriteriaField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public partial class CampaignChangeData { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private ChangeStatus campaignChangeStatusField; - - private bool campaignChangeStatusFieldSpecified; - - private AdGroupChangeData[] changedAdGroupsField; - - private long[] addedCampaignCriteriaField; - - private long[] deletedCampaignCriteriaField; - - private long[] addedAdExtensionsField; - - private long[] deletedAdExtensionsField; - - private long[] changedFeedsField; - - private long[] deletedFeedsField; - - private bool campaignTargetingChangedField; - - private bool campaignTargetingChangedFieldSpecified; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public ChangeStatus campaignChangeStatus { - get { return this.campaignChangeStatusField; } - set { - this.campaignChangeStatusField = value; - this.campaignChangeStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignChangeStatusSpecified { - get { return this.campaignChangeStatusFieldSpecified; } - set { this.campaignChangeStatusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedAdGroups")] - public AdGroupChangeData[] changedAdGroups { - get { return this.changedAdGroupsField; } - set { this.changedAdGroupsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("addedCampaignCriteria")] - public long[] addedCampaignCriteria { - get { return this.addedCampaignCriteriaField; } - set { this.addedCampaignCriteriaField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("deletedCampaignCriteria")] - public long[] deletedCampaignCriteria { - get { return this.deletedCampaignCriteriaField; } - set { this.deletedCampaignCriteriaField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("addedAdExtensions")] - public long[] addedAdExtensions { - get { return this.addedAdExtensionsField; } - set { this.addedAdExtensionsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("deletedAdExtensions")] - public long[] deletedAdExtensions { - get { return this.deletedAdExtensionsField; } - set { this.deletedAdExtensionsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedFeeds")] - public long[] changedFeeds { - get { return this.changedFeedsField; } - set { this.changedFeedsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("deletedFeeds")] - public long[] deletedFeeds { - get { return this.deletedFeedsField; } - set { this.deletedFeedsField = value; } - } - - public bool campaignTargetingChanged { - get { return this.campaignTargetingChangedField; } - set { - this.campaignTargetingChangedField = value; - this.campaignTargetingChangedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignTargetingChangedSpecified { - get { return this.campaignTargetingChangedFieldSpecified; } - set { this.campaignTargetingChangedFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public partial class CustomerChangeData { - private CampaignChangeData[] changedCampaignsField; - - private FeedChangeData[] changedFeedsField; - - private string lastChangeTimestampField; - - [System.Xml.Serialization.XmlElementAttribute("changedCampaigns")] - public CampaignChangeData[] changedCampaigns { - get { return this.changedCampaignsField; } - set { this.changedCampaignsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("changedFeeds")] - public FeedChangeData[] changedFeeds { - get { return this.changedFeedsField; } - set { this.changedFeedsField = value; } - } - - public string lastChangeTimestamp { - get { return this.lastChangeTimestampField; } - set { this.lastChangeTimestampField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DateTimeRange { - private string minField; - - private string maxField; - - public string min { - get { return this.minField; } - set { this.minField = value; } - } - - public string max { - get { return this.maxField; } - set { this.maxField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public partial class CustomerSyncSelector { - private DateTimeRange dateTimeRangeField; - - private long[] campaignIdsField; - - private long[] feedIdsField; - - public DateTimeRange dateTimeRange { - get { return this.dateTimeRangeField; } - set { this.dateTimeRangeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignIds")] - public long[] campaignIds { - get { return this.campaignIdsField; } - set { this.campaignIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("feedIds")] - public long[] feedIds { - get { return this.feedIdsField; } - set { this.feedIdsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public partial class CustomerSyncError : ApiError { - private CustomerSyncErrorReason reasonField; - - private bool reasonFieldSpecified; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - public CustomerSyncErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomerSyncError.Reason", Namespace = "https://adwords.google.com/api/adwords/ch/v201309")] - public enum CustomerSyncErrorReason { - INVALID_CAMPAIGN_ID, - INVALID_FEED_ID, - INVALID_DATE_RANGE, - TOO_MANY_CHANGES - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdGroupAdServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdGroupAdService : AdWordsSoapClient, IAdGroupAdService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdGroupAdService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupAdService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupAdPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((AdGroupAdPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupAdReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -AdGroupAdOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((AdGroupAdReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupAdPage query([System.Xml.Serialization.XmlElementAttribute("query")] -string query1) { - object[] results = this.Invoke("query", new object[] { query1 }); - return ((AdGroupAdPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupAdReturnValue : ListReturnValue { - private AdGroupAd[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdGroupAd[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupAd { - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private Ad adField; - - private AdGroupAdExperimentData experimentDataField; - - private AdGroupAdStatus statusField; - - private bool statusFieldSpecified; - - private AdGroupAdApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - private string[] disapprovalReasonsField; - - private bool trademarkDisapprovedField; - - private bool trademarkDisapprovedFieldSpecified; - - private String_StringMapEntry[] forwardCompatibilityMapField; - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - public Ad ad { - get { return this.adField; } - set { this.adField = value; } - } - - public AdGroupAdExperimentData experimentData { - get { return this.experimentDataField; } - set { this.experimentDataField = value; } - } - - public AdGroupAdStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public AdGroupAdApprovalStatus approvalStatus { - get { return this.approvalStatusField; } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { - get { return this.approvalStatusFieldSpecified; } - set { this.approvalStatusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("disapprovalReasons")] - public string[] disapprovalReasons { - get { return this.disapprovalReasonsField; } - set { this.disapprovalReasonsField = value; } - } - - public bool trademarkDisapproved { - get { return this.trademarkDisapprovedField; } - set { - this.trademarkDisapprovedField = value; - this.trademarkDisapprovedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool trademarkDisapprovedSpecified { - get { return this.trademarkDisapprovedFieldSpecified; } - set { this.trademarkDisapprovedFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("forwardCompatibilityMap")] - public String_StringMapEntry[] forwardCompatibilityMap { - get { return this.forwardCompatibilityMapField; } - set { this.forwardCompatibilityMapField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DynamicSearchAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TextAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TemplateAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RichMediaAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ThirdPartyRedirectAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileImageAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ImageAd))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DeprecatedAd))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Ad { - private long idField; - - private bool idFieldSpecified; - - private string urlField; - - private string displayUrlField; - - private long devicePreferenceField; - - private bool devicePreferenceFieldSpecified; - - private string adTypeField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string url { - get { return this.urlField; } - set { this.urlField = value; } - } - - public string displayUrl { - get { return this.displayUrlField; } - set { this.displayUrlField = value; } - } - - public long devicePreference { - get { return this.devicePreferenceField; } - set { - this.devicePreferenceField = value; - this.devicePreferenceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool devicePreferenceSpecified { - get { return this.devicePreferenceFieldSpecified; } - set { this.devicePreferenceFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("Ad.Type")] - public string AdType { - get { return this.adTypeField; } - set { this.adTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DynamicSearchAd : Ad { - private string description1Field; - - private string description2Field; - - public string description1 { - get { return this.description1Field; } - set { this.description1Field = value; } - } - - public string description2 { - get { return this.description2Field; } - set { this.description2Field = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TextAd : Ad { - private string headlineField; - - private string description1Field; - - private string description2Field; - - public string headline { - get { return this.headlineField; } - set { this.headlineField = value; } - } - - public string description1 { - get { return this.description1Field; } - set { this.description1Field = value; } - } - - public string description2 { - get { return this.description2Field; } - set { this.description2Field = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TemplateAd : Ad { - private long templateIdField; - - private bool templateIdFieldSpecified; - - private AdUnionId adUnionIdField; - - private TemplateElement[] templateElementsField; - - private Dimensions dimensionsField; - - private string nameField; - - private int durationField; - - private bool durationFieldSpecified; - - private long originAdIdField; - - private bool originAdIdFieldSpecified; - - public long templateId { - get { return this.templateIdField; } - set { - this.templateIdField = value; - this.templateIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool templateIdSpecified { - get { return this.templateIdFieldSpecified; } - set { this.templateIdFieldSpecified = value; } - } - - public AdUnionId adUnionId { - get { return this.adUnionIdField; } - set { this.adUnionIdField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("templateElements")] - public TemplateElement[] templateElements { - get { return this.templateElementsField; } - set { this.templateElementsField = value; } - } - - public Dimensions dimensions { - get { return this.dimensionsField; } - set { this.dimensionsField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public int duration { - get { return this.durationField; } - set { - this.durationField = value; - this.durationSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSpecified { - get { return this.durationFieldSpecified; } - set { this.durationFieldSpecified = value; } - } - - public long originAdId { - get { return this.originAdIdField; } - set { - this.originAdIdField = value; - this.originAdIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool originAdIdSpecified { - get { return this.originAdIdFieldSpecified; } - set { this.originAdIdFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(TempAdUnionId))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdUnionId { - private long idField; - - private bool idFieldSpecified; - - private string adUnionIdTypeField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("AdUnionId.Type")] - public string AdUnionIdType { - get { return this.adUnionIdTypeField; } - set { this.adUnionIdTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TempAdUnionId : AdUnionId { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TemplateElement { - private string uniqueNameField; - - private TemplateElementField[] fieldsField; - - public string uniqueName { - get { return this.uniqueNameField; } - set { this.uniqueNameField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("fields")] - public TemplateElementField[] fields { - get { return this.fieldsField; } - set { this.fieldsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TemplateElementField { - private string nameField; - - private TemplateElementFieldType typeField; - - private bool typeFieldSpecified; - - private string fieldTextField; - - private Media fieldMediaField; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public TemplateElementFieldType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public string fieldText { - get { return this.fieldTextField; } - set { this.fieldTextField = value; } - } - - public Media fieldMedia { - get { return this.fieldMediaField; } - set { this.fieldMediaField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TemplateElementField.Type", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum TemplateElementFieldType { - ADDRESS, - AUDIO, - ENUM, - IMAGE, - BACKGROUND_IMAGE, - NUMBER, - TEXT, - URL, - VIDEO, - VISIBLE_URL, - UNKNOWN - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Video))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Image))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Audio))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Media { - private long mediaIdField; - - private bool mediaIdFieldSpecified; - - private MediaMediaType typeField; - - private bool typeFieldSpecified; - - private long referenceIdField; - - private bool referenceIdFieldSpecified; - - private Media_Size_DimensionsMapEntry[] dimensionsField; - - private Media_Size_StringMapEntry[] urlsField; - - private MediaMimeType mimeTypeField; - - private bool mimeTypeFieldSpecified; - - private string sourceUrlField; - - private string nameField; - - private long fileSizeField; - - private bool fileSizeFieldSpecified; - - private string creationTimeField; - - private string mediaTypeField; - - public long mediaId { - get { return this.mediaIdField; } - set { - this.mediaIdField = value; - this.mediaIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mediaIdSpecified { - get { return this.mediaIdFieldSpecified; } - set { this.mediaIdFieldSpecified = value; } - } - - public MediaMediaType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public long referenceId { - get { return this.referenceIdField; } - set { - this.referenceIdField = value; - this.referenceIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool referenceIdSpecified { - get { return this.referenceIdFieldSpecified; } - set { this.referenceIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("dimensions")] - public Media_Size_DimensionsMapEntry[] dimensions { - get { return this.dimensionsField; } - set { this.dimensionsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("urls")] - public Media_Size_StringMapEntry[] urls { - get { return this.urlsField; } - set { this.urlsField = value; } - } - - public MediaMimeType mimeType { - get { return this.mimeTypeField; } - set { - this.mimeTypeField = value; - this.mimeTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mimeTypeSpecified { - get { return this.mimeTypeFieldSpecified; } - set { this.mimeTypeFieldSpecified = value; } - } - - public string sourceUrl { - get { return this.sourceUrlField; } - set { this.sourceUrlField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public long fileSize { - get { return this.fileSizeField; } - set { - this.fileSizeField = value; - this.fileSizeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool fileSizeSpecified { - get { return this.fileSizeFieldSpecified; } - set { this.fileSizeFieldSpecified = value; } - } - - public string creationTime { - get { return this.creationTimeField; } - set { this.creationTimeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("Media.Type")] - public string MediaType { - get { return this.mediaTypeField; } - set { this.mediaTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Media.MediaType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MediaMediaType { - AUDIO, - DYNAMIC_IMAGE, - ICON, - IMAGE, - STANDARD_ICON, - VIDEO - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Media_Size_DimensionsMapEntry { - private MediaSize keyField; - - private bool keyFieldSpecified; - - private Dimensions valueField; - - public MediaSize key { - get { return this.keyField; } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { return this.keyFieldSpecified; } - set { this.keyFieldSpecified = value; } - } - - public Dimensions value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Media.Size", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MediaSize { - FULL, - SHRUNKEN, - PREVIEW, - VIDEO_THUMBNAIL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Dimensions { - private int widthField; - - private bool widthFieldSpecified; - - private int heightField; - - private bool heightFieldSpecified; - - public int width { - get { return this.widthField; } - set { - this.widthField = value; - this.widthSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool widthSpecified { - get { return this.widthFieldSpecified; } - set { this.widthFieldSpecified = value; } - } - - public int height { - get { return this.heightField; } - set { - this.heightField = value; - this.heightSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool heightSpecified { - get { return this.heightFieldSpecified; } - set { this.heightFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Media_Size_StringMapEntry { - private MediaSize keyField; - - private bool keyFieldSpecified; - - private string valueField; - - public MediaSize key { - get { return this.keyField; } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { return this.keyFieldSpecified; } - set { this.keyFieldSpecified = value; } - } - - public string value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Media.MimeType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MediaMimeType { - IMAGE_JPEG, - IMAGE_GIF, - IMAGE_PNG, - FLASH, - TEXT_HTML, - PDF, - MSWORD, - MSEXCEL, - RTF, - AUDIO_WAV, - AUDIO_MP3 - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Video : Media { - private long durationMillisField; - - private bool durationMillisFieldSpecified; - - private string streamingUrlField; - - private bool readyToPlayOnTheWebField; - - private bool readyToPlayOnTheWebFieldSpecified; - - private string industryStandardCommercialIdentifierField; - - private string advertisingIdField; - - private string youTubeVideoIdStringField; - - public long durationMillis { - get { return this.durationMillisField; } - set { - this.durationMillisField = value; - this.durationMillisSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationMillisSpecified { - get { return this.durationMillisFieldSpecified; } - set { this.durationMillisFieldSpecified = value; } - } - - public string streamingUrl { - get { return this.streamingUrlField; } - set { this.streamingUrlField = value; } - } - - public bool readyToPlayOnTheWeb { - get { return this.readyToPlayOnTheWebField; } - set { - this.readyToPlayOnTheWebField = value; - this.readyToPlayOnTheWebSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool readyToPlayOnTheWebSpecified { - get { return this.readyToPlayOnTheWebFieldSpecified; } - set { this.readyToPlayOnTheWebFieldSpecified = value; } - } - - public string industryStandardCommercialIdentifier { - get { return this.industryStandardCommercialIdentifierField; } - set { this.industryStandardCommercialIdentifierField = value; } - } - - public string advertisingId { - get { return this.advertisingIdField; } - set { this.advertisingIdField = value; } - } - - public string youTubeVideoIdString { - get { return this.youTubeVideoIdStringField; } - set { this.youTubeVideoIdStringField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Image : Media { - private byte[] dataField; - - [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] - public byte[] data { - get { return this.dataField; } - set { this.dataField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Audio : Media { - private long durationMillisField; - - private bool durationMillisFieldSpecified; - - private string streamingUrlField; - - private bool readyToPlayOnTheWebField; - - private bool readyToPlayOnTheWebFieldSpecified; - - public long durationMillis { - get { return this.durationMillisField; } - set { - this.durationMillisField = value; - this.durationMillisSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationMillisSpecified { - get { return this.durationMillisFieldSpecified; } - set { this.durationMillisFieldSpecified = value; } - } - - public string streamingUrl { - get { return this.streamingUrlField; } - set { this.streamingUrlField = value; } - } - - public bool readyToPlayOnTheWeb { - get { return this.readyToPlayOnTheWebField; } - set { - this.readyToPlayOnTheWebField = value; - this.readyToPlayOnTheWebSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool readyToPlayOnTheWebSpecified { - get { return this.readyToPlayOnTheWebFieldSpecified; } - set { this.readyToPlayOnTheWebFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ThirdPartyRedirectAd))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class RichMediaAd : Ad { - private string nameField; - - private Dimensions dimensionsField; - - private string snippetField; - - private string impressionBeaconUrlField; - - private int adDurationField; - - private bool adDurationFieldSpecified; - - private long certifiedVendorFormatIdField; - - private bool certifiedVendorFormatIdFieldSpecified; - - private string sourceUrlField; - - private RichMediaAdRichMediaAdType richMediaAdTypeField; - - private bool richMediaAdTypeFieldSpecified; - - private RichMediaAdAdAttribute[] adAttributesField; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public Dimensions dimensions { - get { return this.dimensionsField; } - set { this.dimensionsField = value; } - } - - public string snippet { - get { return this.snippetField; } - set { this.snippetField = value; } - } - - public string impressionBeaconUrl { - get { return this.impressionBeaconUrlField; } - set { this.impressionBeaconUrlField = value; } - } - - public int adDuration { - get { return this.adDurationField; } - set { - this.adDurationField = value; - this.adDurationSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adDurationSpecified { - get { return this.adDurationFieldSpecified; } - set { this.adDurationFieldSpecified = value; } - } - - public long certifiedVendorFormatId { - get { return this.certifiedVendorFormatIdField; } - set { - this.certifiedVendorFormatIdField = value; - this.certifiedVendorFormatIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool certifiedVendorFormatIdSpecified { - get { return this.certifiedVendorFormatIdFieldSpecified; } - set { this.certifiedVendorFormatIdFieldSpecified = value; } - } - - public string sourceUrl { - get { return this.sourceUrlField; } - set { this.sourceUrlField = value; } - } - - public RichMediaAdRichMediaAdType richMediaAdType { - get { return this.richMediaAdTypeField; } - set { - this.richMediaAdTypeField = value; - this.richMediaAdTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool richMediaAdTypeSpecified { - get { return this.richMediaAdTypeFieldSpecified; } - set { this.richMediaAdTypeFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("adAttributes")] - public RichMediaAdAdAttribute[] adAttributes { - get { return this.adAttributesField; } - set { this.adAttributesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaAd.RichMediaAdType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RichMediaAdRichMediaAdType { - STANDARD, - IN_STREAM_VIDEO - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "RichMediaAd.AdAttribute", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum RichMediaAdAdAttribute { - UNKNOWN, - ROLL_OVER_TO_EXPAND, - SSL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ThirdPartyRedirectAd : RichMediaAd { - private bool isCookieTargetedField; - - private bool isCookieTargetedFieldSpecified; - - private bool isUserInterestTargetedField; - - private bool isUserInterestTargetedFieldSpecified; - - private bool isTaggedField; - - private bool isTaggedFieldSpecified; - - private VideoType[] videoTypesField; - - private ThirdPartyRedirectAdExpandingDirection[] expandingDirectionsField; - - public bool isCookieTargeted { - get { return this.isCookieTargetedField; } - set { - this.isCookieTargetedField = value; - this.isCookieTargetedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isCookieTargetedSpecified { - get { return this.isCookieTargetedFieldSpecified; } - set { this.isCookieTargetedFieldSpecified = value; } - } - - public bool isUserInterestTargeted { - get { return this.isUserInterestTargetedField; } - set { - this.isUserInterestTargetedField = value; - this.isUserInterestTargetedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isUserInterestTargetedSpecified { - get { return this.isUserInterestTargetedFieldSpecified; } - set { this.isUserInterestTargetedFieldSpecified = value; } - } - - public bool isTagged { - get { return this.isTaggedField; } - set { - this.isTaggedField = value; - this.isTaggedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isTaggedSpecified { - get { return this.isTaggedFieldSpecified; } - set { this.isTaggedFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("videoTypes")] - public VideoType[] videoTypes { - get { return this.videoTypesField; } - set { this.videoTypesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("expandingDirections")] - public ThirdPartyRedirectAdExpandingDirection[] expandingDirections { - get { return this.expandingDirectionsField; } - set { this.expandingDirectionsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum VideoType { - ADOBE, - REALPLAYER, - QUICKTIME, - WINDOWSMEDIA - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ThirdPartyRedirectAd.ExpandingDirection", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ThirdPartyRedirectAdExpandingDirection { - UNKNOWN, - EXPANDING_UP, - EXPANDING_DOWN, - EXPANDING_LEFT, - EXPANDING_RIGHT, - EXPANDING_UPLEFT, - EXPANDING_UPRIGHT, - EXPANDING_DOWNLEFT, - EXPANDING_DOWNRIGHT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ProductAd : Ad { - private string promotionLineField; - - public string promotionLine { - get { return this.promotionLineField; } - set { this.promotionLineField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MobileImageAd : Ad { - private MarkupLanguageType[] markupLanguagesField; - - private string[] mobileCarriersField; - - private Image imageField; - - [System.Xml.Serialization.XmlElementAttribute("markupLanguages")] - public MarkupLanguageType[] markupLanguages { - get { return this.markupLanguagesField; } - set { this.markupLanguagesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("mobileCarriers")] - public string[] mobileCarriers { - get { return this.mobileCarriersField; } - set { this.mobileCarriersField = value; } - } - - public Image image { - get { return this.imageField; } - set { this.imageField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MarkupLanguageType { - HTML, - CHTML, - XHTML, - WML - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MobileAd : Ad { - private string headlineField; - - private string descriptionField; - - private MarkupLanguageType[] markupLanguagesField; - - private string[] mobileCarriersField; - - private string businessNameField; - - private string countryCodeField; - - private string phoneNumberField; - - public string headline { - get { return this.headlineField; } - set { this.headlineField = value; } - } - - public string description { - get { return this.descriptionField; } - set { this.descriptionField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("markupLanguages")] - public MarkupLanguageType[] markupLanguages { - get { return this.markupLanguagesField; } - set { this.markupLanguagesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("mobileCarriers")] - public string[] mobileCarriers { - get { return this.mobileCarriersField; } - set { this.mobileCarriersField = value; } - } - - public string businessName { - get { return this.businessNameField; } - set { this.businessNameField = value; } - } - - public string countryCode { - get { return this.countryCodeField; } - set { this.countryCodeField = value; } - } - - public string phoneNumber { - get { return this.phoneNumberField; } - set { this.phoneNumberField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ImageAd : Ad { - private Image imageField; - - private string nameField; - - private long adToCopyImageFromField; - - private bool adToCopyImageFromFieldSpecified; - - public Image image { - get { return this.imageField; } - set { this.imageField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public long adToCopyImageFrom { - get { return this.adToCopyImageFromField; } - set { - this.adToCopyImageFromField = value; - this.adToCopyImageFromSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adToCopyImageFromSpecified { - get { return this.adToCopyImageFromFieldSpecified; } - set { this.adToCopyImageFromFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DeprecatedAd : Ad { - private string nameField; - - private DeprecatedAdType typeField; - - private bool typeFieldSpecified; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public DeprecatedAdType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DeprecatedAd.Type", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum DeprecatedAdType { - VIDEO, - CLICK_TO_CALL, - IN_STREAM_VIDEO, - FROOGLE, - TEXT_LINK, - GADGET, - PRINT, - TEXT_WIDE, - GADGET_TEMPLATE, - TEXT_WITH_VIDEO, - AUDIO, - LOCAL_BUSINESS_AD, - AUDIO_TEMPLATE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupAdExperimentData { - private long experimentIdField; - - private bool experimentIdFieldSpecified; - - private ExperimentDeltaStatus experimentDeltaStatusField; - - private bool experimentDeltaStatusFieldSpecified; - - private ExperimentDataStatus experimentDataStatusField; - - private bool experimentDataStatusFieldSpecified; - - public long experimentId { - get { return this.experimentIdField; } - set { - this.experimentIdField = value; - this.experimentIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentIdSpecified { - get { return this.experimentIdFieldSpecified; } - set { this.experimentIdFieldSpecified = value; } - } - - public ExperimentDeltaStatus experimentDeltaStatus { - get { return this.experimentDeltaStatusField; } - set { - this.experimentDeltaStatusField = value; - this.experimentDeltaStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentDeltaStatusSpecified { - get { return this.experimentDeltaStatusFieldSpecified; } - set { this.experimentDeltaStatusFieldSpecified = value; } - } - - public ExperimentDataStatus experimentDataStatus { - get { return this.experimentDataStatusField; } - set { - this.experimentDataStatusField = value; - this.experimentDataStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentDataStatusSpecified { - get { return this.experimentDataStatusFieldSpecified; } - set { this.experimentDataStatusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ExperimentDeltaStatus { - EXPERIMENT_ONLY, - MODIFIED, - CONTROL_ONLY, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ExperimentDataStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupAd.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupAdStatus { - ENABLED, - PAUSED, - DISABLED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupAd.ApprovalStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupAdApprovalStatus { - APPROVED, - DISAPPROVED, - FAMILY_SAFE, - NON_FAMILY_SAFE, - PORN, - UNCHECKED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionPolicyError))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdParamPolicyError))] - public partial class PolicyViolationError : ApiError { - private PolicyViolationKey keyField; - - private string externalPolicyNameField; - - private string externalPolicyUrlField; - - private string externalPolicyDescriptionField; - - private bool isExemptableField; - - private bool isExemptableFieldSpecified; - - private PolicyViolationErrorPart[] violatingPartsField; - - public PolicyViolationKey key { - get { return this.keyField; } - set { this.keyField = value; } - } - - public string externalPolicyName { - get { return this.externalPolicyNameField; } - set { this.externalPolicyNameField = value; } - } - - public string externalPolicyUrl { - get { return this.externalPolicyUrlField; } - set { this.externalPolicyUrlField = value; } - } - - public string externalPolicyDescription { - get { return this.externalPolicyDescriptionField; } - set { this.externalPolicyDescriptionField = value; } - } - - public bool isExemptable { - get { return this.isExemptableField; } - set { - this.isExemptableField = value; - this.isExemptableSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isExemptableSpecified { - get { return this.isExemptableFieldSpecified; } - set { this.isExemptableFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("violatingParts")] - public PolicyViolationErrorPart[] violatingParts { - get { return this.violatingPartsField; } - set { this.violatingPartsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class PolicyViolationKey { - private string policyNameField; - - private string violatingTextField; - - public string policyName { - get { return this.policyNameField; } - set { this.policyNameField = value; } - } - - public string violatingText { - get { return this.violatingTextField; } - set { this.violatingTextField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PolicyViolationError.Part", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class PolicyViolationErrorPart { - private int indexField; - - private bool indexFieldSpecified; - - private int lengthField; - - private bool lengthFieldSpecified; - - public int index { - get { return this.indexField; } - set { - this.indexField = value; - this.indexSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool indexSpecified { - get { return this.indexFieldSpecified; } - set { this.indexFieldSpecified = value; } - } - - public int length { - get { return this.lengthField; } - set { - this.lengthField = value; - this.lengthSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool lengthSpecified { - get { return this.lengthFieldSpecified; } - set { this.lengthFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MediaError : ApiError { - private MediaErrorReason reasonField; - - private bool reasonFieldSpecified; - - public MediaErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MediaError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MediaErrorReason { - CANNOT_ADD_STANDARD_ICON, - CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES, - DUPLICATE_MEDIA, - EMPTY_FIELD, - ENTITY_REFERENCED_IN_MULTIPLE_OPS, - FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE, - INVALID_MEDIA_ID, - INVALID_MEDIA_TYPE, - INVALID_MEDIA_SUB_TYPE, - INVALID_REFERENCE_ID, - INVALID_YOU_TUBE_ID, - YOU_TUBE_VIDEO_NOT_FOUND, - YOU_TUBE_SERVICE_UNAVAILABLE, - YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION, - MEDIA_FAILED_TRANSCODING, - MEDIA_NOT_TRANSCODED, - MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE, - NO_FIELDS_SPECIFIED, - NULL_REFERENCE_ID_AND_MEDIA_ID, - TOO_LONG, - UNSUPPORTED_OPERATION, - UNSUPPORTED_TYPE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ImageError : ApiError { - private ImageErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ImageErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ImageError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ImageErrorReason { - INVALID_IMAGE, - STORAGE_ERROR, - BAD_REQUEST, - UNEXPECTED_SIZE, - ANIMATED_NOT_ALLOWED, - ANIMATION_TOO_LONG, - SERVER_ERROR, - CMYK_JPEG_NOT_ALLOWED, - FLASH_NOT_ALLOWED, - FLASH_WITHOUT_CLICKTAG, - ANIMATED_VISUAL_EFFECT, - FLASH_ERROR, - LAYOUT_PROBLEM, - PROBLEM_READING_IMAGE_FILE, - ERROR_STORING_IMAGE, - FLASH_HAS_NETWORK_OBJECTS, - FLASH_HAS_NETWORK_METHODS, - FLASH_HAS_URL, - FLASH_HAS_MOUSE_TRACKING, - FLASH_HAS_RANDOM_NUM, - FLASH_SELF_TARGETS, - FLASH_BAD_GETURL_TARGET, - FLASH_VERSION_NOT_SUPPORTED, - FLASH_WITHOUT_HARD_CODED_CLICK_URL, - INVALID_FLASH_FILE, - FAILED_TO_FIX_CLICK_TAG_IN_FLASH, - FLASH_ACCESSES_NETWORK_RESOURCES, - FLASH_EXTERNAL_JS_CALL, - FLASH_EXTERNAL_FS_CALL, - FILE_TOO_LARGE, - IMAGE_DATA_TOO_LARGE, - IMAGE_PROCESSING_ERROR, - IMAGE_TOO_SMALL, - INVALID_INPUT, - PROBLEM_READING_FILE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupAdCountLimitExceeded : EntityCountLimitExceeded { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupAdError : ApiError { - private AdGroupAdErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdGroupAdErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupAdError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupAdErrorReason { - AD_NOT_UNDER_ADGROUP, - CANNOT_OPERATE_ON_DELETED_ADGROUPAD, - CANNOT_CREATE_DEPRECATED_ADS, - EMPTY_FIELD, - ENTITY_REFERENCED_IN_MULTIPLE_OPS, - UNSUPPORTED_OPERATION - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdError : ApiError { - private AdErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdErrorReason { - APPROXIMATELY_TOO_LONG, - APPROXIMATELY_TOO_SHORT, - BAD_SNIPPET, - CANNOT_SET_BUSINESS_NAME_IF_URL_SET, - CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET, - CANNOT_SET_URL, - CUSTOMER_NOT_APPROVED_MOBILEADS, - CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS, - CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS, - CUSTOMER_NOT_ELIGIBLE, - CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL, - DIMENSION_ALREADY_IN_UNION, - DIMENSION_MUST_BE_SET, - DIMENSION_NOT_IN_UNION, - DISPLAY_URL_CANNOT_BE_SPECIFIED, - DOMESTIC_PHONE_NUMBER_FORMAT, - EMERGENCY_PHONE_NUMBER, - EMPTY_FIELD, - INCONSISTENT_STATUS_IN_TEMPLATE_UNION, - INCORRECT_LENGTH, - INVALID_AD_ADDRESS_CAMPAIGN_TARGET, - INVALID_AD_TYPE, - INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE, - INVALID_ATTRIBUTES_FOR_MOBILE_TEXT, - INVALID_CHARACTER_FOR_URL, - INVALID_COUNTRY_CODE, - INVALID_DSA_URL_TAG, - INVALID_INPUT, - INVALID_MARKUP_LANGUAGE, - INVALID_MOBILE_CARRIER, - INVALID_MOBILE_CARRIER_TARGET, - INVALID_NUMBER_OF_ELEMENTS, - INVALID_PHONE_NUMBER_FORMAT, - INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID, - INVALID_TEMPLATE_DATA, - INVALID_TEMPLATE_ELEMENT_FIELD_TYPE, - INVALID_TEMPLATE_ID, - LINE_TOO_WIDE, - MARKUP_LANGUAGES_PRESENT, - MISSING_ADDRESS_COMPONENT, - MISSING_ADVERTISEMENT_NAME, - MISSING_BUSINESS_NAME, - MISSING_DESCRIPTION1, - MISSING_DESCRIPTION2, - MISSING_DESTINATION_URL, - MISSING_DESTINATION_URL_TAG, - MISSING_DIMENSION, - MISSING_DISPLAY_URL, - MISSING_HEADLINE, - MISSING_HEIGHT, - MISSING_IMAGE, - MISSING_MARKUP_LANGUAGES, - MISSING_MOBILE_CARRIER, - MISSING_PHONE, - MISSING_REQUIRED_TEMPLATE_FIELDS, - MISSING_TEMPLATE_FIELD_VALUE, - MISSING_TEXT, - MISSING_URL_AND_PHONE, - MISSING_VISIBLE_URL, - MISSING_WIDTH, - MUST_USE_TEMP_AD_UNION_ID_ON_ADD, - TOO_LONG, - TOO_SHORT, - UNION_DIMENSIONS_CANNOT_CHANGE, - UNKNOWN_ADDRESS_COMPONENT, - UNKNOWN_FIELD_NAME, - UNKNOWN_UNIQUE_NAME, - UNSUPPORTED_DIMENSIONS, - URL_INVALID_SCHEME, - URL_INVALID_TOP_LEVEL_DOMAIN, - URL_MALFORMED, - URL_NO_HOST, - URL_HOST_NAME_TOO_LONG, - URL_NO_SCHEME, - URL_NO_TOP_LEVEL_DOMAIN, - URL_PATH_NOT_ALLOWED, - URL_PORT_NOT_ALLOWED, - URL_QUERY_NOT_ALLOWED, - URL_SCHEME_BEFORE_DSA_TAG, - USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE, - INCONSISTENT_EXPANDABLE_SETTINGS, - INVALID_FORMAT, - INVALID_FIELD_TEXT, - ELEMENT_NOT_PRESENT, - IMAGE_ERROR, - VALUE_NOT_IN_RANGE, - FIELD_NOT_PRESENT, - ADDRESS_NOT_COMPLETE, - ADDRESS_INVALID, - VIDEO_RETRIEVAL_ERROR, - AUDIO_ERROR, - INVALID_YOUTUBE_DISPLAY_URL, - UNSUPPORTED_PARENT_CAMPAIGN_FOR_DEVICE_PREFERENCE, - INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ExemptionRequest { - private PolicyViolationKey keyField; - - public PolicyViolationKey key { - get { return this.keyField; } - set { this.keyField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupAdOperation : Operation { - private AdGroupAd operandField; - - private ExemptionRequest[] exemptionRequestsField; - - public AdGroupAd operand { - get { return this.operandField; } - set { this.operandField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("exemptionRequests")] - public ExemptionRequest[] exemptionRequests { - get { return this.exemptionRequestsField; } - set { this.exemptionRequestsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupAdPage : Page { - private AdGroupAd[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdGroupAd[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "DataServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DataEntry))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class DataService : AdWordsSoapClient, IDataService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public DataService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/DataService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupBidLandscapePage getAdGroupBidLandscape(Selector serviceSelector) { - object[] results = this.Invoke("getAdGroupBidLandscape", new object[] { serviceSelector }); - return ((AdGroupBidLandscapePage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual CriterionBidLandscapePage getCriterionBidLandscape(Selector serviceSelector) { - object[] results = this.Invoke("getCriterionBidLandscape", new object[] { serviceSelector }); - return ((CriterionBidLandscapePage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BidLandscape.LandscapePoint", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BidLandscapeLandscapePoint { - private Money bidField; - - private long clicksField; - - private bool clicksFieldSpecified; - - private Money costField; - - private Money marginalCpcField; - - private long impressionsField; - - private bool impressionsFieldSpecified; - - private long promotedImpressionsField; - - private bool promotedImpressionsFieldSpecified; - - public Money bid { - get { return this.bidField; } - set { this.bidField = value; } - } - - public long clicks { - get { return this.clicksField; } - set { - this.clicksField = value; - this.clicksSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clicksSpecified { - get { return this.clicksFieldSpecified; } - set { this.clicksFieldSpecified = value; } - } - - public Money cost { - get { return this.costField; } - set { this.costField = value; } - } - - public Money marginalCpc { - get { return this.marginalCpcField; } - set { this.marginalCpcField = value; } - } - - public long impressions { - get { return this.impressionsField; } - set { - this.impressionsField = value; - this.impressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsSpecified { - get { return this.impressionsFieldSpecified; } - set { this.impressionsFieldSpecified = value; } - } - - public long promotedImpressions { - get { return this.promotedImpressionsField; } - set { - this.promotedImpressionsField = value; - this.promotedImpressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool promotedImpressionsSpecified { - get { return this.promotedImpressionsFieldSpecified; } - set { this.promotedImpressionsFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BidLandscape))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionBidLandscape))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupBidLandscape))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class DataEntry { - private string dataEntryTypeField; - - [System.Xml.Serialization.XmlElementAttribute("DataEntry.Type")] - public string DataEntryType { - get { return this.dataEntryTypeField; } - set { this.dataEntryTypeField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionBidLandscape))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupBidLandscape))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class BidLandscape : DataEntry { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private string startDateField; - - private string endDateField; - - private BidLandscapeLandscapePoint[] landscapePointsField; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - public string startDate { - get { return this.startDateField; } - set { this.startDateField = value; } - } - - public string endDate { - get { return this.endDateField; } - set { this.endDateField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("landscapePoints")] - public BidLandscapeLandscapePoint[] landscapePoints { - get { return this.landscapePointsField; } - set { this.landscapePointsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CriterionBidLandscape : BidLandscape { - private long criterionIdField; - - private bool criterionIdFieldSpecified; - - public long criterionId { - get { return this.criterionIdField; } - set { - this.criterionIdField = value; - this.criterionIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionIdSpecified { - get { return this.criterionIdFieldSpecified; } - set { this.criterionIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupBidLandscape : BidLandscape { - private AdGroupBidLandscapeType typeField; - - private bool typeFieldSpecified; - - private bool landscapeCurrentField; - - private bool landscapeCurrentFieldSpecified; - - public AdGroupBidLandscapeType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public bool landscapeCurrent { - get { return this.landscapeCurrentField; } - set { - this.landscapeCurrentField = value; - this.landscapeCurrentSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool landscapeCurrentSpecified { - get { return this.landscapeCurrentFieldSpecified; } - set { this.landscapeCurrentFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupBidLandscape.Type", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupBidLandscapeType { - UNIFORM, - DEFAULT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CriterionBidLandscapePage : NoStatsPage { - private CriterionBidLandscape[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public CriterionBidLandscape[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupBidLandscapePage : NoStatsPage { - private AdGroupBidLandscape[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdGroupBidLandscape[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class DataError : ApiError { - private DataErrorReason reasonField; - - private bool reasonFieldSpecified; - - public DataErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DataError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum DataErrorReason { - CANNOT_CREATE_TABLE_ENTRY, - NO_TABLE_ENTRY_CLASS_FOR_VIEW_TYPE, - TABLE_SERVICE_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ExperimentServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ExperimentService : AdWordsSoapClient, IExperimentService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public ExperimentService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/ExperimentService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ExperimentPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((ExperimentPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ExperimentReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -ExperimentOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((ExperimentReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ExperimentReturnValue : ListReturnValue { - private Experiment[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public Experiment[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Experiment { - private long idField; - - private bool idFieldSpecified; - - private long controlIdField; - - private bool controlIdFieldSpecified; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string nameField; - - private ExperimentStatus statusField; - - private bool statusFieldSpecified; - - private ExperimentServingStatus servingStatusField; - - private bool servingStatusFieldSpecified; - - private int queryPercentageField; - - private bool queryPercentageFieldSpecified; - - private string startDateTimeField; - - private string endDateTimeField; - - private string lastModifiedDateTimeField; - - private ExperimentSummaryStats experimentSummaryStatsField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public long controlId { - get { return this.controlIdField; } - set { - this.controlIdField = value; - this.controlIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool controlIdSpecified { - get { return this.controlIdFieldSpecified; } - set { this.controlIdFieldSpecified = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public ExperimentStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public ExperimentServingStatus servingStatus { - get { return this.servingStatusField; } - set { - this.servingStatusField = value; - this.servingStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool servingStatusSpecified { - get { return this.servingStatusFieldSpecified; } - set { this.servingStatusFieldSpecified = value; } - } - - public int queryPercentage { - get { return this.queryPercentageField; } - set { - this.queryPercentageField = value; - this.queryPercentageSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool queryPercentageSpecified { - get { return this.queryPercentageFieldSpecified; } - set { this.queryPercentageFieldSpecified = value; } - } - - public string startDateTime { - get { return this.startDateTimeField; } - set { this.startDateTimeField = value; } - } - - public string endDateTime { - get { return this.endDateTimeField; } - set { this.endDateTimeField = value; } - } - - public string lastModifiedDateTime { - get { return this.lastModifiedDateTimeField; } - set { this.lastModifiedDateTimeField = value; } - } - - public ExperimentSummaryStats experimentSummaryStats { - get { return this.experimentSummaryStatsField; } - set { this.experimentSummaryStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ExperimentStatus { - ACTIVE, - DELETED, - PROMOTED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ExperimentServingStatus { - RUNNING, - PENDING, - ENDED, - DELETED, - PROMOTED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ExperimentSummaryStats { - private int adGroupsCountField; - - private bool adGroupsCountFieldSpecified; - - private int adGroupCriteriaCountField; - - private bool adGroupCriteriaCountFieldSpecified; - - private int adGroupAdsCountField; - - private bool adGroupAdsCountFieldSpecified; - - public int adGroupsCount { - get { return this.adGroupsCountField; } - set { - this.adGroupsCountField = value; - this.adGroupsCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupsCountSpecified { - get { return this.adGroupsCountFieldSpecified; } - set { this.adGroupsCountFieldSpecified = value; } - } - - public int adGroupCriteriaCount { - get { return this.adGroupCriteriaCountField; } - set { - this.adGroupCriteriaCountField = value; - this.adGroupCriteriaCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupCriteriaCountSpecified { - get { return this.adGroupCriteriaCountFieldSpecified; } - set { this.adGroupCriteriaCountFieldSpecified = value; } - } - - public int adGroupAdsCount { - get { return this.adGroupAdsCountField; } - set { - this.adGroupAdsCountField = value; - this.adGroupAdsCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupAdsCountSpecified { - get { return this.adGroupAdsCountFieldSpecified; } - set { this.adGroupAdsCountFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ExperimentOperation : Operation { - private Experiment operandField; - - public Experiment operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ExperimentPage : Page { - private Experiment[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public Experiment[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ExperimentServiceError : ApiError { - private ExperimentServiceErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ExperimentServiceErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExperimentServiceError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ExperimentServiceErrorReason { - AFTER_MAXIMUM_ALLOWABLE_DATE, - AOL_PARTNER_CAMPAIGNS_CANT_RUN_EXPERIMENTS, - CANNOT_CREATE_EXPERIMENT_FOR_BIDDING_STRATEGY, - CANNOT_CREATE_EXPERIMENT_FOR_BIDDING_STRATEGY_FEATURE, - CANNOT_SET_DATE_TO_PAST, - CANNOT_SET_END_DATE_WITHOUT_SETTING_START_DATE, - CANNOT_USE_EXPERIMENT_WITH_SHARED_BUDGET, - DATE_OUTSIDE_CAMPAIGN_DATE_RANGE, - EXPERIMENT_ALREADY_STARTED, - EXPERIMENT_ENDED, - EXPERIMENT_LIMIT_EXCEEDED, - INVALID_EXPERIMENT_NAME, - INVALID_QUERY_PERCENTAGE, - CANNOT_CHANGE_QUERY_PERCENTAGE_AFTER_EXPERIMENT_HAS_STARTED, - INVALID_STATUS_UPDATE, - START_DATE_AFTER_END_DATE, - NO_VALID_BUDGET, - EXPERIMENT_NOT_ACTIVE, - EXPERIMENT_SERVICE_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "FeedServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class FeedService : AdWordsSoapClient, IFeedService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public FeedService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/FeedService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual FeedPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((FeedPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual FeedReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -FeedOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((FeedReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedReturnValue : ListReturnValue { - private Feed[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public Feed[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Feed { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private FeedAttribute[] attributesField; - - private FeedStatus statusField; - - private bool statusFieldSpecified; - - private FeedOrigin originField; - - private bool originFieldSpecified; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("attributes")] - public FeedAttribute[] attributes { - get { return this.attributesField; } - set { this.attributesField = value; } - } - - public FeedStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public FeedOrigin origin { - get { return this.originField; } - set { - this.originField = value; - this.originSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool originSpecified { - get { return this.originFieldSpecified; } - set { this.originFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedAttribute { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private FeedAttributeType typeField; - - private bool typeFieldSpecified; - - private bool isPartOfKeyField; - - private bool isPartOfKeyFieldSpecified; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public FeedAttributeType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public bool isPartOfKey { - get { return this.isPartOfKeyField; } - set { - this.isPartOfKeyField = value; - this.isPartOfKeySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isPartOfKeySpecified { - get { return this.isPartOfKeyFieldSpecified; } - set { this.isPartOfKeyFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedAttribute.Type", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedAttributeType { - INT64, - FLOAT, - STRING, - BOOLEAN, - URL, - DATE_TIME, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Feed.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Feed.Origin", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedOrigin { - USER, - ADWORDS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedOperation : Operation { - private Feed operandField; - - public Feed operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedPage : NullStatsPage { - private Feed[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public Feed[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedError : ApiError { - private FeedErrorReason reasonField; - - private bool reasonFieldSpecified; - - public FeedErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedErrorReason { - ATTRIBUTE_NAMES_NOT_UNIQUE, - ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES, - CANNOT_CHANGE_FEED_NAME, - CANNOT_CHANGE_ORIGIN, - FEED_DELETED, - FEED_ORIGIN_IS_NOT_USER, - NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY, - TOO_MANY_FEED_ATTRIBUTES_FOR_FEED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "FeedItemServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class FeedItemService : AdWordsSoapClient, IFeedItemService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public FeedItemService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/FeedItemService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual FeedItemPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((FeedItemPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual FeedItemReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -FeedItemOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((FeedItemReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemReturnValue : ListReturnValue { - private FeedItem[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public FeedItem[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItem { - private long feedIdField; - - private bool feedIdFieldSpecified; - - private long feedItemIdField; - - private bool feedItemIdFieldSpecified; - - private FeedItemStatus statusField; - - private bool statusFieldSpecified; - - private string startTimeField; - - private string endTimeField; - - private FeedItemAttributeValue[] attributeValuesField; - - private FeedItemValidationDetail[] validationDetailsField; - - private FeedItemDevicePreference devicePreferenceField; - - private FeedItemSchedule[] schedulingField; - - public long feedId { - get { return this.feedIdField; } - set { - this.feedIdField = value; - this.feedIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedIdSpecified { - get { return this.feedIdFieldSpecified; } - set { this.feedIdFieldSpecified = value; } - } - - public long feedItemId { - get { return this.feedItemIdField; } - set { - this.feedItemIdField = value; - this.feedItemIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedItemIdSpecified { - get { return this.feedItemIdFieldSpecified; } - set { this.feedItemIdFieldSpecified = value; } - } - - public FeedItemStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public string startTime { - get { return this.startTimeField; } - set { this.startTimeField = value; } - } - - public string endTime { - get { return this.endTimeField; } - set { this.endTimeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("attributeValues")] - public FeedItemAttributeValue[] attributeValues { - get { return this.attributeValuesField; } - set { this.attributeValuesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("validationDetails")] - public FeedItemValidationDetail[] validationDetails { - get { return this.validationDetailsField; } - set { this.validationDetailsField = value; } - } - - public FeedItemDevicePreference devicePreference { - get { return this.devicePreferenceField; } - set { this.devicePreferenceField = value; } - } - - [System.Xml.Serialization.XmlArrayItemAttribute("feedItemSchedules", IsNullable = false)] - public FeedItemSchedule[] scheduling { - get { return this.schedulingField; } - set { this.schedulingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedItem.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedItemStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemAttributeValue { - private long feedAttributeIdField; - - private bool feedAttributeIdFieldSpecified; - - private long integerValueField; - - private bool integerValueFieldSpecified; - - private double doubleValueField; - - private bool doubleValueFieldSpecified; - - private bool booleanValueField; - - private bool booleanValueFieldSpecified; - - private string stringValueField; - - public long feedAttributeId { - get { return this.feedAttributeIdField; } - set { - this.feedAttributeIdField = value; - this.feedAttributeIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedAttributeIdSpecified { - get { return this.feedAttributeIdFieldSpecified; } - set { this.feedAttributeIdFieldSpecified = value; } - } - - public long integerValue { - get { return this.integerValueField; } - set { - this.integerValueField = value; - this.integerValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool integerValueSpecified { - get { return this.integerValueFieldSpecified; } - set { this.integerValueFieldSpecified = value; } - } - - public double doubleValue { - get { return this.doubleValueField; } - set { - this.doubleValueField = value; - this.doubleValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool doubleValueSpecified { - get { return this.doubleValueFieldSpecified; } - set { this.doubleValueFieldSpecified = value; } - } - - public bool booleanValue { - get { return this.booleanValueField; } - set { - this.booleanValueField = value; - this.booleanValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool booleanValueSpecified { - get { return this.booleanValueFieldSpecified; } - set { this.booleanValueFieldSpecified = value; } - } - - public string stringValue { - get { return this.stringValueField; } - set { this.stringValueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemValidationDetail { - private long feedMappingIdField; - - private bool feedMappingIdFieldSpecified; - - private FeedItemValidationDetailValidationStatus validationStatusField; - - private bool validationStatusFieldSpecified; - - private FeedItemAttributeError[] validationErrorsField; - - private FeedItemValidationDetailApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - public long feedMappingId { - get { return this.feedMappingIdField; } - set { - this.feedMappingIdField = value; - this.feedMappingIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedMappingIdSpecified { - get { return this.feedMappingIdFieldSpecified; } - set { this.feedMappingIdFieldSpecified = value; } - } - - public FeedItemValidationDetailValidationStatus validationStatus { - get { return this.validationStatusField; } - set { - this.validationStatusField = value; - this.validationStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool validationStatusSpecified { - get { return this.validationStatusFieldSpecified; } - set { this.validationStatusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("validationErrors")] - public FeedItemAttributeError[] validationErrors { - get { return this.validationErrorsField; } - set { this.validationErrorsField = value; } - } - - public FeedItemValidationDetailApprovalStatus approvalStatus { - get { return this.approvalStatusField; } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { - get { return this.approvalStatusFieldSpecified; } - set { this.approvalStatusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedItemValidationDetail.ValidationStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedItemValidationDetailValidationStatus { - ERROR, - UNCHECKED, - VALID - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemAttributeError { - private long[] feedAttributeIdsField; - - private int validationErrorCodeField; - - private bool validationErrorCodeFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute("feedAttributeIds")] - public long[] feedAttributeIds { - get { return this.feedAttributeIdsField; } - set { this.feedAttributeIdsField = value; } - } - - public int validationErrorCode { - get { return this.validationErrorCodeField; } - set { - this.validationErrorCodeField = value; - this.validationErrorCodeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool validationErrorCodeSpecified { - get { return this.validationErrorCodeFieldSpecified; } - set { this.validationErrorCodeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedItemValidationDetail.ApprovalStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedItemValidationDetailApprovalStatus { - APPROVED, - DISAPPROVED, - UNCHECKED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemDevicePreference { - private long devicePreferenceField; - - private bool devicePreferenceFieldSpecified; - - public long devicePreference { - get { return this.devicePreferenceField; } - set { - this.devicePreferenceField = value; - this.devicePreferenceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool devicePreferenceSpecified { - get { return this.devicePreferenceFieldSpecified; } - set { this.devicePreferenceFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemSchedule { - private DayOfWeek dayOfWeekField; - - private bool dayOfWeekFieldSpecified; - - private int startHourField; - - private bool startHourFieldSpecified; - - private MinuteOfHour startMinuteField; - - private bool startMinuteFieldSpecified; - - private int endHourField; - - private bool endHourFieldSpecified; - - private MinuteOfHour endMinuteField; - - private bool endMinuteFieldSpecified; - - public DayOfWeek dayOfWeek { - get { return this.dayOfWeekField; } - set { - this.dayOfWeekField = value; - this.dayOfWeekSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dayOfWeekSpecified { - get { return this.dayOfWeekFieldSpecified; } - set { this.dayOfWeekFieldSpecified = value; } - } - - public int startHour { - get { return this.startHourField; } - set { - this.startHourField = value; - this.startHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startHourSpecified { - get { return this.startHourFieldSpecified; } - set { this.startHourFieldSpecified = value; } - } - - public MinuteOfHour startMinute { - get { return this.startMinuteField; } - set { - this.startMinuteField = value; - this.startMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startMinuteSpecified { - get { return this.startMinuteFieldSpecified; } - set { this.startMinuteFieldSpecified = value; } - } - - public int endHour { - get { return this.endHourField; } - set { - this.endHourField = value; - this.endHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endHourSpecified { - get { return this.endHourFieldSpecified; } - set { this.endHourFieldSpecified = value; } - } - - public MinuteOfHour endMinute { - get { return this.endMinuteField; } - set { - this.endMinuteField = value; - this.endMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endMinuteSpecified { - get { return this.endMinuteFieldSpecified; } - set { this.endMinuteFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemError : ApiError { - private FeedItemErrorReason reasonField; - - private bool reasonFieldSpecified; - - public FeedItemErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedItemError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedItemErrorReason { - CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING, - CANNOT_OPERATE_ON_DELETED_FEED_ITEM, - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE, - KEY_ATTRIBUTES_NOT_FOUND, - INVALID_DEVICE_PREFERENCE, - INVALID_SCHEDULE_END, - INVALID_URL, - MISSING_KEY_ATTRIBUTES, - KEY_ATTRIBUTES_NOT_UNIQUE, - CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE, - OVERLAPPING_SCHEDULES, - SCHEDULE_END_NOT_AFTER_START, - TOO_MANY_SCHEDULES_PER_DAY, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class EntityAccessDenied : ApiError { - private EntityAccessDeniedReason reasonField; - - private bool reasonFieldSpecified; - - public EntityAccessDeniedReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityAccessDenied.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum EntityAccessDeniedReason { - READ_ACCESS_DENIED, - WRITE_ACCESS_DENIED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemOperation : Operation { - private FeedItem operandField; - - public FeedItem operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedItemPage : NullStatsPage { - private FeedItem[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public FeedItem[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "FeedMappingServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class FeedMappingService : AdWordsSoapClient, IFeedMappingService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public FeedMappingService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/FeedMappingService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual FeedMappingPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((FeedMappingPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual FeedMappingReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -FeedMappingOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((FeedMappingReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedMappingReturnValue : ListReturnValue { - private FeedMapping[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public FeedMapping[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedMapping { - private long feedMappingIdField; - - private bool feedMappingIdFieldSpecified; - - private long feedIdField; - - private bool feedIdFieldSpecified; - - private int placeholderTypeField; - - private bool placeholderTypeFieldSpecified; - - private FeedMappingStatus statusField; - - private bool statusFieldSpecified; - - private AttributeFieldMapping[] attributeFieldMappingsField; - - public long feedMappingId { - get { return this.feedMappingIdField; } - set { - this.feedMappingIdField = value; - this.feedMappingIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedMappingIdSpecified { - get { return this.feedMappingIdFieldSpecified; } - set { this.feedMappingIdFieldSpecified = value; } - } - - public long feedId { - get { return this.feedIdField; } - set { - this.feedIdField = value; - this.feedIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedIdSpecified { - get { return this.feedIdFieldSpecified; } - set { this.feedIdFieldSpecified = value; } - } - - public int placeholderType { - get { return this.placeholderTypeField; } - set { - this.placeholderTypeField = value; - this.placeholderTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool placeholderTypeSpecified { - get { return this.placeholderTypeFieldSpecified; } - set { this.placeholderTypeFieldSpecified = value; } - } - - public FeedMappingStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("attributeFieldMappings")] - public AttributeFieldMapping[] attributeFieldMappings { - get { return this.attributeFieldMappingsField; } - set { this.attributeFieldMappingsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedMapping.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedMappingStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AttributeFieldMapping { - private long feedAttributeIdField; - - private bool feedAttributeIdFieldSpecified; - - private int fieldIdField; - - private bool fieldIdFieldSpecified; - - public long feedAttributeId { - get { return this.feedAttributeIdField; } - set { - this.feedAttributeIdField = value; - this.feedAttributeIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedAttributeIdSpecified { - get { return this.feedAttributeIdFieldSpecified; } - set { this.feedAttributeIdFieldSpecified = value; } - } - - public int fieldId { - get { return this.fieldIdField; } - set { - this.fieldIdField = value; - this.fieldIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool fieldIdSpecified { - get { return this.fieldIdFieldSpecified; } - set { this.fieldIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedMappingOperation : Operation { - private FeedMapping operandField; - - public FeedMapping operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedMappingPage : NullStatsPage { - private FeedMapping[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public FeedMapping[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FeedMappingError : ApiError { - private FeedMappingErrorReason reasonField; - - private bool reasonFieldSpecified; - - public FeedMappingErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FeedMappingError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FeedMappingErrorReason { - INVALID_PLACEHOLDER_FIELD, - INVALID_PLACEHOLDER_TYPE, - NO_ATTRIBUTE_FIELD_MAPPINGS, - FEED_ATTRIBUTE_TYPE_MISMATCH, - MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "GeoLocationServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class GeoLocationService : AdWordsSoapClient, IGeoLocationService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public GeoLocationService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/GeoLocationService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual GeoLocation[] get(GeoLocationSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((GeoLocation[]) (results[0])); - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InvalidGeoLocation))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class GeoLocation { - private GeoPoint geoPointField; - - private Address addressField; - - private byte[] encodedLocationField; - - private string geoLocationTypeField; - - public GeoPoint geoPoint { - get { return this.geoPointField; } - set { this.geoPointField = value; } - } - - public Address address { - get { return this.addressField; } - set { this.addressField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] - public byte[] encodedLocation { - get { return this.encodedLocationField; } - set { this.encodedLocationField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("GeoLocation.Type")] - public string GeoLocationType { - get { return this.geoLocationTypeField; } - set { this.geoLocationTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class InvalidGeoLocation : GeoLocation { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class GeoLocationSelector { - private Address[] addressesField; - - private string dummyField; - - [System.Xml.Serialization.XmlElementAttribute("addresses")] - public Address[] addresses { - get { return this.addressesField; } - set { this.addressesField = value; } - } - - public string dummy { - get { return this.dummyField; } - set { this.dummyField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class GeoLocationError : ApiError { - private GeoLocationErrorReason reasonField; - - private bool reasonFieldSpecified; - - public GeoLocationErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "GeoLocationError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum GeoLocationErrorReason { - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "LocationCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Criterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class LocationCriterionService : AdWordsSoapClient, ILocationCriterionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public LocationCriterionService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/LocationCriterionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual LocationCriterion[] get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((LocationCriterion[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class LocationCriterion { - private Location locationField; - - private string canonicalNameField; - - private long reachField; - - private bool reachFieldSpecified; - - private string localeField; - - private string searchTermField; - - private string countryCodeField; - - public Location location { - get { return this.locationField; } - set { this.locationField = value; } - } - - public string canonicalName { - get { return this.canonicalNameField; } - set { this.canonicalNameField = value; } - } - - public long reach { - get { return this.reachField; } - set { - this.reachField = value; - this.reachSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reachSpecified { - get { return this.reachFieldSpecified; } - set { this.reachFieldSpecified = value; } - } - - public string locale { - get { return this.localeField; } - set { this.localeField = value; } - } - - public string searchTerm { - get { return this.searchTermField; } - set { this.searchTermField = value; } - } - - public string countryCode { - get { return this.countryCodeField; } - set { this.countryCodeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Date { - private int yearField; - - private bool yearFieldSpecified; - - private int monthField; - - private bool monthFieldSpecified; - - private int dayField; - - private bool dayFieldSpecified; - - public int year { - get { return this.yearField; } - set { - this.yearField = value; - this.yearSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool yearSpecified { - get { return this.yearFieldSpecified; } - set { this.yearFieldSpecified = value; } - } - - public int month { - get { return this.monthField; } - set { - this.monthField = value; - this.monthSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool monthSpecified { - get { return this.monthFieldSpecified; } - set { this.monthFieldSpecified = value; } - } - - public int day { - get { return this.dayField; } - set { - this.dayField = value; - this.daySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool daySpecified { - get { return this.dayFieldSpecified; } - set { this.dayFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class LocationCriterionServiceError : ApiError { - private LocationCriterionServiceErrorReason reasonField; - - private bool reasonFieldSpecified; - - public LocationCriterionServiceErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LocationCriterionServiceError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum LocationCriterionServiceErrorReason { - REQUIRED_LOCATION_CRITERION_PREDICATE_MISSING, - TOO_MANY_LOCATION_CRITERION_PREDICATES_SPECIFIED, - INVALID_COUNTRY_CODE, - LOCATION_CRITERION_SERVICE_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ManagedCustomerServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ManagedCustomerService : AdWordsSoapClient, IManagedCustomerService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public ManagedCustomerService() { - this.Url = "https://adwords.google.com/api/adwords/mcm/v201309/ManagedCustomerService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ManagedCustomerPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((ManagedCustomerPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual PendingInvitation[] getPendingInvitations(PendingInvitationSelector selector) { - object[] results = this.Invoke("getPendingInvitations", new object[] { selector }); - return ((PendingInvitation[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ManagedCustomerReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -ManagedCustomerOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((ManagedCustomerReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlArrayAttribute("rval")] - [return: System.Xml.Serialization.XmlArrayItemAttribute("links", IsNullable = false)] - public virtual ManagedCustomerLink[] mutateLink([System.Xml.Serialization.XmlElementAttribute("operations")] -LinkOperation[] operations) { - object[] results = this.Invoke("mutateLink", new object[] { operations }); - return ((ManagedCustomerLink[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlArrayAttribute("rval")] - [return: System.Xml.Serialization.XmlArrayItemAttribute("links", IsNullable = false)] - public virtual ManagedCustomerLink[] mutateManager([System.Xml.Serialization.XmlElementAttribute("operations")] -MoveOperation[] operations) { - object[] results = this.Invoke("mutateManager", new object[] { operations }); - return ((ManagedCustomerLink[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class ManagedCustomerReturnValue { - private ManagedCustomer[] valueField; - - private string dummyField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public ManagedCustomer[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - public string dummy { - get { return this.dummyField; } - set { this.dummyField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class ManagedCustomer { - private string nameField; - - private string loginField; - - private string companyNameField; - - private long customerIdField; - - private bool customerIdFieldSpecified; - - private bool canManageClientsField; - - private bool canManageClientsFieldSpecified; - - private string currencyCodeField; - - private string dateTimeZoneField; - - private bool testAccountField; - - private bool testAccountFieldSpecified; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public string login { - get { return this.loginField; } - set { this.loginField = value; } - } - - public string companyName { - get { return this.companyNameField; } - set { this.companyNameField = value; } - } - - public long customerId { - get { return this.customerIdField; } - set { - this.customerIdField = value; - this.customerIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool customerIdSpecified { - get { return this.customerIdFieldSpecified; } - set { this.customerIdFieldSpecified = value; } - } - - public bool canManageClients { - get { return this.canManageClientsField; } - set { - this.canManageClientsField = value; - this.canManageClientsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool canManageClientsSpecified { - get { return this.canManageClientsFieldSpecified; } - set { this.canManageClientsFieldSpecified = value; } - } - - public string currencyCode { - get { return this.currencyCodeField; } - set { this.currencyCodeField = value; } - } - - public string dateTimeZone { - get { return this.dateTimeZoneField; } - set { this.dateTimeZoneField = value; } - } - - public bool testAccount { - get { return this.testAccountField; } - set { - this.testAccountField = value; - this.testAccountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool testAccountSpecified { - get { return this.testAccountFieldSpecified; } - set { this.testAccountFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class ManagedCustomerOperation : Operation { - private ManagedCustomer operandField; - - public ManagedCustomer operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class MoveOperation : Operation { - private ManagedCustomerLink operandField; - - private long oldManagerCustomerIdField; - - private bool oldManagerCustomerIdFieldSpecified; - - public ManagedCustomerLink operand { - get { return this.operandField; } - set { this.operandField = value; } - } - - public long oldManagerCustomerId { - get { return this.oldManagerCustomerIdField; } - set { - this.oldManagerCustomerIdField = value; - this.oldManagerCustomerIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool oldManagerCustomerIdSpecified { - get { return this.oldManagerCustomerIdFieldSpecified; } - set { this.oldManagerCustomerIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class ManagedCustomerLink { - private long managerCustomerIdField; - - private bool managerCustomerIdFieldSpecified; - - private long clientCustomerIdField; - - private bool clientCustomerIdFieldSpecified; - - private LinkStatus linkStatusField; - - private bool linkStatusFieldSpecified; - - private string pendingDescriptiveNameField; - - public long managerCustomerId { - get { return this.managerCustomerIdField; } - set { - this.managerCustomerIdField = value; - this.managerCustomerIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool managerCustomerIdSpecified { - get { return this.managerCustomerIdFieldSpecified; } - set { this.managerCustomerIdFieldSpecified = value; } - } - - public long clientCustomerId { - get { return this.clientCustomerIdField; } - set { - this.clientCustomerIdField = value; - this.clientCustomerIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clientCustomerIdSpecified { - get { return this.clientCustomerIdFieldSpecified; } - set { this.clientCustomerIdFieldSpecified = value; } - } - - public LinkStatus linkStatus { - get { return this.linkStatusField; } - set { - this.linkStatusField = value; - this.linkStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool linkStatusSpecified { - get { return this.linkStatusFieldSpecified; } - set { this.linkStatusFieldSpecified = value; } - } - - public string pendingDescriptiveName { - get { return this.pendingDescriptiveNameField; } - set { this.pendingDescriptiveNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum LinkStatus { - ACTIVE, - INACTIVE, - PENDING, - REFUSED, - CANCELLED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class LinkOperation : Operation { - private ManagedCustomerLink operandField; - - public ManagedCustomerLink operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class PendingInvitation { - private ManagedCustomer managerField; - - private ManagedCustomer clientField; - - private string creationDateField; - - private string expirationDateField; - - public ManagedCustomer manager { - get { return this.managerField; } - set { this.managerField = value; } - } - - public ManagedCustomer client { - get { return this.clientField; } - set { this.clientField = value; } - } - - public string creationDate { - get { return this.creationDateField; } - set { this.creationDateField = value; } - } - - public string expirationDate { - get { return this.expirationDateField; } - set { this.expirationDateField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class PendingInvitationSelector { - private long[] managerCustomerIdsField; - - private long[] clientCustomerIdsField; - - [System.Xml.Serialization.XmlElementAttribute("managerCustomerIds")] - public long[] managerCustomerIds { - get { return this.managerCustomerIdsField; } - set { this.managerCustomerIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("clientCustomerIds")] - public long[] clientCustomerIds { - get { return this.clientCustomerIdsField; } - set { this.clientCustomerIdsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class ManagedCustomerPage : Page { - private ManagedCustomer[] entriesField; - - private ManagedCustomerLink[] linksField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public ManagedCustomer[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("links")] - public ManagedCustomerLink[] links { - get { return this.linksField; } - set { this.linksField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class ManagedCustomerServiceError : ApiError { - private ManagedCustomerServiceErrorReason reasonField; - - private bool reasonFieldSpecified; - - private long[] customerIdsField; - - public ManagedCustomerServiceErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("customerIds")] - public long[] customerIds { - get { return this.customerIdsField; } - set { this.customerIdsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ManagedCustomerServiceError.Reason", Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum ManagedCustomerServiceErrorReason { - UNKNOWN, - NOT_AUTHORIZED, - INVALID_SELECTOR, - INVALID_TIMEZONE, - INVALID_CURRENCY, - INVALID_DESCRIPTIVE_NAME, - ADD_CUSTOMER_FAILURE, - SAVE_CUSTOMERS_FAILURE, - TEST_ACCOUNT_LINK_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "MediaServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class MediaService : AdWordsSoapClient, IMediaService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public MediaService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/MediaService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual MediaPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((MediaPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Media[] upload([System.Xml.Serialization.XmlElementAttribute("media")] -Media[] media) { - object[] results = this.Invoke("upload", new object[] { media }); - return ((Media[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MediaPage { - private Media[] entriesField; - - private int totalNumEntriesField; - - private bool totalNumEntriesFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public Media[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - public int totalNumEntries { - get { return this.totalNumEntriesField; } - set { - this.totalNumEntriesField = value; - this.totalNumEntriesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalNumEntriesSpecified { - get { return this.totalNumEntriesFieldSpecified; } - set { this.totalNumEntriesFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class VideoError : ApiError { - private VideoErrorReason reasonField; - - private bool reasonFieldSpecified; - - public VideoErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum VideoErrorReason { - INVALID_VIDEO, - STORAGE_ERROR, - BAD_REQUEST, - ERROR_GENERATING_STREAMING_URL, - UNEXPECTED_SIZE, - SERVER_ERROR, - FILE_TOO_LARGE, - VIDEO_PROCESSING_ERROR, - INVALID_INPUT, - PROBLEM_READING_FILE, - INVALID_ISCI, - INVALID_AD_ID - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AudioError : ApiError { - private AudioErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AudioErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudioError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AudioErrorReason { - INVALID_AUDIO, - PROBLEM_READING_AUDIO_FILE, - ERROR_STORING_AUDIO, - FILE_TOO_LARGE, - UNSUPPORTED_AUDIO, - ERROR_GENERATING_STREAMING_URL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "MutateJobServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class MutateJobService : AdWordsSoapClient, IMutateJobService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public MutateJobService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/MutateJobService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Job[] get(JobSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((Job[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual JobResult getResult(JobSelector selector) { - object[] results = this.Invoke("getResult", new object[] { selector }); - return ((JobResult) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual SimpleMutateJob mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -Operation[] operations, BulkMutateJobPolicy policy) { - object[] results = this.Invoke("mutate", new object[] { operations, policy }); - return ((SimpleMutateJob) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SimpleMutateResult { - private Operand[] resultsField; - - private ApiError[] errorsField; - - [System.Xml.Serialization.XmlElementAttribute("results")] - public Operand[] results { - get { return this.resultsField; } - set { this.resultsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("errors")] - public ApiError[] errors { - get { return this.errorsField; } - set { this.errorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Operand { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("Ad", typeof(Ad))] - [System.Xml.Serialization.XmlElementAttribute("AdExtensionOverride", typeof(AdExtensionOverride))] - [System.Xml.Serialization.XmlElementAttribute("AdGroup", typeof(AdGroup))] - [System.Xml.Serialization.XmlElementAttribute("AdGroupAd", typeof(AdGroupAd))] - [System.Xml.Serialization.XmlElementAttribute("AdGroupBidModifier", typeof(AdGroupBidModifier))] - [System.Xml.Serialization.XmlElementAttribute("AdGroupCriterion", typeof(AdGroupCriterion))] - [System.Xml.Serialization.XmlElementAttribute("Budget", typeof(Budget))] - [System.Xml.Serialization.XmlElementAttribute("Campaign", typeof(Campaign))] - [System.Xml.Serialization.XmlElementAttribute("CampaignAdExtension", typeof(CampaignAdExtension))] - [System.Xml.Serialization.XmlElementAttribute("CampaignCriterion", typeof(CampaignCriterion))] - [System.Xml.Serialization.XmlElementAttribute("FeedItem", typeof(FeedItem))] - [System.Xml.Serialization.XmlElementAttribute("Job", typeof(Job))] - [System.Xml.Serialization.XmlElementAttribute("Media", typeof(Media))] - [System.Xml.Serialization.XmlElementAttribute("PlaceHolder", typeof(PlaceHolder))] - [System.Xml.Serialization.XmlElementAttribute("Target", typeof(Target))] - [System.Xml.Serialization.XmlElementAttribute("TargetList", typeof(TargetList))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdExtensionOverride { - private long adIdField; - - private bool adIdFieldSpecified; - - private AdExtension adExtensionField; - - private OverrideInfo overrideInfoField; - - private AdExtensionOverrideStatus statusField; - - private bool statusFieldSpecified; - - private AdExtensionOverrideApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - public long adId { - get { return this.adIdField; } - set { - this.adIdField = value; - this.adIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adIdSpecified { - get { return this.adIdFieldSpecified; } - set { this.adIdFieldSpecified = value; } - } - - public AdExtension adExtension { - get { return this.adExtensionField; } - set { this.adExtensionField = value; } - } - - public OverrideInfo overrideInfo { - get { return this.overrideInfoField; } - set { this.overrideInfoField = value; } - } - - public AdExtensionOverrideStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public AdExtensionOverrideApprovalStatus approvalStatus { - get { return this.approvalStatusField; } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { - get { return this.approvalStatusFieldSpecified; } - set { this.approvalStatusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OverrideInfo { - private LocationOverrideInfo itemField; - - [System.Xml.Serialization.XmlElementAttribute("LocationOverrideInfo")] - public LocationOverrideInfo Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class LocationOverrideInfo { - private int radiusField; - - private bool radiusFieldSpecified; - - private LocationOverrideInfoRadiusUnits radiusUnitsField; - - private bool radiusUnitsFieldSpecified; - - public int radius { - get { return this.radiusField; } - set { - this.radiusField = value; - this.radiusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool radiusSpecified { - get { return this.radiusFieldSpecified; } - set { this.radiusFieldSpecified = value; } - } - - public LocationOverrideInfoRadiusUnits radiusUnits { - get { return this.radiusUnitsField; } - set { - this.radiusUnitsField = value; - this.radiusUnitsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool radiusUnitsSpecified { - get { return this.radiusUnitsFieldSpecified; } - set { this.radiusUnitsFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "LocationOverrideInfo.RadiusUnits", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum LocationOverrideInfoRadiusUnits { - KILOMETERS, - MILES - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdExtensionOverride.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdExtensionOverrideStatus { - ACTIVE, - DELETED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdExtensionOverride.ApprovalStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdExtensionOverrideApprovalStatus { - APPROVED, - UNCHECKED, - DISAPPROVED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroup { - private long idField; - - private bool idFieldSpecified; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string campaignNameField; - - private string nameField; - - private AdGroupStatus statusField; - - private bool statusFieldSpecified; - - private Setting[] settingsField; - - private AdGroupExperimentData experimentDataField; - - private String_StringMapEntry[] forwardCompatibilityMapField; - - private BiddingStrategyConfiguration biddingStrategyConfigurationField; - - private CriterionTypeGroup contentBidCriterionTypeGroupField; - - private bool contentBidCriterionTypeGroupFieldSpecified; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public string campaignName { - get { return this.campaignNameField; } - set { this.campaignNameField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public AdGroupStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("settings")] - public Setting[] settings { - get { return this.settingsField; } - set { this.settingsField = value; } - } - - public AdGroupExperimentData experimentData { - get { return this.experimentDataField; } - set { this.experimentDataField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("forwardCompatibilityMap")] - public String_StringMapEntry[] forwardCompatibilityMap { - get { return this.forwardCompatibilityMapField; } - set { this.forwardCompatibilityMapField = value; } - } - - public BiddingStrategyConfiguration biddingStrategyConfiguration { - get { return this.biddingStrategyConfigurationField; } - set { this.biddingStrategyConfigurationField = value; } - } - - public CriterionTypeGroup contentBidCriterionTypeGroup { - get { return this.contentBidCriterionTypeGroupField; } - set { - this.contentBidCriterionTypeGroupField = value; - this.contentBidCriterionTypeGroupSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool contentBidCriterionTypeGroupSpecified { - get { return this.contentBidCriterionTypeGroupFieldSpecified; } - set { this.contentBidCriterionTypeGroupFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroup.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupStatus { - ENABLED, - PAUSED, - DELETED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TargetingSetting : Setting { - private TargetingSettingDetail[] detailsField; - - [System.Xml.Serialization.XmlElementAttribute("details")] - public TargetingSettingDetail[] details { - get { return this.detailsField; } - set { this.detailsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class TargetingSettingDetail { - private CriterionTypeGroup criterionTypeGroupField; - - private bool criterionTypeGroupFieldSpecified; - - private bool targetAllField; - - private bool targetAllFieldSpecified; - - public CriterionTypeGroup criterionTypeGroup { - get { return this.criterionTypeGroupField; } - set { - this.criterionTypeGroupField = value; - this.criterionTypeGroupSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionTypeGroupSpecified { - get { return this.criterionTypeGroupFieldSpecified; } - set { this.criterionTypeGroupFieldSpecified = value; } - } - - public bool targetAll { - get { return this.targetAllField; } - set { - this.targetAllField = value; - this.targetAllSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetAllSpecified { - get { return this.targetAllFieldSpecified; } - set { this.targetAllFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CriterionTypeGroup { - KEYWORD, - USER_INTEREST_AND_LIST, - VERTICAL, - GENDER, - AGE_RANGE, - PLACEMENT, - NONE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ExplorerAutoOptimizerSetting : Setting { - private bool optInField; - - private bool optInFieldSpecified; - - public bool optIn { - get { return this.optInField; } - set { - this.optInField = value; - this.optInSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool optInSpecified { - get { return this.optInFieldSpecified; } - set { this.optInFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupExperimentData { - private long experimentIdField; - - private bool experimentIdFieldSpecified; - - private ExperimentDeltaStatus experimentDeltaStatusField; - - private bool experimentDeltaStatusFieldSpecified; - - private ExperimentDataStatus experimentDataStatusField; - - private bool experimentDataStatusFieldSpecified; - - private AdGroupExperimentBidMultipliers experimentBidMultipliersField; - - public long experimentId { - get { return this.experimentIdField; } - set { - this.experimentIdField = value; - this.experimentIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentIdSpecified { - get { return this.experimentIdFieldSpecified; } - set { this.experimentIdFieldSpecified = value; } - } - - public ExperimentDeltaStatus experimentDeltaStatus { - get { return this.experimentDeltaStatusField; } - set { - this.experimentDeltaStatusField = value; - this.experimentDeltaStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentDeltaStatusSpecified { - get { return this.experimentDeltaStatusFieldSpecified; } - set { this.experimentDeltaStatusFieldSpecified = value; } - } - - public ExperimentDataStatus experimentDataStatus { - get { return this.experimentDataStatusField; } - set { - this.experimentDataStatusField = value; - this.experimentDataStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentDataStatusSpecified { - get { return this.experimentDataStatusFieldSpecified; } - set { this.experimentDataStatusFieldSpecified = value; } - } - - public AdGroupExperimentBidMultipliers experimentBidMultipliers { - get { return this.experimentBidMultipliersField; } - set { this.experimentBidMultipliersField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManualCPMAdGroupExperimentBidMultipliers))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManualCPCAdGroupExperimentBidMultipliers))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class AdGroupExperimentBidMultipliers { - private string adGroupExperimentBidMultipliersTypeField; - - [System.Xml.Serialization.XmlElementAttribute("AdGroupExperimentBidMultipliers.Type")] - public string AdGroupExperimentBidMultipliersType { - get { return this.adGroupExperimentBidMultipliersTypeField; } - set { this.adGroupExperimentBidMultipliersTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ManualCPMAdGroupExperimentBidMultipliers : AdGroupExperimentBidMultipliers { - private BidMultiplier maxCpmMultiplierField; - - public BidMultiplier maxCpmMultiplier { - get { return this.maxCpmMultiplierField; } - set { this.maxCpmMultiplierField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BidMultiplier { - private double multiplierField; - - private bool multiplierFieldSpecified; - - private Bid multipliedBidField; - - public double multiplier { - get { return this.multiplierField; } - set { - this.multiplierField = value; - this.multiplierSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool multiplierSpecified { - get { return this.multiplierFieldSpecified; } - set { this.multiplierFieldSpecified = value; } - } - - public Bid multipliedBid { - get { return this.multipliedBidField; } - set { this.multipliedBidField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class Bid { - private Money amountField; - - public Money amount { - get { return this.amountField; } - set { this.amountField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ManualCPCAdGroupExperimentBidMultipliers : AdGroupExperimentBidMultipliers { - private BidMultiplier maxCpcMultiplierField; - - private BidMultiplier maxContentCpcMultiplierField; - - public BidMultiplier maxCpcMultiplier { - get { return this.maxCpcMultiplierField; } - set { this.maxCpcMultiplierField = value; } - } - - public BidMultiplier maxContentCpcMultiplier { - get { return this.maxContentCpcMultiplierField; } - set { this.maxContentCpcMultiplierField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupBidModifier { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private Criterion criterionField; - - private double bidModifierField; - - private bool bidModifierFieldSpecified; - - private BidModifierSource bidModifierSourceField; - - private bool bidModifierSourceFieldSpecified; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - public Criterion criterion { - get { return this.criterionField; } - set { this.criterionField = value; } - } - - public double bidModifier { - get { return this.bidModifierField; } - set { - this.bidModifierField = value; - this.bidModifierSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidModifierSpecified { - get { return this.bidModifierFieldSpecified; } - set { this.bidModifierFieldSpecified = value; } - } - - public BidModifierSource bidModifierSource { - get { return this.bidModifierSourceField; } - set { - this.bidModifierSourceField = value; - this.bidModifierSourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidModifierSourceSpecified { - get { return this.bidModifierSourceFieldSpecified; } - set { this.bidModifierSourceFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BidModifierSource { - UNKNOWN, - CAMPAIGN, - AD_GROUP - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeAdGroupCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddableAdGroupCriterion))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupCriterion { - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private CriterionUse criterionUseField; - - private bool criterionUseFieldSpecified; - - private Criterion criterionField; - - private String_StringMapEntry[] forwardCompatibilityMapField; - - private string adGroupCriterionTypeField; - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - public CriterionUse criterionUse { - get { return this.criterionUseField; } - set { - this.criterionUseField = value; - this.criterionUseSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionUseSpecified { - get { return this.criterionUseFieldSpecified; } - set { this.criterionUseFieldSpecified = value; } - } - - public Criterion criterion { - get { return this.criterionField; } - set { this.criterionField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("forwardCompatibilityMap")] - public String_StringMapEntry[] forwardCompatibilityMap { - get { return this.forwardCompatibilityMapField; } - set { this.forwardCompatibilityMapField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("AdGroupCriterion.Type")] - public string AdGroupCriterionType { - get { return this.adGroupCriterionTypeField; } - set { this.adGroupCriterionTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CriterionUse { - BIDDABLE, - NEGATIVE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class NegativeAdGroupCriterion : AdGroupCriterion { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddableAdGroupCriterion : AdGroupCriterion { - private UserStatus userStatusField; - - private bool userStatusFieldSpecified; - - private SystemServingStatus systemServingStatusField; - - private bool systemServingStatusFieldSpecified; - - private ApprovalStatus approvalStatusField; - - private bool approvalStatusFieldSpecified; - - private string[] disapprovalReasonsField; - - private string destinationUrlField; - - private BiddableAdGroupCriterionExperimentData experimentDataField; - - private Bid firstPageCpcField; - - private Bid topOfPageCpcField; - - private QualityInfo qualityInfoField; - - private BiddingStrategyConfiguration biddingStrategyConfigurationField; - - private double bidModifierField; - - private bool bidModifierFieldSpecified; - - public UserStatus userStatus { - get { return this.userStatusField; } - set { - this.userStatusField = value; - this.userStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userStatusSpecified { - get { return this.userStatusFieldSpecified; } - set { this.userStatusFieldSpecified = value; } - } - - public SystemServingStatus systemServingStatus { - get { return this.systemServingStatusField; } - set { - this.systemServingStatusField = value; - this.systemServingStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool systemServingStatusSpecified { - get { return this.systemServingStatusFieldSpecified; } - set { this.systemServingStatusFieldSpecified = value; } - } - - public ApprovalStatus approvalStatus { - get { return this.approvalStatusField; } - set { - this.approvalStatusField = value; - this.approvalStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool approvalStatusSpecified { - get { return this.approvalStatusFieldSpecified; } - set { this.approvalStatusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("disapprovalReasons")] - public string[] disapprovalReasons { - get { return this.disapprovalReasonsField; } - set { this.disapprovalReasonsField = value; } - } - - public string destinationUrl { - get { return this.destinationUrlField; } - set { this.destinationUrlField = value; } - } - - public BiddableAdGroupCriterionExperimentData experimentData { - get { return this.experimentDataField; } - set { this.experimentDataField = value; } - } - - public Bid firstPageCpc { - get { return this.firstPageCpcField; } - set { this.firstPageCpcField = value; } - } - - public Bid topOfPageCpc { - get { return this.topOfPageCpcField; } - set { this.topOfPageCpcField = value; } - } - - public QualityInfo qualityInfo { - get { return this.qualityInfoField; } - set { this.qualityInfoField = value; } - } - - public BiddingStrategyConfiguration biddingStrategyConfiguration { - get { return this.biddingStrategyConfigurationField; } - set { this.biddingStrategyConfigurationField = value; } - } - - public double bidModifier { - get { return this.bidModifierField; } - set { - this.bidModifierField = value; - this.bidModifierSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidModifierSpecified { - get { return this.bidModifierFieldSpecified; } - set { this.bidModifierFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum UserStatus { - ACTIVE, - DELETED, - PAUSED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SystemServingStatus { - ELIGIBLE, - RARELY_SERVED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ApprovalStatus { - APPROVED, - PENDING_REVIEW, - UNDER_REVIEW, - DISAPPROVED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddableAdGroupCriterionExperimentData { - private long experimentIdField; - - private bool experimentIdFieldSpecified; - - private ExperimentDeltaStatus experimentDeltaStatusField; - - private bool experimentDeltaStatusFieldSpecified; - - private ExperimentDataStatus experimentDataStatusField; - - private bool experimentDataStatusFieldSpecified; - - private AdGroupCriterionExperimentBidMultiplier experimentBidMultiplierField; - - public long experimentId { - get { return this.experimentIdField; } - set { - this.experimentIdField = value; - this.experimentIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentIdSpecified { - get { return this.experimentIdFieldSpecified; } - set { this.experimentIdFieldSpecified = value; } - } - - public ExperimentDeltaStatus experimentDeltaStatus { - get { return this.experimentDeltaStatusField; } - set { - this.experimentDeltaStatusField = value; - this.experimentDeltaStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentDeltaStatusSpecified { - get { return this.experimentDeltaStatusFieldSpecified; } - set { this.experimentDeltaStatusFieldSpecified = value; } - } - - public ExperimentDataStatus experimentDataStatus { - get { return this.experimentDataStatusField; } - set { - this.experimentDataStatusField = value; - this.experimentDataStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool experimentDataStatusSpecified { - get { return this.experimentDataStatusFieldSpecified; } - set { this.experimentDataStatusFieldSpecified = value; } - } - - public AdGroupCriterionExperimentBidMultiplier experimentBidMultiplier { - get { return this.experimentBidMultiplierField; } - set { this.experimentBidMultiplierField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManualCPCAdGroupCriterionExperimentBidMultiplier))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class AdGroupCriterionExperimentBidMultiplier { - private string adGroupCriterionExperimentBidMultiplierTypeField; - - [System.Xml.Serialization.XmlElementAttribute("AdGroupCriterionExperimentBidMultiplier.Type")] - public string AdGroupCriterionExperimentBidMultiplierType { - get { return this.adGroupCriterionExperimentBidMultiplierTypeField; } - set { this.adGroupCriterionExperimentBidMultiplierTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ManualCPCAdGroupCriterionExperimentBidMultiplier : AdGroupCriterionExperimentBidMultiplier { - private BidMultiplier maxCpcMultiplierField; - - private MultiplierSource multiplierSourceField; - - private bool multiplierSourceFieldSpecified; - - public BidMultiplier maxCpcMultiplier { - get { return this.maxCpcMultiplierField; } - set { this.maxCpcMultiplierField = value; } - } - - public MultiplierSource multiplierSource { - get { return this.multiplierSourceField; } - set { - this.multiplierSourceField = value; - this.multiplierSourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool multiplierSourceSpecified { - get { return this.multiplierSourceFieldSpecified; } - set { this.multiplierSourceFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MultiplierSource { - ADGROUP, - CRITERION, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class QualityInfo { - private bool isKeywordAdRelevanceAcceptableField; - - private bool isKeywordAdRelevanceAcceptableFieldSpecified; - - private bool isLandingPageQualityAcceptableField; - - private bool isLandingPageQualityAcceptableFieldSpecified; - - private bool isLandingPageLatencyAcceptableField; - - private bool isLandingPageLatencyAcceptableFieldSpecified; - - private int qualityScoreField; - - private bool qualityScoreFieldSpecified; - - public bool isKeywordAdRelevanceAcceptable { - get { return this.isKeywordAdRelevanceAcceptableField; } - set { - this.isKeywordAdRelevanceAcceptableField = value; - this.isKeywordAdRelevanceAcceptableSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isKeywordAdRelevanceAcceptableSpecified { - get { return this.isKeywordAdRelevanceAcceptableFieldSpecified; } - set { this.isKeywordAdRelevanceAcceptableFieldSpecified = value; } - } - - public bool isLandingPageQualityAcceptable { - get { return this.isLandingPageQualityAcceptableField; } - set { - this.isLandingPageQualityAcceptableField = value; - this.isLandingPageQualityAcceptableSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isLandingPageQualityAcceptableSpecified { - get { return this.isLandingPageQualityAcceptableFieldSpecified; } - set { this.isLandingPageQualityAcceptableFieldSpecified = value; } - } - - public bool isLandingPageLatencyAcceptable { - get { return this.isLandingPageLatencyAcceptableField; } - set { - this.isLandingPageLatencyAcceptableField = value; - this.isLandingPageLatencyAcceptableSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isLandingPageLatencyAcceptableSpecified { - get { return this.isLandingPageLatencyAcceptableFieldSpecified; } - set { this.isLandingPageLatencyAcceptableFieldSpecified = value; } - } - - public int qualityScore { - get { return this.qualityScoreField; } - set { - this.qualityScoreField = value; - this.qualityScoreSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool qualityScoreSpecified { - get { return this.qualityScoreFieldSpecified; } - set { this.qualityScoreFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SimpleMutateJob))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BulkMutateJob))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class Job { - private ApiErrorReason failureReasonField; - - private JobStats statsField; - - private BillingSummary billingSummaryField; - - private string jobTypeField; - - public ApiErrorReason failureReason { - get { return this.failureReasonField; } - set { this.failureReasonField = value; } - } - - public JobStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - public BillingSummary billingSummary { - get { return this.billingSummaryField; } - set { this.billingSummaryField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("Job.Type")] - public string JobType { - get { return this.jobTypeField; } - set { this.jobTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ApiErrorReason { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("AdErrorReason", typeof(AdErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AdExtensionErrorReason", typeof(AdExtensionErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AdExtensionOverrideErrorReason", typeof(AdExtensionOverrideErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AdGroupAdErrorReason", typeof(AdGroupAdErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AdGroupCriterionErrorReason", typeof(AdGroupCriterionErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AdGroupServiceErrorReason", typeof(AdGroupServiceErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AdxErrorReason", typeof(AdxErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AuthenticationErrorReason", typeof(AuthenticationErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("AuthorizationErrorReason", typeof(AuthorizationErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("BetaErrorReason", typeof(BetaErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("BiddingErrorReason", typeof(BiddingErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("BiddingErrorsReason", typeof(BiddingErrorsReason))] - [System.Xml.Serialization.XmlElementAttribute("BiddingTransitionErrorReason", typeof(BiddingTransitionErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("BudgetErrorReason", typeof(BudgetErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("BulkMutateJobErrorReason", typeof(BulkMutateJobErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("CampaignAdExtensionErrorReason", typeof(CampaignAdExtensionErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("CampaignCriterionErrorReason", typeof(CampaignCriterionErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("CampaignErrorReason", typeof(CampaignErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("ClientTermsErrorReason", typeof(ClientTermsErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("CriterionErrorReason", typeof(CriterionErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("DatabaseErrorReason", typeof(DatabaseErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("DateErrorReason", typeof(DateErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("DistinctErrorReason", typeof(DistinctErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("EntityAccessDeniedReason", typeof(EntityAccessDeniedReason))] - [System.Xml.Serialization.XmlElementAttribute("EntityCountLimitExceededReason", typeof(EntityCountLimitExceededReason))] - [System.Xml.Serialization.XmlElementAttribute("EntityNotFoundReason", typeof(EntityNotFoundReason))] - [System.Xml.Serialization.XmlElementAttribute("FeedItemErrorReason", typeof(FeedItemErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("ForwardCompatibilityErrorReason", typeof(ForwardCompatibilityErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("FunctionParsingErrorReason", typeof(FunctionParsingErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("IdErrorReason", typeof(IdErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("ImageErrorReason", typeof(ImageErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("InternalApiErrorReason", typeof(InternalApiErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("JobErrorReason", typeof(JobErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("MediaErrorReason", typeof(MediaErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("NewEntityCreationErrorReason", typeof(NewEntityCreationErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("NotEmptyErrorReason", typeof(NotEmptyErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("NotWhitelistedErrorReason", typeof(NotWhitelistedErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("NullErrorReason", typeof(NullErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("OperationAccessDeniedReason", typeof(OperationAccessDeniedReason))] - [System.Xml.Serialization.XmlElementAttribute("OperatorErrorReason", typeof(OperatorErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("PagingErrorReason", typeof(PagingErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("PolicyViolationErrorReason", typeof(PolicyViolationErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("QueryErrorReason", typeof(QueryErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("QuotaCheckErrorReason", typeof(QuotaCheckErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("QuotaErrorReason", typeof(QuotaErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("RangeErrorReason", typeof(RangeErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("RateExceededErrorReason", typeof(RateExceededErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("ReadOnlyErrorReason", typeof(ReadOnlyErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("RegionCodeErrorReason", typeof(RegionCodeErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("RejectedErrorReason", typeof(RejectedErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("RequestErrorReason", typeof(RequestErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("RequiredErrorReason", typeof(RequiredErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("SelectorErrorReason", typeof(SelectorErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("SettingErrorReason", typeof(SettingErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("SizeLimitErrorReason", typeof(SizeLimitErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("StatsQueryErrorReason", typeof(StatsQueryErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("StringLengthErrorReason", typeof(StringLengthErrorReason))] - [System.Xml.Serialization.XmlElementAttribute("TargetErrorReason", typeof(TargetErrorReason))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdExtensionOverrideError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdExtensionOverrideErrorReason { - AD_ALREADY_HAS_ADEXTENSION_OVERRIDE, - ADEXTENSION_ID_MUST_BE_SPECIFIED, - ADEXTENSION_LATITUTE_CANNOT_CHANGE_AFTER_BEING_SET_ONCE, - ADEXTENSION_LONGITUDE_CANNOT_CHANGE_AFTER_BEING_SET_ONCE, - ADEXTENSION_NOT_UNDER_CAMPAIGN, - CANNOT_OPERATE_ON_DELETED_OVERRIDE, - CANNOT_OVERRIDE_EXTENSIONS_ON_NON_TEXT_AD, - CANNOT_OVERRIDE_USING_NON_LOCATION_EXTENSION, - INVALID_ADEXTENSION_ID, - LOCATION_OVERRIDE_INFO_REQUIRED_FOR_NEW_LOCATION_EXTENSION_OVERRIDE, - OVERRIDE_INFO_MUST_BE_NULL_AFTER_BEING_SET_ONCE, - RADIUS_TOO_LARGE, - RADIUS_TOO_SMALL, - UNKNOWN_ADEXTENSION_OVERRIDE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupCriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupCriterionErrorReason { - INVALID_ID_FILTER_TYPE, - ID_FILTERS_HAVE_DIFF_FIELDS_SET, - INAPPLICABLE_FOR_NEGATIVE, - INAPPLICABLE_FILTER_SPECIFIED, - TOO_MANY_OPERTAIONS, - CANT_UPDATE_NEGATIVE, - TYPE_MISMATCH, - CONCRETE_TYPE_REQUIRED, - BID_INCOMPATIBLE_WITH_ADGROUP, - NETWORK_NOT_OVERRIDABLE, - CURRENCY_MISMATCH, - CRITERION_NOT_TARGETED, - CANNOT_TARGET_AND_EXCLUDE, - ILLEGAL_URL, - INVALID_VERTICAL_PATH, - NO_EFFECTIVE_BID_FOR_THIS_CRITERION, - INVALID_KEYWORD_TEXT, - INVALID_DESTINATION_URL, - MISSING_DESTINATION_URL_TAG, - KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM, - INVALID_USER_STATUS, - CANNOT_ADD_CRITERIA_TYPE, - CANNOT_EXCLUDE_CRITERIA_TYPE, - PRODUCT_FILTER_TOO_LONG, - INVALID_PRODUCT_FILTER, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupServiceError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupServiceErrorReason { - DUPLICATE_ADGROUP_NAME, - INVALID_ADGROUP_NAME, - USE_SET_OPERATOR_AND_MARK_STATUS_TO_DELETED, - ADVERTISER_NOT_ON_CONTENT_NETWORK, - BID_TOO_BIG, - BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH, - MISSING_ADGROUP_NAME, - INVALID_CONTENT_BID_CRITERION_TYPE_GROUP - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BulkMutateJobError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BulkMutateJobErrorReason { - CAN_RETURN_RESULT_FOR_ONLY_COMPLETED_JOBS, - CAN_RETURN_RESULT_FOR_ONLY_ONE_JOB, - CANNOT_UPDATE_JOB_ONCE_ALL_REQUEST_PARTS_ARE_RECEIVED, - INVALID_SCOPING_ENTITY_TYPE, - MISSING_SCOPING_ENTITY_FOR_OPERATION_STREAM, - MORE_THAN_ONE_SCOPING_ENTITY_TYPE, - PAYLOAD_STORE_UNAVAILABLE, - REQUEST_PART_IS_OUT_OF_ORDER, - TOO_MANY_OPERATION_STREAMS_IN_REQUEST_PART, - TOO_MANY_OPERATIONS_IN_JOB, - TOO_MANY_OPERATIONS_IN_REQUEST_PART, - TOO_MANY_RESULTS_TO_STORE, - TOO_MANY_SCOPING_ENTITIES, - UNKNOWN, - LOST_RESULT, - UNPROCESSED_RESULT, - BATCH_FAILURE, - SERVICE_PROVIDED_NO_RESULT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "FunctionParsingError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum FunctionParsingErrorReason { - NO_MORE_INPUT, - EXPECTED_CHARACTER, - UNEXPECTED_SEPARATOR, - UNMATCHED_LEFT_BRACKET, - UNMATCHED_RIGHT_BRACKET, - TOO_MANY_NESTED_FUNCTIONS, - MISSING_RIGHT_HAND_OPERAND, - INVALID_OPERATOR_NAME, - FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER, - NO_OPERANDS, - TOO_MANY_OPERANDS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "JobError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum JobErrorReason { - DUPLICATE_JOB_KEY_FOR_CUSTOMER, - JOB_TYPE_NOT_SUPPORTED, - PREREQUISITE_JOB_FAILED, - SELECTOR_CANNOT_USE_BOTH_JOB_IDS_AND_JOB_KEYS, - TOO_LATE_TO_CANCEL_JOB, - TOO_MANY_PREREQUISITE_JOBS, - TOO_MANY_JOBS_IN_QUEUE, - USER_CANCELED_JOB, - WORKFLOW_FAILURE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PolicyViolationError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum PolicyViolationErrorReason { - POLICY_ERROR - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BulkMutateJobStats))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class JobStats { - private int progressPercentField; - - private bool progressPercentFieldSpecified; - - private long pendingTimeMillisField; - - private bool pendingTimeMillisFieldSpecified; - - private long processingTimeMillisField; - - private bool processingTimeMillisFieldSpecified; - - private string jobStatsTypeField; - - public int progressPercent { - get { return this.progressPercentField; } - set { - this.progressPercentField = value; - this.progressPercentSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool progressPercentSpecified { - get { return this.progressPercentFieldSpecified; } - set { this.progressPercentFieldSpecified = value; } - } - - public long pendingTimeMillis { - get { return this.pendingTimeMillisField; } - set { - this.pendingTimeMillisField = value; - this.pendingTimeMillisSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool pendingTimeMillisSpecified { - get { return this.pendingTimeMillisFieldSpecified; } - set { this.pendingTimeMillisFieldSpecified = value; } - } - - public long processingTimeMillis { - get { return this.processingTimeMillisField; } - set { - this.processingTimeMillisField = value; - this.processingTimeMillisSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool processingTimeMillisSpecified { - get { return this.processingTimeMillisFieldSpecified; } - set { this.processingTimeMillisFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("JobStats.Type")] - public string JobStatsType { - get { return this.jobStatsTypeField; } - set { this.jobStatsTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateJobStats : JobStats { - private int numOperationsField; - - private bool numOperationsFieldSpecified; - - private int numFailedOperationsField; - - private bool numFailedOperationsFieldSpecified; - - private int numUnprocessedOperationsField; - - private bool numUnprocessedOperationsFieldSpecified; - - public int numOperations { - get { return this.numOperationsField; } - set { - this.numOperationsField = value; - this.numOperationsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numOperationsSpecified { - get { return this.numOperationsFieldSpecified; } - set { this.numOperationsFieldSpecified = value; } - } - - public int numFailedOperations { - get { return this.numFailedOperationsField; } - set { - this.numFailedOperationsField = value; - this.numFailedOperationsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numFailedOperationsSpecified { - get { return this.numFailedOperationsFieldSpecified; } - set { this.numFailedOperationsFieldSpecified = value; } - } - - public int numUnprocessedOperations { - get { return this.numUnprocessedOperationsField; } - set { - this.numUnprocessedOperationsField = value; - this.numUnprocessedOperationsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numUnprocessedOperationsSpecified { - get { return this.numUnprocessedOperationsFieldSpecified; } - set { this.numUnprocessedOperationsFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BillingSummary { - private int numOperationsField; - - private bool numOperationsFieldSpecified; - - private long numUnitsField; - - private bool numUnitsFieldSpecified; - - public int numOperations { - get { return this.numOperationsField; } - set { - this.numOperationsField = value; - this.numOperationsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numOperationsSpecified { - get { return this.numOperationsFieldSpecified; } - set { this.numOperationsFieldSpecified = value; } - } - - public long numUnits { - get { return this.numUnitsField; } - set { - this.numUnitsField = value; - this.numUnitsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numUnitsSpecified { - get { return this.numUnitsFieldSpecified; } - set { this.numUnitsFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SimpleMutateJob : Job { - private long idField; - - private bool idFieldSpecified; - - private BasicJobStatus statusField; - - private bool statusFieldSpecified; - - private JobEvent[] historyField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public BasicJobStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("history")] - public JobEvent[] history { - get { return this.historyField; } - set { this.historyField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BasicJobStatus { - COMPLETED, - PROCESSING, - FAILED, - PENDING - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BulkMutateJobEvent))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class JobEvent { - private string dateTimeField; - - private string jobEventTypeField; - - public string dateTime { - get { return this.dateTimeField; } - set { this.dateTimeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("JobEvent.Type")] - public string JobEventType { - get { return this.jobEventTypeField; } - set { this.jobEventTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateJobEvent : JobEvent { - private BasicJobStatus statusField; - - private bool statusFieldSpecified; - - public BasicJobStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateJob : Job { - private long idField; - - private bool idFieldSpecified; - - private BulkMutateJobPolicy policyField; - - private BulkMutateRequest requestField; - - private BasicJobStatus statusField; - - private bool statusFieldSpecified; - - private BulkMutateJobEvent[] historyField; - - private BulkMutateResult resultField; - - private int numRequestPartsField; - - private bool numRequestPartsFieldSpecified; - - private int numRequestPartsReceivedField; - - private bool numRequestPartsReceivedFieldSpecified; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public BulkMutateJobPolicy policy { - get { return this.policyField; } - set { this.policyField = value; } - } - - public BulkMutateRequest request { - get { return this.requestField; } - set { this.requestField = value; } - } - - public BasicJobStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("history")] - public BulkMutateJobEvent[] history { - get { return this.historyField; } - set { this.historyField = value; } - } - - public BulkMutateResult result { - get { return this.resultField; } - set { this.resultField = value; } - } - - public int numRequestParts { - get { return this.numRequestPartsField; } - set { - this.numRequestPartsField = value; - this.numRequestPartsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numRequestPartsSpecified { - get { return this.numRequestPartsFieldSpecified; } - set { this.numRequestPartsFieldSpecified = value; } - } - - public int numRequestPartsReceived { - get { return this.numRequestPartsReceivedField; } - set { - this.numRequestPartsReceivedField = value; - this.numRequestPartsReceivedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool numRequestPartsReceivedSpecified { - get { return this.numRequestPartsReceivedFieldSpecified; } - set { this.numRequestPartsReceivedFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateJobPolicy { - private long[] prerequisiteJobIdsField; - - private string dummyField; - - [System.Xml.Serialization.XmlElementAttribute("prerequisiteJobIds")] - public long[] prerequisiteJobIds { - get { return this.prerequisiteJobIdsField; } - set { this.prerequisiteJobIdsField = value; } - } - - public string dummy { - get { return this.dummyField; } - set { this.dummyField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateRequest { - private int partIndexField; - - private bool partIndexFieldSpecified; - - private OperationStream[] operationStreamsField; - - public int partIndex { - get { return this.partIndexField; } - set { - this.partIndexField = value; - this.partIndexSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool partIndexSpecified { - get { return this.partIndexFieldSpecified; } - set { this.partIndexFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("operationStreams")] - public OperationStream[] operationStreams { - get { return this.operationStreamsField; } - set { this.operationStreamsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OperationStream { - private EntityId scopingEntityIdField; - - private Operation[] operationsField; - - public EntityId scopingEntityId { - get { return this.scopingEntityIdField; } - set { this.scopingEntityIdField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("operations")] - public Operation[] operations { - get { return this.operationsField; } - set { this.operationsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class EntityId { - private EntityIdType typeField; - - private bool typeFieldSpecified; - - private long valueField; - - private bool valueFieldSpecified; - - public EntityIdType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public long value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityId.Type", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum EntityIdType { - ADGROUP_ID, - AD_ID, - CAMPAIGN_ID, - CUSTOMER_ID - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CampaignTargetOperation : Operation { - private TargetList operandField; - - public TargetList operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdScheduleTargetList))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class TargetList { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string targetListTypeField; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("TargetList.Type")] - public string TargetListType { - get { return this.targetListTypeField; } - set { this.targetListTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdScheduleTargetList : TargetList { - private AdScheduleTarget[] targetsField; - - [System.Xml.Serialization.XmlElementAttribute("targets")] - public AdScheduleTarget[] targets { - get { return this.targetsField; } - set { this.targetsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdScheduleTarget : Target { - private DayOfWeek dayOfWeekField; - - private bool dayOfWeekFieldSpecified; - - private int startHourField; - - private bool startHourFieldSpecified; - - private MinuteOfHour startMinuteField; - - private bool startMinuteFieldSpecified; - - private int endHourField; - - private bool endHourFieldSpecified; - - private MinuteOfHour endMinuteField; - - private bool endMinuteFieldSpecified; - - private double bidMultiplierField; - - private bool bidMultiplierFieldSpecified; - - public DayOfWeek dayOfWeek { - get { return this.dayOfWeekField; } - set { - this.dayOfWeekField = value; - this.dayOfWeekSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dayOfWeekSpecified { - get { return this.dayOfWeekFieldSpecified; } - set { this.dayOfWeekFieldSpecified = value; } - } - - public int startHour { - get { return this.startHourField; } - set { - this.startHourField = value; - this.startHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startHourSpecified { - get { return this.startHourFieldSpecified; } - set { this.startHourFieldSpecified = value; } - } - - public MinuteOfHour startMinute { - get { return this.startMinuteField; } - set { - this.startMinuteField = value; - this.startMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startMinuteSpecified { - get { return this.startMinuteFieldSpecified; } - set { this.startMinuteFieldSpecified = value; } - } - - public int endHour { - get { return this.endHourField; } - set { - this.endHourField = value; - this.endHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endHourSpecified { - get { return this.endHourFieldSpecified; } - set { this.endHourFieldSpecified = value; } - } - - public MinuteOfHour endMinute { - get { return this.endMinuteField; } - set { - this.endMinuteField = value; - this.endMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endMinuteSpecified { - get { return this.endMinuteFieldSpecified; } - set { this.endMinuteFieldSpecified = value; } - } - - public double bidMultiplier { - get { return this.bidMultiplierField; } - set { - this.bidMultiplierField = value; - this.bidMultiplierSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool bidMultiplierSpecified { - get { return this.bidMultiplierFieldSpecified; } - set { this.bidMultiplierFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdScheduleTarget))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class Target { - private string targetTypeField; - - [System.Xml.Serialization.XmlElementAttribute("Target.Type")] - public string TargetType { - get { return this.targetTypeField; } - set { this.targetTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupOperation : Operation { - private AdGroup operandField; - - public AdGroup operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupCriterionOperation : Operation { - private AdGroupCriterion operandField; - - private ExemptionRequest[] exemptionRequestsField; - - public AdGroupCriterion operand { - get { return this.operandField; } - set { this.operandField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("exemptionRequests")] - public ExemptionRequest[] exemptionRequests { - get { return this.exemptionRequestsField; } - set { this.exemptionRequestsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupBidModifierOperation : Operation { - private AdGroupBidModifier operandField; - - public AdGroupBidModifier operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdExtensionOverrideOperation : Operation { - private AdExtensionOverride operandField; - - public AdExtensionOverride operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateResult { - private int partIndexField; - - private bool partIndexFieldSpecified; - - private OperationStreamResult[] operationStreamResultsField; - - public int partIndex { - get { return this.partIndexField; } - set { - this.partIndexField = value; - this.partIndexSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool partIndexSpecified { - get { return this.partIndexFieldSpecified; } - set { this.partIndexFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("operationStreamResults")] - public OperationStreamResult[] operationStreamResults { - get { return this.operationStreamResultsField; } - set { this.operationStreamResultsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OperationStreamResult { - private OperationResult[] operationResultsField; - - private string dummyField; - - [System.Xml.Serialization.XmlElementAttribute("operationResults")] - public OperationResult[] operationResults { - get { return this.operationResultsField; } - set { this.operationResultsField = value; } - } - - public string dummy { - get { return this.dummyField; } - set { this.dummyField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(UnprocessedResult))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReturnValueResult))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LostResult))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(FailureResult))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BatchFailureResult))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class OperationResult { - private string operationResultTypeField; - - [System.Xml.Serialization.XmlElementAttribute("OperationResult.Type")] - public string OperationResultType { - get { return this.operationResultTypeField; } - set { this.operationResultTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class UnprocessedResult : OperationResult { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ReturnValueResult : OperationResult { - private Operand returnValueField; - - public Operand returnValue { - get { return this.returnValueField; } - set { this.returnValueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class LostResult : OperationResult { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class FailureResult : OperationResult { - private ApiException causeField; - - public ApiException cause { - get { return this.causeField; } - set { this.causeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CriterionPolicyError : PolicyViolationError { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class JobError : ApiError { - private JobErrorReason reasonField; - - private bool reasonFieldSpecified; - - public JobErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupCriterionLimitExceeded : EntityCountLimitExceeded { - private AdGroupCriterionLimitExceededCriteriaLimitType limitTypeField; - - private bool limitTypeFieldSpecified; - - public AdGroupCriterionLimitExceededCriteriaLimitType limitType { - get { return this.limitTypeField; } - set { - this.limitTypeField = value; - this.limitTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool limitTypeSpecified { - get { return this.limitTypeFieldSpecified; } - set { this.limitTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupCriterionLimitExceeded.CriteriaLimitType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupCriterionLimitExceededCriteriaLimitType { - ADGROUP_KEYWORD, - ADGROUP_WEBSITE, - ADGROUP_CRITERION, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateJobError : ApiError { - private BulkMutateJobErrorReason reasonField; - - private bool reasonFieldSpecified; - - public BulkMutateJobErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupServiceError : ApiError { - private AdGroupServiceErrorReason reasonField; - - private bool reasonFieldSpecified; - - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - public AdGroupServiceErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupCriterionError : ApiError { - private AdGroupCriterionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdGroupCriterionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdExtensionOverrideError : ApiError { - private AdExtensionOverrideErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdExtensionOverrideErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BatchFailureResult : OperationResult { - private int operationIndexInBatchField; - - private bool operationIndexInBatchFieldSpecified; - - public int operationIndexInBatch { - get { return this.operationIndexInBatchField; } - set { - this.operationIndexInBatchField = value; - this.operationIndexInBatchSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operationIndexInBatchSpecified { - get { return this.operationIndexInBatchFieldSpecified; } - set { this.operationIndexInBatchFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class PlaceHolder { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class JobResult { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("BulkMutateResult", typeof(BulkMutateResult))] - [System.Xml.Serialization.XmlElementAttribute("SimpleMutateResult", typeof(SimpleMutateResult))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BulkMutateJobSelector))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public abstract partial class JobSelector { - private bool includeHistoryField; - - private bool includeHistoryFieldSpecified; - - private bool includeStatsField; - - private bool includeStatsFieldSpecified; - - private string jobSelectorTypeField; - - public bool includeHistory { - get { return this.includeHistoryField; } - set { - this.includeHistoryField = value; - this.includeHistorySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeHistorySpecified { - get { return this.includeHistoryFieldSpecified; } - set { this.includeHistoryFieldSpecified = value; } - } - - public bool includeStats { - get { return this.includeStatsField; } - set { - this.includeStatsField = value; - this.includeStatsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeStatsSpecified { - get { return this.includeStatsFieldSpecified; } - set { this.includeStatsFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("JobSelector.Type")] - public string JobSelectorType { - get { return this.jobSelectorTypeField; } - set { this.jobSelectorTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BulkMutateJobSelector : JobSelector { - private long[] jobIdsField; - - private int resultPartIndexField; - - private bool resultPartIndexFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute("jobIds")] - public long[] jobIds { - get { return this.jobIdsField; } - set { this.jobIdsField = value; } - } - - public int resultPartIndex { - get { return this.resultPartIndexField; } - set { - this.resultPartIndexField = value; - this.resultPartIndexSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool resultPartIndexSpecified { - get { return this.resultPartIndexFieldSpecified; } - set { this.resultPartIndexFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdGroupFeedServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdGroupFeedService : AdWordsSoapClient, IAdGroupFeedService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdGroupFeedService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupFeedService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupFeedPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((AdGroupFeedPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupFeedReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -AdGroupFeedOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((AdGroupFeedReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupFeedReturnValue : ListReturnValue { - private AdGroupFeed[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdGroupFeed[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupFeed { - private long feedIdField; - - private bool feedIdFieldSpecified; - - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private Function matchingFunctionField; - - private int[] placeholderTypesField; - - private AdGroupFeedStatus statusField; - - private bool statusFieldSpecified; - - public long feedId { - get { return this.feedIdField; } - set { - this.feedIdField = value; - this.feedIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool feedIdSpecified { - get { return this.feedIdFieldSpecified; } - set { this.feedIdFieldSpecified = value; } - } - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - public Function matchingFunction { - get { return this.matchingFunctionField; } - set { this.matchingFunctionField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("placeholderTypes")] - public int[] placeholderTypes { - get { return this.placeholderTypesField; } - set { this.placeholderTypesField = value; } - } - - public AdGroupFeedStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupFeed.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupFeedStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupFeedOperation : Operation { - private AdGroupFeed operandField; - - public AdGroupFeed operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupFeedPage : NullStatsPage { - private AdGroupFeed[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdGroupFeed[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupFeedError : ApiError { - private AdGroupFeedErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdGroupFeedErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdGroupFeedError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdGroupFeedErrorReason { - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE, - INVALID_ID, - CANNOT_ADD_ALREADY_EXISTING_ADGROUP_FEED, - CANNOT_OPERATE_ON_DELETED_ADGROUP_FEED, - INVALID_PLACEHOLDER_TYPES, - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE, - FEEDS_ONLY_UNDER_ENHANCED_CAMPAIGNS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "OfflineConversionFeedServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class OfflineConversionFeedService : AdWordsSoapClient, IOfflineConversionFeedService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public OfflineConversionFeedService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/OfflineConversionFeedService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual OfflineConversionFeedReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -OfflineConversionFeedOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((OfflineConversionFeedReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OfflineConversionFeedReturnValue : ListReturnValue { - private OfflineConversionFeed[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public OfflineConversionFeed[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OfflineConversionFeed { - private string googleClickIdField; - - private string conversionNameField; - - private string conversionTimeField; - - private double conversionValueField; - - private bool conversionValueFieldSpecified; - - public string googleClickId { - get { return this.googleClickIdField; } - set { this.googleClickIdField = value; } - } - - public string conversionName { - get { return this.conversionNameField; } - set { this.conversionNameField = value; } - } - - public string conversionTime { - get { return this.conversionTimeField; } - set { this.conversionTimeField = value; } - } - - public double conversionValue { - get { return this.conversionValueField; } - set { - this.conversionValueField = value; - this.conversionValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool conversionValueSpecified { - get { return this.conversionValueFieldSpecified; } - set { this.conversionValueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OfflineConversionError : ApiError { - private OfflineConversionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public OfflineConversionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "OfflineConversionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum OfflineConversionErrorReason { - UNPARSEABLE_GCLID, - CONVERSION_PRECEDES_CLICK, - EXPIRED_CLICK, - TOO_RECENT_CLICK, - INVALID_CLICK, - UNAUTHORIZED_USER, - INVALID_CONVERSION_TYPE, - CLICK_MISSING_CONVERSION_LABEL, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class MatchesRegexError : ApiError { - private MatchesRegexErrorReason reasonField; - - private bool reasonFieldSpecified; - - public MatchesRegexErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "MatchesRegexError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum MatchesRegexErrorReason { - UNKNOWN, - DOES_NOT_MATCH - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class CurrencyCodeError : ApiError { - private CurrencyCodeErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CurrencyCodeErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CurrencyCodeError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum CurrencyCodeErrorReason { - UNSUPPORTED_CURRENCY_CODE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class OfflineConversionFeedOperation : Operation { - private OfflineConversionFeed operandField; - - public OfflineConversionFeed operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ReportDefinitionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ReportDefinitionService : AdWordsSoapClient, IReportDefinitionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public ReportDefinitionService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/ReportDefinitionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ReportDefinitionField[] getReportFields(ReportDefinitionReportType reportType) { - object[] results = this.Invoke("getReportFields", new object[] { reportType }); - return ((ReportDefinitionField[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class EnumValuePair { - private string enumValueField; - - private string enumDisplayValueField; - - public string enumValue { - get { return this.enumValueField; } - set { this.enumValueField = value; } - } - - public string enumDisplayValue { - get { return this.enumDisplayValueField; } - set { this.enumDisplayValueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ReportDefinitionField { - private string fieldNameField; - - private string displayFieldNameField; - - private string xmlAttributeNameField; - - private string fieldTypeField; - - private string[] enumValuesField; - - private bool canSelectField; - - private bool canSelectFieldSpecified; - - private bool canFilterField; - - private bool canFilterFieldSpecified; - - private bool isEnumTypeField; - - private bool isEnumTypeFieldSpecified; - - private bool isBetaField; - - private bool isBetaFieldSpecified; - - private EnumValuePair[] enumValuePairsField; - - public string fieldName { - get { return this.fieldNameField; } - set { this.fieldNameField = value; } - } - - public string displayFieldName { - get { return this.displayFieldNameField; } - set { this.displayFieldNameField = value; } - } - - public string xmlAttributeName { - get { return this.xmlAttributeNameField; } - set { this.xmlAttributeNameField = value; } - } - - public string fieldType { - get { return this.fieldTypeField; } - set { this.fieldTypeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("enumValues")] - public string[] enumValues { - get { return this.enumValuesField; } - set { this.enumValuesField = value; } - } - - public bool canSelect { - get { return this.canSelectField; } - set { - this.canSelectField = value; - this.canSelectSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool canSelectSpecified { - get { return this.canSelectFieldSpecified; } - set { this.canSelectFieldSpecified = value; } - } - - public bool canFilter { - get { return this.canFilterField; } - set { - this.canFilterField = value; - this.canFilterSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool canFilterSpecified { - get { return this.canFilterFieldSpecified; } - set { this.canFilterFieldSpecified = value; } - } - - public bool isEnumType { - get { return this.isEnumTypeField; } - set { - this.isEnumTypeField = value; - this.isEnumTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isEnumTypeSpecified { - get { return this.isEnumTypeFieldSpecified; } - set { this.isEnumTypeFieldSpecified = value; } - } - - public bool isBeta { - get { return this.isBetaField; } - set { - this.isBetaField = value; - this.isBetaSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isBetaSpecified { - get { return this.isBetaFieldSpecified; } - set { this.isBetaFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("enumValuePairs")] - public EnumValuePair[] enumValuePairs { - get { return this.enumValuePairsField; } - set { this.enumValuePairsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ReportDefinitionError : ApiError { - private ReportDefinitionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ReportDefinitionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportDefinitionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ReportDefinitionErrorReason { - INVALID_DATE_RANGE_FOR_REPORT, - INVALID_FIELD_NAME_FOR_REPORT, - UNABLE_TO_FIND_MAPPING_FOR_THIS_REPORT, - INVALID_COLUMN_NAME_FOR_REPORT, - INVALID_REPORT_DEFINITION_ID, - REPORT_SELECTOR_CANNOT_BE_NULL, - NO_ENUMS_FOR_THIS_COLUMN_NAME, - INVALID_VIEW, - SORTING_NOT_SUPPORTED, - PAGING_NOT_SUPPORTED, - CUSTOMER_SERVING_TYPE_REPORT_MISMATCH, - CLIENT_SELECTOR_NO_CUSTOMER_IDENTIFIER, - CLIENT_SELECTOR_INVALID_CUSTOMER_ID, - REPORT_DEFINITION_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportDefinition.ReportType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ReportDefinitionReportType { - KEYWORDS_PERFORMANCE_REPORT, - AD_PERFORMANCE_REPORT, - URL_PERFORMANCE_REPORT, - ADGROUP_PERFORMANCE_REPORT, - CAMPAIGN_PERFORMANCE_REPORT, - ACCOUNT_PERFORMANCE_REPORT, - GEO_PERFORMANCE_REPORT, - SEARCH_QUERY_PERFORMANCE_REPORT, - AUTOMATIC_PLACEMENTS_PERFORMANCE_REPORT, - CAMPAIGN_NEGATIVE_KEYWORDS_PERFORMANCE_REPORT, - CAMPAIGN_NEGATIVE_PLACEMENTS_PERFORMANCE_REPORT, - AD_EXTENSIONS_PERFORMANCE_REPORT, - DESTINATION_URL_REPORT, - SHARED_SET_REPORT, - CAMPAIGN_SHARED_SET_REPORT, - SHARED_SET_CRITERIA_REPORT, - CREATIVE_CONVERSION_REPORT, - CALL_METRICS_CALL_DETAILS_REPORT, - KEYWORDLESS_QUERY_REPORT, - KEYWORDLESS_CATEGORY_REPORT, - ACCOUNT_REACH_FREQUENCY_REPORT, - CAMPAIGN_REACH_FREQUENCY_REPORT, - ADGROUP_REACH_FREQUENCY_REPORT, - CRITERIA_PERFORMANCE_REPORT, - CLICK_PERFORMANCE_REPORT, - BUDGET_PERFORMANCE_REPORT, - DISPLAY_KEYWORD_PERFORMANCE_REPORT, - PLACEHOLDER_FEED_ITEM_REPORT, - PLACEMENT_PERFORMANCE_REPORT, - CAMPAIGN_NEGATIVE_LOCATIONS_REPORT, - GENDER_PERFORMANCE_REPORT, - AGE_RANGE_PERFORMANCE_REPORT, - CAMPAIGN_LOCATION_TARGET_REPORT, - CAMPAIGN_AD_SCHEDULE_TARGET_REPORT, - CAMPAIGN_PLATFORM_TARGET_REPORT, - AUDIENCE_PERFORMANCE_REPORT, - DISPLAY_TOPICS_PERFORMANCE_REPORT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "SharedCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class SharedCriterionService : AdWordsSoapClient, ISharedCriterionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public SharedCriterionService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/SharedCriterionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual SharedCriterionPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((SharedCriterionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual SharedCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -SharedCriterionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((SharedCriterionReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedCriterionReturnValue : ListReturnValue { - private SharedCriterion[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public SharedCriterion[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedCriterion { - private long sharedSetIdField; - - private bool sharedSetIdFieldSpecified; - - private Criterion criterionField; - - private bool negativeField; - - private bool negativeFieldSpecified; - - public long sharedSetId { - get { return this.sharedSetIdField; } - set { - this.sharedSetIdField = value; - this.sharedSetIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sharedSetIdSpecified { - get { return this.sharedSetIdFieldSpecified; } - set { this.sharedSetIdFieldSpecified = value; } - } - - public Criterion criterion { - get { return this.criterionField; } - set { this.criterionField = value; } - } - - public bool negative { - get { return this.negativeField; } - set { - this.negativeField = value; - this.negativeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool negativeSpecified { - get { return this.negativeFieldSpecified; } - set { this.negativeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedCriterionOperation : Operation { - private SharedCriterion operandField; - - public SharedCriterion operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedCriterionPage : Page { - private SharedCriterion[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public SharedCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedCriterionError : ApiError { - private SharedCriterionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public SharedCriterionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SharedCriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SharedCriterionErrorReason { - EXCEEDS_CRITERIA_LIMIT, - INCORRECT_CRITERION_TYPE, - CANNOT_TARGET_AND_EXCLUDE, - NEGATIVE_CRITERION_REQUIRED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "SharedSetServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class SharedSetService : AdWordsSoapClient, ISharedSetService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public SharedSetService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/SharedSetService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual SharedSetPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((SharedSetPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual SharedSetReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -SharedSetOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((SharedSetReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedSetReturnValue : ListReturnValue { - private SharedSet[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public SharedSet[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedSet { - private long sharedSetIdField; - - private bool sharedSetIdFieldSpecified; - - private string nameField; - - private SharedSetType typeField; - - private bool typeFieldSpecified; - - private int memberCountField; - - private bool memberCountFieldSpecified; - - private int referenceCountField; - - private bool referenceCountFieldSpecified; - - private SharedSetStatus statusField; - - private bool statusFieldSpecified; - - public long sharedSetId { - get { return this.sharedSetIdField; } - set { - this.sharedSetIdField = value; - this.sharedSetIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sharedSetIdSpecified { - get { return this.sharedSetIdFieldSpecified; } - set { this.sharedSetIdFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public SharedSetType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public int memberCount { - get { return this.memberCountField; } - set { - this.memberCountField = value; - this.memberCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool memberCountSpecified { - get { return this.memberCountFieldSpecified; } - set { this.memberCountFieldSpecified = value; } - } - - public int referenceCount { - get { return this.referenceCountField; } - set { - this.referenceCountField = value; - this.referenceCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool referenceCountSpecified { - get { return this.referenceCountFieldSpecified; } - set { this.referenceCountFieldSpecified = value; } - } - - public SharedSetStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SharedSet.Status", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SharedSetStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedSetOperation : Operation { - private SharedSet operandField; - - public SharedSet operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedSetPage : NullStatsPage { - private SharedSet[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public SharedSet[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedSetError : ApiError { - private SharedSetErrorReason reasonField; - - private bool reasonFieldSpecified; - - public SharedSetErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SharedSetError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SharedSetErrorReason { - CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE, - DUPLICATE_NAME, - EXCEEDS_MAX_SHARED_SETS_FOR_TYPE, - INVALID_SET_NAME, - SHARED_SET_DELETED, - SHARED_SET_IN_USE, - TYPE_CANNOT_BE_CHANGED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "TargetingIdeaServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DataEntry))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class TargetingIdeaService : AdWordsSoapClient, ITargetingIdeaService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public TargetingIdeaService() { - this.Url = "https://adwords.google.com/api/adwords/o/v201309/TargetingIdeaService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/o/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/o/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual TargetingIdeaPage get(TargetingIdeaSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((TargetingIdeaPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/o/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/o/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual TargetingIdeaPage getBulkKeywordIdeas(TargetingIdeaSelector selector) { - object[] results = this.Invoke("getBulkKeywordIdeas", new object[] { selector }); - return ((TargetingIdeaPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class WebpageDescriptor { - private string urlField; - - private string titleField; - - public string url { - get { return this.urlField; } - set { this.urlField = value; } - } - - public string title { - get { return this.titleField; } - set { this.titleField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class MonthlySearchVolume { - private int yearField; - - private bool yearFieldSpecified; - - private int monthField; - - private bool monthFieldSpecified; - - private long countField; - - private bool countFieldSpecified; - - public int year { - get { return this.yearField; } - set { - this.yearField = value; - this.yearSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool yearSpecified { - get { return this.yearFieldSpecified; } - set { this.yearFieldSpecified = value; } - } - - public int month { - get { return this.monthField; } - set { - this.monthField = value; - this.monthSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool monthSpecified { - get { return this.monthFieldSpecified; } - set { this.monthFieldSpecified = value; } - } - - public long count { - get { return this.countField; } - set { - this.countField = value; - this.countSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool countSpecified { - get { return this.countFieldSpecified; } - set { this.countFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class Range { - private ComparableValue minField; - - private ComparableValue maxField; - - public ComparableValue min { - get { return this.minField; } - set { this.minField = value; } - } - - public ComparableValue max { - get { return this.maxField; } - set { this.maxField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class InStreamAdInfo { - private int maxAdDurationField; - - private bool maxAdDurationFieldSpecified; - - private int minAdDurationField; - - private bool minAdDurationFieldSpecified; - - private int medianAdDurationField; - - private bool medianAdDurationFieldSpecified; - - private double preRollPercentField; - - private bool preRollPercentFieldSpecified; - - private double midRollPercentField; - - private bool midRollPercentFieldSpecified; - - private double postRollPercentField; - - private bool postRollPercentFieldSpecified; - - public int maxAdDuration { - get { return this.maxAdDurationField; } - set { - this.maxAdDurationField = value; - this.maxAdDurationSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maxAdDurationSpecified { - get { return this.maxAdDurationFieldSpecified; } - set { this.maxAdDurationFieldSpecified = value; } - } - - public int minAdDuration { - get { return this.minAdDurationField; } - set { - this.minAdDurationField = value; - this.minAdDurationSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool minAdDurationSpecified { - get { return this.minAdDurationFieldSpecified; } - set { this.minAdDurationFieldSpecified = value; } - } - - public int medianAdDuration { - get { return this.medianAdDurationField; } - set { - this.medianAdDurationField = value; - this.medianAdDurationSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool medianAdDurationSpecified { - get { return this.medianAdDurationFieldSpecified; } - set { this.medianAdDurationFieldSpecified = value; } - } - - public double preRollPercent { - get { return this.preRollPercentField; } - set { - this.preRollPercentField = value; - this.preRollPercentSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool preRollPercentSpecified { - get { return this.preRollPercentFieldSpecified; } - set { this.preRollPercentFieldSpecified = value; } - } - - public double midRollPercent { - get { return this.midRollPercentField; } - set { - this.midRollPercentField = value; - this.midRollPercentSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool midRollPercentSpecified { - get { return this.midRollPercentFieldSpecified; } - set { this.midRollPercentFieldSpecified = value; } - } - - public double postRollPercent { - get { return this.postRollPercentField; } - set { - this.postRollPercentField = value; - this.postRollPercentSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool postRollPercentSpecified { - get { return this.postRollPercentFieldSpecified; } - set { this.postRollPercentFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class AdFormatSpec { - private SiteConstantsAdFormat formatField; - - private bool formatFieldSpecified; - - public SiteConstantsAdFormat format { - get { return this.formatField; } - set { - this.formatField = value; - this.formatSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool formatSpecified { - get { return this.formatFieldSpecified; } - set { this.formatFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SiteConstants.AdFormat", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum SiteConstantsAdFormat { - UNKNOWN, - TEXT, - IMAGE, - VIDEO, - INSTREAM - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(WebpageDescriptorAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(StringAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlacementTypeAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlacementAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OpportunityIdeaTypeAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MonthlySearchVolumeAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MoneyAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongRangeAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LongAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(KeywordAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(IntegerSetAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(IntegerAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(InStreamAdInfoAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(IdeaTypeAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(DoubleAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BooleanAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BidLandscapeAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSpecListAttribute))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdFormatSpecListAttribute))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public abstract partial class Attribute { - private string attributeTypeField; - - [System.Xml.Serialization.XmlElementAttribute("Attribute.Type")] - public string AttributeType { - get { return this.attributeTypeField; } - set { this.attributeTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class WebpageDescriptorAttribute : Attribute { - private WebpageDescriptor valueField; - - public WebpageDescriptor value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class StringAttribute : Attribute { - private string valueField; - - public string value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class PlacementTypeAttribute : Attribute { - private SiteConstantsPlacementType valueField; - - private bool valueFieldSpecified; - - public SiteConstantsPlacementType value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SiteConstants.PlacementType", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum SiteConstantsPlacementType { - UNKNOWN, - SITE, - VIDEO, - FEED, - GAME, - MOBILE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class PlacementAttribute : Attribute { - private Placement valueField; - - public Placement value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class OpportunityIdeaTypeAttribute : Attribute { - private OpportunityIdeaType valueField; - - private bool valueFieldSpecified; - - public OpportunityIdeaType value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum OpportunityIdeaType { - KEYWORD, - BID, - BUDGET - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class MonthlySearchVolumeAttribute : Attribute { - private MonthlySearchVolume[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public MonthlySearchVolume[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class MoneyAttribute : Attribute { - private Money valueField; - - public Money value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class LongRangeAttribute : Attribute { - private Range valueField; - - public Range value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class LongAttribute : Attribute { - private long valueField; - - private bool valueFieldSpecified; - - public long value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class KeywordAttribute : Attribute { - private Keyword valueField; - - public Keyword value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class IntegerSetAttribute : Attribute { - private int[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public int[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class IntegerAttribute : Attribute { - private int valueField; - - private bool valueFieldSpecified; - - public int value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class InStreamAdInfoAttribute : Attribute { - private InStreamAdInfo valueField; - - public InStreamAdInfo value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class IdeaTypeAttribute : Attribute { - private IdeaType valueField; - - private bool valueFieldSpecified; - - public IdeaType value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum IdeaType { - KEYWORD, - PLACEMENT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class DoubleAttribute : Attribute { - private double valueField; - - private bool valueFieldSpecified; - - public double value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class CriterionAttribute : Attribute { - private Criterion valueField; - - public Criterion value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class BooleanAttribute : Attribute { - private bool valueField; - - private bool valueFieldSpecified; - - public bool value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class BidLandscapeAttribute : Attribute { - private BidLandscape valueField; - - public BidLandscape value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class AdSpecListAttribute : Attribute { - private AdSpec[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdSpec[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class AdSpec { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("DisplayAdSpec", typeof(DisplayAdSpec))] - [System.Xml.Serialization.XmlElementAttribute("InStreamAdSpec", typeof(InStreamAdSpec))] - [System.Xml.Serialization.XmlElementAttribute("TextAdSpec", typeof(TextAdSpec))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class DisplayAdSpec { - private DisplayType[] displayTypesField; - - private DisplayAdSpecActivationOption[] activationOptionsField; - - private DisplayAdSpecAdSizeSpec[] adSizeSpecsField; - - [System.Xml.Serialization.XmlElementAttribute("displayTypes")] - public DisplayType[] displayTypes { - get { return this.displayTypesField; } - set { this.displayTypesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("activationOptions")] - public DisplayAdSpecActivationOption[] activationOptions { - get { return this.activationOptionsField; } - set { this.activationOptionsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("adSizeSpecs")] - public DisplayAdSpecAdSizeSpec[] adSizeSpecs { - get { return this.adSizeSpecsField; } - set { this.adSizeSpecsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class DisplayType { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("FlashDisplayType", typeof(FlashDisplayType))] - [System.Xml.Serialization.XmlElementAttribute("HtmlDisplayType", typeof(HtmlDisplayType))] - [System.Xml.Serialization.XmlElementAttribute("ImageDisplayType", typeof(ImageDisplayType))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class FlashDisplayType { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class HtmlDisplayType { - private HtmlDisplayTypeHtmlOption htmlOptionField; - - private bool htmlOptionFieldSpecified; - - public HtmlDisplayTypeHtmlOption htmlOption { - get { return this.htmlOptionField; } - set { - this.htmlOptionField = value; - this.htmlOptionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool htmlOptionSpecified { - get { return this.htmlOptionFieldSpecified; } - set { this.htmlOptionFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "HtmlDisplayType.HtmlOption", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum HtmlDisplayTypeHtmlOption { - UNKNOWN, - THIRD_PARTY_SERVING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class ImageDisplayType { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DisplayAdSpec.ActivationOption", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum DisplayAdSpecActivationOption { - UNKNOWN, - NONE, - STANDARD_EXPANDABLE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DisplayAdSpec.AdSizeSpec", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class DisplayAdSpecAdSizeSpec { - private long widthField; - - private bool widthFieldSpecified; - - private long heightField; - - private bool heightFieldSpecified; - - private DisplayAdSpecActivationOption[] activationOptionFilterField; - - public long width { - get { return this.widthField; } - set { - this.widthField = value; - this.widthSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool widthSpecified { - get { return this.widthFieldSpecified; } - set { this.widthFieldSpecified = value; } - } - - public long height { - get { return this.heightField; } - set { - this.heightField = value; - this.heightSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool heightSpecified { - get { return this.heightFieldSpecified; } - set { this.heightFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("activationOptionFilter")] - public DisplayAdSpecActivationOption[] activationOptionFilter { - get { return this.activationOptionFilterField; } - set { this.activationOptionFilterField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class InStreamAdSpec { - private InStreamAdSpecInStreamType[] inStreamTypesField; - - private long[] durationsField; - - [System.Xml.Serialization.XmlElementAttribute("inStreamTypes")] - public InStreamAdSpecInStreamType[] inStreamTypes { - get { return this.inStreamTypesField; } - set { this.inStreamTypesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("durations")] - public long[] durations { - get { return this.durationsField; } - set { this.durationsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "InStreamAdSpec.InStreamType", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum InStreamAdSpecInStreamType { - UNKNOWN, - IN_STREAM, - IN_DISPLAY, - IN_SLATE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TextAdSpec { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class AdFormatSpecListAttribute : Attribute { - private AdFormatSpec[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdFormatSpec[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class Type_AttributeMapEntry { - private AttributeType keyField; - - private bool keyFieldSpecified; - - private Attribute valueField; - - public AttributeType key { - get { return this.keyField; } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { return this.keyFieldSpecified; } - set { this.keyFieldSpecified = value; } - } - - public Attribute value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum AttributeType { - UNKNOWN, - AD_TYPE_SPEC, - APPROX_CONTENT_IMPRESSIONS_PER_DAY, - CATEGORY_PRODUCTS_AND_SERVICES, - COMPETITION, - CRITERION, - EXTRACTED_FROM_WEBPAGE, - IDEA_TYPE, - IN_STREAM_AD_INFO, - KEYWORD_TEXT, - PLACEMENT_NAME, - SAMPLE_URL, - PLACEMENT_CATEGORY, - PLACEMENT_TYPE, - SEARCH_VOLUME, - AVERAGE_CPC, - TARGETED_MONTHLY_SEARCHES - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TargetingIdea { - private Type_AttributeMapEntry[] dataField; - - private string dummyField; - - [System.Xml.Serialization.XmlElementAttribute("data")] - public Type_AttributeMapEntry[] data { - get { return this.dataField; } - set { this.dataField = value; } - } - - public string dummy { - get { return this.dummyField; } - set { this.dummyField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TargetingIdeaPage { - private int totalNumEntriesField; - - private bool totalNumEntriesFieldSpecified; - - private TargetingIdea[] entriesField; - - public int totalNumEntries { - get { return this.totalNumEntriesField; } - set { - this.totalNumEntriesField = value; - this.totalNumEntriesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalNumEntriesSpecified { - get { return this.totalNumEntriesFieldSpecified; } - set { this.totalNumEntriesFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public TargetingIdea[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class LongComparisonOperation { - private long minimumField; - - private bool minimumFieldSpecified; - - private long maximumField; - - private bool maximumFieldSpecified; - - public long minimum { - get { return this.minimumField; } - set { - this.minimumField = value; - this.minimumSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool minimumSpecified { - get { return this.minimumFieldSpecified; } - set { this.minimumFieldSpecified = value; } - } - - public long maximum { - get { return this.maximumField; } - set { - this.maximumField = value; - this.maximumSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool maximumSpecified { - get { return this.maximumFieldSpecified; } - set { this.maximumFieldSpecified = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SeedAdGroupIdSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchVolumeSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RelatedToUrlSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RelatedToQuerySearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlacementTypeSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NetworkSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LocationSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LanguageSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(IncludeAdultContentSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(IdeaTextFilterSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExcludedKeywordSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CompetitionSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CategoryProductsAndServicesSearchParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdSpecListSearchParameter))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public abstract partial class SearchParameter { - private string searchParameterTypeField; - - [System.Xml.Serialization.XmlElementAttribute("SearchParameter.Type")] - public string SearchParameterType { - get { return this.searchParameterTypeField; } - set { this.searchParameterTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class SeedAdGroupIdSearchParameter : SearchParameter { - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class SearchVolumeSearchParameter : SearchParameter { - private LongComparisonOperation operationField; - - public LongComparisonOperation operation { - get { return this.operationField; } - set { this.operationField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class RelatedToUrlSearchParameter : SearchParameter { - private string[] urlsField; - - private bool includeSubUrlsField; - - private bool includeSubUrlsFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute("urls")] - public string[] urls { - get { return this.urlsField; } - set { this.urlsField = value; } - } - - public bool includeSubUrls { - get { return this.includeSubUrlsField; } - set { - this.includeSubUrlsField = value; - this.includeSubUrlsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeSubUrlsSpecified { - get { return this.includeSubUrlsFieldSpecified; } - set { this.includeSubUrlsFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class RelatedToQuerySearchParameter : SearchParameter { - private string[] queriesField; - - [System.Xml.Serialization.XmlElementAttribute("queries")] - public string[] queries { - get { return this.queriesField; } - set { this.queriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class PlacementTypeSearchParameter : SearchParameter { - private SiteConstantsPlacementType[] placementTypesField; - - [System.Xml.Serialization.XmlElementAttribute("placementTypes")] - public SiteConstantsPlacementType[] placementTypes { - get { return this.placementTypesField; } - set { this.placementTypesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class NetworkSearchParameter : SearchParameter { - private NetworkSetting networkSettingField; - - public NetworkSetting networkSetting { - get { return this.networkSettingField; } - set { this.networkSettingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class LocationSearchParameter : SearchParameter { - private Location[] locationsField; - - [System.Xml.Serialization.XmlElementAttribute("locations")] - public Location[] locations { - get { return this.locationsField; } - set { this.locationsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class LanguageSearchParameter : SearchParameter { - private Language[] languagesField; - - [System.Xml.Serialization.XmlElementAttribute("languages")] - public Language[] languages { - get { return this.languagesField; } - set { this.languagesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class IncludeAdultContentSearchParameter : SearchParameter { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class IdeaTextFilterSearchParameter : SearchParameter { - private string[] includedField; - - private string[] excludedField; - - [System.Xml.Serialization.XmlElementAttribute("included")] - public string[] included { - get { return this.includedField; } - set { this.includedField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("excluded")] - public string[] excluded { - get { return this.excludedField; } - set { this.excludedField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class ExcludedKeywordSearchParameter : SearchParameter { - private Keyword[] keywordsField; - - [System.Xml.Serialization.XmlElementAttribute("keywords")] - public Keyword[] keywords { - get { return this.keywordsField; } - set { this.keywordsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class CompetitionSearchParameter : SearchParameter { - private CompetitionSearchParameterLevel[] levelsField; - - [System.Xml.Serialization.XmlElementAttribute("levels")] - public CompetitionSearchParameterLevel[] levels { - get { return this.levelsField; } - set { this.levelsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CompetitionSearchParameter.Level", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum CompetitionSearchParameterLevel { - LOW, - MEDIUM, - HIGH - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class CategoryProductsAndServicesSearchParameter : SearchParameter { - private int categoryIdField; - - private bool categoryIdFieldSpecified; - - public int categoryId { - get { return this.categoryIdField; } - set { - this.categoryIdField = value; - this.categoryIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool categoryIdSpecified { - get { return this.categoryIdFieldSpecified; } - set { this.categoryIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class AdSpecListSearchParameter : SearchParameter { - private AdSpec[] adSpecsField; - - [System.Xml.Serialization.XmlElementAttribute("adSpecs")] - public AdSpec[] adSpecs { - get { return this.adSpecsField; } - set { this.adSpecsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TargetingIdeaSelector { - private SearchParameter[] searchParametersField; - - private IdeaType ideaTypeField; - - private bool ideaTypeFieldSpecified; - - private RequestType requestTypeField; - - private bool requestTypeFieldSpecified; - - private AttributeType[] requestedAttributeTypesField; - - private Paging pagingField; - - private string localeCodeField; - - private string currencyCodeField; - - [System.Xml.Serialization.XmlElementAttribute("searchParameters")] - public SearchParameter[] searchParameters { - get { return this.searchParametersField; } - set { this.searchParametersField = value; } - } - - public IdeaType ideaType { - get { return this.ideaTypeField; } - set { - this.ideaTypeField = value; - this.ideaTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ideaTypeSpecified { - get { return this.ideaTypeFieldSpecified; } - set { this.ideaTypeFieldSpecified = value; } - } - - public RequestType requestType { - get { return this.requestTypeField; } - set { - this.requestTypeField = value; - this.requestTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool requestTypeSpecified { - get { return this.requestTypeFieldSpecified; } - set { this.requestTypeFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("requestedAttributeTypes")] - public AttributeType[] requestedAttributeTypes { - get { return this.requestedAttributeTypesField; } - set { this.requestedAttributeTypesField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - - public string localeCode { - get { return this.localeCodeField; } - set { this.localeCodeField = value; } - } - - public string currencyCode { - get { return this.currencyCodeField; } - set { this.currencyCodeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum RequestType { - IDEAS, - STATS - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TrafficEstimatorError : ApiError { - private TrafficEstimatorErrorReason reasonField; - - private bool reasonFieldSpecified; - - public TrafficEstimatorErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TrafficEstimatorError.Reason", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum TrafficEstimatorErrorReason { - NO_CAMPAIGN_FOR_AD_GROUP_ESTIMATE_REQUEST, - NO_AD_GROUP_FOR_KEYWORD_ESTIMATE_REQUEST, - NO_MAX_CPC_FOR_KEYWORD_ESTIMATE_REQUEST, - TOO_MANY_KEYWORD_ESTIMATE_REQUESTS, - TOO_MANY_CAMPAIGN_ESTIMATE_REQUESTS, - TOO_MANY_ADGROUP_ESTIMATE_REQUESTS, - TOO_MANY_TARGETS, - KEYWORD_TOO_LONG, - KEYWORD_CONTAINS_BROAD_MATCH_MODIFIERS, - INVALID_INPUT, - SERVICE_UNAVAILABLE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TargetingIdeaError : ApiError { - private TargetingIdeaErrorReason reasonField; - - private bool reasonFieldSpecified; - - public TargetingIdeaErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingIdeaError.Reason", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public enum TargetingIdeaErrorReason { - DUPLICATE_SEARCH_FILTER_TYPES_PRESENT, - INSUFFICIENT_SEARCH_PARAMETERS, - INVALID_ATTRIBUTE_TYPE, - INVALID_SEARCH_PARAMETERS, - INVALID_DOMAIN_SUFFIX, - MUTUALLY_EXCLUSIVE_SEARCH_PARAMETERS_IN_QUERY, - SERVICE_UNAVAILABLE, - INVALID_URL_IN_SEARCH_PARAMETER, - TOO_MANY_RESULTS_REQUESTED, - NO_PAGING_IN_SELECTOR, - INVALID_INCLUDED_EXCLUDED_KEYWORDS - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "TrafficEstimatorServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Estimate))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EstimateRequest))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class TrafficEstimatorService : AdWordsSoapClient, ITrafficEstimatorService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public TrafficEstimatorService() { - this.Url = "https://adwords.google.com/api/adwords/o/v201309/TrafficEstimatorService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/o/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/o/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual TrafficEstimatorResult get(TrafficEstimatorSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((TrafficEstimatorResult) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class StatsEstimate { - private Money averageCpcField; - - private double averagePositionField; - - private bool averagePositionFieldSpecified; - - private double clickThroughRateField; - - private bool clickThroughRateFieldSpecified; - - private float clicksPerDayField; - - private bool clicksPerDayFieldSpecified; - - private float impressionsPerDayField; - - private bool impressionsPerDayFieldSpecified; - - private Money totalCostField; - - public Money averageCpc { - get { return this.averageCpcField; } - set { this.averageCpcField = value; } - } - - public double averagePosition { - get { return this.averagePositionField; } - set { - this.averagePositionField = value; - this.averagePositionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool averagePositionSpecified { - get { return this.averagePositionFieldSpecified; } - set { this.averagePositionFieldSpecified = value; } - } - - public double clickThroughRate { - get { return this.clickThroughRateField; } - set { - this.clickThroughRateField = value; - this.clickThroughRateSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clickThroughRateSpecified { - get { return this.clickThroughRateFieldSpecified; } - set { this.clickThroughRateFieldSpecified = value; } - } - - public float clicksPerDay { - get { return this.clicksPerDayField; } - set { - this.clicksPerDayField = value; - this.clicksPerDaySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clicksPerDaySpecified { - get { return this.clicksPerDayFieldSpecified; } - set { this.clicksPerDayFieldSpecified = value; } - } - - public float impressionsPerDay { - get { return this.impressionsPerDayField; } - set { - this.impressionsPerDayField = value; - this.impressionsPerDaySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsPerDaySpecified { - get { return this.impressionsPerDayFieldSpecified; } - set { this.impressionsPerDayFieldSpecified = value; } - } - - public Money totalCost { - get { return this.totalCostField; } - set { this.totalCostField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignEstimate))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(KeywordEstimate))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupEstimate))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class Estimate { - private string estimateTypeField; - - [System.Xml.Serialization.XmlElementAttribute("Estimate.Type")] - public string EstimateType { - get { return this.estimateTypeField; } - set { this.estimateTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class CampaignEstimate : Estimate { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private AdGroupEstimate[] adGroupEstimatesField; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("adGroupEstimates")] - public AdGroupEstimate[] adGroupEstimates { - get { return this.adGroupEstimatesField; } - set { this.adGroupEstimatesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class AdGroupEstimate : Estimate { - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private KeywordEstimate[] keywordEstimatesField; - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("keywordEstimates")] - public KeywordEstimate[] keywordEstimates { - get { return this.keywordEstimatesField; } - set { this.keywordEstimatesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class KeywordEstimate : Estimate { - private long criterionIdField; - - private bool criterionIdFieldSpecified; - - private StatsEstimate minField; - - private StatsEstimate maxField; - - public long criterionId { - get { return this.criterionIdField; } - set { - this.criterionIdField = value; - this.criterionIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionIdSpecified { - get { return this.criterionIdFieldSpecified; } - set { this.criterionIdFieldSpecified = value; } - } - - public StatsEstimate min { - get { return this.minField; } - set { this.minField = value; } - } - - public StatsEstimate max { - get { return this.maxField; } - set { this.maxField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TrafficEstimatorResult { - private CampaignEstimate[] campaignEstimatesField; - - private string dummyField; - - [System.Xml.Serialization.XmlElementAttribute("campaignEstimates")] - public CampaignEstimate[] campaignEstimates { - get { return this.campaignEstimatesField; } - set { this.campaignEstimatesField = value; } - } - - public string dummy { - get { return this.dummyField; } - set { this.dummyField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignEstimateRequest))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(KeywordEstimateRequest))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupEstimateRequest))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public abstract partial class EstimateRequest { - private string estimateRequestTypeField; - - [System.Xml.Serialization.XmlElementAttribute("EstimateRequest.Type")] - public string EstimateRequestType { - get { return this.estimateRequestTypeField; } - set { this.estimateRequestTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class CampaignEstimateRequest : EstimateRequest { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private AdGroupEstimateRequest[] adGroupEstimateRequestsField; - - private Criterion[] criteriaField; - - private NetworkSetting networkSettingField; - - private Money dailyBudgetField; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("adGroupEstimateRequests")] - public AdGroupEstimateRequest[] adGroupEstimateRequests { - get { return this.adGroupEstimateRequestsField; } - set { this.adGroupEstimateRequestsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("criteria")] - public Criterion[] criteria { - get { return this.criteriaField; } - set { this.criteriaField = value; } - } - - public NetworkSetting networkSetting { - get { return this.networkSettingField; } - set { this.networkSettingField = value; } - } - - public Money dailyBudget { - get { return this.dailyBudgetField; } - set { this.dailyBudgetField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class AdGroupEstimateRequest : EstimateRequest { - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private KeywordEstimateRequest[] keywordEstimateRequestsField; - - private Money maxCpcField; - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("keywordEstimateRequests")] - public KeywordEstimateRequest[] keywordEstimateRequests { - get { return this.keywordEstimateRequestsField; } - set { this.keywordEstimateRequestsField = value; } - } - - public Money maxCpc { - get { return this.maxCpcField; } - set { this.maxCpcField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class KeywordEstimateRequest : EstimateRequest { - private Keyword keywordField; - - private Money maxCpcField; - - private bool isNegativeField; - - private bool isNegativeFieldSpecified; - - public Keyword keyword { - get { return this.keywordField; } - set { this.keywordField = value; } - } - - public Money maxCpc { - get { return this.maxCpcField; } - set { this.maxCpcField = value; } - } - - public bool isNegative { - get { return this.isNegativeField; } - set { - this.isNegativeField = value; - this.isNegativeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isNegativeSpecified { - get { return this.isNegativeFieldSpecified; } - set { this.isNegativeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/o/v201309")] - public partial class TrafficEstimatorSelector { - private CampaignEstimateRequest[] campaignEstimateRequestsField; - - private string dummyField; - - [System.Xml.Serialization.XmlElementAttribute("campaignEstimateRequests")] - public CampaignEstimateRequest[] campaignEstimateRequests { - get { return this.campaignEstimateRequestsField; } - set { this.campaignEstimateRequestsField = value; } - } - - public string dummy { - get { return this.dummyField; } - set { this.dummyField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdwordsUserListServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdwordsUserListService : AdWordsSoapClient, IAdwordsUserListService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdwordsUserListService() { - this.Url = "https://adwords.google.com/api/adwords/rm/v201309/AdwordsUserListService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/rm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/rm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual UserListPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((UserListPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/rm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/rm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual UserListReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -UserListOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((UserListReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class UserListReturnValue : ListReturnValue { - private UserList[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public UserList[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BasicUserList))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LogicalUserList))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExternalRemarketingUserList))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class UserList { - private long idField; - - private bool idFieldSpecified; - - private bool isReadOnlyField; - - private bool isReadOnlyFieldSpecified; - - private string nameField; - - private string descriptionField; - - private UserListMembershipStatus statusField; - - private bool statusFieldSpecified; - - private string integrationCodeField; - - private AccessReason accessReasonField; - - private bool accessReasonFieldSpecified; - - private AccountUserListStatus accountUserListStatusField; - - private bool accountUserListStatusFieldSpecified; - - private long membershipLifeSpanField; - - private bool membershipLifeSpanFieldSpecified; - - private long sizeField; - - private bool sizeFieldSpecified; - - private SizeRange sizeRangeField; - - private bool sizeRangeFieldSpecified; - - private long sizeForSearchField; - - private bool sizeForSearchFieldSpecified; - - private SizeRange sizeRangeForSearchField; - - private bool sizeRangeForSearchFieldSpecified; - - private string userListTypeField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public bool isReadOnly { - get { return this.isReadOnlyField; } - set { - this.isReadOnlyField = value; - this.isReadOnlySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isReadOnlySpecified { - get { return this.isReadOnlyFieldSpecified; } - set { this.isReadOnlyFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public string description { - get { return this.descriptionField; } - set { this.descriptionField = value; } - } - - public UserListMembershipStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public string integrationCode { - get { return this.integrationCodeField; } - set { this.integrationCodeField = value; } - } - - public AccessReason accessReason { - get { return this.accessReasonField; } - set { - this.accessReasonField = value; - this.accessReasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool accessReasonSpecified { - get { return this.accessReasonFieldSpecified; } - set { this.accessReasonFieldSpecified = value; } - } - - public AccountUserListStatus accountUserListStatus { - get { return this.accountUserListStatusField; } - set { - this.accountUserListStatusField = value; - this.accountUserListStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool accountUserListStatusSpecified { - get { return this.accountUserListStatusFieldSpecified; } - set { this.accountUserListStatusFieldSpecified = value; } - } - - public long membershipLifeSpan { - get { return this.membershipLifeSpanField; } - set { - this.membershipLifeSpanField = value; - this.membershipLifeSpanSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool membershipLifeSpanSpecified { - get { return this.membershipLifeSpanFieldSpecified; } - set { this.membershipLifeSpanFieldSpecified = value; } - } - - public long size { - get { return this.sizeField; } - set { - this.sizeField = value; - this.sizeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sizeSpecified { - get { return this.sizeFieldSpecified; } - set { this.sizeFieldSpecified = value; } - } - - public SizeRange sizeRange { - get { return this.sizeRangeField; } - set { - this.sizeRangeField = value; - this.sizeRangeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sizeRangeSpecified { - get { return this.sizeRangeFieldSpecified; } - set { this.sizeRangeFieldSpecified = value; } - } - - public long sizeForSearch { - get { return this.sizeForSearchField; } - set { - this.sizeForSearchField = value; - this.sizeForSearchSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sizeForSearchSpecified { - get { return this.sizeForSearchFieldSpecified; } - set { this.sizeForSearchFieldSpecified = value; } - } - - public SizeRange sizeRangeForSearch { - get { return this.sizeRangeForSearchField; } - set { - this.sizeRangeForSearchField = value; - this.sizeRangeForSearchSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sizeRangeForSearchSpecified { - get { return this.sizeRangeForSearchFieldSpecified; } - set { this.sizeRangeForSearchFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("UserList.Type")] - public string UserListType { - get { return this.userListTypeField; } - set { this.userListTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public enum UserListMembershipStatus { - OPEN, - CLOSED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public enum AccessReason { - OWNED, - SHARED, - LICENSED, - SUBSCRIBED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public enum AccountUserListStatus { - ACTIVE, - INACTIVE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public enum SizeRange { - LESS_THAN_FIVE_HUNDRED, - LESS_THAN_ONE_THOUSAND, - ONE_THOUSAND_TO_TEN_THOUSAND, - TEN_THOUSAND_TO_FIFTY_THOUSAND, - FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND, - ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND, - THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND, - FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION, - ONE_MILLION_TO_TWO_MILLION, - TWO_MILLION_TO_THREE_MILLION, - THREE_MILLION_TO_FIVE_MILLION, - FIVE_MILLION_TO_TEN_MILLION, - TEN_MILLION_TO_TWENTY_MILLION, - TWENTY_MILLION_TO_THIRTY_MILLION, - THIRTY_MILLION_TO_FIFTY_MILLION, - OVER_FIFTY_MILLION - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class BasicUserList : UserList { - private UserListConversionType[] conversionTypesField; - - [System.Xml.Serialization.XmlElementAttribute("conversionTypes")] - public UserListConversionType[] conversionTypes { - get { return this.conversionTypesField; } - set { this.conversionTypesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class UserListConversionType { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private UserListConversionTypeCategory categoryField; - - private bool categoryFieldSpecified; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public UserListConversionTypeCategory category { - get { return this.categoryField; } - set { - this.categoryField = value; - this.categorySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool categorySpecified { - get { return this.categoryFieldSpecified; } - set { this.categoryFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UserListConversionType.Category", Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public enum UserListConversionTypeCategory { - BOOMERANG_EVENT, - OTHER - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class LogicalUserList : UserList { - private UserListLogicalRule[] rulesField; - - [System.Xml.Serialization.XmlElementAttribute("rules")] - public UserListLogicalRule[] rules { - get { return this.rulesField; } - set { this.rulesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class UserListLogicalRule { - private UserListLogicalRuleOperator operatorField; - - private bool operatorFieldSpecified; - - private LogicalUserListOperand[] ruleOperandsField; - - public UserListLogicalRuleOperator @operator { - get { return this.operatorField; } - set { - this.operatorField = value; - this.operatorSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorSpecified { - get { return this.operatorFieldSpecified; } - set { this.operatorFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("ruleOperands")] - public LogicalUserListOperand[] ruleOperands { - get { return this.ruleOperandsField; } - set { this.ruleOperandsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UserListLogicalRule.Operator", Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public enum UserListLogicalRuleOperator { - ALL, - ANY, - NONE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class LogicalUserListOperand { - private UserList itemField; - - [System.Xml.Serialization.XmlElementAttribute("UserList")] - public UserList Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class ExternalRemarketingUserList : UserList { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class UserListOperation : Operation { - private UserList operandField; - - public UserList operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class UserListPage : Page { - private UserList[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public UserList[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public partial class UserListError : ApiError { - private UserListErrorReason reasonField; - - private bool reasonFieldSpecified; - - public UserListErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "UserListError.Reason", Namespace = "https://adwords.google.com/api/adwords/rm/v201309")] - public enum UserListErrorReason { - EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED, - CONCRETE_TYPE_REQUIRED, - CONVERSION_TYPE_ID_REQUIRED, - DUPLICATE_CONVERSION_TYPES, - INVALID_CONVERSION_TYPE, - INVALID_DESCRIPTION, - INVALID_NAME, - INVALID_TYPE, - INVALID_USER_LIST_LOGICAL_RULE_OPERAND, - NAME_ALREADY_USED, - NEW_CONVERSION_TYPE_NAME_REQUIRED, - OWNERSHIP_REQUIRED_FOR_SET, - REMOVE_NOT_SUPPORTED, - USER_LIST_MUTATE_NOT_SUPPORTED, - USER_LIST_SERVICE_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "VideoAdServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class VideoAdService : AdWordsSoapClient, IVideoAdService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public VideoAdService() { - this.Url = "https://adwords.google.com/api/adwords/video/v201309/VideoAdService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoAdPage get(VideoAdSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((VideoAdPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoAdReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -VideoAdOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((VideoAdReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdReturnValue : ListReturnValue { - private VideoAd[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public VideoAd[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAd { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private string videoIdField; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private TargetingGroupAssociation[] targetingGroupAssociationsField; - - private VideoEntityStats statsField; - - private VideoEntityStats[] segmentedStatsField; - - private ServingInfo issuesField; - - private string campaignNameField; - - private string headlineField; - - private string description1Field; - - private string description2Field; - - private VideoImage imageField; - - private VideoAdYouTubeDestinationPage youTubeDestinationPageField; - - private bool youTubeDestinationPageFieldSpecified; - - private string destinationUrlField; - - private string displayUrlField; - - private VideoImage companionBannerField; - - private bool showVideoAnnotationsField; - - private bool showVideoAnnotationsFieldSpecified; - - private VideoAdStatus statusField; - - private bool statusFieldSpecified; - - private DestinationType inDisplayDestinationTypeField; - - private bool inDisplayDestinationTypeFieldSpecified; - - private ApprovalContext_VideoAd_ApprovalStatusMapEntry[] approvalStatusesField; - - private ApprovalContext_VideoAd_ApprovalLimitMapEntry[] approvalLimitsField; - - private ScopedDisapprovalReason[] disapprovalReasonsField; - - private VideoAdDisplayFormat_VideoAdStatusMapEntry[] statusByFormatField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public string videoId { - get { return this.videoIdField; } - set { this.videoIdField = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("targetingGroupAssociations")] - public TargetingGroupAssociation[] targetingGroupAssociations { - get { return this.targetingGroupAssociationsField; } - set { this.targetingGroupAssociationsField = value; } - } - - public VideoEntityStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] - public VideoEntityStats[] segmentedStats { - get { return this.segmentedStatsField; } - set { this.segmentedStatsField = value; } - } - - public ServingInfo issues { - get { return this.issuesField; } - set { this.issuesField = value; } - } - - public string campaignName { - get { return this.campaignNameField; } - set { this.campaignNameField = value; } - } - - public string headline { - get { return this.headlineField; } - set { this.headlineField = value; } - } - - public string description1 { - get { return this.description1Field; } - set { this.description1Field = value; } - } - - public string description2 { - get { return this.description2Field; } - set { this.description2Field = value; } - } - - public VideoImage image { - get { return this.imageField; } - set { this.imageField = value; } - } - - public VideoAdYouTubeDestinationPage youTubeDestinationPage { - get { return this.youTubeDestinationPageField; } - set { - this.youTubeDestinationPageField = value; - this.youTubeDestinationPageSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool youTubeDestinationPageSpecified { - get { return this.youTubeDestinationPageFieldSpecified; } - set { this.youTubeDestinationPageFieldSpecified = value; } - } - - public string destinationUrl { - get { return this.destinationUrlField; } - set { this.destinationUrlField = value; } - } - - public string displayUrl { - get { return this.displayUrlField; } - set { this.displayUrlField = value; } - } - - public VideoImage companionBanner { - get { return this.companionBannerField; } - set { this.companionBannerField = value; } - } - - public bool showVideoAnnotations { - get { return this.showVideoAnnotationsField; } - set { - this.showVideoAnnotationsField = value; - this.showVideoAnnotationsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool showVideoAnnotationsSpecified { - get { return this.showVideoAnnotationsFieldSpecified; } - set { this.showVideoAnnotationsFieldSpecified = value; } - } - - public VideoAdStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public DestinationType inDisplayDestinationType { - get { return this.inDisplayDestinationTypeField; } - set { - this.inDisplayDestinationTypeField = value; - this.inDisplayDestinationTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool inDisplayDestinationTypeSpecified { - get { return this.inDisplayDestinationTypeFieldSpecified; } - set { this.inDisplayDestinationTypeFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("approvalStatuses")] - public ApprovalContext_VideoAd_ApprovalStatusMapEntry[] approvalStatuses { - get { return this.approvalStatusesField; } - set { this.approvalStatusesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("approvalLimits")] - public ApprovalContext_VideoAd_ApprovalLimitMapEntry[] approvalLimits { - get { return this.approvalLimitsField; } - set { this.approvalLimitsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("disapprovalReasons")] - public ScopedDisapprovalReason[] disapprovalReasons { - get { return this.disapprovalReasonsField; } - set { this.disapprovalReasonsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("statusByFormat")] - public VideoAdDisplayFormat_VideoAdStatusMapEntry[] statusByFormat { - get { return this.statusByFormatField; } - set { this.statusByFormatField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupAssociation { - private long targetingGroupIdField; - - private bool targetingGroupIdFieldSpecified; - - private TargetingGroupAssociationStatus statusField; - - private bool statusFieldSpecified; - - public long targetingGroupId { - get { return this.targetingGroupIdField; } - set { - this.targetingGroupIdField = value; - this.targetingGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingGroupIdSpecified { - get { return this.targetingGroupIdFieldSpecified; } - set { this.targetingGroupIdFieldSpecified = value; } - } - - public TargetingGroupAssociationStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupAssociation.Status", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingGroupAssociationStatus { - ACTIVE, - PAUSED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoEntityStats { - private VideoEntityStatsSummaryType summaryTypeField; - - private bool summaryTypeFieldSpecified; - - private SegmentKey segmentKeyField; - - private string startDateField; - - private string endDateField; - - private long viewsField; - - private bool viewsFieldSpecified; - - private Money costField; - - private Money averageCpcField; - - private Money averageCpvField; - - private Money averageCpmField; - - private Integer_LongMapEntry[] impressionReachFrequenciesField; - - private double averageImpressionFrequencyField; - - private bool averageImpressionFrequencyFieldSpecified; - - private double averageViewFrequencyField; - - private bool averageViewFrequencyFieldSpecified; - - private long uniqueViewsField; - - private bool uniqueViewsFieldSpecified; - - private long thumbnailImpressionsField; - - private bool thumbnailImpressionsFieldSpecified; - - private long videoImpressionsField; - - private bool videoImpressionsFieldSpecified; - - private long totalImpressionsField; - - private bool totalImpressionsFieldSpecified; - - private long websiteClicksField; - - private bool websiteClicksFieldSpecified; - - private long conversionsField; - - private bool conversionsFieldSpecified; - - private Money costPerConversionField; - - private double conversionRateField; - - private bool conversionRateFieldSpecified; - - private long viewThroughConversionsField; - - private bool viewThroughConversionsFieldSpecified; - - private long conversionsManyPerViewField; - - private bool conversionsManyPerViewFieldSpecified; - - private Money costPerConversionManyPerViewField; - - private double conversionRateManyPerViewField; - - private bool conversionRateManyPerViewFieldSpecified; - - private double totalConversionValueField; - - private bool totalConversionValueFieldSpecified; - - private double valuePerConvField; - - private bool valuePerConvFieldSpecified; - - private double valuePerConvManyPerViewField; - - private bool valuePerConvManyPerViewFieldSpecified; - - private long followOnViewsField; - - private bool followOnViewsFieldSpecified; - - private double followOnViewRateField; - - private bool followOnViewRateFieldSpecified; - - private long followOnSubscribesField; - - private bool followOnSubscribesFieldSpecified; - - private double followOnSubscribeRateField; - - private bool followOnSubscribeRateFieldSpecified; - - private long followOnLikesField; - - private bool followOnLikesFieldSpecified; - - private long followOnCommentsField; - - private bool followOnCommentsFieldSpecified; - - private long followOnSharesField; - - private bool followOnSharesFieldSpecified; - - private long followOnAddToPlaylistField; - - private bool followOnAddToPlaylistFieldSpecified; - - private double ctrField; - - private bool ctrFieldSpecified; - - private double vtrField; - - private bool vtrFieldSpecified; - - private long videoStartsField; - - private bool videoStartsFieldSpecified; - - private long quartile25sField; - - private bool quartile25sFieldSpecified; - - private long quartile50sField; - - private bool quartile50sFieldSpecified; - - private long quartile75sField; - - private bool quartile75sFieldSpecified; - - private long quartile100sField; - - private bool quartile100sFieldSpecified; - - private double quartile25PercentsField; - - private bool quartile25PercentsFieldSpecified; - - private double quartile50PercentsField; - - private bool quartile50PercentsFieldSpecified; - - private double quartile75PercentsField; - - private bool quartile75PercentsFieldSpecified; - - private double quartile100PercentsField; - - private bool quartile100PercentsFieldSpecified; - - private double percentServedField; - - private bool percentServedFieldSpecified; - - private long eligibleFollowOnClicksField; - - private bool eligibleFollowOnClicksFieldSpecified; - - private double engagementScoreField; - - private bool engagementScoreFieldSpecified; - - private double retentionScoreField; - - private bool retentionScoreFieldSpecified; - - private long totalViewsField; - - private bool totalViewsFieldSpecified; - - private long ctaImpressionsField; - - private bool ctaImpressionsFieldSpecified; - - private long ctaClicksField; - - private bool ctaClicksFieldSpecified; - - private double ctaCtrField; - - private bool ctaCtrFieldSpecified; - - public VideoEntityStatsSummaryType summaryType { - get { return this.summaryTypeField; } - set { - this.summaryTypeField = value; - this.summaryTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool summaryTypeSpecified { - get { return this.summaryTypeFieldSpecified; } - set { this.summaryTypeFieldSpecified = value; } - } - - public SegmentKey segmentKey { - get { return this.segmentKeyField; } - set { this.segmentKeyField = value; } - } - - public string startDate { - get { return this.startDateField; } - set { this.startDateField = value; } - } - - public string endDate { - get { return this.endDateField; } - set { this.endDateField = value; } - } - - public long views { - get { return this.viewsField; } - set { - this.viewsField = value; - this.viewsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool viewsSpecified { - get { return this.viewsFieldSpecified; } - set { this.viewsFieldSpecified = value; } - } - - public Money cost { - get { return this.costField; } - set { this.costField = value; } - } - - public Money averageCpc { - get { return this.averageCpcField; } - set { this.averageCpcField = value; } - } - - public Money averageCpv { - get { return this.averageCpvField; } - set { this.averageCpvField = value; } - } - - public Money averageCpm { - get { return this.averageCpmField; } - set { this.averageCpmField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("impressionReachFrequencies")] - public Integer_LongMapEntry[] impressionReachFrequencies { - get { return this.impressionReachFrequenciesField; } - set { this.impressionReachFrequenciesField = value; } - } - - public double averageImpressionFrequency { - get { return this.averageImpressionFrequencyField; } - set { - this.averageImpressionFrequencyField = value; - this.averageImpressionFrequencySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool averageImpressionFrequencySpecified { - get { return this.averageImpressionFrequencyFieldSpecified; } - set { this.averageImpressionFrequencyFieldSpecified = value; } - } - - public double averageViewFrequency { - get { return this.averageViewFrequencyField; } - set { - this.averageViewFrequencyField = value; - this.averageViewFrequencySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool averageViewFrequencySpecified { - get { return this.averageViewFrequencyFieldSpecified; } - set { this.averageViewFrequencyFieldSpecified = value; } - } - - public long uniqueViews { - get { return this.uniqueViewsField; } - set { - this.uniqueViewsField = value; - this.uniqueViewsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool uniqueViewsSpecified { - get { return this.uniqueViewsFieldSpecified; } - set { this.uniqueViewsFieldSpecified = value; } - } - - public long thumbnailImpressions { - get { return this.thumbnailImpressionsField; } - set { - this.thumbnailImpressionsField = value; - this.thumbnailImpressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool thumbnailImpressionsSpecified { - get { return this.thumbnailImpressionsFieldSpecified; } - set { this.thumbnailImpressionsFieldSpecified = value; } - } - - public long videoImpressions { - get { return this.videoImpressionsField; } - set { - this.videoImpressionsField = value; - this.videoImpressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoImpressionsSpecified { - get { return this.videoImpressionsFieldSpecified; } - set { this.videoImpressionsFieldSpecified = value; } - } - - public long totalImpressions { - get { return this.totalImpressionsField; } - set { - this.totalImpressionsField = value; - this.totalImpressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalImpressionsSpecified { - get { return this.totalImpressionsFieldSpecified; } - set { this.totalImpressionsFieldSpecified = value; } - } - - public long websiteClicks { - get { return this.websiteClicksField; } - set { - this.websiteClicksField = value; - this.websiteClicksSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool websiteClicksSpecified { - get { return this.websiteClicksFieldSpecified; } - set { this.websiteClicksFieldSpecified = value; } - } - - public long conversions { - get { return this.conversionsField; } - set { - this.conversionsField = value; - this.conversionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool conversionsSpecified { - get { return this.conversionsFieldSpecified; } - set { this.conversionsFieldSpecified = value; } - } - - public Money costPerConversion { - get { return this.costPerConversionField; } - set { this.costPerConversionField = value; } - } - - public double conversionRate { - get { return this.conversionRateField; } - set { - this.conversionRateField = value; - this.conversionRateSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool conversionRateSpecified { - get { return this.conversionRateFieldSpecified; } - set { this.conversionRateFieldSpecified = value; } - } - - public long viewThroughConversions { - get { return this.viewThroughConversionsField; } - set { - this.viewThroughConversionsField = value; - this.viewThroughConversionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool viewThroughConversionsSpecified { - get { return this.viewThroughConversionsFieldSpecified; } - set { this.viewThroughConversionsFieldSpecified = value; } - } - - public long conversionsManyPerView { - get { return this.conversionsManyPerViewField; } - set { - this.conversionsManyPerViewField = value; - this.conversionsManyPerViewSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool conversionsManyPerViewSpecified { - get { return this.conversionsManyPerViewFieldSpecified; } - set { this.conversionsManyPerViewFieldSpecified = value; } - } - - public Money costPerConversionManyPerView { - get { return this.costPerConversionManyPerViewField; } - set { this.costPerConversionManyPerViewField = value; } - } - - public double conversionRateManyPerView { - get { return this.conversionRateManyPerViewField; } - set { - this.conversionRateManyPerViewField = value; - this.conversionRateManyPerViewSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool conversionRateManyPerViewSpecified { - get { return this.conversionRateManyPerViewFieldSpecified; } - set { this.conversionRateManyPerViewFieldSpecified = value; } - } - - public double totalConversionValue { - get { return this.totalConversionValueField; } - set { - this.totalConversionValueField = value; - this.totalConversionValueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalConversionValueSpecified { - get { return this.totalConversionValueFieldSpecified; } - set { this.totalConversionValueFieldSpecified = value; } - } - - public double valuePerConv { - get { return this.valuePerConvField; } - set { - this.valuePerConvField = value; - this.valuePerConvSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valuePerConvSpecified { - get { return this.valuePerConvFieldSpecified; } - set { this.valuePerConvFieldSpecified = value; } - } - - public double valuePerConvManyPerView { - get { return this.valuePerConvManyPerViewField; } - set { - this.valuePerConvManyPerViewField = value; - this.valuePerConvManyPerViewSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valuePerConvManyPerViewSpecified { - get { return this.valuePerConvManyPerViewFieldSpecified; } - set { this.valuePerConvManyPerViewFieldSpecified = value; } - } - - public long followOnViews { - get { return this.followOnViewsField; } - set { - this.followOnViewsField = value; - this.followOnViewsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnViewsSpecified { - get { return this.followOnViewsFieldSpecified; } - set { this.followOnViewsFieldSpecified = value; } - } - - public double followOnViewRate { - get { return this.followOnViewRateField; } - set { - this.followOnViewRateField = value; - this.followOnViewRateSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnViewRateSpecified { - get { return this.followOnViewRateFieldSpecified; } - set { this.followOnViewRateFieldSpecified = value; } - } - - public long followOnSubscribes { - get { return this.followOnSubscribesField; } - set { - this.followOnSubscribesField = value; - this.followOnSubscribesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnSubscribesSpecified { - get { return this.followOnSubscribesFieldSpecified; } - set { this.followOnSubscribesFieldSpecified = value; } - } - - public double followOnSubscribeRate { - get { return this.followOnSubscribeRateField; } - set { - this.followOnSubscribeRateField = value; - this.followOnSubscribeRateSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnSubscribeRateSpecified { - get { return this.followOnSubscribeRateFieldSpecified; } - set { this.followOnSubscribeRateFieldSpecified = value; } - } - - public long followOnLikes { - get { return this.followOnLikesField; } - set { - this.followOnLikesField = value; - this.followOnLikesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnLikesSpecified { - get { return this.followOnLikesFieldSpecified; } - set { this.followOnLikesFieldSpecified = value; } - } - - public long followOnComments { - get { return this.followOnCommentsField; } - set { - this.followOnCommentsField = value; - this.followOnCommentsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnCommentsSpecified { - get { return this.followOnCommentsFieldSpecified; } - set { this.followOnCommentsFieldSpecified = value; } - } - - public long followOnShares { - get { return this.followOnSharesField; } - set { - this.followOnSharesField = value; - this.followOnSharesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnSharesSpecified { - get { return this.followOnSharesFieldSpecified; } - set { this.followOnSharesFieldSpecified = value; } - } - - public long followOnAddToPlaylist { - get { return this.followOnAddToPlaylistField; } - set { - this.followOnAddToPlaylistField = value; - this.followOnAddToPlaylistSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool followOnAddToPlaylistSpecified { - get { return this.followOnAddToPlaylistFieldSpecified; } - set { this.followOnAddToPlaylistFieldSpecified = value; } - } - - public double ctr { - get { return this.ctrField; } - set { - this.ctrField = value; - this.ctrSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ctrSpecified { - get { return this.ctrFieldSpecified; } - set { this.ctrFieldSpecified = value; } - } - - public double vtr { - get { return this.vtrField; } - set { - this.vtrField = value; - this.vtrSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool vtrSpecified { - get { return this.vtrFieldSpecified; } - set { this.vtrFieldSpecified = value; } - } - - public long videoStarts { - get { return this.videoStartsField; } - set { - this.videoStartsField = value; - this.videoStartsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoStartsSpecified { - get { return this.videoStartsFieldSpecified; } - set { this.videoStartsFieldSpecified = value; } - } - - public long quartile25s { - get { return this.quartile25sField; } - set { - this.quartile25sField = value; - this.quartile25sSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile25sSpecified { - get { return this.quartile25sFieldSpecified; } - set { this.quartile25sFieldSpecified = value; } - } - - public long quartile50s { - get { return this.quartile50sField; } - set { - this.quartile50sField = value; - this.quartile50sSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile50sSpecified { - get { return this.quartile50sFieldSpecified; } - set { this.quartile50sFieldSpecified = value; } - } - - public long quartile75s { - get { return this.quartile75sField; } - set { - this.quartile75sField = value; - this.quartile75sSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile75sSpecified { - get { return this.quartile75sFieldSpecified; } - set { this.quartile75sFieldSpecified = value; } - } - - public long quartile100s { - get { return this.quartile100sField; } - set { - this.quartile100sField = value; - this.quartile100sSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile100sSpecified { - get { return this.quartile100sFieldSpecified; } - set { this.quartile100sFieldSpecified = value; } - } - - public double quartile25Percents { - get { return this.quartile25PercentsField; } - set { - this.quartile25PercentsField = value; - this.quartile25PercentsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile25PercentsSpecified { - get { return this.quartile25PercentsFieldSpecified; } - set { this.quartile25PercentsFieldSpecified = value; } - } - - public double quartile50Percents { - get { return this.quartile50PercentsField; } - set { - this.quartile50PercentsField = value; - this.quartile50PercentsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile50PercentsSpecified { - get { return this.quartile50PercentsFieldSpecified; } - set { this.quartile50PercentsFieldSpecified = value; } - } - - public double quartile75Percents { - get { return this.quartile75PercentsField; } - set { - this.quartile75PercentsField = value; - this.quartile75PercentsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile75PercentsSpecified { - get { return this.quartile75PercentsFieldSpecified; } - set { this.quartile75PercentsFieldSpecified = value; } - } - - public double quartile100Percents { - get { return this.quartile100PercentsField; } - set { - this.quartile100PercentsField = value; - this.quartile100PercentsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool quartile100PercentsSpecified { - get { return this.quartile100PercentsFieldSpecified; } - set { this.quartile100PercentsFieldSpecified = value; } - } - - public double percentServed { - get { return this.percentServedField; } - set { - this.percentServedField = value; - this.percentServedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool percentServedSpecified { - get { return this.percentServedFieldSpecified; } - set { this.percentServedFieldSpecified = value; } - } - - public long eligibleFollowOnClicks { - get { return this.eligibleFollowOnClicksField; } - set { - this.eligibleFollowOnClicksField = value; - this.eligibleFollowOnClicksSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool eligibleFollowOnClicksSpecified { - get { return this.eligibleFollowOnClicksFieldSpecified; } - set { this.eligibleFollowOnClicksFieldSpecified = value; } - } - - public double engagementScore { - get { return this.engagementScoreField; } - set { - this.engagementScoreField = value; - this.engagementScoreSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool engagementScoreSpecified { - get { return this.engagementScoreFieldSpecified; } - set { this.engagementScoreFieldSpecified = value; } - } - - public double retentionScore { - get { return this.retentionScoreField; } - set { - this.retentionScoreField = value; - this.retentionScoreSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool retentionScoreSpecified { - get { return this.retentionScoreFieldSpecified; } - set { this.retentionScoreFieldSpecified = value; } - } - - public long totalViews { - get { return this.totalViewsField; } - set { - this.totalViewsField = value; - this.totalViewsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalViewsSpecified { - get { return this.totalViewsFieldSpecified; } - set { this.totalViewsFieldSpecified = value; } - } - - public long ctaImpressions { - get { return this.ctaImpressionsField; } - set { - this.ctaImpressionsField = value; - this.ctaImpressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ctaImpressionsSpecified { - get { return this.ctaImpressionsFieldSpecified; } - set { this.ctaImpressionsFieldSpecified = value; } - } - - public long ctaClicks { - get { return this.ctaClicksField; } - set { - this.ctaClicksField = value; - this.ctaClicksSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ctaClicksSpecified { - get { return this.ctaClicksFieldSpecified; } - set { this.ctaClicksFieldSpecified = value; } - } - - public double ctaCtr { - get { return this.ctaCtrField; } - set { - this.ctaCtrField = value; - this.ctaCtrSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ctaCtrSpecified { - get { return this.ctaCtrFieldSpecified; } - set { this.ctaCtrFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoEntityStats.SummaryType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoEntityStatsSummaryType { - ALL, - ALL_ENABLED, - ALL_BUT_DELETED, - ALL_DELETED, - ALL_NON_VIDEO, - COMBINED_VIDEO_NON_VIDEO, - PERFORMANCE_OTHER, - NON_SUMMARY, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class SegmentKey { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("CampaignKey", typeof(CampaignKey))] - [System.Xml.Serialization.XmlElementAttribute("ConversionTypeKey", typeof(ConversionTypeKey))] - [System.Xml.Serialization.XmlElementAttribute("CountryKey", typeof(CountryKey))] - [System.Xml.Serialization.XmlElementAttribute("DateKey", typeof(DateKey))] - [System.Xml.Serialization.XmlElementAttribute("DayOfWeekKey", typeof(DayOfWeekKey))] - [System.Xml.Serialization.XmlElementAttribute("DeviceKey", typeof(DeviceKey))] - [System.Xml.Serialization.XmlElementAttribute("DisplayFormatKey", typeof(DisplayFormatKey))] - [System.Xml.Serialization.XmlElementAttribute("DisplayFormatNetworkKey", typeof(DisplayFormatNetworkKey))] - [System.Xml.Serialization.XmlElementAttribute("DisplayFormatTypeKey", typeof(DisplayFormatTypeKey))] - [System.Xml.Serialization.XmlElementAttribute("GeoKey", typeof(GeoKey))] - [System.Xml.Serialization.XmlElementAttribute("HourOfDayKey", typeof(HourOfDayKey))] - [System.Xml.Serialization.XmlElementAttribute("MetroKey", typeof(MetroKey))] - [System.Xml.Serialization.XmlElementAttribute("NetworkKey", typeof(NetworkKey))] - [System.Xml.Serialization.XmlElementAttribute("PaidViewsKey", typeof(PaidViewsKey))] - [System.Xml.Serialization.XmlElementAttribute("RegionKey", typeof(RegionKey))] - [System.Xml.Serialization.XmlElementAttribute("TargetingGroupKey", typeof(TargetingGroupKey))] - [System.Xml.Serialization.XmlElementAttribute("VideoAdKey", typeof(VideoAdKey))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class CampaignKey { - private string campaignNameField; - - public string campaignName { - get { return this.campaignNameField; } - set { this.campaignNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ConversionTypeKey { - private long conversionTypeIdField; - - private bool conversionTypeIdFieldSpecified; - - private string conversionTypeNameField; - - public long conversionTypeId { - get { return this.conversionTypeIdField; } - set { - this.conversionTypeIdField = value; - this.conversionTypeIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool conversionTypeIdSpecified { - get { return this.conversionTypeIdFieldSpecified; } - set { this.conversionTypeIdFieldSpecified = value; } - } - - public string conversionTypeName { - get { return this.conversionTypeNameField; } - set { this.conversionTypeNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class CountryKey { - private long criterionIdField; - - private bool criterionIdFieldSpecified; - - private RegionCode regionCodeField; - - private bool regionCodeFieldSpecified; - - private string countryNameField; - - public long criterionId { - get { return this.criterionIdField; } - set { - this.criterionIdField = value; - this.criterionIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionIdSpecified { - get { return this.criterionIdFieldSpecified; } - set { this.criterionIdFieldSpecified = value; } - } - - public RegionCode regionCode { - get { return this.regionCodeField; } - set { - this.regionCodeField = value; - this.regionCodeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool regionCodeSpecified { - get { return this.regionCodeFieldSpecified; } - set { this.regionCodeFieldSpecified = value; } - } - - public string countryName { - get { return this.countryNameField; } - set { this.countryNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum RegionCode { - AC, - AD, - AE, - AF, - AG, - AI, - AL, - AM, - AN, - AO, - AQ, - AR, - AS, - AT, - AU, - AW, - AX, - AZ, - BA, - BB, - BD, - BE, - BF, - BG, - BH, - BI, - BJ, - BL, - BM, - BN, - BO, - BQ, - BR, - BS, - BT, - BU, - BV, - BW, - BY, - BZ, - CA, - CC, - CD, - CF, - CG, - CH, - CI, - CK, - CL, - CM, - CN, - CO, - CP, - CR, - CS, - CU, - CV, - CW, - CX, - CY, - CZ, - DD, - DE, - DG, - DJ, - DK, - DM, - DO, - DZ, - EA, - EC, - EE, - EG, - EH, - ER, - ES, - ET, - EU, - FI, - FJ, - FK, - FM, - FO, - FR, - FX, - GA, - GB, - GD, - GE, - GF, - GG, - GH, - GI, - GL, - GM, - GN, - GP, - GQ, - GR, - GS, - GT, - GU, - GW, - GY, - HK, - HM, - HN, - HR, - HT, - HU, - IC, - ID, - IE, - IL, - IM, - IN, - IO, - IQ, - IR, - IS, - IT, - JE, - JM, - JO, - JP, - KE, - KG, - KH, - KI, - KM, - KN, - KP, - KR, - KW, - KY, - KZ, - LA, - LB, - LC, - LI, - LK, - LR, - LS, - LT, - LU, - LV, - LY, - MA, - MC, - MD, - ME, - MF, - MG, - MH, - MK, - ML, - MM, - MN, - MO, - MP, - MQ, - MR, - MS, - MT, - MU, - MV, - MW, - MX, - MY, - MZ, - NA, - NC, - NE, - NF, - NG, - NI, - NL, - NO, - NP, - NR, - NT, - NU, - NZ, - OM, - PA, - PE, - PF, - PG, - PH, - PK, - PL, - PM, - PN, - PR, - PS, - PT, - PW, - PY, - QA, - QO, - QU, - RE, - RO, - RS, - RU, - RW, - SA, - SB, - SC, - SD, - SE, - SG, - SH, - SI, - SJ, - SK, - SL, - SM, - SN, - SO, - SR, - SS, - ST, - SU, - SV, - SX, - SY, - SZ, - TA, - TC, - TD, - TF, - TG, - TH, - TJ, - TK, - TL, - TM, - TN, - TO, - TP, - TR, - TT, - TV, - TW, - TZ, - UA, - UG, - UM, - US, - UY, - UZ, - VA, - VC, - VE, - VG, - VI, - VN, - VU, - WF, - WS, - XA, - XB, - XC, - XK, - YD, - YE, - YT, - YU, - ZA, - ZM, - ZR, - ZW, - ZZ, - UN001, - UN002, - UN003, - UN005, - UN009, - UN011, - UN013, - UN014, - UN015, - UN017, - UN018, - UN019, - UN021, - UN029, - UN030, - UN034, - UN035, - UN039, - UN053, - UN054, - UN057, - UN061, - UN142, - UN143, - UN145, - UN150, - UN151, - UN154, - UN155, - UN419 - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class DateKey { - private string dateField; - - private SegmentationDimension dimensionField; - - private bool dimensionFieldSpecified; - - public string date { - get { return this.dateField; } - set { this.dateField = value; } - } - - public SegmentationDimension dimension { - get { return this.dimensionField; } - set { - this.dimensionField = value; - this.dimensionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dimensionSpecified { - get { return this.dimensionFieldSpecified; } - set { this.dimensionFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum SegmentationDimension { - NONE, - DATE_DAY, - DATE_WEEK, - DATE_MONTH, - DATE_QUARTER, - DATE_YEAR, - DAY_OF_WEEK, - DEVICE_TYPE, - DISPLAY_FORMAT, - DISPLAY_FORMATxNETWORK, - HOUR_OF_DAY, - NETWORK, - TARGETING_GROUP, - VIDEO_AD, - CONVERSION_TYPE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class DayOfWeekKey { - private VideoDayOfWeek dayOfWeekField; - - private bool dayOfWeekFieldSpecified; - - public VideoDayOfWeek dayOfWeek { - get { return this.dayOfWeekField; } - set { - this.dayOfWeekField = value; - this.dayOfWeekSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dayOfWeekSpecified { - get { return this.dayOfWeekFieldSpecified; } - set { this.dayOfWeekFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoDayOfWeek { - MONDAY, - TUESDAY, - WEDNESDAY, - THURSDAY, - FRIDAY, - SATURDAY, - SUNDAY - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class DeviceKey { - private DeviceKeyDeviceType deviceTypeField; - - private bool deviceTypeFieldSpecified; - - public DeviceKeyDeviceType deviceType { - get { return this.deviceTypeField; } - set { - this.deviceTypeField = value; - this.deviceTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deviceTypeSpecified { - get { return this.deviceTypeFieldSpecified; } - set { this.deviceTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DeviceKey.DeviceType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum DeviceKeyDeviceType { - DESKTOP, - HIGHENDMOBILE, - TABLET, - OTHER - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class DisplayFormatKey { - private VideoAdDisplayFormat displayFormatField; - - private bool displayFormatFieldSpecified; - - public VideoAdDisplayFormat displayFormat { - get { return this.displayFormatField; } - set { - this.displayFormatField = value; - this.displayFormatSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool displayFormatSpecified { - get { return this.displayFormatFieldSpecified; } - set { this.displayFormatFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdDisplayFormat { - TRUE_VIEW_IN_SEARCH, - TRUE_VIEW_IN_SLATE, - TRUE_VIEW_IN_DISPLAY, - TRUE_VIEW_IN_STREAM, - STANDARD_IN_STREAM, - ALL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class DisplayFormatNetworkKey { - private VideoAdDisplayFormat formatField; - - private bool formatFieldSpecified; - - private VideoAdNetwork networkField; - - private bool networkFieldSpecified; - - public VideoAdDisplayFormat format { - get { return this.formatField; } - set { - this.formatField = value; - this.formatSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool formatSpecified { - get { return this.formatFieldSpecified; } - set { this.formatFieldSpecified = value; } - } - - public VideoAdNetwork network { - get { return this.networkField; } - set { - this.networkField = value; - this.networkSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool networkSpecified { - get { return this.networkFieldSpecified; } - set { this.networkFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdNetwork { - YOUTUBE_SEARCH, - YOUTUBE_WATCH, - GOOGLE_DISPLAY_NETWORK, - GOOGLE_SEARCH, - ALL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class DisplayFormatTypeKey { - private VideoAdDisplayFormatType displayFormatTypeField; - - private bool displayFormatTypeFieldSpecified; - - public VideoAdDisplayFormatType displayFormatType { - get { return this.displayFormatTypeField; } - set { - this.displayFormatTypeField = value; - this.displayFormatTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool displayFormatTypeSpecified { - get { return this.displayFormatTypeFieldSpecified; } - set { this.displayFormatTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAdDisplayFormat.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdDisplayFormatType { - TRUE_VIEW, - STANDARD, - ALL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class GeoKey { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("CountryKey", typeof(CountryKey))] - [System.Xml.Serialization.XmlElementAttribute("MetroKey", typeof(MetroKey))] - [System.Xml.Serialization.XmlElementAttribute("RegionKey", typeof(RegionKey))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class MetroKey { - private long criterionIdField; - - private bool criterionIdFieldSpecified; - - private string metroCodeField; - - private string metroNameField; - - public long criterionId { - get { return this.criterionIdField; } - set { - this.criterionIdField = value; - this.criterionIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionIdSpecified { - get { return this.criterionIdFieldSpecified; } - set { this.criterionIdFieldSpecified = value; } - } - - public string metroCode { - get { return this.metroCodeField; } - set { this.metroCodeField = value; } - } - - public string metroName { - get { return this.metroNameField; } - set { this.metroNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class RegionKey { - private long criterionIdField; - - private bool criterionIdFieldSpecified; - - private string regionCodeField; - - private string regionNameField; - - public long criterionId { - get { return this.criterionIdField; } - set { - this.criterionIdField = value; - this.criterionIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionIdSpecified { - get { return this.criterionIdFieldSpecified; } - set { this.criterionIdFieldSpecified = value; } - } - - public string regionCode { - get { return this.regionCodeField; } - set { this.regionCodeField = value; } - } - - public string regionName { - get { return this.regionNameField; } - set { this.regionNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class HourOfDayKey { - private int hourOfDayField; - - private bool hourOfDayFieldSpecified; - - public int hourOfDay { - get { return this.hourOfDayField; } - set { - this.hourOfDayField = value; - this.hourOfDaySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hourOfDaySpecified { - get { return this.hourOfDayFieldSpecified; } - set { this.hourOfDayFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class NetworkKey { - private VideoAdNetwork networkField; - - private bool networkFieldSpecified; - - public VideoAdNetwork network { - get { return this.networkField; } - set { - this.networkField = value; - this.networkSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool networkSpecified { - get { return this.networkFieldSpecified; } - set { this.networkFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class PaidViewsKey { - private bool paidViewsField; - - private bool paidViewsFieldSpecified; - - public bool paidViews { - get { return this.paidViewsField; } - set { - this.paidViewsField = value; - this.paidViewsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool paidViewsSpecified { - get { return this.paidViewsFieldSpecified; } - set { this.paidViewsFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupKey { - private long targetingGroupIdField; - - private bool targetingGroupIdFieldSpecified; - - private string targetingGroupNameField; - - public long targetingGroupId { - get { return this.targetingGroupIdField; } - set { - this.targetingGroupIdField = value; - this.targetingGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingGroupIdSpecified { - get { return this.targetingGroupIdFieldSpecified; } - set { this.targetingGroupIdFieldSpecified = value; } - } - - public string targetingGroupName { - get { return this.targetingGroupNameField; } - set { this.targetingGroupNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdKey { - private string videoAdNameField; - - private long videoAdIdField; - - private bool videoAdIdFieldSpecified; - - public string videoAdName { - get { return this.videoAdNameField; } - set { this.videoAdNameField = value; } - } - - public long videoAdId { - get { return this.videoAdIdField; } - set { - this.videoAdIdField = value; - this.videoAdIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoAdIdSpecified { - get { return this.videoAdIdFieldSpecified; } - set { this.videoAdIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class Integer_LongMapEntry { - private int keyField; - - private bool keyFieldSpecified; - - private long valueField; - - private bool valueFieldSpecified; - - public int key { - get { return this.keyField; } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { return this.keyFieldSpecified; } - set { this.keyFieldSpecified = value; } - } - - public long value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ServingInfo { - private ServingIssue[] issuesField; - - private VideoServingStatus servingStatusField; - - private bool servingStatusFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute("issues")] - public ServingIssue[] issues { - get { return this.issuesField; } - set { this.issuesField = value; } - } - - public VideoServingStatus servingStatus { - get { return this.servingStatusField; } - set { - this.servingStatusField = value; - this.servingStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool servingStatusSpecified { - get { return this.servingStatusFieldSpecified; } - set { this.servingStatusFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ServingIssue { - private ServingIssueReason reasonField; - - private bool reasonFieldSpecified; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private long targetingGroupIdField; - - private bool targetingGroupIdFieldSpecified; - - private long videoAdIdField; - - private bool videoAdIdFieldSpecified; - - private string videoIdField; - - private bool hideActionLinkField; - - private bool hideActionLinkFieldSpecified; - - private ServingIssueSeverity severityField; - - private bool severityFieldSpecified; - - private ServingIssueType typeField; - - private bool typeFieldSpecified; - - public ServingIssueReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public long targetingGroupId { - get { return this.targetingGroupIdField; } - set { - this.targetingGroupIdField = value; - this.targetingGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingGroupIdSpecified { - get { return this.targetingGroupIdFieldSpecified; } - set { this.targetingGroupIdFieldSpecified = value; } - } - - public long videoAdId { - get { return this.videoAdIdField; } - set { - this.videoAdIdField = value; - this.videoAdIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool videoAdIdSpecified { - get { return this.videoAdIdFieldSpecified; } - set { this.videoAdIdFieldSpecified = value; } - } - - public string videoId { - get { return this.videoIdField; } - set { this.videoIdField = value; } - } - - public bool hideActionLink { - get { return this.hideActionLinkField; } - set { - this.hideActionLinkField = value; - this.hideActionLinkSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hideActionLinkSpecified { - get { return this.hideActionLinkFieldSpecified; } - set { this.hideActionLinkFieldSpecified = value; } - } - - public ServingIssueSeverity severity { - get { return this.severityField; } - set { - this.severityField = value; - this.severitySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool severitySpecified { - get { return this.severityFieldSpecified; } - set { this.severityFieldSpecified = value; } - } - - public ServingIssueType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServingIssue.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum ServingIssueReason { - ACCOUNT_SUSPENDED, - ACCOUNT_CLOSED, - ACCOUNT_DISABLED, - SUSPENDED, - LIMITED_BY_BUDGET, - INSTREAM_TOO_HIGH, - ALL_CREATIVES_UNHEALTHY, - SOME_CREATIVES_DISAPPROVED, - ALL_CREATIVES_DISAPPROVED, - SOME_CREATIVES_LABELED, - ALL_CREATIVES_LABELED, - SOME_CREATIVES_UNREVIEWED, - ALL_CREATIVES_UNREVIEWED, - SOME_CREATIVES_ELIGIBLE, - ALL_CREATIVES_ELIGIBLE, - VIDEO_ADS_WITHOUT_TARGETING, - ACTIVE_AD_WITH_ALL_FORMATS_PAUSED, - TARGETING_BID_REQUIRED, - INSLATE_DEPRECATED, - TARGETING_DUPLICATE_NAME, - TARGETING_MISMATCH, - TARGETING_NO_VIDEOAD, - STUDY_INVITATION, - SURVEY_INVITATION, - NO_VIDEO_AD_SERVING, - ALL_VIDEO_ADS_PENDING, - SOME_VIDEO_ADS_PENDING, - ALL_VIDEO_ADS_UNHEALTHY, - SOME_VIDEO_ADS_UNHEALTHY, - NO_VIDEO, - NO_TARGETING, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServingIssue.Severity", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum ServingIssueSeverity { - HIGH, - MEDIUM, - LOW - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServingIssue.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum ServingIssueType { - BLOCKING, - ISSUE, - NOTIFICATION, - PENDING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoServingStatus { - UNDEFINED, - DELETED, - CAMPAIGN_DELETED, - PAUSED, - CAMPAIGN_PAUSED, - ENDED, - SUSPENDED, - BROKEN, - IMPROVABLE, - NOTIFICATION, - PENDING, - SERVING, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoImage { - private VideoImageType typeField; - - private bool typeFieldSpecified; - - private VideoImageType secondaryTypeField; - - private bool secondaryTypeFieldSpecified; - - private long mediaIdField; - - private bool mediaIdFieldSpecified; - - private string urlField; - - private VideoImageMimeType mimeTypeField; - - private bool mimeTypeFieldSpecified; - - public VideoImageType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public VideoImageType secondaryType { - get { return this.secondaryTypeField; } - set { - this.secondaryTypeField = value; - this.secondaryTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool secondaryTypeSpecified { - get { return this.secondaryTypeFieldSpecified; } - set { this.secondaryTypeFieldSpecified = value; } - } - - public long mediaId { - get { return this.mediaIdField; } - set { - this.mediaIdField = value; - this.mediaIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mediaIdSpecified { - get { return this.mediaIdFieldSpecified; } - set { this.mediaIdFieldSpecified = value; } - } - - public string url { - get { return this.urlField; } - set { this.urlField = value; } - } - - public VideoImageMimeType mimeType { - get { return this.mimeTypeField; } - set { - this.mimeTypeField = value; - this.mimeTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mimeTypeSpecified { - get { return this.mimeTypeFieldSpecified; } - set { this.mimeTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoImage.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoImageType { - MEDIA, - DEFAULT_THUMBNAIL, - THUMBNAIL1, - THUMBNAIL2, - THUMBNAIL3, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoImage.MimeType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoImageMimeType { - IMAGE_JPEG, - IMAGE_GIF, - IMAGE_PNG, - FLASH - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAd.YouTubeDestinationPage", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdYouTubeDestinationPage { - WATCH_PAGE, - CHANNEL_PAGE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdStatus { - ENABLED, - PAUSED, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum DestinationType { - YOUTUBE, - ADVERTISER_SITE, - LEGACY_BOTH, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ApprovalContext_VideoAd_ApprovalStatusMapEntry { - private ApprovalContext keyField; - - private VideoAdApprovalStatus valueField; - - private bool valueFieldSpecified; - - public ApprovalContext key { - get { return this.keyField; } - set { this.keyField = value; } - } - - public VideoAdApprovalStatus value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ApprovalContext { - private TargetingScope targetingScopeField; - - private bool targetingScopeFieldSpecified; - - private DestinationType destinationTypeField; - - private bool destinationTypeFieldSpecified; - - public TargetingScope targetingScope { - get { return this.targetingScopeField; } - set { - this.targetingScopeField = value; - this.targetingScopeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingScopeSpecified { - get { return this.targetingScopeFieldSpecified; } - set { this.targetingScopeFieldSpecified = value; } - } - - public DestinationType destinationType { - get { return this.destinationTypeField; } - set { - this.destinationTypeField = value; - this.destinationTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool destinationTypeSpecified { - get { return this.destinationTypeFieldSpecified; } - set { this.destinationTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingScope { - TRUE_VIEW_IN_SEARCH_ON_YOUTUBE_SEARCH, - TRUE_VIEW_IN_SLATE_ON_YOUTUBE_WATCH, - TRUE_VIEW_IN_DISPLAY_ON_YOUTUBE_WATCH, - TRUE_VIEW_IN_STREAM_ON_YOUTUBE_WATCH, - TRUE_VIEW_IN_SLATE_ON_GOOGLE_DISPLAY_NETWORK, - TRUE_VIEW_IN_DISPLAY_ON_GOOGLE_DISPLAY_NETWORK, - TRUE_VIEW_IN_STREAM_ON_GOOGLE_DISPLAY_NETWORK, - TRUE_VIEW_IN_SEARCH_ON_GOOGLE_SEARCH, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAd.ApprovalStatus", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdApprovalStatus { - APPROVED, - APPROVED_LIMITED, - ELIGIBLE, - UNDER_REVIEW, - DISAPPROVED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ApprovalContext_VideoAd_ApprovalLimitMapEntry { - private ApprovalContext keyField; - - private VideoAdApprovalLimit valueField; - - private bool valueFieldSpecified; - - public ApprovalContext key { - get { return this.keyField; } - set { this.keyField = value; } - } - - public VideoAdApprovalLimit value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAd.ApprovalLimit", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdApprovalLimit { - FAMILY_SAFE, - NON_FAMILY_SAFE, - ADULT_CONTENT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ScopedDisapprovalReason { - private ApprovalContext approvalContextField; - - private DisapprovalReason disapprovalReasonField; - - public ApprovalContext approvalContext { - get { return this.approvalContextField; } - set { this.approvalContextField = value; } - } - - public DisapprovalReason disapprovalReason { - get { return this.disapprovalReasonField; } - set { this.disapprovalReasonField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class DisapprovalReason { - private string reasonField; - - private int helpIdField; - - private bool helpIdFieldSpecified; - - public string reason { - get { return this.reasonField; } - set { this.reasonField = value; } - } - - public int helpId { - get { return this.helpIdField; } - set { - this.helpIdField = value; - this.helpIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool helpIdSpecified { - get { return this.helpIdFieldSpecified; } - set { this.helpIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdDisplayFormat_VideoAdStatusMapEntry { - private VideoAdDisplayFormat keyField; - - private bool keyFieldSpecified; - - private VideoAdStatus valueField; - - private bool valueFieldSpecified; - - public VideoAdDisplayFormat key { - get { return this.keyField; } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { return this.keyFieldSpecified; } - set { this.keyFieldSpecified = value; } - } - - public VideoAdStatus value { - get { return this.valueField; } - set { - this.valueField = value; - this.valueSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool valueSpecified { - get { return this.valueFieldSpecified; } - set { this.valueFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdOperation : Operation { - private VideoAd operandField; - - private ExemptionRequest[] exemptionRequestsField; - - public VideoAd operand { - get { return this.operandField; } - set { this.operandField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("exemptionRequests")] - public ExemptionRequest[] exemptionRequests { - get { return this.exemptionRequestsField; } - set { this.exemptionRequestsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdPage : Page { - private VideoAd[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public VideoAd[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class Sortable { - private object itemField; - - [System.Xml.Serialization.XmlElementAttribute("StatsSortable", typeof(StatsSortable))] - [System.Xml.Serialization.XmlElementAttribute("VideoAdSortable", typeof(VideoAdSortable))] - public object Item { - get { return this.itemField; } - set { this.itemField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum StatsSortable { - AVERAGE_CPV, - AVERAGE_CPM, - VIEWS, - VIEW_RATE, - CTR, - COST, - COST_PER_CONVERSION, - IMPRESSIONS, - WEBSITE_CLICKS, - CONVERSIONS, - CONVERSION_RATE, - VIEW_THROUGH_CONVERSIONS, - CONVERSIONS_MANY_PER_VIEW, - CONVERSION_RATE_MANY_PER_VIEW, - COST_PER_CONVERSION_MANY_PER_VIEW, - TOTAL_CONV_VALUE, - VALUE_PER_CONV, - VALUE_PER_CONV_MANY_PER_VIEW, - PERCENT_SERVED, - VIDEO_STARTS, - QUARTILE_25S, - QUARTILE_50S, - QUARTILE_75S, - QUARTILE_100S, - QUARTILE_25_PERCENTS, - QUARTILE_50_PERCENTS, - QUARTILE_75_PERCENTS, - QUARTILE_100_PERCENTS, - FOLLOW_ON_SUBSCRIBES, - FOLLOW_ON_SUBSCRIBE_RATE, - FOLLOW_ON_VIEWS, - FOLLOW_ON_VIEW_RATE, - FOLLOW_ON_ADD_TO_PLAYLIST, - FOLLOW_ON_COMMENTS, - FOLLOW_ON_LIKES, - FOLLOW_ON_SHARES, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdSortable { - CAMPAIGN_ID, - CAMPAIGN_NAME, - NAME, - STATUS, - VIDEOAD_ID, - VIDEO_NAME, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class Sorting { - private Sortable fieldField; - - private VideoSortOrder sortOrderField; - - private bool sortOrderFieldSpecified; - - private Sortable[] fieldsField; - - private VideoSortOrder[] sortOrdersField; - - public Sortable field { - get { return this.fieldField; } - set { this.fieldField = value; } - } - - public VideoSortOrder sortOrder { - get { return this.sortOrderField; } - set { - this.sortOrderField = value; - this.sortOrderSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sortOrderSpecified { - get { return this.sortOrderFieldSpecified; } - set { this.sortOrderFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("fields")] - public Sortable[] fields { - get { return this.fieldsField; } - set { this.fieldsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("sortOrders")] - public VideoSortOrder[] sortOrders { - get { return this.sortOrdersField; } - set { this.sortOrdersField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoSortOrder { - ASCENDING, - DESCENDING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class StatsSelector { - private DateRange dateRangeField; - - private SegmentationDimension[] segmentationDimensionsField; - - private Metric[] metricsField; - - private VideoEntityStatsSummaryType[] summaryTypesField; - - private VideoEntityStatsSummaryType segmentedSummaryTypeField; - - private bool segmentedSummaryTypeFieldSpecified; - - private StatsSelectorAllTimeRestrict allTimeRestrictField; - - private bool allTimeRestrictFieldSpecified; - - public DateRange dateRange { - get { return this.dateRangeField; } - set { this.dateRangeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentationDimensions")] - public SegmentationDimension[] segmentationDimensions { - get { return this.segmentationDimensionsField; } - set { this.segmentationDimensionsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("metrics")] - public Metric[] metrics { - get { return this.metricsField; } - set { this.metricsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("summaryTypes")] - public VideoEntityStatsSummaryType[] summaryTypes { - get { return this.summaryTypesField; } - set { this.summaryTypesField = value; } - } - - public VideoEntityStatsSummaryType segmentedSummaryType { - get { return this.segmentedSummaryTypeField; } - set { - this.segmentedSummaryTypeField = value; - this.segmentedSummaryTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool segmentedSummaryTypeSpecified { - get { return this.segmentedSummaryTypeFieldSpecified; } - set { this.segmentedSummaryTypeFieldSpecified = value; } - } - - public StatsSelectorAllTimeRestrict allTimeRestrict { - get { return this.allTimeRestrictField; } - set { - this.allTimeRestrictField = value; - this.allTimeRestrictSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool allTimeRestrictSpecified { - get { return this.allTimeRestrictFieldSpecified; } - set { this.allTimeRestrictFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum Metric { - VIEWS, - THUMBNAIL_IMPRESSIONS, - VIDEO_IMPRESSIONS, - TOTAL_IMPRESSIONS, - COST, - AVERAGE_CPV, - VTR, - CONVERSIONS, - DAILY_UNIQUE_VIEWERS, - WEEKLY_UNIQUE_VIEWERS, - MONTHLY_UNIQUE_VIEWERS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StatsSelector.AllTimeRestrict", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum StatsSelectorAllTimeRestrict { - NONE, - SINCE_VIDEO_AD_START, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdSelector { - private long[] campaignIdsField; - - private long[] idsField; - - private VideoAdStatus[] statusesField; - - private VideoCampaignStatus[] campaignStatusesField; - - private StatsSelector statsSelectorField; - - private Paging pagingField; - - private Sorting sortingField; - - [System.Xml.Serialization.XmlElementAttribute("campaignIds")] - public long[] campaignIds { - get { return this.campaignIdsField; } - set { this.campaignIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("ids")] - public long[] ids { - get { return this.idsField; } - set { this.idsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("statuses")] - public VideoAdStatus[] statuses { - get { return this.statusesField; } - set { this.statusesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] - public VideoCampaignStatus[] campaignStatuses { - get { return this.campaignStatusesField; } - set { this.campaignStatusesField = value; } - } - - public StatsSelector statsSelector { - get { return this.statsSelectorField; } - set { this.statsSelectorField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - - public Sorting sorting { - get { return this.sortingField; } - set { this.sortingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignStatus { - ACTIVE, - DELETED, - PAUSED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdError : ApiError { - private VideoAdErrorReason reasonField; - - private bool reasonFieldSpecified; - - public VideoAdErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAdError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdErrorReason { - UNKNOWN, - INVALID_FORMAT, - INVALID_INPUT, - URL_INVALID_TOP_LEVEL_DOMAIN, - URL_MALFORMED, - URL_NO_HOST, - URL_NO_SCHEME, - TOO_LONG, - LINE_TOO_WIDE, - INVALID_IMAGE_MEDIA_ID, - INVALID_COMPANION_BANNER_IMAGE_TYPE, - TOO_MANY_TARGETING_GROUP_ASSOCIATIONS, - TOO_MANY_VIDEO_ADS_PER_CUSTOMER, - TOO_MANY_VIDEO_ADS_PER_CAMPAIGN, - CANNOT_OPERATE_ON_DELETED_AD, - UNSUPPORTED_SCOPE_STATUS, - NO_SCOPE_STATUSES_SPECIFIED, - TARGETING_GROUP_FROM_DIFFERENT_CAMPAIGN, - APPROXIMATELY_TOO_LONG, - APPROXIMATELY_TOO_SHORT, - BAD_SNIPPET, - CUSTOMER_NOT_APPROVED_MOBILEADS, - CUSTOMER_NOT_ELIGIBLE, - INCORRECT_LENGTH, - INVALID_AD_ADDRESS_CAMPAIGN_TARGET, - INVALID_CHARACTER_FOR_URL, - INVALID_COUNTRY_CODE, - INVALID_MARKUP_LANGUAGE, - INVALID_MOBILE_CARRIER, - INVALID_MOBILE_CARRIER_TARGET, - TOO_SHORT, - URL_INVALID_SCHEME, - URL_HOST_NAME_TOO_LONG, - URL_NO_TOP_LEVEL_DOMAIN, - URL_PATH_NOT_ALLOWED, - URL_PORT_NOT_ALLOWED, - URL_QUERY_NOT_ALLOWED, - URL_SCHEME_BEFORE_DSA_TAG, - USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE, - INVALID_FIELD_TEXT, - IMAGE_ERROR, - VIDEO_RETRIEVAL_ERROR, - AUDIO_ERROR, - DEPRECATED_FORMAT_ERROR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TimeSeriesError : ApiError { - private TimeSeriesErrorReason reasonField; - - private bool reasonFieldSpecified; - - public TimeSeriesErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TimeSeriesError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TimeSeriesErrorReason { - UNKNOWN, - INVALID_SEGMENTATION_DIMENSION - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class SortingError : ApiError { - private SortingErrorReason reasonField; - - private bool reasonFieldSpecified; - - public SortingErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SortingError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum SortingErrorReason { - SORT_ORDER_MISMATCH, - INVALID_FIELD, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class SegmentationError : ApiError { - private SegmentationErrorReason reasonField; - - private bool reasonFieldSpecified; - - public SegmentationErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SegmentationError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum SegmentationErrorReason { - INCOMPATIBLE_DIMENSIONS, - UNSUPPORTED_SEGMENTATION, - MAXIMUM_SEGMENTATION_DIMENSIONS_EXCEEDED, - DATE_RANGE_TOO_LONG, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ReportError : ApiError { - private ReportErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ReportErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum ReportErrorReason { - UNKNOWN, - CRITERIA_TYPE_NOT_SUPPORTED, - INVALID_TARGETING_GROUP_ID_COUNT, - NO_STATS_SELECTOR - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class PersistenceError : ApiError { - private PersistenceErrorReason reasonField; - - private bool reasonFieldSpecified; - - public PersistenceErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PersistenceError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum PersistenceErrorReason { - LOAD_FAILED, - SAVE_FAILED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class EntityNotFoundError : ApiError { - private EntityNotFoundErrorReason reasonField; - - private bool reasonFieldSpecified; - - public EntityNotFoundErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityNotFoundError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum EntityNotFoundErrorReason { - INVALID_ID - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class AdsApiError : ApiError { - private AdsApiErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdsApiErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdsApiError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum AdsApiErrorReason { - UNHANDLED_ADS_API_ERROR, - INTERNAL_ERROR, - UNEXPECTED_ERROR, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class AccessError : ApiError { - private AccessErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AccessErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AccessError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum AccessErrorReason { - ACTION_NOT_PERMITTED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "VideoCampaignCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class VideoCampaignCriterionService : AdWordsSoapClient, IVideoCampaignCriterionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public VideoCampaignCriterionService() { - this.Url = "https://adwords.google.com/api/adwords/video/v201309/VideoCampaignCriterionServic" + "e"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoCampaignCriterionPage get(VideoCampaignCriterionSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((VideoCampaignCriterionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoCampaignCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -VideoCampaignCriterionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((VideoCampaignCriterionReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignCriterionReturnValue : ListReturnValue { - private VideoCampaignCriterion[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public VideoCampaignCriterion[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportedVideoCampaignCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeVideoCampaignCriterion))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignCriterion { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string campaignNameField; - - private BaseCriterion criterionField; - - private string videoCampaignCriterionTypeField; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public string campaignName { - get { return this.campaignNameField; } - set { this.campaignNameField = value; } - } - - public BaseCriterion criterion { - get { return this.criterionField; } - set { this.criterionField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("VideoCampaignCriterion.Type")] - public string VideoCampaignCriterionType { - get { return this.videoCampaignCriterionTypeField; } - set { this.videoCampaignCriterionTypeField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(YouTubePlacement))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(WebSite))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Topic))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(RunOfYoutube))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlatformVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystemVersionVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileDeviceVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileApplicationVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileAppCategoryVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LocationVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(LanguageVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseKeyword))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchKeyword))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentKeyword))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentCategoryLabel))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Channel))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CarrierVideoCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceUserList))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceInterest))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceGender))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceAge))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdScheduleVideoCriterion))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public abstract partial class BaseCriterion { - private long idField; - - private bool idFieldSpecified; - - private string baseCriterionTypeField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("BaseCriterion.Type")] - public string BaseCriterionType { - get { return this.baseCriterionTypeField; } - set { this.baseCriterionTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class YouTubePlacement : BaseCriterion { - private string urlField; - - public string url { - get { return this.urlField; } - set { this.urlField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class WebSite : BaseCriterion { - private string urlField; - - public string url { - get { return this.urlField; } - set { this.urlField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCriterion : BaseCriterion { - private string videoIdField; - - private string videoNameField; - - public string videoId { - get { return this.videoIdField; } - set { this.videoIdField = value; } - } - - public string videoName { - get { return this.videoNameField; } - set { this.videoNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class Topic : BaseCriterion { - private long verticalIdField; - - private bool verticalIdFieldSpecified; - - private string[] verticalPathField; - - public long verticalId { - get { return this.verticalIdField; } - set { - this.verticalIdField = value; - this.verticalIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool verticalIdSpecified { - get { return this.verticalIdFieldSpecified; } - set { this.verticalIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("verticalPath")] - public string[] verticalPath { - get { return this.verticalPathField; } - set { this.verticalPathField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class RunOfYoutube : BaseCriterion { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class PlatformVideoCriterion : BaseCriterion { - private string platformNameField; - - public string platformName { - get { return this.platformNameField; } - set { this.platformNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class OperatingSystemVersionVideoCriterion : BaseCriterion { - private string nameField; - - private int osMajorVersionField; - - private bool osMajorVersionFieldSpecified; - - private int osMinorVersionField; - - private bool osMinorVersionFieldSpecified; - - private VideoOperatingSystemVersionOperatorType operatorTypeField; - - private bool operatorTypeFieldSpecified; - - private long operatingSystemIdField; - - private bool operatingSystemIdFieldSpecified; - - private bool obsoleteField; - - private bool obsoleteFieldSpecified; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public int osMajorVersion { - get { return this.osMajorVersionField; } - set { - this.osMajorVersionField = value; - this.osMajorVersionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool osMajorVersionSpecified { - get { return this.osMajorVersionFieldSpecified; } - set { this.osMajorVersionFieldSpecified = value; } - } - - public int osMinorVersion { - get { return this.osMinorVersionField; } - set { - this.osMinorVersionField = value; - this.osMinorVersionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool osMinorVersionSpecified { - get { return this.osMinorVersionFieldSpecified; } - set { this.osMinorVersionFieldSpecified = value; } - } - - public VideoOperatingSystemVersionOperatorType operatorType { - get { return this.operatorTypeField; } - set { - this.operatorTypeField = value; - this.operatorTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatorTypeSpecified { - get { return this.operatorTypeFieldSpecified; } - set { this.operatorTypeFieldSpecified = value; } - } - - public long operatingSystemId { - get { return this.operatingSystemIdField; } - set { - this.operatingSystemIdField = value; - this.operatingSystemIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool operatingSystemIdSpecified { - get { return this.operatingSystemIdFieldSpecified; } - set { this.operatingSystemIdFieldSpecified = value; } - } - - public bool obsolete { - get { return this.obsoleteField; } - set { - this.obsoleteField = value; - this.obsoleteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool obsoleteSpecified { - get { return this.obsoleteFieldSpecified; } - set { this.obsoleteFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoOperatingSystemVersion.OperatorType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoOperatingSystemVersionOperatorType { - GREATER_THAN_EQUAL_TO, - EQUAL_TO, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class MobileDeviceVideoCriterion : BaseCriterion { - private string deviceNameField; - - private string manufacturerNameField; - - private VideoMobileDeviceDeviceType deviceTypeField; - - private bool deviceTypeFieldSpecified; - - private string operatingSystemNameField; - - public string deviceName { - get { return this.deviceNameField; } - set { this.deviceNameField = value; } - } - - public string manufacturerName { - get { return this.manufacturerNameField; } - set { this.manufacturerNameField = value; } - } - - public VideoMobileDeviceDeviceType deviceType { - get { return this.deviceTypeField; } - set { - this.deviceTypeField = value; - this.deviceTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deviceTypeSpecified { - get { return this.deviceTypeFieldSpecified; } - set { this.deviceTypeFieldSpecified = value; } - } - - public string operatingSystemName { - get { return this.operatingSystemNameField; } - set { this.operatingSystemNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoMobileDevice.DeviceType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoMobileDeviceDeviceType { - DEVICE_TYPE_MOBILE, - DEVICE_TYPE_TABLET - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class MobileApplicationVideoCriterion : BaseCriterion { - private string appIdField; - - public string appId { - get { return this.appIdField; } - set { this.appIdField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class MobileAppCategoryVideoCriterion : BaseCriterion { - private int mobileAppCategoryIdField; - - private bool mobileAppCategoryIdFieldSpecified; - - public int mobileAppCategoryId { - get { return this.mobileAppCategoryIdField; } - set { - this.mobileAppCategoryIdField = value; - this.mobileAppCategoryIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool mobileAppCategoryIdSpecified { - get { return this.mobileAppCategoryIdFieldSpecified; } - set { this.mobileAppCategoryIdFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class LocationVideoCriterion : BaseCriterion { - private string locationNameField; - - private string displayTypeField; - - private bool isObsoleteField; - - private bool isObsoleteFieldSpecified; - - private LocationVideoCriterion[] parentLocationsField; - - public string locationName { - get { return this.locationNameField; } - set { this.locationNameField = value; } - } - - public string displayType { - get { return this.displayTypeField; } - set { this.displayTypeField = value; } - } - - public bool isObsolete { - get { return this.isObsoleteField; } - set { - this.isObsoleteField = value; - this.isObsoleteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isObsoleteSpecified { - get { return this.isObsoleteFieldSpecified; } - set { this.isObsoleteFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("parentLocations")] - public LocationVideoCriterion[] parentLocations { - get { return this.parentLocationsField; } - set { this.parentLocationsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class LanguageVideoCriterion : BaseCriterion { - private string codeField; - - private string nameField; - - public string code { - get { return this.codeField; } - set { this.codeField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchKeyword))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentKeyword))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class BaseKeyword : BaseCriterion { - private string textField; - - private BaseKeywordMatchType matchTypeField; - - private bool matchTypeFieldSpecified; - - public string text { - get { return this.textField; } - set { this.textField = value; } - } - - public BaseKeywordMatchType matchType { - get { return this.matchTypeField; } - set { - this.matchTypeField = value; - this.matchTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool matchTypeSpecified { - get { return this.matchTypeFieldSpecified; } - set { this.matchTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BaseKeyword.MatchType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum BaseKeywordMatchType { - EXACT, - PHRASE, - BROAD, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class SearchKeyword : BaseKeyword { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ContentKeyword : BaseKeyword { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ContentCategoryLabel : BaseCriterion { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class Channel : BaseCriterion { - private string userNameField; - - private string userIdField; - - private string publicNameField; - - public string userName { - get { return this.userNameField; } - set { this.userNameField = value; } - } - - public string userId { - get { return this.userIdField; } - set { this.userIdField = value; } - } - - public string publicName { - get { return this.publicNameField; } - set { this.publicNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class CarrierVideoCriterion : BaseCriterion { - private string nameField; - - private string countryCodeField; - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public string countryCode { - get { return this.countryCodeField; } - set { this.countryCodeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class AudienceUserList : BaseCriterion { - private long listIdField; - - private bool listIdFieldSpecified; - - private string nameField; - - public long listId { - get { return this.listIdField; } - set { - this.listIdField = value; - this.listIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool listIdSpecified { - get { return this.listIdFieldSpecified; } - set { this.listIdFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class AudienceInterest : BaseCriterion { - private long interestIdField; - - private bool interestIdFieldSpecified; - - private string[] interestPathField; - - public long interestId { - get { return this.interestIdField; } - set { - this.interestIdField = value; - this.interestIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool interestIdSpecified { - get { return this.interestIdFieldSpecified; } - set { this.interestIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("interestPath")] - public string[] interestPath { - get { return this.interestPathField; } - set { this.interestPathField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class AudienceGender : BaseCriterion { - private AudienceGenderGenderType genderTypeField; - - private bool genderTypeFieldSpecified; - - public AudienceGenderGenderType genderType { - get { return this.genderTypeField; } - set { - this.genderTypeField = value; - this.genderTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool genderTypeSpecified { - get { return this.genderTypeFieldSpecified; } - set { this.genderTypeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceGender.GenderType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum AudienceGenderGenderType { - GENDER_MALE, - GENDER_FEMALE, - GENDER_UNDETERMINED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class AudienceAge : BaseCriterion { - private AudienceAgeAgeRange ageRangeField; - - private bool ageRangeFieldSpecified; - - public AudienceAgeAgeRange ageRange { - get { return this.ageRangeField; } - set { - this.ageRangeField = value; - this.ageRangeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ageRangeSpecified { - get { return this.ageRangeFieldSpecified; } - set { this.ageRangeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceAge.AgeRange", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum AudienceAgeAgeRange { - AGE_RANGE_18_24, - AGE_RANGE_25_34, - AGE_RANGE_35_44, - AGE_RANGE_45_54, - AGE_RANGE_55_64, - AGE_RANGE_65_UP, - AGE_RANGE_UNDETERMINED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class AdScheduleVideoCriterion : BaseCriterion { - private VideoDayOfWeek dayOfWeekField; - - private bool dayOfWeekFieldSpecified; - - private int startHourField; - - private bool startHourFieldSpecified; - - private VideoMinuteOfHour startMinuteField; - - private bool startMinuteFieldSpecified; - - private int endHourField; - - private bool endHourFieldSpecified; - - private VideoMinuteOfHour endMinuteField; - - private bool endMinuteFieldSpecified; - - public VideoDayOfWeek dayOfWeek { - get { return this.dayOfWeekField; } - set { - this.dayOfWeekField = value; - this.dayOfWeekSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dayOfWeekSpecified { - get { return this.dayOfWeekFieldSpecified; } - set { this.dayOfWeekFieldSpecified = value; } - } - - public int startHour { - get { return this.startHourField; } - set { - this.startHourField = value; - this.startHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startHourSpecified { - get { return this.startHourFieldSpecified; } - set { this.startHourFieldSpecified = value; } - } - - public VideoMinuteOfHour startMinute { - get { return this.startMinuteField; } - set { - this.startMinuteField = value; - this.startMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool startMinuteSpecified { - get { return this.startMinuteFieldSpecified; } - set { this.startMinuteFieldSpecified = value; } - } - - public int endHour { - get { return this.endHourField; } - set { - this.endHourField = value; - this.endHourSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endHourSpecified { - get { return this.endHourFieldSpecified; } - set { this.endHourFieldSpecified = value; } - } - - public VideoMinuteOfHour endMinute { - get { return this.endMinuteField; } - set { - this.endMinuteField = value; - this.endMinuteSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool endMinuteSpecified { - get { return this.endMinuteFieldSpecified; } - set { this.endMinuteFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoMinuteOfHour { - ZERO, - FIFTEEN, - THIRTY, - FORTY_FIVE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ReportedVideoCampaignCriterion : VideoCampaignCriterion { - private VideoEntityStats statsField; - - private VideoEntityStats[] segmentedStatsField; - - private bool excludedField; - - private bool excludedFieldSpecified; - - public VideoEntityStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] - public VideoEntityStats[] segmentedStats { - get { return this.segmentedStatsField; } - set { this.segmentedStatsField = value; } - } - - public bool excluded { - get { return this.excludedField; } - set { - this.excludedField = value; - this.excludedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool excludedSpecified { - get { return this.excludedFieldSpecified; } - set { this.excludedFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class NegativeVideoCampaignCriterion : VideoCampaignCriterion { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignCriterionOperation : Operation { - private VideoCampaignCriterion operandField; - - public VideoCampaignCriterion operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignReportPage : Page { - private ReportedVideoCampaignCriterion[] entriesField; - - private VideoEntityStats[] summaryStatsField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public ReportedVideoCampaignCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("summaryStats")] - public VideoEntityStats[] summaryStats { - get { return this.summaryStatsField; } - set { this.summaryStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignCriterionPage : Page { - private VideoCampaignCriterion[] entriesField; - - private VideoEntityStats[] summaryStatsField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public VideoCampaignCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("summaryStats")] - public VideoEntityStats[] summaryStats { - get { return this.summaryStatsField; } - set { this.summaryStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignCriterionSortable { - CAMPAIGN_ID - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignCriterionSelector { - private long[] campaignIdsField; - - private VideoCampaignStatus[] campaignStatusesField; - - private BaseCriterionType[] criterionTypesField; - - private Sorting sortingField; - - private Paging pagingField; - - [System.Xml.Serialization.XmlElementAttribute("campaignIds")] - public long[] campaignIds { - get { return this.campaignIdsField; } - set { this.campaignIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] - public VideoCampaignStatus[] campaignStatuses { - get { return this.campaignStatusesField; } - set { this.campaignStatusesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("criterionTypes")] - public BaseCriterionType[] criterionTypes { - get { return this.criterionTypesField; } - set { this.criterionTypesField = value; } - } - - public Sorting sorting { - get { return this.sortingField; } - set { this.sortingField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BaseCriterion.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum BaseCriterionType { - AGE, - CARRIER, - CHANNEL, - CONTENT_KEYWORD, - CONTENT_LABEL, - GENDER, - INTEREST, - KEYWORD, - LANGUAGE, - LOCATION, - MOBILE_APPLICATION, - MOBILE_APP_CATEGORY, - MOBILE_DEVICE, - OPERATING_SYSTEM_VERSION, - PLATFORM, - RUN_OF_YOUTUBE, - SCHEDULE, - SEARCH_KEYWORD, - USER_LIST, - VERTICAL, - VIDEO, - WEB_SITE, - YOUTUBE_PLACEMENT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignCriterionError : ApiError { - private VideoCampaignCriterionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public VideoCampaignCriterionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaignCriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignCriterionErrorReason { - UNKNOWN, - INVALID_CRITERION_USE, - INVALID_CRITERION_TYPE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupCriterionError : ApiError { - private TargetingGroupCriterionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public TargetingGroupCriterionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupCriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingGroupCriterionErrorReason { - UNKNOWN, - WEBSITE_NOT_ALLOWED_FOR_NETWORK, - NETWORK_NOT_SUPPORTED, - INVALID_KEYWORD_TEXT, - KEYWORD_TEXT_TOO_LONG, - KEYWORD_HAS_TOO_MANY_WORDS, - KEYWORD_HAS_INVALID_CHARS, - INVALID_WEBSITE_URL, - INVALID_FORMAT_FOR_WEBSITE_URL, - WEBSITE_URL_IS_TOO_LONG, - WEBSITE_URL_HAS_ILLEGAL_CHAR, - WEBSITE_URL_HAS_MULTIPLE_SITES_IN_LINE, - WEBSITE_DOMAIN_BLACKLISTED, - INVALID_VIDEO_ID, - INVALID_CHANNEL_ID, - INVALID_VERTICAL_PATH, - INVALID_USER_LIST_ID, - KEYWORD_UNSUPPORTED, - INVALID_TARGETING_GROUP_ID, - INVALID_CRITERION_ID, - IMMUTABLE_NEGATIVE, - WEBSITE_URL_HAS_SCHEMA, - USER_ID_OF_CHANNEL_MISSING, - TOO_MANY_CRITERIONS_PER_TARGETING_GROUP, - INVALID_STATUS, - MUTATING_REPORTED_TGC, - UNSUPPORTED_BID_OVERRIDE, - CANNOT_TARGET_AND_EXCLUDE, - CANNOT_REMOVE_CRITERION, - CANNOT_TARGET_CRITERION, - CANNOT_TARGET_OBSOLETE_CRITERION - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "VideoCampaignServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class VideoCampaignService : AdWordsSoapClient, IVideoCampaignService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public VideoCampaignService() { - this.Url = "https://adwords.google.com/api/adwords/video/v201309/VideoCampaignService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoCampaignPage get(VideoCampaignSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((VideoCampaignPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoCampaignReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -VideoCampaignOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((VideoCampaignReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignReturnValue : ListReturnValue { - private VideoCampaign[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public VideoCampaign[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaign { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private VideoCampaignStatus statusField; - - private bool statusFieldSpecified; - - private string startDateField; - - private string endDateField; - - private long budgetIdField; - - private bool budgetIdFieldSpecified; - - private VideoCampaignBiddingMode biddingModeField; - - private bool biddingModeFieldSpecified; - - private VideoCampaignTargetingMode targetingModeField; - - private bool targetingModeFieldSpecified; - - private VideoCampaignSpendingStatus spendingStatusField; - - private bool spendingStatusFieldSpecified; - - private CampaignSchedulingStatus schedulingStatusField; - - private bool schedulingStatusFieldSpecified; - - private VideoAdServingOptimizationStatus adServingOptimizationStatusField; - - private bool adServingOptimizationStatusFieldSpecified; - - private VideoFrequencyCap frequencyCapField; - - private VideoEntityStats statsField; - - private VideoEntityStats[] segmentedStatsField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public VideoCampaignStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public string startDate { - get { return this.startDateField; } - set { this.startDateField = value; } - } - - public string endDate { - get { return this.endDateField; } - set { this.endDateField = value; } - } - - public long budgetId { - get { return this.budgetIdField; } - set { - this.budgetIdField = value; - this.budgetIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool budgetIdSpecified { - get { return this.budgetIdFieldSpecified; } - set { this.budgetIdFieldSpecified = value; } - } - - public VideoCampaignBiddingMode biddingMode { - get { return this.biddingModeField; } - set { - this.biddingModeField = value; - this.biddingModeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool biddingModeSpecified { - get { return this.biddingModeFieldSpecified; } - set { this.biddingModeFieldSpecified = value; } - } - - public VideoCampaignTargetingMode targetingMode { - get { return this.targetingModeField; } - set { - this.targetingModeField = value; - this.targetingModeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingModeSpecified { - get { return this.targetingModeFieldSpecified; } - set { this.targetingModeFieldSpecified = value; } - } - - public VideoCampaignSpendingStatus spendingStatus { - get { return this.spendingStatusField; } - set { - this.spendingStatusField = value; - this.spendingStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool spendingStatusSpecified { - get { return this.spendingStatusFieldSpecified; } - set { this.spendingStatusFieldSpecified = value; } - } - - public CampaignSchedulingStatus schedulingStatus { - get { return this.schedulingStatusField; } - set { - this.schedulingStatusField = value; - this.schedulingStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool schedulingStatusSpecified { - get { return this.schedulingStatusFieldSpecified; } - set { this.schedulingStatusFieldSpecified = value; } - } - - public VideoAdServingOptimizationStatus adServingOptimizationStatus { - get { return this.adServingOptimizationStatusField; } - set { - this.adServingOptimizationStatusField = value; - this.adServingOptimizationStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adServingOptimizationStatusSpecified { - get { return this.adServingOptimizationStatusFieldSpecified; } - set { this.adServingOptimizationStatusFieldSpecified = value; } - } - - public VideoFrequencyCap frequencyCap { - get { return this.frequencyCapField; } - set { this.frequencyCapField = value; } - } - - public VideoEntityStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] - public VideoEntityStats[] segmentedStats { - get { return this.segmentedStatsField; } - set { this.segmentedStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaign.BiddingMode", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignBiddingMode { - AUTO, - MANUAL, - NONE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaign.TargetingMode", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignTargetingMode { - AUTO, - MANUAL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaign.SpendingStatus", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignSpendingStatus { - UNAVAILABLE, - SUSPENDED, - CONSTRAINED, - NON_CONSTRAINED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum CampaignSchedulingStatus { - UNAVAILABLE, - CURRENT, - ENDED, - PENDING - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoAdServingOptimizationStatus { - OPTIMIZE, - CONVERSION_OPTIMIZE, - ROTATE, - ROTATE_FOREVER, - UNAVAILABLE - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoFrequencyCap { - private long impressionsField; - - private bool impressionsFieldSpecified; - - private long viewsField; - - private bool viewsFieldSpecified; - - private VideoTimeUnit timeUnitField; - - private bool timeUnitFieldSpecified; - - private VideoLevel levelField; - - private bool levelFieldSpecified; - - public long impressions { - get { return this.impressionsField; } - set { - this.impressionsField = value; - this.impressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool impressionsSpecified { - get { return this.impressionsFieldSpecified; } - set { this.impressionsFieldSpecified = value; } - } - - public long views { - get { return this.viewsField; } - set { - this.viewsField = value; - this.viewsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool viewsSpecified { - get { return this.viewsFieldSpecified; } - set { this.viewsFieldSpecified = value; } - } - - public VideoTimeUnit timeUnit { - get { return this.timeUnitField; } - set { - this.timeUnitField = value; - this.timeUnitSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool timeUnitSpecified { - get { return this.timeUnitFieldSpecified; } - set { this.timeUnitFieldSpecified = value; } - } - - public VideoLevel level { - get { return this.levelField; } - set { - this.levelField = value; - this.levelSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool levelSpecified { - get { return this.levelFieldSpecified; } - set { this.levelFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoTimeUnit { - MINUTE, - HOUR, - DAY, - WEEK, - MONTH, - LIFETIME - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoLevel { - VIDEO_CAMPAIGN, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignOperation : Operation { - private VideoCampaign operandField; - - public VideoCampaign operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoBudget { - private long budgetIdField; - - private bool budgetIdFieldSpecified; - - private string nameField; - - private Money amountField; - - private VideoBudgetBudgetDeliveryMethod deliveryMethodField; - - private bool deliveryMethodFieldSpecified; - - private bool isExplicitlySharedField; - - private bool isExplicitlySharedFieldSpecified; - - public long budgetId { - get { return this.budgetIdField; } - set { - this.budgetIdField = value; - this.budgetIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool budgetIdSpecified { - get { return this.budgetIdFieldSpecified; } - set { this.budgetIdFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public Money amount { - get { return this.amountField; } - set { this.amountField = value; } - } - - public VideoBudgetBudgetDeliveryMethod deliveryMethod { - get { return this.deliveryMethodField; } - set { - this.deliveryMethodField = value; - this.deliveryMethodSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deliveryMethodSpecified { - get { return this.deliveryMethodFieldSpecified; } - set { this.deliveryMethodFieldSpecified = value; } - } - - public bool isExplicitlyShared { - get { return this.isExplicitlySharedField; } - set { - this.isExplicitlySharedField = value; - this.isExplicitlySharedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isExplicitlySharedSpecified { - get { return this.isExplicitlySharedFieldSpecified; } - set { this.isExplicitlySharedFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBudget.BudgetDeliveryMethod", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoBudgetBudgetDeliveryMethod { - STANDARD, - ACCELERATED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class SummaryBudgets { - private VideoBudget totalVideoBudgetField; - - private Money nonVideoBudgetField; - - private Money combinedBudgetField; - - public VideoBudget totalVideoBudget { - get { return this.totalVideoBudgetField; } - set { this.totalVideoBudgetField = value; } - } - - public Money nonVideoBudget { - get { return this.nonVideoBudgetField; } - set { this.nonVideoBudgetField = value; } - } - - public Money combinedBudget { - get { return this.combinedBudgetField; } - set { this.combinedBudgetField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignPage : Page { - private VideoCampaign[] entriesField; - - private VideoEntityStats[] summaryStatsField; - - private SummaryBudgets summaryBudgetsField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public VideoCampaign[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("summaryStats")] - public VideoEntityStats[] summaryStats { - get { return this.summaryStatsField; } - set { this.summaryStatsField = value; } - } - - public SummaryBudgets summaryBudgets { - get { return this.summaryBudgetsField; } - set { this.summaryBudgetsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignSortable { - BUDGET_AMOUNT, - CAMPAIGN_ID, - END_DATE, - NAME, - START_DATE, - STATUS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignSelector { - private long[] idsField; - - private VideoCampaignStatus[] campaignStatusesField; - - private StatsSelector statsSelectorField; - - private Paging pagingField; - - private Sorting sortingField; - - [System.Xml.Serialization.XmlElementAttribute("ids")] - public long[] ids { - get { return this.idsField; } - set { this.idsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] - public VideoCampaignStatus[] campaignStatuses { - get { return this.campaignStatusesField; } - set { this.campaignStatusesField = value; } - } - - public StatsSelector statsSelector { - get { return this.statsSelectorField; } - set { this.statsSelectorField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - - public Sorting sorting { - get { return this.sortingField; } - set { this.sortingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignError : ApiError { - private VideoCampaignErrorReason reasonField; - - private bool reasonFieldSpecified; - - public VideoCampaignErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaignError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoCampaignErrorReason { - UNKNOWN, - AFTER_MAXIMUM_ALLOWABLE_DATE, - CANNOT_SET_DATE_TO_PAST, - DUPLICATE_CAMPAIGN_NAME, - INVALID_CAMPAIGN_NAME, - START_DATE_AFTER_END_DATE, - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED, - INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED, - CAMPAIGN_LIMIT - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoBudgetError : ApiError { - private VideoBudgetErrorReason reasonField; - - private bool reasonFieldSpecified; - - public VideoBudgetErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBudgetError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoBudgetErrorReason { - MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC, - MONEY_AMOUNT_LESS_THAN_MAXIMUM_AD_GROUP_CPM, - MONEY_AMOUNT_LESS_THAN_MAXIMUM_SITE_CPM, - MONEY_AMOUNT_LESS_THAN_MINIMUM_AD_GROUP_CPC, - MONEY_AMOUNT_LESS_THAN_MINIMUM_CRITERIA_CPC, - MONEY_AMOUNT_TOO_LARGE, - NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoBiddingError : ApiError { - private VideoBiddingErrorReason reasonField; - - private bool reasonFieldSpecified; - - public VideoBiddingErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBiddingError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoBiddingErrorReason { - BID_AMOUNT_REQUIRED, - BID_TOO_SMALL, - BID_TOO_BIG, - BID_TOO_MANY_FRACTIONAL_DIGITS, - BID_TOO_HIGH_FOR_DAILY_BUDGET, - NON_POSITIVE_BID, - BID_FOR_DEPRECATED_FORMAT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdGroupCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdGroupCriterionService : AdWordsSoapClient, IAdGroupCriterionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdGroupCriterionService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupCriterionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupCriterionPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((AdGroupCriterionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -AdGroupCriterionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((AdGroupCriterionReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupCriterionPage query([System.Xml.Serialization.XmlElementAttribute("query")] -string query1) { - object[] results = this.Invoke("query", new object[] { query1 }); - return ((AdGroupCriterionPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupCriterionReturnValue : ListReturnValue { - private AdGroupCriterion[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdGroupCriterion[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupCriterionPage : Page { - private AdGroupCriterion[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdGroupCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "VideoServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class VideoService : AdWordsSoapClient, IVideoService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public VideoService() { - this.Url = "https://adwords.google.com/api/adwords/video/v201309/VideoService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoPage get(VideoSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((VideoPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoReturnValue mutateCallToAction([System.Xml.Serialization.XmlElementAttribute("operations")] -VideoCallToActionOperation[] operations) { - object[] results = this.Invoke("mutateCallToAction", new object[] { operations }); - return ((VideoReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual VideoSearchPage search(VideoSearchSelector selector) { - object[] results = this.Invoke("search", new object[] { selector }); - return ((VideoSearchPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoSearchSelector { - private VideoSearchSelectorSearchType searchTypeField; - - private bool searchTypeFieldSpecified; - - private string[] videoIdsField; - - private string queryField; - - private string[] channelUserNamesField; - - private string[] channelUserIdsField; - - private Paging pagingField; - - private Sorting sortingField; - - public VideoSearchSelectorSearchType searchType { - get { return this.searchTypeField; } - set { - this.searchTypeField = value; - this.searchTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool searchTypeSpecified { - get { return this.searchTypeFieldSpecified; } - set { this.searchTypeFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("videoIds")] - public string[] videoIds { - get { return this.videoIdsField; } - set { this.videoIdsField = value; } - } - - public string query { - get { return this.queryField; } - set { this.queryField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("channelUserNames")] - public string[] channelUserNames { - get { return this.channelUserNamesField; } - set { this.channelUserNamesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("channelUserIds")] - public string[] channelUserIds { - get { return this.channelUserIdsField; } - set { this.channelUserIdsField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - - public Sorting sorting { - get { return this.sortingField; } - set { this.sortingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoSearchSelector.SearchType", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoSearchSelectorSearchType { - VIDEO, - CHANNEL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoSearchSortable { - RELEVANCE, - DATE_UPLOADED, - VIEW_COUNT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoSortable { - TITLE, - DATE_UPLOADED, - DURATION, - CHANNEL, - VIEW_COUNT, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoStatsSortable { - TOTAL_VIEWS, - CTA_IMPRESSIONS, - CTA_CLICKS, - CTA_CTR, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoReturnValue : ListReturnValue { - private YouTubeVideo[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public YouTubeVideo[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class YouTubeVideo { - private string idField; - - private string titleField; - - private string descriptionField; - - private string dateUploadedField; - - private long durationSecField; - - private bool durationSecFieldSpecified; - - private string userPublicNameField; - - private string userIdField; - - private long viewCountField; - - private bool viewCountFieldSpecified; - - private VideoCampaignInfo[] campaignInfosField; - - private CallToAction callToActionField; - - private VideoEntityStats statsField; - - private VideoEntityStats[] segmentedStatsField; - - private YouTubeVideoAccessLevel accessLevelField; - - private bool accessLevelFieldSpecified; - - public string id { - get { return this.idField; } - set { this.idField = value; } - } - - public string title { - get { return this.titleField; } - set { this.titleField = value; } - } - - public string description { - get { return this.descriptionField; } - set { this.descriptionField = value; } - } - - public string dateUploaded { - get { return this.dateUploadedField; } - set { this.dateUploadedField = value; } - } - - public long durationSec { - get { return this.durationSecField; } - set { - this.durationSecField = value; - this.durationSecSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool durationSecSpecified { - get { return this.durationSecFieldSpecified; } - set { this.durationSecFieldSpecified = value; } - } - - public string userPublicName { - get { return this.userPublicNameField; } - set { this.userPublicNameField = value; } - } - - public string userId { - get { return this.userIdField; } - set { this.userIdField = value; } - } - - public long viewCount { - get { return this.viewCountField; } - set { - this.viewCountField = value; - this.viewCountSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool viewCountSpecified { - get { return this.viewCountFieldSpecified; } - set { this.viewCountFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignInfos")] - public VideoCampaignInfo[] campaignInfos { - get { return this.campaignInfosField; } - set { this.campaignInfosField = value; } - } - - public CallToAction callToAction { - get { return this.callToActionField; } - set { this.callToActionField = value; } - } - - public VideoEntityStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] - public VideoEntityStats[] segmentedStats { - get { return this.segmentedStatsField; } - set { this.segmentedStatsField = value; } - } - - public YouTubeVideoAccessLevel accessLevel { - get { return this.accessLevelField; } - set { - this.accessLevelField = value; - this.accessLevelSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool accessLevelSpecified { - get { return this.accessLevelFieldSpecified; } - set { this.accessLevelFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCampaignInfo { - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string campaignNameField; - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public string campaignName { - get { return this.campaignNameField; } - set { this.campaignNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class CallToAction { - private CallToActionCreative creativeField; - - private bool isEnabledOnMobileField; - - private bool isEnabledOnMobileFieldSpecified; - - private CallToActionStatus statusField; - - private bool statusFieldSpecified; - - private CallToActionPolicyViolation[] policyViolationsField; - - public CallToActionCreative creative { - get { return this.creativeField; } - set { this.creativeField = value; } - } - - public bool isEnabledOnMobile { - get { return this.isEnabledOnMobileField; } - set { - this.isEnabledOnMobileField = value; - this.isEnabledOnMobileSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool isEnabledOnMobileSpecified { - get { return this.isEnabledOnMobileFieldSpecified; } - set { this.isEnabledOnMobileFieldSpecified = value; } - } - - public CallToActionStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("policyViolations")] - public CallToActionPolicyViolation[] policyViolations { - get { return this.policyViolationsField; } - set { this.policyViolationsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.Creative", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class CallToActionCreative { - private CallToActionCreativeType typeField; - - private bool typeFieldSpecified; - - private string headlineField; - - private string descriptionLine1Field; - - private string descriptionLine2Field; - - private string displayUrlField; - - private string destinationUrlField; - - private CallToActionImage imageField; - - public CallToActionCreativeType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - - public string headline { - get { return this.headlineField; } - set { this.headlineField = value; } - } - - public string descriptionLine1 { - get { return this.descriptionLine1Field; } - set { this.descriptionLine1Field = value; } - } - - public string descriptionLine2 { - get { return this.descriptionLine2Field; } - set { this.descriptionLine2Field = value; } - } - - public string displayUrl { - get { return this.displayUrlField; } - set { this.displayUrlField = value; } - } - - public string destinationUrl { - get { return this.destinationUrlField; } - set { this.destinationUrlField = value; } - } - - public CallToActionImage image { - get { return this.imageField; } - set { this.imageField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.Creative.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum CallToActionCreativeType { - TEXT_ONLY, - TEXT_AND_IMAGE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class CallToActionImage { - private byte[] dataField; - - private string imageUrlField; - - [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] - public byte[] data { - get { return this.dataField; } - set { this.dataField = value; } - } - - public string imageUrl { - get { return this.imageUrlField; } - set { this.imageUrlField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.Status", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum CallToActionStatus { - ACTIVE, - INACTIVE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.PolicyViolation", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class CallToActionPolicyViolation { - private string textField; - - public string text { - get { return this.textField; } - set { this.textField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "YouTubeVideo.AccessLevel", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum YouTubeVideoAccessLevel { - FULL_LINKED, - LIMITED_NOT_LINKED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCallToAction { - private string idField; - - private CallToAction callToActionField; - - public string id { - get { return this.idField; } - set { this.idField = value; } - } - - public CallToAction callToAction { - get { return this.callToActionField; } - set { this.callToActionField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoOperation : Operation { - private YouTubeVideo operandField; - - public YouTubeVideo operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoCallToActionOperation : Operation { - private VideoCallToAction operandField; - - public VideoCallToAction operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoSearchPage : Page { - private string[] recommendedChannelsField; - - private YouTubeVideo[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("recommendedChannels")] - public string[] recommendedChannels { - get { return this.recommendedChannelsField; } - set { this.recommendedChannelsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public YouTubeVideo[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoPage : Page { - private YouTubeVideo[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public YouTubeVideo[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoSelector { - private string[] videoIdsField; - - private long[] campaignIdsField; - - private VideoCampaignStatus[] campaignStatusesField; - - private bool includeCallToActionsField; - - private bool includeCallToActionsFieldSpecified; - - private StatsSelector statsSelectorField; - - private Paging pagingField; - - private Sorting sortingField; - - [System.Xml.Serialization.XmlElementAttribute("videoIds")] - public string[] videoIds { - get { return this.videoIdsField; } - set { this.videoIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignIds")] - public long[] campaignIds { - get { return this.campaignIdsField; } - set { this.campaignIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] - public VideoCampaignStatus[] campaignStatuses { - get { return this.campaignStatusesField; } - set { this.campaignStatusesField = value; } - } - - public bool includeCallToActions { - get { return this.includeCallToActionsField; } - set { - this.includeCallToActionsField = value; - this.includeCallToActionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeCallToActionsSpecified { - get { return this.includeCallToActionsFieldSpecified; } - set { this.includeCallToActionsFieldSpecified = value; } - } - - public StatsSelector statsSelector { - get { return this.statsSelectorField; } - set { this.statsSelectorField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - - public Sorting sorting { - get { return this.sortingField; } - set { this.sortingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoServiceError : ApiError { - private VideoServiceErrorReason reasonField; - - private bool reasonFieldSpecified; - - public VideoServiceErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoServiceError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoServiceErrorReason { - UNKNOWN, - INVALID_VIDEO_ID, - VIDEO_NOT_FOUND, - INVALID_CHANNEL, - VIDEO_LOOKUP_SERVICE_UNAVAILABLE, - VIDEO_SEARCH_SERVICE_UNAVAILABLE, - CHANNEL_SEARCH_SERVICE_UNAVAILABLE, - YOUTUBE_ANALYTICS_SERVICE_UNAVAILABLE, - VIDEO_NOT_OWNED_BY_LINKED_ACCOUNT, - VIDEO_NOT_ENABLED_FOR_CALL_TO_ACTION, - CALL_TO_ACTION_NOT_FOUND, - INVALID_CALL_TO_ACTION, - UNKNOWN_CALL_TO_ACTION_ERROR, - CALL_TO_ACTION_TOO_LONG, - CALL_TO_ACTION_INVALID_FORMAT, - CALL_TO_ACTION_INVALID_CHARS, - CALL_TO_ACTION_INVALID_INPUT, - INVALID_FORMAT, - INVALID_INPUT, - INVALID_IMAGE_FILESIZE, - UNSUPPORTED_IMAGE_FORMAT, - DUPLICATE_VIDEO_ID, - TOO_LONG - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "VideoTargetingGroupCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class VideoTargetingGroupCriterionService : AdWordsSoapClient, IVideoTargetingGroupCriterionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public VideoTargetingGroupCriterionService() { - this.Url = "https://adwords.google.com/api/adwords/video/v201309/VideoTargetingGroupCriterion" + "Service"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual TargetingGroupCriterionPage get(TargetingGroupCriterionSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((TargetingGroupCriterionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual TargetingGroupCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -TargetingGroupCriterionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((TargetingGroupCriterionReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupCriterionReturnValue : ListReturnValue { - private TargetingGroupCriterion[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public TargetingGroupCriterion[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportedTargetingGroupCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeTargetingGroupCriterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddableTargetingGroupCriterion))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupCriterion { - private long targetingGroupIdField; - - private bool targetingGroupIdFieldSpecified; - - private string targetingGroupNameField; - - private BaseCriterion criterionField; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string targetingGroupCriterionTypeField; - - public long targetingGroupId { - get { return this.targetingGroupIdField; } - set { - this.targetingGroupIdField = value; - this.targetingGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool targetingGroupIdSpecified { - get { return this.targetingGroupIdFieldSpecified; } - set { this.targetingGroupIdFieldSpecified = value; } - } - - public string targetingGroupName { - get { return this.targetingGroupNameField; } - set { this.targetingGroupNameField = value; } - } - - public BaseCriterion criterion { - get { return this.criterionField; } - set { this.criterionField = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("TargetingGroupCriterion.Type")] - public string TargetingGroupCriterionType { - get { return this.targetingGroupCriterionTypeField; } - set { this.targetingGroupCriterionTypeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class ReportedTargetingGroupCriterion : TargetingGroupCriterion { - private VideoEntityStats statsField; - - private VideoEntityStats[] segmentedStatsField; - - private bool excludedField; - - private bool excludedFieldSpecified; - - private bool partiallyExcludedField; - - private bool partiallyExcludedFieldSpecified; - - public VideoEntityStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] - public VideoEntityStats[] segmentedStats { - get { return this.segmentedStatsField; } - set { this.segmentedStatsField = value; } - } - - public bool excluded { - get { return this.excludedField; } - set { - this.excludedField = value; - this.excludedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool excludedSpecified { - get { return this.excludedFieldSpecified; } - set { this.excludedFieldSpecified = value; } - } - - public bool partiallyExcluded { - get { return this.partiallyExcludedField; } - set { - this.partiallyExcludedField = value; - this.partiallyExcludedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool partiallyExcludedSpecified { - get { return this.partiallyExcludedFieldSpecified; } - set { this.partiallyExcludedFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class NegativeTargetingGroupCriterion : TargetingGroupCriterion { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class BiddableTargetingGroupCriterion : TargetingGroupCriterion { - private VideoUserStatus userStatusField; - - private bool userStatusFieldSpecified; - - private VideoEntityStats statsField; - - private VideoEntityStats[] segmentedStatsField; - - public VideoUserStatus userStatus { - get { return this.userStatusField; } - set { - this.userStatusField = value; - this.userStatusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool userStatusSpecified { - get { return this.userStatusFieldSpecified; } - set { this.userStatusFieldSpecified = value; } - } - - public VideoEntityStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] - public VideoEntityStats[] segmentedStats { - get { return this.segmentedStatsField; } - set { this.segmentedStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoUserStatus { - ACTIVE, - DELETED, - PAUSED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupCriterionOperation : Operation { - private TargetingGroupCriterion operandField; - - private ExemptionRequest[] exemptionRequestsField; - - public TargetingGroupCriterion operand { - get { return this.operandField; } - set { this.operandField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("exemptionRequests")] - public ExemptionRequest[] exemptionRequests { - get { return this.exemptionRequestsField; } - set { this.exemptionRequestsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupReportPage : Page { - private ReportedTargetingGroupCriterion[] entriesField; - - private VideoEntityStats[] summaryStatsField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public ReportedTargetingGroupCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("summaryStats")] - public VideoEntityStats[] summaryStats { - get { return this.summaryStatsField; } - set { this.summaryStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupCriterionPage : Page { - private TargetingGroupCriterion[] entriesField; - - private VideoEntityStats[] summaryStatsField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public TargetingGroupCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("summaryStats")] - public VideoEntityStats[] summaryStats { - get { return this.summaryStatsField; } - set { this.summaryStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingGroupCriterionSortable { - UNKNOWN, - CRITERION_ID, - TARGETING_GROUP_ID, - STATUS, - NAME, - TYPE, - TARGETING_GROUP_NAME - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupCriterionSelector { - private CriteriaDimension criteriaDimensionField; - - private bool criteriaDimensionFieldSpecified; - - private BaseCriterionType[] criterionTypesField; - - private VideoUserStatus[] userStatusesField; - - private VideoCampaignStatus[] campaignStatusesField; - - private StatsSelector statsSelectorField; - - private Paging pagingField; - - private Sorting sortingField; - - private long[] campaignIdsField; - - private long[] targetingGroupIdsField; - - private long[] criterionIdsField; - - private TargetingGroupCriterionSelectorCriterionUse criterionUseField; - - private bool criterionUseFieldSpecified; - - public CriteriaDimension criteriaDimension { - get { return this.criteriaDimensionField; } - set { - this.criteriaDimensionField = value; - this.criteriaDimensionSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criteriaDimensionSpecified { - get { return this.criteriaDimensionFieldSpecified; } - set { this.criteriaDimensionFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("criterionTypes")] - public BaseCriterionType[] criterionTypes { - get { return this.criterionTypesField; } - set { this.criterionTypesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("userStatuses")] - public VideoUserStatus[] userStatuses { - get { return this.userStatusesField; } - set { this.userStatusesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] - public VideoCampaignStatus[] campaignStatuses { - get { return this.campaignStatusesField; } - set { this.campaignStatusesField = value; } - } - - public StatsSelector statsSelector { - get { return this.statsSelectorField; } - set { this.statsSelectorField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - - public Sorting sorting { - get { return this.sortingField; } - set { this.sortingField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignIds")] - public long[] campaignIds { - get { return this.campaignIdsField; } - set { this.campaignIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("targetingGroupIds")] - public long[] targetingGroupIds { - get { return this.targetingGroupIdsField; } - set { this.targetingGroupIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("criterionIds")] - public long[] criterionIds { - get { return this.criterionIdsField; } - set { this.criterionIdsField = value; } - } - - public TargetingGroupCriterionSelectorCriterionUse criterionUse { - get { return this.criterionUseField; } - set { - this.criterionUseField = value; - this.criterionUseSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionUseSpecified { - get { return this.criterionUseFieldSpecified; } - set { this.criterionUseFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum CriteriaDimension { - AGE, - GENDER, - KEYWORD, - PLACEMENT, - TOPIC, - USER, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupCriterionSelector.CriterionUse", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingGroupCriterionSelectorCriterionUse { - BIDDABLE, - NEGATIVE, - ALL - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "VideoTargetingGroupServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class VideoTargetingGroupService : AdWordsSoapClient, IVideoTargetingGroupService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public VideoTargetingGroupService() { - this.Url = "https://adwords.google.com/api/adwords/video/v201309/VideoTargetingGroupService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual TargetingGroupPage get(TargetingGroupSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((TargetingGroupPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual TargetingGroupReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -TargetingGroupOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((TargetingGroupReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupReturnValue : ListReturnValue { - private TargetingGroup[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public TargetingGroup[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroup { - private long idField; - - private bool idFieldSpecified; - - private long campaignIdField; - - private bool campaignIdFieldSpecified; - - private string nameField; - - private TargetingGroupStatus statusField; - - private bool statusFieldSpecified; - - private VideoAdDisplayFormat_VideoBidMapEntry[] bidsByFormatField; - - private TargetingScope_VideoBidMapEntry[] scopedBidsField; - - private VideoEntityStats statsField; - - private ServingInfo issuesField; - - private VideoEntityStats[] segmentedStatsField; - - private string campaignNameField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public long campaignId { - get { return this.campaignIdField; } - set { - this.campaignIdField = value; - this.campaignIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool campaignIdSpecified { - get { return this.campaignIdFieldSpecified; } - set { this.campaignIdFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public TargetingGroupStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlArrayItemAttribute("bidsByFormat", IsNullable = false)] - public VideoAdDisplayFormat_VideoBidMapEntry[] bidsByFormat { - get { return this.bidsByFormatField; } - set { this.bidsByFormatField = value; } - } - - [System.Xml.Serialization.XmlArrayItemAttribute("bidsByScope", IsNullable = false)] - public TargetingScope_VideoBidMapEntry[] scopedBids { - get { return this.scopedBidsField; } - set { this.scopedBidsField = value; } - } - - public VideoEntityStats stats { - get { return this.statsField; } - set { this.statsField = value; } - } - - public ServingInfo issues { - get { return this.issuesField; } - set { this.issuesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] - public VideoEntityStats[] segmentedStats { - get { return this.segmentedStatsField; } - set { this.segmentedStatsField = value; } - } - - public string campaignName { - get { return this.campaignNameField; } - set { this.campaignNameField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingGroupStatus { - ACTIVE, - DELETED, - PAUSED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoAdDisplayFormat_VideoBidMapEntry { - private VideoAdDisplayFormat keyField; - - private bool keyFieldSpecified; - - private VideoBid valueField; - - public VideoAdDisplayFormat key { - get { return this.keyField; } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { return this.keyFieldSpecified; } - set { this.keyFieldSpecified = value; } - } - - public VideoBid value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class VideoBid { - private Money amountField; - - private VideoBidSource sourceField; - - private bool sourceFieldSpecified; - - public Money amount { - get { return this.amountField; } - set { this.amountField = value; } - } - - public VideoBidSource source { - get { return this.sourceField; } - set { - this.sourceField = value; - this.sourceSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool sourceSpecified { - get { return this.sourceFieldSpecified; } - set { this.sourceFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBid.Source", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum VideoBidSource { - TARGETING_GROUP, - CRITERION - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingScope_VideoBidMapEntry { - private TargetingScope keyField; - - private bool keyFieldSpecified; - - private VideoBid valueField; - - public TargetingScope key { - get { return this.keyField; } - set { - this.keyField = value; - this.keySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool keySpecified { - get { return this.keyFieldSpecified; } - set { this.keyFieldSpecified = value; } - } - - public VideoBid value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupOperation : Operation { - private TargetingGroup operandField; - - public TargetingGroup operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupPage : Page { - private TargetingGroup[] entriesField; - - private VideoEntityStats[] summaryStatsField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public TargetingGroup[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("summaryStats")] - public VideoEntityStats[] summaryStats { - get { return this.summaryStatsField; } - set { this.summaryStatsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingGroupSortable { - UNKNOWN, - TARGETING_GROUP_NAME, - STATUS, - BID, - TARGETING_GROUP_ID - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupSelector { - private long[] idsField; - - private long[] campaignIdsField; - - private TargetingGroupStatus[] statusesField; - - private VideoCampaignStatus[] campaignStatusesField; - - private StatsSelector statsSelectorField; - - private Paging pagingField; - - private Sorting sortingField; - - [System.Xml.Serialization.XmlElementAttribute("ids")] - public long[] ids { - get { return this.idsField; } - set { this.idsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignIds")] - public long[] campaignIds { - get { return this.campaignIdsField; } - set { this.campaignIdsField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("statuses")] - public TargetingGroupStatus[] statuses { - get { return this.statusesField; } - set { this.statusesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] - public VideoCampaignStatus[] campaignStatuses { - get { return this.campaignStatusesField; } - set { this.campaignStatusesField = value; } - } - - public StatsSelector statsSelector { - get { return this.statsSelectorField; } - set { this.statsSelectorField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - - public Sorting sorting { - get { return this.sortingField; } - set { this.sortingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public partial class TargetingGroupError : ApiError { - private TargetingGroupErrorReason reasonField; - - private bool reasonFieldSpecified; - - public TargetingGroupErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201309")] - public enum TargetingGroupErrorReason { - UNKNOWN, - DUPLICATE_TARGETING_GROUP_ID, - DUPLICATE_TARGETING_GROUP_NAME, - DETECTED_DUPLICATE_TARGETING_GROUP_NAME, - IMMUTABLE_FIELD, - INVALID_TARGETING_GROUP_ID, - INVALID_TARGETING_GROUP_NAME, - NOT_PERSISTENT, - TARGETING_GROUP_NOT_FOUND, - TOO_MANY_TARGETING_GROUPS - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ExpressBusinessServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ExpressBusinessService : AdWordsSoapClient, IExpressBusinessService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public ExpressBusinessService() { - this.Url = "https://adwords.google.com/api/adwords/express/v201309/ExpressBusinessService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ExpressBusinessPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((ExpressBusinessPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ExpressBusiness[] mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -ExpressBusinessOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((ExpressBusiness[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class ExpressBusinessOperation : Operation { - private ExpressBusiness operandField; - - public ExpressBusiness operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class ExpressBusiness { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private ExpressBusinessStatus statusField; - - private bool statusFieldSpecified; - - private Address addressField; - - private GeoPoint geoPointField; - - private PhoneNumber phoneNumberField; - - private string websiteField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public ExpressBusinessStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public Address address { - get { return this.addressField; } - set { this.addressField = value; } - } - - public GeoPoint geoPoint { - get { return this.geoPointField; } - set { this.geoPointField = value; } - } - - public PhoneNumber phoneNumber { - get { return this.phoneNumberField; } - set { this.phoneNumberField = value; } - } - - public string website { - get { return this.websiteField; } - set { this.websiteField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExpressBusiness.Status", Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public enum ExpressBusinessStatus { - ACTIVE, - DELETED - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class PhoneNumber { - private ExpressRegionCode regionCodeField; - - private bool regionCodeFieldSpecified; - - private string numberField; - - public ExpressRegionCode regionCode { - get { return this.regionCodeField; } - set { - this.regionCodeField = value; - this.regionCodeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool regionCodeSpecified { - get { return this.regionCodeFieldSpecified; } - set { this.regionCodeFieldSpecified = value; } - } - - public string number { - get { return this.numberField; } - set { this.numberField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public enum ExpressRegionCode { - AC, - AD, - AE, - AF, - AG, - AI, - AL, - AM, - AN, - AO, - AQ, - AR, - AS, - AT, - AU, - AW, - AX, - AZ, - BA, - BB, - BD, - BE, - BF, - BG, - BH, - BI, - BJ, - BL, - BM, - BN, - BO, - BQ, - BR, - BS, - BT, - BU, - BV, - BW, - BY, - BZ, - CA, - CC, - CD, - CF, - CG, - CH, - CI, - CK, - CL, - CM, - CN, - CO, - CP, - CR, - CS, - CU, - CV, - CW, - CX, - CY, - CZ, - DD, - DE, - DG, - DJ, - DK, - DM, - DO, - DZ, - EA, - EC, - EE, - EG, - EH, - ER, - ES, - ET, - EU, - FI, - FJ, - FK, - FM, - FO, - FR, - FX, - GA, - GB, - GD, - GE, - GF, - GG, - GH, - GI, - GL, - GM, - GN, - GP, - GQ, - GR, - GS, - GT, - GU, - GW, - GY, - HK, - HM, - HN, - HR, - HT, - HU, - IC, - ID, - IE, - IL, - IM, - IN, - IO, - IQ, - IR, - IS, - IT, - JE, - JM, - JO, - JP, - KE, - KG, - KH, - KI, - KM, - KN, - KP, - KR, - KW, - KY, - KZ, - LA, - LB, - LC, - LI, - LK, - LR, - LS, - LT, - LU, - LV, - LY, - MA, - MC, - MD, - ME, - MF, - MG, - MH, - MK, - ML, - MM, - MN, - MO, - MP, - MQ, - MR, - MS, - MT, - MU, - MV, - MW, - MX, - MY, - MZ, - NA, - NC, - NE, - NF, - NG, - NI, - NL, - NO, - NP, - NR, - NT, - NU, - NZ, - OM, - PA, - PE, - PF, - PG, - PH, - PK, - PL, - PM, - PN, - PR, - PS, - PT, - PW, - PY, - QA, - QO, - QU, - RE, - RO, - RS, - RU, - RW, - SA, - SB, - SC, - SD, - SE, - SG, - SH, - SI, - SJ, - SK, - SL, - SM, - SN, - SO, - SR, - SS, - ST, - SU, - SV, - SX, - SY, - SZ, - TA, - TC, - TD, - TF, - TG, - TH, - TJ, - TK, - TL, - TM, - TN, - TO, - TP, - TR, - TT, - TV, - TW, - TZ, - UA, - UG, - UM, - US, - UY, - UZ, - VA, - VC, - VE, - VG, - VI, - VN, - VU, - WF, - WS, - XA, - XB, - XC, - XK, - YD, - YE, - YT, - YU, - ZA, - ZM, - ZR, - ZW, - ZZ, - UN001, - UN002, - UN003, - UN005, - UN009, - UN011, - UN013, - UN014, - UN015, - UN017, - UN018, - UN019, - UN021, - UN029, - UN030, - UN034, - UN035, - UN039, - UN053, - UN054, - UN057, - UN061, - UN142, - UN143, - UN145, - UN150, - UN151, - UN154, - UN155, - UN419 - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressBusinessPage))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(PromotionPage))] - public abstract partial class ExpressNoStatsPage : Page { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class ExpressBusinessPage : ExpressNoStatsPage { - private ExpressBusiness[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public ExpressBusiness[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class ExpressBusinessError : ApiError { - private ExpressBusinessErrorReason reasonField; - - private bool reasonFieldSpecified; - - public ExpressBusinessErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExpressBusinessError.Reason", Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public enum ExpressBusinessErrorReason { - INVALID_WEBSITE, - INVALID_ADDRESS, - INVALID_PHONE_NUMBER, - PREMIUM_RATE_PHONE_NUMBER_NOT_ALLOWED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "PromotionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(SoapHeader))] - public partial class PromotionService : AdWordsSoapClient, IPromotionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public PromotionService() { - this.Url = "https://adwords.google.com/api/adwords/express/v201309/PromotionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual PromotionPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((PromotionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual Promotion[] mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -PromotionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((Promotion[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class PromotionOperation : Operation { - private Promotion operandField; - - public Promotion operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class Promotion { - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private PromotionStatus statusField; - - private bool statusFieldSpecified; - - private Creative[] creativesField; - - private string destinationUrlField; - - private PhoneNumber phoneNumberField; - - private bool streetAddressVisibleField; - - private bool streetAddressVisibleFieldSpecified; - - private bool callTrackingEnabledField; - - private bool callTrackingEnabledFieldSpecified; - - private Money budgetField; - - private Criterion[] criteriaField; - - private long[] campaignIdsField; - - private Money remainingBudgetField; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public PromotionStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("creatives")] - public Creative[] creatives { - get { return this.creativesField; } - set { this.creativesField = value; } - } - - public string destinationUrl { - get { return this.destinationUrlField; } - set { this.destinationUrlField = value; } - } - - public PhoneNumber phoneNumber { - get { return this.phoneNumberField; } - set { this.phoneNumberField = value; } - } - - public bool streetAddressVisible { - get { return this.streetAddressVisibleField; } - set { - this.streetAddressVisibleField = value; - this.streetAddressVisibleSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool streetAddressVisibleSpecified { - get { return this.streetAddressVisibleFieldSpecified; } - set { this.streetAddressVisibleFieldSpecified = value; } - } - - public bool callTrackingEnabled { - get { return this.callTrackingEnabledField; } - set { - this.callTrackingEnabledField = value; - this.callTrackingEnabledSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool callTrackingEnabledSpecified { - get { return this.callTrackingEnabledFieldSpecified; } - set { this.callTrackingEnabledFieldSpecified = value; } - } - - public Money budget { - get { return this.budgetField; } - set { this.budgetField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("criteria")] - public Criterion[] criteria { - get { return this.criteriaField; } - set { this.criteriaField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("campaignIds")] - public long[] campaignIds { - get { return this.campaignIdsField; } - set { this.campaignIdsField = value; } - } - - public Money remainingBudget { - get { return this.remainingBudgetField; } - set { this.remainingBudgetField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "Promotion.Status", Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public enum PromotionStatus { - DRAFT, - ACTIVE, - PAUSED, - DELETED, - UPGRADED_TO_ADWORDS - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class Creative { - private string headlineField; - - private string line1Field; - - private string line2Field; - - public string headline { - get { return this.headlineField; } - set { this.headlineField = value; } - } - - public string line1 { - get { return this.line1Field; } - set { this.line1Field = value; } - } - - public string line2 { - get { return this.line2Field; } - set { this.line2Field = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class NegativeKeyword : Keyword { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class ProductService : Criterion, IProductService { - private string textField; - - private string localeField; - - public virtual string text { - get { return this.textField; } - set { this.textField = value; } - } - - public virtual string locale { - get { return this.localeField; } - set { this.localeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class NegativeCriterion : Criterion { - private Criterion criterionField; - - public Criterion criterion { - get { return this.criterionField; } - set { this.criterionField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class KeywordSet : Criterion { - private string keywordSetIdField; - - private string nameField; - - private bool deprecatedField; - - private bool deprecatedFieldSpecified; - - public string keywordSetId { - get { return this.keywordSetIdField; } - set { this.keywordSetIdField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public bool deprecated { - get { return this.deprecatedField; } - set { - this.deprecatedField = value; - this.deprecatedSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool deprecatedSpecified { - get { return this.deprecatedFieldSpecified; } - set { this.deprecatedFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class PromotionPage : ExpressNoStatsPage { - private Promotion[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public Promotion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class PromotionError : ApiError { - private PromotionErrorReason reasonField; - - private bool reasonFieldSpecified; - - public PromotionErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PromotionError.Reason", Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public enum PromotionErrorReason { - BUSINESS_DELETED, - CURRENCY_NOT_SUPPORTED, - GOOGLE_GRANT_ACCOUNT, - AOL_ACCOUNT, - MCC_ACCOUNT, - INVALID_DESTINATION_URL, - CALL_TRACKING_NOT_SUPPORTED, - UNKNOWN - } - - - - - - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ProductServiceServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Criterion))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ProductServiceService : AdWordsSoapClient, IProductServiceService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public ProductServiceService() { - this.Url = "https://adwords.google.com/api/adwords/express/v201309/ProductServiceService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ProductServicePage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((ProductServicePage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201309")] - public partial class ProductServicePage : NoStatsPage { - private ProductService[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public ProductService[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdGroupServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdGroupService : AdWordsSoapClient, IAdGroupService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdGroupService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((AdGroupPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -AdGroupOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((AdGroupReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupPage query([System.Xml.Serialization.XmlElementAttribute("query")] -string query1) { - object[] results = this.Invoke("query", new object[] { query1 }); - return ((AdGroupPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupReturnValue : ListReturnValue { - private AdGroup[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdGroup[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupPage : Page { - private AdGroup[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdGroup[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdGroupBidModifierServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdGroupBidModifierService : AdWordsSoapClient, IAdGroupBidModifierService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdGroupBidModifierService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/AdGroupBidModifierService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupBidModifierPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((AdGroupBidModifierPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupBidModifierReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -AdGroupBidModifierOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((AdGroupBidModifierReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupBidModifierReturnValue : ListReturnValue { - private AdGroupBidModifier[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdGroupBidModifier[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdGroupBidModifierPage : Page { - private AdGroupBidModifier[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdGroupBidModifier[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdParamServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdParamService : AdWordsSoapClient, IAdParamService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdParamService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/AdParamService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdParamPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((AdParamPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdParam[] mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -AdParamOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((AdParam[]) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdParamOperation : Operation { - private AdParam operandField; - - public AdParam operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdParam { - private long adGroupIdField; - - private bool adGroupIdFieldSpecified; - - private long criterionIdField; - - private bool criterionIdFieldSpecified; - - private string insertionTextField; - - private int paramIndexField; - - private bool paramIndexFieldSpecified; - - public long adGroupId { - get { return this.adGroupIdField; } - set { - this.adGroupIdField = value; - this.adGroupIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool adGroupIdSpecified { - get { return this.adGroupIdFieldSpecified; } - set { this.adGroupIdFieldSpecified = value; } - } - - public long criterionId { - get { return this.criterionIdField; } - set { - this.criterionIdField = value; - this.criterionIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool criterionIdSpecified { - get { return this.criterionIdFieldSpecified; } - set { this.criterionIdFieldSpecified = value; } - } - - public string insertionText { - get { return this.insertionTextField; } - set { this.insertionTextField = value; } - } - - public int paramIndex { - get { return this.paramIndexField; } - set { - this.paramIndexField = value; - this.paramIndexSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool paramIndexSpecified { - get { return this.paramIndexFieldSpecified; } - set { this.paramIndexFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdParamPage { - private AdParam[] entriesField; - - private int totalNumEntriesField; - - private bool totalNumEntriesFieldSpecified; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdParam[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - - public int totalNumEntries { - get { return this.totalNumEntriesField; } - set { - this.totalNumEntriesField = value; - this.totalNumEntriesSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool totalNumEntriesSpecified { - get { return this.totalNumEntriesFieldSpecified; } - set { this.totalNumEntriesFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdParamPolicyError : PolicyViolationError { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class AdParamError : ApiError { - private AdParamErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AdParamErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdParamError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum AdParamErrorReason { - AD_PARAM_CANNOT_BE_SPECIFIED_MULTIPLE_TIMES, - AD_PARAM_DOES_NOT_EXIST, - CRITERION_SPECIFIED_MUST_BE_KEYWORD, - INVALID_ADGROUP_CRITERION_SPECIFIED, - INVALID_INSERTION_TEXT_FORMAT, - MUST_SPECIFY_ADGROUP_ID, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AlertServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AlertService : AdWordsSoapClient, IAlertService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AlertService() { - this.Url = "https://adwords.google.com/api/adwords/mcm/v201309/AlertService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/mcm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AlertPage get(AlertSelector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((AlertPage) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class Detail { - private string triggerTimeField; - - public string triggerTime { - get { return this.triggerTimeField; } - set { this.triggerTimeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class Alert { - private AlertSeverity alertSeverityField; - - private bool alertSeverityFieldSpecified; - - private AlertType alertTypeField; - - private bool alertTypeFieldSpecified; - - private long clientCustomerIdField; - - private bool clientCustomerIdFieldSpecified; - - private Detail[] detailsField; - - public AlertSeverity alertSeverity { - get { return this.alertSeverityField; } - set { - this.alertSeverityField = value; - this.alertSeveritySpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool alertSeveritySpecified { - get { return this.alertSeverityFieldSpecified; } - set { this.alertSeverityFieldSpecified = value; } - } - - public AlertType alertType { - get { return this.alertTypeField; } - set { - this.alertTypeField = value; - this.alertTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool alertTypeSpecified { - get { return this.alertTypeFieldSpecified; } - set { this.alertTypeFieldSpecified = value; } - } - - public long clientCustomerId { - get { return this.clientCustomerIdField; } - set { - this.clientCustomerIdField = value; - this.clientCustomerIdSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clientCustomerIdSpecified { - get { return this.clientCustomerIdFieldSpecified; } - set { this.clientCustomerIdFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("details")] - public Detail[] details { - get { return this.detailsField; } - set { this.detailsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum AlertSeverity { - GREEN, - YELLOW, - RED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum AlertType { - ACCOUNT_ON_TARGET, - DECLINED_PAYMENT, - CREDIT_CARD_EXPIRING, - ACCOUNT_BUDGET_ENDING, - CAMPAIGN_ENDING, - PAYMENT_NOT_ENTERED, - MISSING_BANK_REFERENCE_NUMBER, - CAMPAIGN_ENDED, - ACCOUNT_BUDGET_BURN_RATE, - USER_INVITE_PENDING, - USER_INVITE_ACCEPTED, - MANAGER_LINK_PENDING, - ZERO_DAILY_SPENDING_LIMIT, - TV_ACCOUNT_ON_TARGET, - TV_ACCOUNT_BUDGET_ENDING, - TV_ZERO_DAILY_SPENDING_LIMIT, - UNKNOWN - } - - - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AlertPage))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public abstract partial class McmNoStatsPage : Page { - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class AlertPage : McmNoStatsPage { - private Alert[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public Alert[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class AlertQuery { - private ClientSpec clientSpecField; - - private bool clientSpecFieldSpecified; - - private FilterSpec filterSpecField; - - private bool filterSpecFieldSpecified; - - private AlertType[] typesField; - - private AlertSeverity[] severitiesField; - - private TriggerTimeSpec triggerTimeSpecField; - - private bool triggerTimeSpecFieldSpecified; - - private string triggerTimeField; - - private long[] clientCustomerIdsField; - - public ClientSpec clientSpec { - get { return this.clientSpecField; } - set { - this.clientSpecField = value; - this.clientSpecSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool clientSpecSpecified { - get { return this.clientSpecFieldSpecified; } - set { this.clientSpecFieldSpecified = value; } - } - - public FilterSpec filterSpec { - get { return this.filterSpecField; } - set { - this.filterSpecField = value; - this.filterSpecSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool filterSpecSpecified { - get { return this.filterSpecFieldSpecified; } - set { this.filterSpecFieldSpecified = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("types")] - public AlertType[] types { - get { return this.typesField; } - set { this.typesField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("severities")] - public AlertSeverity[] severities { - get { return this.severitiesField; } - set { this.severitiesField = value; } - } - - public TriggerTimeSpec triggerTimeSpec { - get { return this.triggerTimeSpecField; } - set { - this.triggerTimeSpecField = value; - this.triggerTimeSpecSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool triggerTimeSpecSpecified { - get { return this.triggerTimeSpecFieldSpecified; } - set { this.triggerTimeSpecFieldSpecified = value; } - } - - public string triggerTime { - get { return this.triggerTimeField; } - set { this.triggerTimeField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("clientCustomerIds")] - public long[] clientCustomerIds { - get { return this.clientCustomerIdsField; } - set { this.clientCustomerIdsField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum ClientSpec { - ALL, - DIRECT, - ID_LIST, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum FilterSpec { - ALL, - ONLY_SUBMANAGERS, - ONLY_LEAF_CLIENTS, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum TriggerTimeSpec { - ALL_TIME, - CUSTOM_TIME, - LAST_24_HOURS, - LAST_7_DAYS - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class AlertSelector { - private AlertQuery queryField; - - private Paging pagingField; - - public AlertQuery query { - get { return this.queryField; } - set { this.queryField = value; } - } - - public Paging paging { - get { return this.pagingField; } - set { this.pagingField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public partial class AlertError : ApiError { - private AlertErrorReason reasonField; - - private bool reasonFieldSpecified; - - public AlertErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AlertError.Reason", Namespace = "https://adwords.google.com/api/adwords/mcm/v201309")] - public enum AlertErrorReason { - NO_CLIENT_IDS_SELECTED, - INVALID_CLIENT_ID_SELECTED, - INVALID_CLIENT_ID_FORMAT, - UNAVAILABLE, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "BiddingStrategyServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class BiddingStrategyService : AdWordsSoapClient, IBiddingStrategyService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public BiddingStrategyService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201309/BiddingStrategyService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual BiddingStrategyPage get(Selector selector) { - object[] results = this.Invoke("get", new object[] { selector }); - return ((BiddingStrategyPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual BiddingStrategyReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -BiddingStrategyOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((BiddingStrategyReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingStrategyReturnValue : ListReturnValue { - private SharedBiddingStrategy[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public SharedBiddingStrategy[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class SharedBiddingStrategy { - private BiddingScheme biddingSchemeField; - - private long idField; - - private bool idFieldSpecified; - - private string nameField; - - private SharedBiddingStrategyBiddingStrategyStatus statusField; - - private bool statusFieldSpecified; - - private BiddingStrategyType typeField; - - private bool typeFieldSpecified; - - public BiddingScheme biddingScheme { - get { return this.biddingSchemeField; } - set { this.biddingSchemeField = value; } - } - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public SharedBiddingStrategyBiddingStrategyStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public BiddingStrategyType type { - get { return this.typeField; } - set { - this.typeField = value; - this.typeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool typeSpecified { - get { return this.typeFieldSpecified; } - set { this.typeFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SharedBiddingStrategy.BiddingStrategyStatus", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum SharedBiddingStrategyBiddingStrategyStatus { - ACTIVE, - DELETED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingStrategyOperation : Operation { - private SharedBiddingStrategy operandField; - - public SharedBiddingStrategy operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingStrategyPage : Page { - private SharedBiddingStrategy[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public SharedBiddingStrategy[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class BiddingStrategyError : ApiError { - private BiddingStrategyErrorReason reasonField; - - private bool reasonFieldSpecified; - - public BiddingStrategyErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BiddingStrategyError.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum BiddingStrategyErrorReason { - DUPLICATE_NAME, - CANNOT_CHANGE_BIDDING_STRATEGY_TYPE, - CANNOT_DELETE_ASSOCIATED_STRATEGY, - BIDDING_STRATEGY_NOT_SUPPORTED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "BudgetOrderServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class BudgetOrderService : AdWordsSoapClient, IBudgetOrderService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public BudgetOrderService() { - this.Url = "https://adwords.google.com/api/adwords/billing/v201309/BudgetOrderService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/billing/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/billing/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual BudgetOrderPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((BudgetOrderPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/billing/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/billing/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual BillingAccount[] getBillingAccounts() { - object[] results = this.Invoke("getBillingAccounts", new object[0]); - return ((BillingAccount[]) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/billing/v201309", ResponseNamespace = "https://adwords.google.com/api/adwords/billing/v201309", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual BudgetOrderReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -BudgetOrderOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((BudgetOrderReturnValue) (results[0])); - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class BudgetOrderReturnValue : ListReturnValue { - private BudgetOrder[] valueField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public BudgetOrder[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class BudgetOrder { - private string billingAccountIdField; - - private long idField; - - private bool idFieldSpecified; - - private string billingAccountNameField; - - private string poNumberField; - - private string budgetOrderNameField; - - private string primaryBillingIdField; - - private string secondaryBillingIdField; - - private Money spendingLimitField; - - private string startDateTimeField; - - private string endDateTimeField; - - private BudgetOrderRequest lastRequestField; - - public string billingAccountId { - get { return this.billingAccountIdField; } - set { this.billingAccountIdField = value; } - } - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public string billingAccountName { - get { return this.billingAccountNameField; } - set { this.billingAccountNameField = value; } - } - - public string poNumber { - get { return this.poNumberField; } - set { this.poNumberField = value; } - } - - public string budgetOrderName { - get { return this.budgetOrderNameField; } - set { this.budgetOrderNameField = value; } - } - - public string primaryBillingId { - get { return this.primaryBillingIdField; } - set { this.primaryBillingIdField = value; } - } - - public string secondaryBillingId { - get { return this.secondaryBillingIdField; } - set { this.secondaryBillingIdField = value; } - } - - public Money spendingLimit { - get { return this.spendingLimitField; } - set { this.spendingLimitField = value; } - } - - public string startDateTime { - get { return this.startDateTimeField; } - set { this.startDateTimeField = value; } - } - - public string endDateTime { - get { return this.endDateTimeField; } - set { this.endDateTimeField = value; } - } - - public BudgetOrderRequest lastRequest { - get { return this.lastRequestField; } - set { this.lastRequestField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class BudgetOrderRequest { - private BudgetOrderRequestStatus statusField; - - private bool statusFieldSpecified; - - private string dateField; - - private string billingAccountNameField; - - private string poNumberField; - - private string budgetOrderNameField; - - private Money spendingLimitField; - - private string startDateTimeField; - - private string endDateTimeField; - - public BudgetOrderRequestStatus status { - get { return this.statusField; } - set { - this.statusField = value; - this.statusSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool statusSpecified { - get { return this.statusFieldSpecified; } - set { this.statusFieldSpecified = value; } - } - - public string date { - get { return this.dateField; } - set { this.dateField = value; } - } - - public string billingAccountName { - get { return this.billingAccountNameField; } - set { this.billingAccountNameField = value; } - } - - public string poNumber { - get { return this.poNumberField; } - set { this.poNumberField = value; } - } - - public string budgetOrderName { - get { return this.budgetOrderNameField; } - set { this.budgetOrderNameField = value; } - } - - public Money spendingLimit { - get { return this.spendingLimitField; } - set { this.spendingLimitField = value; } - } - - public string startDateTime { - get { return this.startDateTimeField; } - set { this.startDateTimeField = value; } - } - - public string endDateTime { - get { return this.endDateTimeField; } - set { this.endDateTimeField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BudgetOrderRequest.Status", Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public enum BudgetOrderRequestStatus { - UNDER_REVIEW, - APPROVED, - REJECTED, - CANCELLED, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class BudgetOrderOperation : Operation { - private BudgetOrder operandField; - - public BudgetOrder operand { - get { return this.operandField; } - set { this.operandField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class BillingAccount { - private string idField; - - private string nameField; - - private string currencyCodeField; - - private string primaryBillingIdField; - - private string secondaryBillingIdField; - - public string id { - get { return this.idField; } - set { this.idField = value; } - } - - public string name { - get { return this.nameField; } - set { this.nameField = value; } - } - - public string currencyCode { - get { return this.currencyCodeField; } - set { this.currencyCodeField = value; } - } - - public string primaryBillingId { - get { return this.primaryBillingIdField; } - set { this.primaryBillingIdField = value; } - } - - public string secondaryBillingId { - get { return this.secondaryBillingIdField; } - set { this.secondaryBillingIdField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class BudgetOrderPage : Page { - private BudgetOrder[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public BudgetOrder[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class CustomerOrderLineError : ApiError { - private CustomerOrderLineErrorReason reasonField; - - private bool reasonFieldSpecified; - - public CustomerOrderLineErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CustomerOrderLineError.Reason", Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public enum CustomerOrderLineErrorReason { - INVALID_ORDER_LINE_ID, - END_DATE_BEFORE_START_DATE, - NEGATIVE_SPEND, - CREATE_IN_PAST, - ALREADY_STARTED, - ALREADY_SPENT, - FINISHED_IN_THE_PAST, - CANCEL_ACTIVE, - OVERLAP_DATE_RANGE, - COS_CHANGE, - NON_ADWORDS, - START_DATE_AFTER_ACTUAL, - END_DATE_PAST_MAX, - PARENT_IS_SELF, - CANNOT_CANCEL_NEW, - CANNOT_CANCEL_STARTED, - CANNOT_PROMOTE_NON_PENDING_ORDERLINE, - UPDATE_ORDERLINE_WILL_SHIFT_CURRENT, - ORDERLINE_BEING_MODIFIED_IS_NOT_NORMAL_OR_PENDING, - INVALID_STATUS_CHANGE, - MORE_THAN_ONE_OPERATION_NOT_PERMITTED, - INVALID_TIMEZONE_IN_DATE_RANGES, - UNKNOWN - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public partial class BudgetOrderError : ApiError { - private BudgetOrderErrorReason reasonField; - - private bool reasonFieldSpecified; - - public BudgetOrderErrorReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BudgetOrderError.Reason", Namespace = "https://adwords.google.com/api/adwords/billing/v201309")] - public enum BudgetOrderErrorReason { - CUSTOMER_NOT_WHITELISTED_FOR_NEW_BILLING, - BUDGET_APPROVAL_IN_PROGRESS, - SERVICE_UNAVAILABLE, - INVALID_BILLING_ACCOUNT, - GENERIC_BILLING_ERROR, - INVALID_BILLING_ACCOUNT_ID_FORMAT, - INVALID_BUDGET_DATE_RANGE, - INCOMPATIBLE_CURRENCY, - BUDGET_UPDATE_DENIED, - BUDGET_ALREDY_STARTED, - BUDGET_ALREADY_ENDED, - INVALID_CONSTRAINT, - INVALID_BID_TOO_LARGE, - NO_SUCH_BUDGET_FOUND, - INVALID_BUDGET_ALREADY_SPENT, - INVALID_TIMEZONE_IN_DATE, - ACCOUNT_BUDGET_ID_SET_IN_ADD, - MORE_THAN_ONE_OPERATIONS, - MCC_HIERARCHY_SIZE_TOO_LARGE, - INVALID_MCC_HIERARCHY, - UNKNOWN - } - public interface IBudgetService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - BudgetPage get(Selector selector); - BudgetReturnValue mutate(BudgetOperation[] operations); - } - public interface ICampaignAdExtensionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - CampaignAdExtensionPage get(Selector serviceSelector); - CampaignAdExtensionReturnValue mutate(CampaignAdExtensionOperation[] operations); - } - public interface ICampaignCriterionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - CampaignCriterionPage get(Selector serviceSelector); - CampaignCriterionReturnValue mutate(CampaignCriterionOperation[] operations); - CampaignCriterionPage query(string query1); - } - public interface ICampaignService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - CampaignPage get(Selector serviceSelector); - CampaignReturnValue mutate(CampaignOperation[] operations); - CampaignPage query(string query1); - } - public interface ICampaignFeedService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - CampaignFeedPage get(Selector selector); - CampaignFeedReturnValue mutate(CampaignFeedOperation[] operations); - } - public interface ICampaignSharedSetService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - CampaignSharedSetPage get(Selector selector); - CampaignSharedSetReturnValue mutate(CampaignSharedSetOperation[] operations); - } - public interface IConstantDataService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AgeRange[] getAgeRangeCriterion(); - Carrier[] getCarrierCriterion(); - Gender[] getGenderCriterion(); - Language[] getLanguageCriterion(); - MobileDevice[] getMobileDeviceCriterion(); - OperatingSystemVersion[] getOperatingSystemVersionCriterion(); - CriterionUserInterest[] getUserInterestCriterion(); - Vertical[] getVerticalCriterion(); - } - public interface IConversionTrackerService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - ConversionTrackerPage get(Selector serviceSelector); - ConversionTrackerReturnValue mutate(ConversionTrackerOperation[] operations); - } - public interface ICustomerService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - Customer get(); - } - public interface ICustomerSyncService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - CustomerChangeData get(CustomerSyncSelector selector); - } - public interface IAdGroupAdService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdGroupAdPage get(Selector serviceSelector); - AdGroupAdReturnValue mutate(AdGroupAdOperation[] operations); - AdGroupAdPage query(string query1); - } - public interface IDataService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdGroupBidLandscapePage getAdGroupBidLandscape(Selector serviceSelector); - CriterionBidLandscapePage getCriterionBidLandscape(Selector serviceSelector); - } - public interface IExperimentService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - ExperimentPage get(Selector serviceSelector); - ExperimentReturnValue mutate(ExperimentOperation[] operations); - } - public interface IFeedService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - FeedPage get(Selector selector); - FeedReturnValue mutate(FeedOperation[] operations); - } - public interface IFeedItemService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - FeedItemPage get(Selector selector); - FeedItemReturnValue mutate(FeedItemOperation[] operations); - } - public interface IFeedMappingService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - FeedMappingPage get(Selector selector); - FeedMappingReturnValue mutate(FeedMappingOperation[] operations); - } - public interface IGeoLocationService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - GeoLocation[] get(GeoLocationSelector selector); - } - public interface ILocationCriterionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - LocationCriterion[] get(Selector selector); - } - public interface IManagedCustomerService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - ManagedCustomerPage get(Selector serviceSelector); - PendingInvitation[] getPendingInvitations(PendingInvitationSelector selector); - ManagedCustomerReturnValue mutate(ManagedCustomerOperation[] operations); - ManagedCustomerLink[] mutateLink(LinkOperation[] operations); - ManagedCustomerLink[] mutateManager(MoveOperation[] operations); - } - public interface IMediaService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - MediaPage get(Selector serviceSelector); - Media[] upload(Media[] media); - } - public interface IMutateJobService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - Job[] get(JobSelector selector); - JobResult getResult(JobSelector selector); - SimpleMutateJob mutate(Operation[] operations, BulkMutateJobPolicy policy); - } - public interface IAdGroupFeedService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdGroupFeedPage get(Selector selector); - AdGroupFeedReturnValue mutate(AdGroupFeedOperation[] operations); - } - public interface IOfflineConversionFeedService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - OfflineConversionFeedReturnValue mutate(OfflineConversionFeedOperation[] operations); - } - public interface IReportDefinitionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - ReportDefinitionField[] getReportFields(ReportDefinitionReportType reportType); - } - public interface ISharedCriterionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - SharedCriterionPage get(Selector selector); - SharedCriterionReturnValue mutate(SharedCriterionOperation[] operations); - } - public interface ISharedSetService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - SharedSetPage get(Selector selector); - SharedSetReturnValue mutate(SharedSetOperation[] operations); - } - public interface ITargetingIdeaService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - TargetingIdeaPage get(TargetingIdeaSelector selector); - TargetingIdeaPage getBulkKeywordIdeas(TargetingIdeaSelector selector); - } - public interface ITrafficEstimatorService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - TrafficEstimatorResult get(TrafficEstimatorSelector selector); - } - public interface IAdwordsUserListService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - UserListPage get(Selector serviceSelector); - UserListReturnValue mutate(UserListOperation[] operations); - } - public interface IVideoAdService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - VideoAdPage get(VideoAdSelector selector); - VideoAdReturnValue mutate(VideoAdOperation[] operations); - } - public interface IVideoCampaignCriterionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - VideoCampaignCriterionPage get(VideoCampaignCriterionSelector selector); - VideoCampaignCriterionReturnValue mutate(VideoCampaignCriterionOperation[] operations); - } - public interface IVideoCampaignService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - VideoCampaignPage get(VideoCampaignSelector selector); - VideoCampaignReturnValue mutate(VideoCampaignOperation[] operations); - } - public interface IAdGroupCriterionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdGroupCriterionPage get(Selector serviceSelector); - AdGroupCriterionReturnValue mutate(AdGroupCriterionOperation[] operations); - AdGroupCriterionPage query(string query1); - } - public interface IVideoService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - VideoPage get(VideoSelector selector); - VideoReturnValue mutateCallToAction(VideoCallToActionOperation[] operations); - VideoSearchPage search(VideoSearchSelector selector); - } - public interface IVideoTargetingGroupCriterionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - TargetingGroupCriterionPage get(TargetingGroupCriterionSelector selector); - TargetingGroupCriterionReturnValue mutate(TargetingGroupCriterionOperation[] operations); - } - public interface IVideoTargetingGroupService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - TargetingGroupPage get(TargetingGroupSelector selector); - TargetingGroupReturnValue mutate(TargetingGroupOperation[] operations); - } - public interface IExpressBusinessService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - ExpressBusinessPage get(Selector selector); - ExpressBusiness[] mutate(ExpressBusinessOperation[] operations); - } - public interface IPromotionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - PromotionPage get(Selector selector); - Promotion[] mutate(PromotionOperation[] operations); - } - public interface IProductService { - string text { - get; - set; - } - string locale { - get; - set; - } - } - public interface IProductServiceService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - ProductServicePage get(Selector selector); - } - public interface IAdGroupService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdGroupPage get(Selector serviceSelector); - AdGroupReturnValue mutate(AdGroupOperation[] operations); - AdGroupPage query(string query1); - } - public interface IAdGroupBidModifierService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdGroupBidModifierPage get(Selector selector); - AdGroupBidModifierReturnValue mutate(AdGroupBidModifierOperation[] operations); - } - public interface IAdParamService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdParamPage get(Selector serviceSelector); - AdParam[] mutate(AdParamOperation[] operations); - } - public interface IAlertService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AlertPage get(AlertSelector selector); - } - public interface IBiddingStrategyService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - BiddingStrategyPage get(Selector selector); - BiddingStrategyReturnValue mutate(BiddingStrategyOperation[] operations); - } - public interface IBudgetOrderService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - BudgetOrderPage get(Selector serviceSelector); - BillingAccount[] getBillingAccounts(); - BudgetOrderReturnValue mutate(BudgetOrderOperation[] operations); - } -} diff --git a/src/AdWords/v201309/AdWordsServiceV201309.cs b/src/AdWords/v201309/AdWordsServiceV201309.cs deleted file mode 100644 index 98eb1b10e9a..00000000000 --- a/src/AdWords/v201309/AdWordsServiceV201309.cs +++ /dev/null @@ -1,410 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: thagikura@gmail.com (Takeshi Hagikura) - -using Google.Api.Ads.Common.Lib; - -using System; - -namespace Google.Api.Ads.AdWords.Lib { - - /// - /// Lists all the services available through this library. - /// - public partial class AdWordsService : AdsService { - - /// - /// All the services available in v201309. - /// - public class v201309 { - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AdGroupAdService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AdGroupBidModifierService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AdGroupCriterionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AdGroupFeedService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AdGroupService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AdParamService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AdwordsUserListService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature AlertService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature BiddingStrategyService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature BudgetOrderService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature BudgetService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CampaignAdExtensionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CampaignCriterionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CampaignFeedService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CampaignService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CampaignSharedSetService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ConstantDataService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ConversionTrackerService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CustomerService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature CustomerSyncService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature DataService; - - public static readonly ServiceSignature ExperimentService; - - /// - /// Factory type for v201309 services. - /// - public static readonly Type factoryType = typeof(AdWordsServiceFactory); - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature FeedItemService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature FeedMappingService; - - /// - /// See - /// this page for details. - /// - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature FeedService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature GeoLocationService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature LocationCriterionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ManagedCustomerService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature MediaService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature MutateJobService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature OfflineConversionFeedService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ReportDefinitionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature SharedCriterionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature SharedSetService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature TargetingIdeaService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature TrafficEstimatorService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature VideoAdService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature VideoCampaignCriterionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature VideoCampaignService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature VideoService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature VideoTargetingGroupCriterionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature VideoTargetingGroupService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ExpressBusinessService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature PromotionService; - - /// - /// See - /// this page for details. - /// - public static readonly ServiceSignature ProductServiceService; - - /// - /// Static constructor to initialize the service constants. - /// - static v201309() { - OfflineConversionFeedService = - AdWordsService.MakeServiceSignature("v201309", "cm", "OfflineConversionFeedService"); - AdGroupAdService = - AdWordsService.MakeServiceSignature("v201309", "cm", "AdGroupAdService"); - AdGroupCriterionService = - AdWordsService.MakeServiceSignature("v201309", "cm", "AdGroupCriterionService"); - AdGroupService = - AdWordsService.MakeServiceSignature("v201309", "cm", "AdGroupService"); - AdGroupBidModifierService = - AdWordsService.MakeServiceSignature("v201309", "cm", "AdGroupBidModifierService"); - AdGroupFeedService = - AdWordsService.MakeServiceSignature("v201309", "cm", "AdGroupFeedService"); - AdParamService = - AdWordsService.MakeServiceSignature("v201309", "cm", "AdParamService"); - AdwordsUserListService = - AdWordsService.MakeServiceSignature("v201309", "rm", "AdwordsUserListService"); - AlertService = - AdWordsService.MakeServiceSignature("v201309", "mcm", "AlertService"); - BiddingStrategyService = - AdWordsService.MakeServiceSignature("v201309", "cm", "BiddingStrategyService"); - BudgetService = - AdWordsService.MakeServiceSignature("v201309", "cm", "BudgetService"); - BudgetOrderService = - AdWordsService.MakeServiceSignature("v201309", "billing", "BudgetOrderService"); - CampaignAdExtensionService = - AdWordsService.MakeServiceSignature("v201309", "cm", "CampaignAdExtensionService"); - CampaignCriterionService = - AdWordsService.MakeServiceSignature("v201309", "cm", "CampaignCriterionService"); - CampaignService = - AdWordsService.MakeServiceSignature("v201309", "cm", "CampaignService"); - CampaignFeedService = - AdWordsService.MakeServiceSignature("v201309", "cm", "CampaignFeedService"); - CampaignSharedSetService = - AdWordsService.MakeServiceSignature("v201309", "cm", "CampaignSharedSetService"); - ConstantDataService = - AdWordsService.MakeServiceSignature("v201309", "cm", "ConstantDataService"); - ConversionTrackerService = - AdWordsService.MakeServiceSignature("v201309", "cm", "ConversionTrackerService"); - CustomerService = - AdWordsService.MakeServiceSignature("v201309", "mcm", "CustomerService"); - CustomerSyncService = - AdWordsService.MakeServiceSignature("v201309", "ch", "CustomerSyncService"); - DataService = - AdWordsService.MakeServiceSignature("v201309", "cm", "DataService"); - ExperimentService = - AdWordsService.MakeServiceSignature("v201309", "cm", "ExperimentService"); - FeedService = - AdWordsService.MakeServiceSignature("v201309", "cm", "FeedService"); - FeedItemService = - AdWordsService.MakeServiceSignature("v201309", "cm", "FeedItemService"); - FeedMappingService = - AdWordsService.MakeServiceSignature("v201309", "cm", "FeedMappingService"); - GeoLocationService = - AdWordsService.MakeServiceSignature("v201309", "cm", "GeoLocationService"); - LocationCriterionService = - AdWordsService.MakeServiceSignature("v201309", "cm", "LocationCriterionService"); - ManagedCustomerService = - AdWordsService.MakeServiceSignature("v201309", "mcm", "ManagedCustomerService"); - MediaService = - AdWordsService.MakeServiceSignature("v201309", "cm", "MediaService"); - MutateJobService = - AdWordsService.MakeServiceSignature("v201309", "cm", "MutateJobService"); - ReportDefinitionService = - AdWordsService.MakeServiceSignature("v201309", "cm", "ReportDefinitionService"); - SharedCriterionService = - AdWordsService.MakeServiceSignature("v201309", "cm", "SharedCriterionService"); - SharedSetService = - AdWordsService.MakeServiceSignature("v201309", "cm", "SharedSetService"); - TargetingIdeaService = - AdWordsService.MakeServiceSignature("v201309", "o", "TargetingIdeaService"); - TrafficEstimatorService = - AdWordsService.MakeServiceSignature("v201309", "o", "TrafficEstimatorService"); - - VideoAdService = - AdWordsService.MakeServiceSignature("v201309", "video", "VideoAdService"); - VideoCampaignCriterionService = - AdWordsService.MakeServiceSignature("v201309", "video", - "VideoCampaignCriterionService"); - VideoCampaignService = - AdWordsService.MakeServiceSignature("v201309", "video", "VideoCampaignService"); - VideoService = - AdWordsService.MakeServiceSignature("v201309", "video", "VideoService"); - VideoTargetingGroupCriterionService = - AdWordsService.MakeServiceSignature("v201309", "video", - "VideoTargetingGroupCriterionService"); - VideoTargetingGroupService = - AdWordsService.MakeServiceSignature("v201309", "video", "VideoTargetingGroupService"); - - ExpressBusinessService = - AdWordsService.MakeServiceSignature("v201309", "express", - "ExpressBusinessService"); - PromotionService = - AdWordsService.MakeServiceSignature("v201309", "express", "PromotionService"); - ProductServiceService = - AdWordsService.MakeServiceSignature("v201309", "express", "ProductServiceService"); - } - } - } -} \ No newline at end of file diff --git a/src/AdWords/v201309/ReportDefinition.cs b/src/AdWords/v201309/ReportDefinition.cs deleted file mode 100644 index 001106878f4..00000000000 --- a/src/AdWords/v201309/ReportDefinition.cs +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -#pragma warning disable 1591 - -namespace Google.Api.Ads.AdWords.v201309 { - using Google.Api.Ads.AdWords.Headers; - using Google.Api.Ads.AdWords.Lib; - - using System.Web.Services.Protocols; - using System; - using System.ComponentModel; - using System.Diagnostics; - using System.Web.Services; - using System.Xml.Serialization; - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public partial class ReportDefinition { - private long idField; - - private bool idFieldSpecified; - - private Selector selectorField; - - private string reportNameField; - - private ReportDefinitionReportType reportTypeField; - - private bool reportTypeFieldSpecified; - - private bool hasAttachmentField; - - private bool hasAttachmentFieldSpecified; - - private ReportDefinitionDateRangeType dateRangeTypeField; - - private bool dateRangeTypeFieldSpecified; - - private DownloadFormat downloadFormatField; - - private bool downloadFormatFieldSpecified; - - private string creationTimeField; - - private bool includeZeroImpressionsField; - - private bool includeZeroImpressionsFieldSpecified; - - public long id { - get { return this.idField; } - set { - this.idField = value; - this.idSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool idSpecified { - get { return this.idFieldSpecified; } - set { this.idFieldSpecified = value; } - } - - public Selector selector { - get { return this.selectorField; } - set { this.selectorField = value; } - } - - public string reportName { - get { return this.reportNameField; } - set { this.reportNameField = value; } - } - - public ReportDefinitionReportType reportType { - get { return this.reportTypeField; } - set { - this.reportTypeField = value; - this.reportTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reportTypeSpecified { - get { return this.reportTypeFieldSpecified; } - set { this.reportTypeFieldSpecified = value; } - } - - public bool hasAttachment { - get { return this.hasAttachmentField; } - set { - this.hasAttachmentField = value; - this.hasAttachmentSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool hasAttachmentSpecified { - get { return this.hasAttachmentFieldSpecified; } - set { this.hasAttachmentFieldSpecified = value; } - } - - public ReportDefinitionDateRangeType dateRangeType { - get { return this.dateRangeTypeField; } - set { - this.dateRangeTypeField = value; - this.dateRangeTypeSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool dateRangeTypeSpecified { - get { return this.dateRangeTypeFieldSpecified; } - set { this.dateRangeTypeFieldSpecified = value; } - } - - public DownloadFormat downloadFormat { - get { return this.downloadFormatField; } - set { - this.downloadFormatField = value; - this.downloadFormatSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool downloadFormatSpecified { - get { return this.downloadFormatFieldSpecified; } - set { this.downloadFormatFieldSpecified = value; } - } - - public string creationTime { - get { return this.creationTimeField; } - set { this.creationTimeField = value; } - } - - public bool includeZeroImpressions { - get { return this.includeZeroImpressionsField; } - set { - this.includeZeroImpressionsField = value; - this.includeZeroImpressionsSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool includeZeroImpressionsSpecified { - get { return this.includeZeroImpressionsFieldSpecified; } - set { this.includeZeroImpressionsFieldSpecified = value; } - } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportDefinition.DateRangeType", Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum ReportDefinitionDateRangeType { - TODAY, - YESTERDAY, - LAST_7_DAYS, - LAST_WEEK, - LAST_BUSINESS_WEEK, - THIS_MONTH, - LAST_MONTH, - ALL_TIME, - CUSTOM_DATE, - LAST_14_DAYS, - LAST_30_DAYS, - THIS_WEEK_SUN_TODAY, - THIS_WEEK_MON_TODAY, - LAST_WEEK_SUN_SAT - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201309")] - public enum DownloadFormat { - CSVFOREXCEL, - CSV, - TSV, - XML, - GZIPPED_CSV, - GZIPPED_XML - } -} diff --git a/src/AdWords/v201406/AdWordsApi.cs b/src/AdWords/v201406/AdWordsApi.cs index 388035134f9..775dbecafba 100644 --- a/src/AdWords/v201406/AdWordsApi.cs +++ b/src/AdWords/v201406/AdWordsApi.cs @@ -147,6 +147,7 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(SettingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(QuotaError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ForwardCompatibilityError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityAccessDenied))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingTransitionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddingErrors))] @@ -162,7 +163,6 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(FunctionParsingError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExperimentError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdCountLimitExceeded))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityAccessDenied))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupAdError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(DataError))] @@ -191,6 +191,23 @@ public ApiError[] errors { [System.Xml.Serialization.XmlIncludeAttribute(typeof(TrafficEstimatorError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingIdeaError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TimeSeriesError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SortingError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SegmentationError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PersistenceError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(EntityNotFoundError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdsApiError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AccessError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoBudgetError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoBiddingError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NetworkError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoServiceError))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressBusinessError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PromotionError))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetError))] @@ -256,9 +273,15 @@ public string ApiErrorType { [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(OfflineConversionFeedReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionLabelReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedCriterionReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedSetReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LabelReturnValue))] @@ -597,6 +620,13 @@ public enum BudgetBudgetStatus { [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedOperation))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(OfflineConversionFeedOperation))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListOperation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdOperation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionOperation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignOperation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoOperation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCallToActionOperation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionOperation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupOperation))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressBusinessOperation))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PromotionOperation))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetOperation))] @@ -683,12 +713,21 @@ public Budget operand { [System.Xml.Serialization.XmlIncludeAttribute(typeof(ManagedCustomerPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupFeedPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserListPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoAdPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignReportPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignCriterionPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCampaignPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoSearchPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupReportPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupCriterionPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionPage))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(TargetingGroupPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressNoStatsPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ExpressBusinessPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(PromotionPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ProductServicePage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(CampaignSharedSetPage))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdGroupCriterionPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedCriterionPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(SharedSetPage))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(LabelPage))] @@ -6903,6 +6942,40 @@ public enum ForwardCompatibilityErrorReason { UNKNOWN } + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] + public partial class EntityAccessDenied : ApiError { + private EntityAccessDeniedReason reasonField; + + private bool reasonFieldSpecified; + + public EntityAccessDeniedReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityAccessDenied.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] + public enum EntityAccessDeniedReason { + READ_ACCESS_DENIED, + WRITE_ACCESS_DENIED + } + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] @@ -11366,40 +11439,6 @@ public enum ExperimentErrorReason { public partial class AdGroupAdCountLimitExceeded : EntityCountLimitExceeded { } - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] - public partial class EntityAccessDenied : ApiError { - private EntityAccessDeniedReason reasonField; - - private bool reasonFieldSpecified; - - public EntityAccessDeniedReason reason { - get { return this.reasonField; } - set { - this.reasonField = value; - this.reasonSpecified = true; - } - } - - [System.Xml.Serialization.XmlIgnoreAttribute()] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool reasonSpecified { - get { return this.reasonFieldSpecified; } - set { this.reasonFieldSpecified = value; } - } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityAccessDenied.Reason", Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] - public enum EntityAccessDeniedReason { - READ_ACCESS_DENIED, - WRITE_ACCESS_DENIED - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] @@ -20883,17 +20922,19 @@ public enum UserListErrorReason { [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ExpressBusinessServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/express/v201406")] + [System.Web.Services.WebServiceBindingAttribute(Name = "VideoAdServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class ExpressBusinessService : AdWordsSoapClient, IExpressBusinessService { + public partial class VideoAdService : AdWordsSoapClient, IVideoAdService { private RequestHeader requestHeaderField; private ResponseHeader responseHeaderField; - public ExpressBusinessService() { - this.Url = "https://adwords.google.com/api/adwords/express/v201406/ExpressBusinessService"; + public VideoAdService() { + this.Url = "https://adwords.google.com/api/adwords/video/v201406/VideoAdService"; } public virtual RequestHeader RequestHeader { @@ -20908,21 +20949,21 @@ public virtual ResponseHeader ResponseHeader { [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ExpressBusinessPage get(Selector selector) { + public virtual VideoAdPage get(VideoAdSelector selector) { object[] results = this.Invoke("get", new object[] { selector }); - return ((ExpressBusinessPage) (results[0])); + return ((VideoAdPage) (results[0])); } [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual ExpressBusiness[] mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -ExpressBusinessOperation[] operations) { + public virtual VideoAdReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] +VideoAdOperation[] operations) { object[] results = this.Invoke("mutate", new object[] { operations }); - return ((ExpressBusiness[]) (results[0])); + return ((VideoAdReturnValue) (results[0])); } } @@ -20930,13 +20971,14 @@ public virtual ExpressBusiness[] mutate([System.Xml.Serialization.XmlElementAttr [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201406")] - public partial class ExpressBusinessOperation : Operation { - private ExpressBusiness operandField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdReturnValue : ListReturnValue { + private VideoAd[] valueField; - public ExpressBusiness operand { - get { return this.operandField; } - set { this.operandField = value; } + [System.Xml.Serialization.XmlElementAttribute("value")] + public VideoAd[] value { + get { return this.valueField; } + set { this.valueField = value; } } } @@ -20944,25 +20986,63 @@ public ExpressBusiness operand { [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201406")] - public partial class ExpressBusiness { + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAd { private long idField; private bool idFieldSpecified; private string nameField; - private ExpressBusinessStatus statusField; + private string videoIdField; + + private long campaignIdField; + + private bool campaignIdFieldSpecified; + + private TargetingGroupAssociation[] targetingGroupAssociationsField; + + private VideoEntityStats statsField; + + private VideoEntityStats[] segmentedStatsField; + + private ServingInfo issuesField; + + private string campaignNameField; + + private string headlineField; + + private string description1Field; + + private string description2Field; + + private VideoImage imageField; + + private VideoAdYouTubeDestinationPage youTubeDestinationPageField; + + private bool youTubeDestinationPageFieldSpecified; + + private string destinationUrlField; + + private string displayUrlField; + + private VideoImage companionBannerField; + + private bool showVideoAnnotationsField; + + private bool showVideoAnnotationsFieldSpecified; + + private VideoAdStatus statusField; private bool statusFieldSpecified; - private Address addressField; + private ApprovalContext_VideoAd_ApprovalStatusMapEntry[] approvalStatusesField; - private GeoPoint geoPointField; + private ApprovalContext_VideoAd_ApprovalLimitMapEntry[] approvalLimitsField; - private PhoneNumber phoneNumberField; + private ScopedDisapprovalReason[] disapprovalReasonsField; - private string websiteField; + private VideoAdDisplayFormat_VideoAdStatusMapEntry[] statusByFormatField; public long id { get { return this.idField; } @@ -20984,7 +21064,119 @@ public string name { set { this.nameField = value; } } - public ExpressBusinessStatus status { + public string videoId { + get { return this.videoIdField; } + set { this.videoIdField = value; } + } + + public long campaignId { + get { return this.campaignIdField; } + set { + this.campaignIdField = value; + this.campaignIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool campaignIdSpecified { + get { return this.campaignIdFieldSpecified; } + set { this.campaignIdFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("targetingGroupAssociations")] + public TargetingGroupAssociation[] targetingGroupAssociations { + get { return this.targetingGroupAssociationsField; } + set { this.targetingGroupAssociationsField = value; } + } + + public VideoEntityStats stats { + get { return this.statsField; } + set { this.statsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] + public VideoEntityStats[] segmentedStats { + get { return this.segmentedStatsField; } + set { this.segmentedStatsField = value; } + } + + public ServingInfo issues { + get { return this.issuesField; } + set { this.issuesField = value; } + } + + public string campaignName { + get { return this.campaignNameField; } + set { this.campaignNameField = value; } + } + + public string headline { + get { return this.headlineField; } + set { this.headlineField = value; } + } + + public string description1 { + get { return this.description1Field; } + set { this.description1Field = value; } + } + + public string description2 { + get { return this.description2Field; } + set { this.description2Field = value; } + } + + public VideoImage image { + get { return this.imageField; } + set { this.imageField = value; } + } + + public VideoAdYouTubeDestinationPage youTubeDestinationPage { + get { return this.youTubeDestinationPageField; } + set { + this.youTubeDestinationPageField = value; + this.youTubeDestinationPageSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool youTubeDestinationPageSpecified { + get { return this.youTubeDestinationPageFieldSpecified; } + set { this.youTubeDestinationPageFieldSpecified = value; } + } + + public string destinationUrl { + get { return this.destinationUrlField; } + set { this.destinationUrlField = value; } + } + + public string displayUrl { + get { return this.displayUrlField; } + set { this.displayUrlField = value; } + } + + public VideoImage companionBanner { + get { return this.companionBannerField; } + set { this.companionBannerField = value; } + } + + public bool showVideoAnnotations { + get { return this.showVideoAnnotationsField; } + set { + this.showVideoAnnotationsField = value; + this.showVideoAnnotationsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool showVideoAnnotationsSpecified { + get { return this.showVideoAnnotationsFieldSpecified; } + set { this.showVideoAnnotationsFieldSpecified = value; } + } + + public VideoAdStatus status { get { return this.statusField; } set { this.statusField = value; @@ -20999,67 +21191,6883 @@ public bool statusSpecified { set { this.statusFieldSpecified = value; } } - public Address address { - get { return this.addressField; } - set { this.addressField = value; } + [System.Xml.Serialization.XmlElementAttribute("approvalStatuses")] + public ApprovalContext_VideoAd_ApprovalStatusMapEntry[] approvalStatuses { + get { return this.approvalStatusesField; } + set { this.approvalStatusesField = value; } } - public GeoPoint geoPoint { - get { return this.geoPointField; } - set { this.geoPointField = value; } + [System.Xml.Serialization.XmlElementAttribute("approvalLimits")] + public ApprovalContext_VideoAd_ApprovalLimitMapEntry[] approvalLimits { + get { return this.approvalLimitsField; } + set { this.approvalLimitsField = value; } } - public PhoneNumber phoneNumber { - get { return this.phoneNumberField; } - set { this.phoneNumberField = value; } + [System.Xml.Serialization.XmlElementAttribute("disapprovalReasons")] + public ScopedDisapprovalReason[] disapprovalReasons { + get { return this.disapprovalReasonsField; } + set { this.disapprovalReasonsField = value; } } - public string website { - get { return this.websiteField; } - set { this.websiteField = value; } + [System.Xml.Serialization.XmlElementAttribute("statusByFormat")] + public VideoAdDisplayFormat_VideoAdStatusMapEntry[] statusByFormat { + get { return this.statusByFormatField; } + set { this.statusByFormatField = value; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExpressBusiness.Status", Namespace = "https://adwords.google.com/api/adwords/express/v201406")] - public enum ExpressBusinessStatus { - ENABLED, - REMOVED - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201406")] - public partial class PhoneNumber { - private ExpressRegionCode regionCodeField; + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupAssociation { + private long targetingGroupIdField; - private bool regionCodeFieldSpecified; + private bool targetingGroupIdFieldSpecified; - private string numberField; + private TargetingGroupAssociationStatus statusField; - public ExpressRegionCode regionCode { - get { return this.regionCodeField; } + private bool statusFieldSpecified; + + public long targetingGroupId { + get { return this.targetingGroupIdField; } set { - this.regionCodeField = value; - this.regionCodeSpecified = true; + this.targetingGroupIdField = value; + this.targetingGroupIdSpecified = true; } } [System.Xml.Serialization.XmlIgnoreAttribute()] [EditorBrowsable(EditorBrowsableState.Never)] - public bool regionCodeSpecified { - get { return this.regionCodeFieldSpecified; } - set { this.regionCodeFieldSpecified = value; } + public bool targetingGroupIdSpecified { + get { return this.targetingGroupIdFieldSpecified; } + set { this.targetingGroupIdFieldSpecified = value; } } - public string number { - get { return this.numberField; } - set { this.numberField = value; } + public TargetingGroupAssociationStatus status { + get { return this.statusField; } + set { + this.statusField = value; + this.statusSpecified = true; + } } - } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { return this.statusFieldSpecified; } + set { this.statusFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupAssociation.Status", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingGroupAssociationStatus { + ACTIVE, + PAUSED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoEntityStats { + private VideoEntityStatsSummaryType summaryTypeField; + + private bool summaryTypeFieldSpecified; + + private SegmentKey segmentKeyField; + + private string startDateField; + + private string endDateField; + + private long viewsField; + + private bool viewsFieldSpecified; + + private Money costField; + + private Money averageCpcField; + + private Money averageCpvField; + + private Money averageCpmField; + + private Integer_LongMapEntry[] impressionReachFrequenciesField; + + private double averageImpressionFrequencyField; + + private bool averageImpressionFrequencyFieldSpecified; + + private double averageViewFrequencyField; + + private bool averageViewFrequencyFieldSpecified; + + private long uniqueViewsField; + + private bool uniqueViewsFieldSpecified; + + private long thumbnailImpressionsField; + + private bool thumbnailImpressionsFieldSpecified; + + private long videoImpressionsField; + + private bool videoImpressionsFieldSpecified; + + private long totalImpressionsField; + + private bool totalImpressionsFieldSpecified; + + private long websiteClicksField; + + private bool websiteClicksFieldSpecified; + + private long totalClicksField; + + private bool totalClicksFieldSpecified; + + private double totalCtrField; + + private bool totalCtrFieldSpecified; + + private Money totalCostPerClickField; + + private long conversionsField; + + private bool conversionsFieldSpecified; + + private Money costPerConversionField; + + private double conversionRateField; + + private bool conversionRateFieldSpecified; + + private long viewThroughConversionsField; + + private bool viewThroughConversionsFieldSpecified; + + private long conversionsManyPerViewField; + + private bool conversionsManyPerViewFieldSpecified; + + private Money costPerConversionManyPerViewField; + + private double conversionRateManyPerViewField; + + private bool conversionRateManyPerViewFieldSpecified; + + private double totalConversionValueField; + + private bool totalConversionValueFieldSpecified; + + private double valuePerConvField; + + private bool valuePerConvFieldSpecified; + + private double valuePerConvManyPerViewField; + + private bool valuePerConvManyPerViewFieldSpecified; + + private long followOnViewsField; + + private bool followOnViewsFieldSpecified; + + private double followOnViewRateField; + + private bool followOnViewRateFieldSpecified; + + private long followOnSubscribesField; + + private bool followOnSubscribesFieldSpecified; + + private double followOnSubscribeRateField; + + private bool followOnSubscribeRateFieldSpecified; + + private long followOnLikesField; + + private bool followOnLikesFieldSpecified; + + private long followOnCommentsField; + + private bool followOnCommentsFieldSpecified; + + private long followOnSharesField; + + private bool followOnSharesFieldSpecified; + + private long followOnAddToPlaylistField; + + private bool followOnAddToPlaylistFieldSpecified; + + private double ctrField; + + private bool ctrFieldSpecified; + + private double vtrField; + + private bool vtrFieldSpecified; + + private long videoStartsField; + + private bool videoStartsFieldSpecified; + + private long quartile25sField; + + private bool quartile25sFieldSpecified; + + private long quartile50sField; + + private bool quartile50sFieldSpecified; + + private long quartile75sField; + + private bool quartile75sFieldSpecified; + + private long quartile100sField; + + private bool quartile100sFieldSpecified; + + private double quartile25PercentsField; + + private bool quartile25PercentsFieldSpecified; + + private double quartile50PercentsField; + + private bool quartile50PercentsFieldSpecified; + + private double quartile75PercentsField; + + private bool quartile75PercentsFieldSpecified; + + private double quartile100PercentsField; + + private bool quartile100PercentsFieldSpecified; + + private double percentServedField; + + private bool percentServedFieldSpecified; + + private long eligibleFollowOnClicksField; + + private bool eligibleFollowOnClicksFieldSpecified; + + private double engagementScoreField; + + private bool engagementScoreFieldSpecified; + + private double retentionScoreField; + + private bool retentionScoreFieldSpecified; + + private long totalViewsField; + + private bool totalViewsFieldSpecified; + + private long ctaImpressionsField; + + private bool ctaImpressionsFieldSpecified; + + private long ctaClicksField; + + private bool ctaClicksFieldSpecified; + + private double ctaCtrField; + + private bool ctaCtrFieldSpecified; + + public VideoEntityStatsSummaryType summaryType { + get { return this.summaryTypeField; } + set { + this.summaryTypeField = value; + this.summaryTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool summaryTypeSpecified { + get { return this.summaryTypeFieldSpecified; } + set { this.summaryTypeFieldSpecified = value; } + } + + public SegmentKey segmentKey { + get { return this.segmentKeyField; } + set { this.segmentKeyField = value; } + } + + public string startDate { + get { return this.startDateField; } + set { this.startDateField = value; } + } + + public string endDate { + get { return this.endDateField; } + set { this.endDateField = value; } + } + + public long views { + get { return this.viewsField; } + set { + this.viewsField = value; + this.viewsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool viewsSpecified { + get { return this.viewsFieldSpecified; } + set { this.viewsFieldSpecified = value; } + } + + public Money cost { + get { return this.costField; } + set { this.costField = value; } + } + + public Money averageCpc { + get { return this.averageCpcField; } + set { this.averageCpcField = value; } + } + + public Money averageCpv { + get { return this.averageCpvField; } + set { this.averageCpvField = value; } + } + + public Money averageCpm { + get { return this.averageCpmField; } + set { this.averageCpmField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("impressionReachFrequencies")] + public Integer_LongMapEntry[] impressionReachFrequencies { + get { return this.impressionReachFrequenciesField; } + set { this.impressionReachFrequenciesField = value; } + } + + public double averageImpressionFrequency { + get { return this.averageImpressionFrequencyField; } + set { + this.averageImpressionFrequencyField = value; + this.averageImpressionFrequencySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool averageImpressionFrequencySpecified { + get { return this.averageImpressionFrequencyFieldSpecified; } + set { this.averageImpressionFrequencyFieldSpecified = value; } + } + + public double averageViewFrequency { + get { return this.averageViewFrequencyField; } + set { + this.averageViewFrequencyField = value; + this.averageViewFrequencySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool averageViewFrequencySpecified { + get { return this.averageViewFrequencyFieldSpecified; } + set { this.averageViewFrequencyFieldSpecified = value; } + } + + public long uniqueViews { + get { return this.uniqueViewsField; } + set { + this.uniqueViewsField = value; + this.uniqueViewsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool uniqueViewsSpecified { + get { return this.uniqueViewsFieldSpecified; } + set { this.uniqueViewsFieldSpecified = value; } + } + + public long thumbnailImpressions { + get { return this.thumbnailImpressionsField; } + set { + this.thumbnailImpressionsField = value; + this.thumbnailImpressionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool thumbnailImpressionsSpecified { + get { return this.thumbnailImpressionsFieldSpecified; } + set { this.thumbnailImpressionsFieldSpecified = value; } + } + + public long videoImpressions { + get { return this.videoImpressionsField; } + set { + this.videoImpressionsField = value; + this.videoImpressionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool videoImpressionsSpecified { + get { return this.videoImpressionsFieldSpecified; } + set { this.videoImpressionsFieldSpecified = value; } + } + + public long totalImpressions { + get { return this.totalImpressionsField; } + set { + this.totalImpressionsField = value; + this.totalImpressionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalImpressionsSpecified { + get { return this.totalImpressionsFieldSpecified; } + set { this.totalImpressionsFieldSpecified = value; } + } + + public long websiteClicks { + get { return this.websiteClicksField; } + set { + this.websiteClicksField = value; + this.websiteClicksSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool websiteClicksSpecified { + get { return this.websiteClicksFieldSpecified; } + set { this.websiteClicksFieldSpecified = value; } + } + + public long totalClicks { + get { return this.totalClicksField; } + set { + this.totalClicksField = value; + this.totalClicksSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalClicksSpecified { + get { return this.totalClicksFieldSpecified; } + set { this.totalClicksFieldSpecified = value; } + } + + public double totalCtr { + get { return this.totalCtrField; } + set { + this.totalCtrField = value; + this.totalCtrSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalCtrSpecified { + get { return this.totalCtrFieldSpecified; } + set { this.totalCtrFieldSpecified = value; } + } + + public Money totalCostPerClick { + get { return this.totalCostPerClickField; } + set { this.totalCostPerClickField = value; } + } + + public long conversions { + get { return this.conversionsField; } + set { + this.conversionsField = value; + this.conversionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool conversionsSpecified { + get { return this.conversionsFieldSpecified; } + set { this.conversionsFieldSpecified = value; } + } + + public Money costPerConversion { + get { return this.costPerConversionField; } + set { this.costPerConversionField = value; } + } + + public double conversionRate { + get { return this.conversionRateField; } + set { + this.conversionRateField = value; + this.conversionRateSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool conversionRateSpecified { + get { return this.conversionRateFieldSpecified; } + set { this.conversionRateFieldSpecified = value; } + } + + public long viewThroughConversions { + get { return this.viewThroughConversionsField; } + set { + this.viewThroughConversionsField = value; + this.viewThroughConversionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool viewThroughConversionsSpecified { + get { return this.viewThroughConversionsFieldSpecified; } + set { this.viewThroughConversionsFieldSpecified = value; } + } + + public long conversionsManyPerView { + get { return this.conversionsManyPerViewField; } + set { + this.conversionsManyPerViewField = value; + this.conversionsManyPerViewSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool conversionsManyPerViewSpecified { + get { return this.conversionsManyPerViewFieldSpecified; } + set { this.conversionsManyPerViewFieldSpecified = value; } + } + + public Money costPerConversionManyPerView { + get { return this.costPerConversionManyPerViewField; } + set { this.costPerConversionManyPerViewField = value; } + } + + public double conversionRateManyPerView { + get { return this.conversionRateManyPerViewField; } + set { + this.conversionRateManyPerViewField = value; + this.conversionRateManyPerViewSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool conversionRateManyPerViewSpecified { + get { return this.conversionRateManyPerViewFieldSpecified; } + set { this.conversionRateManyPerViewFieldSpecified = value; } + } + + public double totalConversionValue { + get { return this.totalConversionValueField; } + set { + this.totalConversionValueField = value; + this.totalConversionValueSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalConversionValueSpecified { + get { return this.totalConversionValueFieldSpecified; } + set { this.totalConversionValueFieldSpecified = value; } + } + + public double valuePerConv { + get { return this.valuePerConvField; } + set { + this.valuePerConvField = value; + this.valuePerConvSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valuePerConvSpecified { + get { return this.valuePerConvFieldSpecified; } + set { this.valuePerConvFieldSpecified = value; } + } + + public double valuePerConvManyPerView { + get { return this.valuePerConvManyPerViewField; } + set { + this.valuePerConvManyPerViewField = value; + this.valuePerConvManyPerViewSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valuePerConvManyPerViewSpecified { + get { return this.valuePerConvManyPerViewFieldSpecified; } + set { this.valuePerConvManyPerViewFieldSpecified = value; } + } + + public long followOnViews { + get { return this.followOnViewsField; } + set { + this.followOnViewsField = value; + this.followOnViewsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnViewsSpecified { + get { return this.followOnViewsFieldSpecified; } + set { this.followOnViewsFieldSpecified = value; } + } + + public double followOnViewRate { + get { return this.followOnViewRateField; } + set { + this.followOnViewRateField = value; + this.followOnViewRateSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnViewRateSpecified { + get { return this.followOnViewRateFieldSpecified; } + set { this.followOnViewRateFieldSpecified = value; } + } + + public long followOnSubscribes { + get { return this.followOnSubscribesField; } + set { + this.followOnSubscribesField = value; + this.followOnSubscribesSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnSubscribesSpecified { + get { return this.followOnSubscribesFieldSpecified; } + set { this.followOnSubscribesFieldSpecified = value; } + } + + public double followOnSubscribeRate { + get { return this.followOnSubscribeRateField; } + set { + this.followOnSubscribeRateField = value; + this.followOnSubscribeRateSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnSubscribeRateSpecified { + get { return this.followOnSubscribeRateFieldSpecified; } + set { this.followOnSubscribeRateFieldSpecified = value; } + } + + public long followOnLikes { + get { return this.followOnLikesField; } + set { + this.followOnLikesField = value; + this.followOnLikesSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnLikesSpecified { + get { return this.followOnLikesFieldSpecified; } + set { this.followOnLikesFieldSpecified = value; } + } + + public long followOnComments { + get { return this.followOnCommentsField; } + set { + this.followOnCommentsField = value; + this.followOnCommentsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnCommentsSpecified { + get { return this.followOnCommentsFieldSpecified; } + set { this.followOnCommentsFieldSpecified = value; } + } + + public long followOnShares { + get { return this.followOnSharesField; } + set { + this.followOnSharesField = value; + this.followOnSharesSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnSharesSpecified { + get { return this.followOnSharesFieldSpecified; } + set { this.followOnSharesFieldSpecified = value; } + } + + public long followOnAddToPlaylist { + get { return this.followOnAddToPlaylistField; } + set { + this.followOnAddToPlaylistField = value; + this.followOnAddToPlaylistSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool followOnAddToPlaylistSpecified { + get { return this.followOnAddToPlaylistFieldSpecified; } + set { this.followOnAddToPlaylistFieldSpecified = value; } + } + + public double ctr { + get { return this.ctrField; } + set { + this.ctrField = value; + this.ctrSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool ctrSpecified { + get { return this.ctrFieldSpecified; } + set { this.ctrFieldSpecified = value; } + } + + public double vtr { + get { return this.vtrField; } + set { + this.vtrField = value; + this.vtrSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool vtrSpecified { + get { return this.vtrFieldSpecified; } + set { this.vtrFieldSpecified = value; } + } + + public long videoStarts { + get { return this.videoStartsField; } + set { + this.videoStartsField = value; + this.videoStartsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool videoStartsSpecified { + get { return this.videoStartsFieldSpecified; } + set { this.videoStartsFieldSpecified = value; } + } + + public long quartile25s { + get { return this.quartile25sField; } + set { + this.quartile25sField = value; + this.quartile25sSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile25sSpecified { + get { return this.quartile25sFieldSpecified; } + set { this.quartile25sFieldSpecified = value; } + } + + public long quartile50s { + get { return this.quartile50sField; } + set { + this.quartile50sField = value; + this.quartile50sSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile50sSpecified { + get { return this.quartile50sFieldSpecified; } + set { this.quartile50sFieldSpecified = value; } + } + + public long quartile75s { + get { return this.quartile75sField; } + set { + this.quartile75sField = value; + this.quartile75sSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile75sSpecified { + get { return this.quartile75sFieldSpecified; } + set { this.quartile75sFieldSpecified = value; } + } + + public long quartile100s { + get { return this.quartile100sField; } + set { + this.quartile100sField = value; + this.quartile100sSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile100sSpecified { + get { return this.quartile100sFieldSpecified; } + set { this.quartile100sFieldSpecified = value; } + } + + public double quartile25Percents { + get { return this.quartile25PercentsField; } + set { + this.quartile25PercentsField = value; + this.quartile25PercentsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile25PercentsSpecified { + get { return this.quartile25PercentsFieldSpecified; } + set { this.quartile25PercentsFieldSpecified = value; } + } + + public double quartile50Percents { + get { return this.quartile50PercentsField; } + set { + this.quartile50PercentsField = value; + this.quartile50PercentsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile50PercentsSpecified { + get { return this.quartile50PercentsFieldSpecified; } + set { this.quartile50PercentsFieldSpecified = value; } + } + + public double quartile75Percents { + get { return this.quartile75PercentsField; } + set { + this.quartile75PercentsField = value; + this.quartile75PercentsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile75PercentsSpecified { + get { return this.quartile75PercentsFieldSpecified; } + set { this.quartile75PercentsFieldSpecified = value; } + } + + public double quartile100Percents { + get { return this.quartile100PercentsField; } + set { + this.quartile100PercentsField = value; + this.quartile100PercentsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool quartile100PercentsSpecified { + get { return this.quartile100PercentsFieldSpecified; } + set { this.quartile100PercentsFieldSpecified = value; } + } + + public double percentServed { + get { return this.percentServedField; } + set { + this.percentServedField = value; + this.percentServedSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool percentServedSpecified { + get { return this.percentServedFieldSpecified; } + set { this.percentServedFieldSpecified = value; } + } + + public long eligibleFollowOnClicks { + get { return this.eligibleFollowOnClicksField; } + set { + this.eligibleFollowOnClicksField = value; + this.eligibleFollowOnClicksSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool eligibleFollowOnClicksSpecified { + get { return this.eligibleFollowOnClicksFieldSpecified; } + set { this.eligibleFollowOnClicksFieldSpecified = value; } + } + + public double engagementScore { + get { return this.engagementScoreField; } + set { + this.engagementScoreField = value; + this.engagementScoreSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool engagementScoreSpecified { + get { return this.engagementScoreFieldSpecified; } + set { this.engagementScoreFieldSpecified = value; } + } + + public double retentionScore { + get { return this.retentionScoreField; } + set { + this.retentionScoreField = value; + this.retentionScoreSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool retentionScoreSpecified { + get { return this.retentionScoreFieldSpecified; } + set { this.retentionScoreFieldSpecified = value; } + } + + public long totalViews { + get { return this.totalViewsField; } + set { + this.totalViewsField = value; + this.totalViewsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool totalViewsSpecified { + get { return this.totalViewsFieldSpecified; } + set { this.totalViewsFieldSpecified = value; } + } + + public long ctaImpressions { + get { return this.ctaImpressionsField; } + set { + this.ctaImpressionsField = value; + this.ctaImpressionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool ctaImpressionsSpecified { + get { return this.ctaImpressionsFieldSpecified; } + set { this.ctaImpressionsFieldSpecified = value; } + } + + public long ctaClicks { + get { return this.ctaClicksField; } + set { + this.ctaClicksField = value; + this.ctaClicksSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool ctaClicksSpecified { + get { return this.ctaClicksFieldSpecified; } + set { this.ctaClicksFieldSpecified = value; } + } + + public double ctaCtr { + get { return this.ctaCtrField; } + set { + this.ctaCtrField = value; + this.ctaCtrSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool ctaCtrSpecified { + get { return this.ctaCtrFieldSpecified; } + set { this.ctaCtrFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoEntityStats.SummaryType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoEntityStatsSummaryType { + ALL, + ALL_ENABLED, + ALL_BUT_DELETED, + ALL_DELETED, + ALL_NON_VIDEO, + COMBINED_VIDEO_NON_VIDEO, + PERFORMANCE_OTHER, + NON_SUMMARY, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class SegmentKey { + private object itemField; + + [System.Xml.Serialization.XmlElementAttribute("CampaignKey", typeof(CampaignKey))] + [System.Xml.Serialization.XmlElementAttribute("ConversionCategoryKey", typeof(ConversionCategoryKey))] + [System.Xml.Serialization.XmlElementAttribute("ConversionTypeKey", typeof(ConversionTypeKey))] + [System.Xml.Serialization.XmlElementAttribute("DateKey", typeof(DateKey))] + [System.Xml.Serialization.XmlElementAttribute("DayOfWeekKey", typeof(DayOfWeekKey))] + [System.Xml.Serialization.XmlElementAttribute("DeviceKey", typeof(DeviceKey))] + [System.Xml.Serialization.XmlElementAttribute("DisplayFormatKey", typeof(DisplayFormatKey))] + [System.Xml.Serialization.XmlElementAttribute("DisplayFormatNetworkKey", typeof(DisplayFormatNetworkKey))] + [System.Xml.Serialization.XmlElementAttribute("DisplayFormatTypeKey", typeof(DisplayFormatTypeKey))] + [System.Xml.Serialization.XmlElementAttribute("HourOfDayKey", typeof(HourOfDayKey))] + [System.Xml.Serialization.XmlElementAttribute("NetworkKey", typeof(NetworkKey))] + [System.Xml.Serialization.XmlElementAttribute("PaidViewsKey", typeof(PaidViewsKey))] + [System.Xml.Serialization.XmlElementAttribute("TargetingGroupKey", typeof(TargetingGroupKey))] + [System.Xml.Serialization.XmlElementAttribute("VideoAdKey", typeof(VideoAdKey))] + public object Item { + get { return this.itemField; } + set { this.itemField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class CampaignKey { + private string campaignNameField; + + public string campaignName { + get { return this.campaignNameField; } + set { this.campaignNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ConversionCategoryKey { + private ConversionCategoryKeyConversionCategory conversionCategoryField; + + private bool conversionCategoryFieldSpecified; + + public ConversionCategoryKeyConversionCategory conversionCategory { + get { return this.conversionCategoryField; } + set { + this.conversionCategoryField = value; + this.conversionCategorySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool conversionCategorySpecified { + get { return this.conversionCategoryFieldSpecified; } + set { this.conversionCategoryFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ConversionCategoryKey.ConversionCategory", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum ConversionCategoryKeyConversionCategory { + CONVERSION_CATEGORY_PURCHASE, + CONVERSION_CATEGORY_SIGNUP, + CONVERSION_CATEGORY_LEAD, + CONVERSION_CATEGORY_PAGE_VIEW, + CONVERSION_CATEGORY_OTHER + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ConversionTypeKey { + private long conversionTypeIdField; + + private bool conversionTypeIdFieldSpecified; + + private string conversionTypeNameField; + + public long conversionTypeId { + get { return this.conversionTypeIdField; } + set { + this.conversionTypeIdField = value; + this.conversionTypeIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool conversionTypeIdSpecified { + get { return this.conversionTypeIdFieldSpecified; } + set { this.conversionTypeIdFieldSpecified = value; } + } + + public string conversionTypeName { + get { return this.conversionTypeNameField; } + set { this.conversionTypeNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class DateKey { + private string dateField; + + private SegmentationDimension dimensionField; + + private bool dimensionFieldSpecified; + + public string date { + get { return this.dateField; } + set { this.dateField = value; } + } + + public SegmentationDimension dimension { + get { return this.dimensionField; } + set { + this.dimensionField = value; + this.dimensionSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool dimensionSpecified { + get { return this.dimensionFieldSpecified; } + set { this.dimensionFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum SegmentationDimension { + NONE, + CONVERSION_CATEGORY, + DATE_DAY, + DATE_WEEK, + DATE_MONTH, + DATE_QUARTER, + DATE_YEAR, + DAY_OF_WEEK, + DEVICE_TYPE, + DISPLAY_FORMAT, + DISPLAY_FORMATxNETWORK, + HOUR_OF_DAY, + NETWORK, + TARGETING_GROUP, + VIDEO_AD, + CONVERSION_TYPE, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class DayOfWeekKey { + private VideoDayOfWeek dayOfWeekField; + + private bool dayOfWeekFieldSpecified; + + public VideoDayOfWeek dayOfWeek { + get { return this.dayOfWeekField; } + set { + this.dayOfWeekField = value; + this.dayOfWeekSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool dayOfWeekSpecified { + get { return this.dayOfWeekFieldSpecified; } + set { this.dayOfWeekFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoDayOfWeek { + MONDAY, + TUESDAY, + WEDNESDAY, + THURSDAY, + FRIDAY, + SATURDAY, + SUNDAY + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class DeviceKey { + private DeviceKeyDeviceType deviceTypeField; + + private bool deviceTypeFieldSpecified; + + public DeviceKeyDeviceType deviceType { + get { return this.deviceTypeField; } + set { + this.deviceTypeField = value; + this.deviceTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deviceTypeSpecified { + get { return this.deviceTypeFieldSpecified; } + set { this.deviceTypeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "DeviceKey.DeviceType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum DeviceKeyDeviceType { + DESKTOP, + HIGHENDMOBILE, + TABLET, + OTHER + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class DisplayFormatKey { + private VideoAdDisplayFormat displayFormatField; + + private bool displayFormatFieldSpecified; + + public VideoAdDisplayFormat displayFormat { + get { return this.displayFormatField; } + set { + this.displayFormatField = value; + this.displayFormatSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool displayFormatSpecified { + get { return this.displayFormatFieldSpecified; } + set { this.displayFormatFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdDisplayFormat { + TRUE_VIEW_IN_SEARCH, + TRUE_VIEW_IN_SLATE, + TRUE_VIEW_IN_DISPLAY, + TRUE_VIEW_IN_STREAM, + STANDARD_IN_STREAM, + ALL + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class DisplayFormatNetworkKey { + private VideoAdDisplayFormat formatField; + + private bool formatFieldSpecified; + + private VideoAdNetwork networkField; + + private bool networkFieldSpecified; + + public VideoAdDisplayFormat format { + get { return this.formatField; } + set { + this.formatField = value; + this.formatSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool formatSpecified { + get { return this.formatFieldSpecified; } + set { this.formatFieldSpecified = value; } + } + + public VideoAdNetwork network { + get { return this.networkField; } + set { + this.networkField = value; + this.networkSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool networkSpecified { + get { return this.networkFieldSpecified; } + set { this.networkFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdNetwork { + YOUTUBE_SEARCH, + YOUTUBE_WATCH, + GOOGLE_DISPLAY_NETWORK, + GOOGLE_SEARCH, + ALL + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class DisplayFormatTypeKey { + private VideoAdDisplayFormatType displayFormatTypeField; + + private bool displayFormatTypeFieldSpecified; + + public VideoAdDisplayFormatType displayFormatType { + get { return this.displayFormatTypeField; } + set { + this.displayFormatTypeField = value; + this.displayFormatTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool displayFormatTypeSpecified { + get { return this.displayFormatTypeFieldSpecified; } + set { this.displayFormatTypeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAdDisplayFormat.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdDisplayFormatType { + TRUE_VIEW, + STANDARD, + ALL + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class HourOfDayKey { + private int hourOfDayField; + + private bool hourOfDayFieldSpecified; + + public int hourOfDay { + get { return this.hourOfDayField; } + set { + this.hourOfDayField = value; + this.hourOfDaySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hourOfDaySpecified { + get { return this.hourOfDayFieldSpecified; } + set { this.hourOfDayFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class NetworkKey { + private VideoAdNetwork networkField; + + private bool networkFieldSpecified; + + public VideoAdNetwork network { + get { return this.networkField; } + set { + this.networkField = value; + this.networkSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool networkSpecified { + get { return this.networkFieldSpecified; } + set { this.networkFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class PaidViewsKey { + private bool paidViewsField; + + private bool paidViewsFieldSpecified; + + public bool paidViews { + get { return this.paidViewsField; } + set { + this.paidViewsField = value; + this.paidViewsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool paidViewsSpecified { + get { return this.paidViewsFieldSpecified; } + set { this.paidViewsFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupKey { + private long targetingGroupIdField; + + private bool targetingGroupIdFieldSpecified; + + private string targetingGroupNameField; + + public long targetingGroupId { + get { return this.targetingGroupIdField; } + set { + this.targetingGroupIdField = value; + this.targetingGroupIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetingGroupIdSpecified { + get { return this.targetingGroupIdFieldSpecified; } + set { this.targetingGroupIdFieldSpecified = value; } + } + + public string targetingGroupName { + get { return this.targetingGroupNameField; } + set { this.targetingGroupNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdKey { + private string videoAdNameField; + + private long videoAdIdField; + + private bool videoAdIdFieldSpecified; + + public string videoAdName { + get { return this.videoAdNameField; } + set { this.videoAdNameField = value; } + } + + public long videoAdId { + get { return this.videoAdIdField; } + set { + this.videoAdIdField = value; + this.videoAdIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool videoAdIdSpecified { + get { return this.videoAdIdFieldSpecified; } + set { this.videoAdIdFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class Integer_LongMapEntry { + private int keyField; + + private bool keyFieldSpecified; + + private long valueField; + + private bool valueFieldSpecified; + + public int key { + get { return this.keyField; } + set { + this.keyField = value; + this.keySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool keySpecified { + get { return this.keyFieldSpecified; } + set { this.keyFieldSpecified = value; } + } + + public long value { + get { return this.valueField; } + set { + this.valueField = value; + this.valueSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valueSpecified { + get { return this.valueFieldSpecified; } + set { this.valueFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ServingInfo { + private ServingIssue[] issuesField; + + private VideoServingStatus servingStatusField; + + private bool servingStatusFieldSpecified; + + [System.Xml.Serialization.XmlElementAttribute("issues")] + public ServingIssue[] issues { + get { return this.issuesField; } + set { this.issuesField = value; } + } + + public VideoServingStatus servingStatus { + get { return this.servingStatusField; } + set { + this.servingStatusField = value; + this.servingStatusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool servingStatusSpecified { + get { return this.servingStatusFieldSpecified; } + set { this.servingStatusFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ServingIssue { + private ServingIssueReason reasonField; + + private bool reasonFieldSpecified; + + private long campaignIdField; + + private bool campaignIdFieldSpecified; + + private long targetingGroupIdField; + + private bool targetingGroupIdFieldSpecified; + + private long videoAdIdField; + + private bool videoAdIdFieldSpecified; + + private string videoIdField; + + private bool hideActionLinkField; + + private bool hideActionLinkFieldSpecified; + + private ServingIssueSeverity severityField; + + private bool severityFieldSpecified; + + private ServingIssueType typeField; + + private bool typeFieldSpecified; + + public ServingIssueReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + + public long campaignId { + get { return this.campaignIdField; } + set { + this.campaignIdField = value; + this.campaignIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool campaignIdSpecified { + get { return this.campaignIdFieldSpecified; } + set { this.campaignIdFieldSpecified = value; } + } + + public long targetingGroupId { + get { return this.targetingGroupIdField; } + set { + this.targetingGroupIdField = value; + this.targetingGroupIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetingGroupIdSpecified { + get { return this.targetingGroupIdFieldSpecified; } + set { this.targetingGroupIdFieldSpecified = value; } + } + + public long videoAdId { + get { return this.videoAdIdField; } + set { + this.videoAdIdField = value; + this.videoAdIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool videoAdIdSpecified { + get { return this.videoAdIdFieldSpecified; } + set { this.videoAdIdFieldSpecified = value; } + } + + public string videoId { + get { return this.videoIdField; } + set { this.videoIdField = value; } + } + + public bool hideActionLink { + get { return this.hideActionLinkField; } + set { + this.hideActionLinkField = value; + this.hideActionLinkSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool hideActionLinkSpecified { + get { return this.hideActionLinkFieldSpecified; } + set { this.hideActionLinkFieldSpecified = value; } + } + + public ServingIssueSeverity severity { + get { return this.severityField; } + set { + this.severityField = value; + this.severitySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool severitySpecified { + get { return this.severityFieldSpecified; } + set { this.severityFieldSpecified = value; } + } + + public ServingIssueType type { + get { return this.typeField; } + set { + this.typeField = value; + this.typeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { + get { return this.typeFieldSpecified; } + set { this.typeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServingIssue.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum ServingIssueReason { + ACCOUNT_SUSPENDED, + ACCOUNT_CLOSED, + ACCOUNT_DISABLED, + SUSPENDED, + LIMITED_BY_BUDGET, + INSTREAM_TOO_HIGH, + ALL_CREATIVES_UNHEALTHY, + SOME_CREATIVES_DISAPPROVED, + ALL_CREATIVES_DISAPPROVED, + SOME_CREATIVES_LABELED, + ALL_CREATIVES_LABELED, + SOME_CREATIVES_UNREVIEWED, + ALL_CREATIVES_UNREVIEWED, + SOME_CREATIVES_ELIGIBLE, + ALL_CREATIVES_ELIGIBLE, + VIDEO_ADS_WITHOUT_TARGETING, + ACTIVE_AD_WITH_ALL_FORMATS_PAUSED, + TARGETING_BID_REQUIRED, + INSLATE_DEPRECATED, + TARGETING_DUPLICATE_NAME, + TARGETING_MISMATCH, + TARGETING_NO_VIDEOAD, + STUDY_INVITATION, + SURVEY_INVITATION, + NO_VIDEO_AD_SERVING, + ALL_VIDEO_ADS_PENDING, + SOME_VIDEO_ADS_PENDING, + ALL_VIDEO_ADS_UNHEALTHY, + SOME_VIDEO_ADS_UNHEALTHY, + NO_VIDEO, + NO_TARGETING, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServingIssue.Severity", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum ServingIssueSeverity { + HIGH, + MEDIUM, + LOW + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ServingIssue.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum ServingIssueType { + BLOCKING, + ISSUE, + NOTIFICATION, + PENDING + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoServingStatus { + UNDEFINED, + REMOVED, + CAMPAIGN_REMOVED, + PAUSED, + CAMPAIGN_PAUSED, + ENDED, + SUSPENDED, + BROKEN, + IMPROVABLE, + LIMITED_BY_BUDGET, + NOTIFICATION, + PENDING, + SERVING, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoImage { + private VideoImageType typeField; + + private bool typeFieldSpecified; + + private VideoImageType secondaryTypeField; + + private bool secondaryTypeFieldSpecified; + + private long mediaIdField; + + private bool mediaIdFieldSpecified; + + private string urlField; + + private VideoImageMimeType mimeTypeField; + + private bool mimeTypeFieldSpecified; + + public VideoImageType type { + get { return this.typeField; } + set { + this.typeField = value; + this.typeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { + get { return this.typeFieldSpecified; } + set { this.typeFieldSpecified = value; } + } + + public VideoImageType secondaryType { + get { return this.secondaryTypeField; } + set { + this.secondaryTypeField = value; + this.secondaryTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool secondaryTypeSpecified { + get { return this.secondaryTypeFieldSpecified; } + set { this.secondaryTypeFieldSpecified = value; } + } + + public long mediaId { + get { return this.mediaIdField; } + set { + this.mediaIdField = value; + this.mediaIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool mediaIdSpecified { + get { return this.mediaIdFieldSpecified; } + set { this.mediaIdFieldSpecified = value; } + } + + public string url { + get { return this.urlField; } + set { this.urlField = value; } + } + + public VideoImageMimeType mimeType { + get { return this.mimeTypeField; } + set { + this.mimeTypeField = value; + this.mimeTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool mimeTypeSpecified { + get { return this.mimeTypeFieldSpecified; } + set { this.mimeTypeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoImage.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoImageType { + MEDIA, + DEFAULT_THUMBNAIL, + THUMBNAIL1, + THUMBNAIL2, + THUMBNAIL3, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoImage.MimeType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoImageMimeType { + IMAGE_JPEG, + IMAGE_GIF, + IMAGE_PNG, + FLASH + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAd.YouTubeDestinationPage", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdYouTubeDestinationPage { + WATCH_PAGE, + CHANNEL_PAGE, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdStatus { + ENABLED, + PAUSED, + REMOVED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ApprovalContext_VideoAd_ApprovalStatusMapEntry { + private ApprovalContext keyField; + + private VideoAdApprovalStatus valueField; + + private bool valueFieldSpecified; + + public ApprovalContext key { + get { return this.keyField; } + set { this.keyField = value; } + } + + public VideoAdApprovalStatus value { + get { return this.valueField; } + set { + this.valueField = value; + this.valueSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valueSpecified { + get { return this.valueFieldSpecified; } + set { this.valueFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ApprovalContext { + private TargetingScope targetingScopeField; + + private bool targetingScopeFieldSpecified; + + private DestinationType destinationTypeField; + + private bool destinationTypeFieldSpecified; + + public TargetingScope targetingScope { + get { return this.targetingScopeField; } + set { + this.targetingScopeField = value; + this.targetingScopeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetingScopeSpecified { + get { return this.targetingScopeFieldSpecified; } + set { this.targetingScopeFieldSpecified = value; } + } + + public DestinationType destinationType { + get { return this.destinationTypeField; } + set { + this.destinationTypeField = value; + this.destinationTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool destinationTypeSpecified { + get { return this.destinationTypeFieldSpecified; } + set { this.destinationTypeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingScope { + TRUE_VIEW_IN_SEARCH_ON_YOUTUBE_SEARCH, + TRUE_VIEW_IN_SLATE_ON_YOUTUBE_WATCH, + TRUE_VIEW_IN_DISPLAY_ON_YOUTUBE_WATCH, + TRUE_VIEW_IN_STREAM_ON_YOUTUBE_WATCH, + TRUE_VIEW_IN_SLATE_ON_GOOGLE_DISPLAY_NETWORK, + TRUE_VIEW_IN_DISPLAY_ON_GOOGLE_DISPLAY_NETWORK, + TRUE_VIEW_IN_STREAM_ON_GOOGLE_DISPLAY_NETWORK, + TRUE_VIEW_IN_SEARCH_ON_GOOGLE_SEARCH, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum DestinationType { + YOUTUBE, + ADVERTISER_SITE, + LEGACY_BOTH, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAd.ApprovalStatus", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdApprovalStatus { + APPROVED, + APPROVED_LIMITED, + ELIGIBLE, + UNDER_REVIEW, + DISAPPROVED + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ApprovalContext_VideoAd_ApprovalLimitMapEntry { + private ApprovalContext keyField; + + private VideoAdApprovalLimit valueField; + + private bool valueFieldSpecified; + + public ApprovalContext key { + get { return this.keyField; } + set { this.keyField = value; } + } + + public VideoAdApprovalLimit value { + get { return this.valueField; } + set { + this.valueField = value; + this.valueSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valueSpecified { + get { return this.valueFieldSpecified; } + set { this.valueFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAd.ApprovalLimit", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdApprovalLimit { + FAMILY_SAFE, + NON_FAMILY_SAFE, + ADULT_CONTENT, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ScopedDisapprovalReason { + private ApprovalContext approvalContextField; + + private DisapprovalReason disapprovalReasonField; + + public ApprovalContext approvalContext { + get { return this.approvalContextField; } + set { this.approvalContextField = value; } + } + + public DisapprovalReason disapprovalReason { + get { return this.disapprovalReasonField; } + set { this.disapprovalReasonField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class DisapprovalReason { + private string reasonField; + + private int helpIdField; + + private bool helpIdFieldSpecified; + + public string reason { + get { return this.reasonField; } + set { this.reasonField = value; } + } + + public int helpId { + get { return this.helpIdField; } + set { + this.helpIdField = value; + this.helpIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool helpIdSpecified { + get { return this.helpIdFieldSpecified; } + set { this.helpIdFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdDisplayFormat_VideoAdStatusMapEntry { + private VideoAdDisplayFormat keyField; + + private bool keyFieldSpecified; + + private VideoAdStatus valueField; + + private bool valueFieldSpecified; + + public VideoAdDisplayFormat key { + get { return this.keyField; } + set { + this.keyField = value; + this.keySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool keySpecified { + get { return this.keyFieldSpecified; } + set { this.keyFieldSpecified = value; } + } + + public VideoAdStatus value { + get { return this.valueField; } + set { + this.valueField = value; + this.valueSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool valueSpecified { + get { return this.valueFieldSpecified; } + set { this.valueFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdOperation : Operation { + private VideoAd operandField; + + private ExemptionRequest[] exemptionRequestsField; + + public VideoAd operand { + get { return this.operandField; } + set { this.operandField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("exemptionRequests")] + public ExemptionRequest[] exemptionRequests { + get { return this.exemptionRequestsField; } + set { this.exemptionRequestsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdPage : Page { + private VideoAd[] entriesField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public VideoAd[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class Sortable { + private object itemField; + + [System.Xml.Serialization.XmlElementAttribute("StatsSortable", typeof(StatsSortable))] + [System.Xml.Serialization.XmlElementAttribute("VideoAdSortable", typeof(VideoAdSortable))] + public object Item { + get { return this.itemField; } + set { this.itemField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum StatsSortable { + AVERAGE_CPV, + AVERAGE_CPM, + VIEWS, + VIEW_RATE, + CTR, + COST, + COST_PER_CONVERSION, + IMPRESSIONS, + WEBSITE_CLICKS, + CONVERSIONS, + CONVERSION_RATE, + VIEW_THROUGH_CONVERSIONS, + CONVERSIONS_MANY_PER_VIEW, + CONVERSION_RATE_MANY_PER_VIEW, + COST_PER_CONVERSION_MANY_PER_VIEW, + TOTAL_CONV_VALUE, + VALUE_PER_CONV, + VALUE_PER_CONV_MANY_PER_VIEW, + PERCENT_SERVED, + VIDEO_STARTS, + QUARTILE_25S, + QUARTILE_50S, + QUARTILE_75S, + QUARTILE_100S, + QUARTILE_25_PERCENTS, + QUARTILE_50_PERCENTS, + QUARTILE_75_PERCENTS, + QUARTILE_100_PERCENTS, + FOLLOW_ON_SUBSCRIBES, + FOLLOW_ON_SUBSCRIBE_RATE, + FOLLOW_ON_VIEWS, + FOLLOW_ON_VIEW_RATE, + FOLLOW_ON_ADD_TO_PLAYLIST, + FOLLOW_ON_COMMENTS, + FOLLOW_ON_LIKES, + FOLLOW_ON_SHARES, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdSortable { + CAMPAIGN_ID, + CAMPAIGN_NAME, + NAME, + STATUS, + VIDEOAD_ID, + VIDEO_NAME, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class Sorting { + private Sortable fieldField; + + private VideoSortOrder sortOrderField; + + private bool sortOrderFieldSpecified; + + private Sortable[] fieldsField; + + private VideoSortOrder[] sortOrdersField; + + public Sortable field { + get { return this.fieldField; } + set { this.fieldField = value; } + } + + public VideoSortOrder sortOrder { + get { return this.sortOrderField; } + set { + this.sortOrderField = value; + this.sortOrderSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sortOrderSpecified { + get { return this.sortOrderFieldSpecified; } + set { this.sortOrderFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("fields")] + public Sortable[] fields { + get { return this.fieldsField; } + set { this.fieldsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("sortOrders")] + public VideoSortOrder[] sortOrders { + get { return this.sortOrdersField; } + set { this.sortOrdersField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoSortOrder { + ASCENDING, + DESCENDING + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class StatsSelector { + private DateRange dateRangeField; + + private SegmentationDimension[] segmentationDimensionsField; + + private Metric[] metricsField; + + private VideoEntityStatsSummaryType[] summaryTypesField; + + private VideoEntityStatsSummaryType segmentedSummaryTypeField; + + private bool segmentedSummaryTypeFieldSpecified; + + private StatsSelectorAllTimeRestrict allTimeRestrictField; + + private bool allTimeRestrictFieldSpecified; + + public DateRange dateRange { + get { return this.dateRangeField; } + set { this.dateRangeField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentationDimensions")] + public SegmentationDimension[] segmentationDimensions { + get { return this.segmentationDimensionsField; } + set { this.segmentationDimensionsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("metrics")] + public Metric[] metrics { + get { return this.metricsField; } + set { this.metricsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("summaryTypes")] + public VideoEntityStatsSummaryType[] summaryTypes { + get { return this.summaryTypesField; } + set { this.summaryTypesField = value; } + } + + public VideoEntityStatsSummaryType segmentedSummaryType { + get { return this.segmentedSummaryTypeField; } + set { + this.segmentedSummaryTypeField = value; + this.segmentedSummaryTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool segmentedSummaryTypeSpecified { + get { return this.segmentedSummaryTypeFieldSpecified; } + set { this.segmentedSummaryTypeFieldSpecified = value; } + } + + public StatsSelectorAllTimeRestrict allTimeRestrict { + get { return this.allTimeRestrictField; } + set { + this.allTimeRestrictField = value; + this.allTimeRestrictSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool allTimeRestrictSpecified { + get { return this.allTimeRestrictFieldSpecified; } + set { this.allTimeRestrictFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum Metric { + VIEWS, + THUMBNAIL_IMPRESSIONS, + VIDEO_IMPRESSIONS, + TOTAL_IMPRESSIONS, + COST, + AVERAGE_CPV, + VTR, + CONVERSIONS, + DAILY_UNIQUE_VIEWERS, + WEEKLY_UNIQUE_VIEWERS, + MONTHLY_UNIQUE_VIEWERS, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "StatsSelector.AllTimeRestrict", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum StatsSelectorAllTimeRestrict { + NONE, + SINCE_VIDEO_AD_START, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdSelector { + private long[] campaignIdsField; + + private long[] idsField; + + private VideoAdStatus[] statusesField; + + private VideoCampaignStatus[] campaignStatusesField; + + private StatsSelector statsSelectorField; + + private Paging pagingField; + + private Sorting sortingField; + + [System.Xml.Serialization.XmlElementAttribute("campaignIds")] + public long[] campaignIds { + get { return this.campaignIdsField; } + set { this.campaignIdsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("ids")] + public long[] ids { + get { return this.idsField; } + set { this.idsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("statuses")] + public VideoAdStatus[] statuses { + get { return this.statusesField; } + set { this.statusesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] + public VideoCampaignStatus[] campaignStatuses { + get { return this.campaignStatusesField; } + set { this.campaignStatusesField = value; } + } + + public StatsSelector statsSelector { + get { return this.statsSelectorField; } + set { this.statsSelectorField = value; } + } + + public Paging paging { + get { return this.pagingField; } + set { this.pagingField = value; } + } + + public Sorting sorting { + get { return this.sortingField; } + set { this.sortingField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignStatus { + ENABLED, + REMOVED, + PAUSED + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdError : ApiError { + private VideoAdErrorReason reasonField; + + private bool reasonFieldSpecified; + + public VideoAdErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoAdError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdErrorReason { + UNKNOWN, + INVALID_FORMAT, + INVALID_INPUT, + EMPTY_FIELD, + URL_INVALID_TOP_LEVEL_DOMAIN, + URL_MALFORMED, + URL_NO_HOST, + URL_NO_SCHEME, + TOO_LONG, + LINE_TOO_WIDE, + INVALID_IMAGE_MEDIA_ID, + INVALID_COMPANION_BANNER_IMAGE_TYPE, + UNSUPPORTED_COMPANION_IMAGE_SIZE, + TOO_MANY_TARGETING_GROUP_ASSOCIATIONS, + TOO_MANY_VIDEO_ADS_PER_CUSTOMER, + TOO_MANY_VIDEO_ADS_PER_CAMPAIGN, + CANNOT_OPERATE_ON_DELETED_AD, + UNSUPPORTED_SCOPE_STATUS, + NO_SCOPE_STATUSES_SPECIFIED, + TARGETING_GROUP_FROM_DIFFERENT_CAMPAIGN, + APPROXIMATELY_TOO_LONG, + APPROXIMATELY_TOO_SHORT, + BAD_SNIPPET, + CUSTOMER_NOT_APPROVED_MOBILEADS, + CUSTOMER_NOT_ELIGIBLE, + INCORRECT_LENGTH, + INVALID_AD_ADDRESS_CAMPAIGN_TARGET, + INVALID_CHARACTER_FOR_URL, + INVALID_COUNTRY_CODE, + INVALID_MARKUP_LANGUAGE, + INVALID_MOBILE_CARRIER, + INVALID_MOBILE_CARRIER_TARGET, + TOO_SHORT, + URL_INVALID_SCHEME, + URL_HOST_NAME_TOO_LONG, + URL_NO_TOP_LEVEL_DOMAIN, + URL_PATH_NOT_ALLOWED, + URL_PORT_NOT_ALLOWED, + URL_QUERY_NOT_ALLOWED, + URL_SCHEME_BEFORE_DSA_TAG, + USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE, + INVALID_FIELD_TEXT, + IMAGE_ERROR, + VIDEO_RETRIEVAL_ERROR, + AUDIO_ERROR, + DEPRECATED_FORMAT_ERROR + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TimeSeriesError : ApiError { + private TimeSeriesErrorReason reasonField; + + private bool reasonFieldSpecified; + + public TimeSeriesErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TimeSeriesError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TimeSeriesErrorReason { + UNKNOWN, + INVALID_SEGMENTATION_DIMENSION + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class SortingError : ApiError { + private SortingErrorReason reasonField; + + private bool reasonFieldSpecified; + + public SortingErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SortingError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum SortingErrorReason { + SORT_ORDER_MISMATCH, + INVALID_FIELD, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class SegmentationError : ApiError { + private SegmentationErrorReason reasonField; + + private bool reasonFieldSpecified; + + public SegmentationErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "SegmentationError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum SegmentationErrorReason { + INCOMPATIBLE_DIMENSIONS, + UNSUPPORTED_SEGMENTATION, + MAXIMUM_SEGMENTATION_DIMENSIONS_EXCEEDED, + DATE_RANGE_TOO_LONG, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ReportError : ApiError { + private ReportErrorReason reasonField; + + private bool reasonFieldSpecified; + + public ReportErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ReportError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum ReportErrorReason { + UNKNOWN, + CRITERIA_TYPE_NOT_SUPPORTED, + INVALID_TARGETING_GROUP_ID_COUNT, + NO_STATS_SELECTOR + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class PersistenceError : ApiError { + private PersistenceErrorReason reasonField; + + private bool reasonFieldSpecified; + + public PersistenceErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "PersistenceError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum PersistenceErrorReason { + LOAD_FAILED, + SAVE_FAILED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class EntityNotFoundError : ApiError { + private EntityNotFoundErrorReason reasonField; + + private bool reasonFieldSpecified; + + public EntityNotFoundErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "EntityNotFoundError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum EntityNotFoundErrorReason { + INVALID_ID + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class AdsApiError : ApiError { + private AdsApiErrorReason reasonField; + + private bool reasonFieldSpecified; + + public AdsApiErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AdsApiError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum AdsApiErrorReason { + UNHANDLED_ADS_API_ERROR, + INTERNAL_ERROR, + UNEXPECTED_ERROR, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class AccessError : ApiError { + private AccessErrorReason reasonField; + + private bool reasonFieldSpecified; + + public AccessErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AccessError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum AccessErrorReason { + ACTION_NOT_PERMITTED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Web.Services.WebServiceBindingAttribute(Name = "VideoCampaignCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] + public partial class VideoCampaignCriterionService : AdWordsSoapClient, IVideoCampaignCriterionService { + private RequestHeader requestHeaderField; + + private ResponseHeader responseHeaderField; + + public VideoCampaignCriterionService() { + this.Url = "https://adwords.google.com/api/adwords/video/v201406/VideoCampaignCriterionServic" + "e"; + } + + public virtual RequestHeader RequestHeader { + get { return this.requestHeaderField; } + set { this.requestHeaderField = value; } + } + + public virtual ResponseHeader ResponseHeader { + get { return this.responseHeaderField; } + set { this.responseHeaderField = value; } + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual VideoCampaignCriterionPage get(VideoCampaignCriterionSelector selector) { + object[] results = this.Invoke("get", new object[] { selector }); + return ((VideoCampaignCriterionPage) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual VideoCampaignCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] +VideoCampaignCriterionOperation[] operations) { + object[] results = this.Invoke("mutate", new object[] { operations }); + return ((VideoCampaignCriterionReturnValue) (results[0])); + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignCriterionReturnValue : ListReturnValue { + private VideoCampaignCriterion[] valueField; + + [System.Xml.Serialization.XmlElementAttribute("value")] + public VideoCampaignCriterion[] value { + get { return this.valueField; } + set { this.valueField = value; } + } + } + + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportedVideoCampaignCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeVideoCampaignCriterion))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignCriterion { + private long campaignIdField; + + private bool campaignIdFieldSpecified; + + private string campaignNameField; + + private BaseCriterion criterionField; + + private string videoCampaignCriterionTypeField; + + public long campaignId { + get { return this.campaignIdField; } + set { + this.campaignIdField = value; + this.campaignIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool campaignIdSpecified { + get { return this.campaignIdFieldSpecified; } + set { this.campaignIdFieldSpecified = value; } + } + + public string campaignName { + get { return this.campaignNameField; } + set { this.campaignNameField = value; } + } + + public BaseCriterion criterion { + get { return this.criterionField; } + set { this.criterionField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("VideoCampaignCriterion.Type")] + public string VideoCampaignCriterionType { + get { return this.videoCampaignCriterionTypeField; } + set { this.videoCampaignCriterionTypeField = value; } + } + } + + [System.Xml.Serialization.XmlIncludeAttribute(typeof(YouTubePlacement))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(WebSite))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(VideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Topic))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(RunOfYoutube))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(PlatformVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(OperatingSystemVersionVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileDeviceVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileApplicationVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(MobileAppCategoryVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LocationVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(LanguageVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseKeyword))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchKeyword))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentKeyword))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentCategoryLabel))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Channel))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CarrierVideoCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceUserList))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceInterest))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceGender))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AudienceAge))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(AdScheduleVideoCriterion))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public abstract partial class BaseCriterion { + private long idField; + + private bool idFieldSpecified; + + private string baseCriterionTypeField; + + public long id { + get { return this.idField; } + set { + this.idField = value; + this.idSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { return this.idFieldSpecified; } + set { this.idFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("BaseCriterion.Type")] + public string BaseCriterionType { + get { return this.baseCriterionTypeField; } + set { this.baseCriterionTypeField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class YouTubePlacement : BaseCriterion { + private string urlField; + + public string url { + get { return this.urlField; } + set { this.urlField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class WebSite : BaseCriterion { + private string urlField; + + public string url { + get { return this.urlField; } + set { this.urlField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCriterion : BaseCriterion { + private string videoIdField; + + private string videoNameField; + + public string videoId { + get { return this.videoIdField; } + set { this.videoIdField = value; } + } + + public string videoName { + get { return this.videoNameField; } + set { this.videoNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class Topic : BaseCriterion { + private long verticalIdField; + + private bool verticalIdFieldSpecified; + + private string[] verticalPathField; + + public long verticalId { + get { return this.verticalIdField; } + set { + this.verticalIdField = value; + this.verticalIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool verticalIdSpecified { + get { return this.verticalIdFieldSpecified; } + set { this.verticalIdFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("verticalPath")] + public string[] verticalPath { + get { return this.verticalPathField; } + set { this.verticalPathField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class RunOfYoutube : BaseCriterion { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class PlatformVideoCriterion : BaseCriterion { + private string platformNameField; + + public string platformName { + get { return this.platformNameField; } + set { this.platformNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class OperatingSystemVersionVideoCriterion : BaseCriterion { + private string nameField; + + private int osMajorVersionField; + + private bool osMajorVersionFieldSpecified; + + private int osMinorVersionField; + + private bool osMinorVersionFieldSpecified; + + private VideoOperatingSystemVersionOperatorType operatorTypeField; + + private bool operatorTypeFieldSpecified; + + private long operatingSystemIdField; + + private bool operatingSystemIdFieldSpecified; + + private bool obsoleteField; + + private bool obsoleteFieldSpecified; + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + + public int osMajorVersion { + get { return this.osMajorVersionField; } + set { + this.osMajorVersionField = value; + this.osMajorVersionSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool osMajorVersionSpecified { + get { return this.osMajorVersionFieldSpecified; } + set { this.osMajorVersionFieldSpecified = value; } + } + + public int osMinorVersion { + get { return this.osMinorVersionField; } + set { + this.osMinorVersionField = value; + this.osMinorVersionSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool osMinorVersionSpecified { + get { return this.osMinorVersionFieldSpecified; } + set { this.osMinorVersionFieldSpecified = value; } + } + + public VideoOperatingSystemVersionOperatorType operatorType { + get { return this.operatorTypeField; } + set { + this.operatorTypeField = value; + this.operatorTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool operatorTypeSpecified { + get { return this.operatorTypeFieldSpecified; } + set { this.operatorTypeFieldSpecified = value; } + } + + public long operatingSystemId { + get { return this.operatingSystemIdField; } + set { + this.operatingSystemIdField = value; + this.operatingSystemIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool operatingSystemIdSpecified { + get { return this.operatingSystemIdFieldSpecified; } + set { this.operatingSystemIdFieldSpecified = value; } + } + + public bool obsolete { + get { return this.obsoleteField; } + set { + this.obsoleteField = value; + this.obsoleteSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool obsoleteSpecified { + get { return this.obsoleteFieldSpecified; } + set { this.obsoleteFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoOperatingSystemVersion.OperatorType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoOperatingSystemVersionOperatorType { + GREATER_THAN_EQUAL_TO, + EQUAL_TO, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class MobileDeviceVideoCriterion : BaseCriterion { + private string deviceNameField; + + private string manufacturerNameField; + + private VideoMobileDeviceDeviceType deviceTypeField; + + private bool deviceTypeFieldSpecified; + + private string operatingSystemNameField; + + public string deviceName { + get { return this.deviceNameField; } + set { this.deviceNameField = value; } + } + + public string manufacturerName { + get { return this.manufacturerNameField; } + set { this.manufacturerNameField = value; } + } + + public VideoMobileDeviceDeviceType deviceType { + get { return this.deviceTypeField; } + set { + this.deviceTypeField = value; + this.deviceTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deviceTypeSpecified { + get { return this.deviceTypeFieldSpecified; } + set { this.deviceTypeFieldSpecified = value; } + } + + public string operatingSystemName { + get { return this.operatingSystemNameField; } + set { this.operatingSystemNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoMobileDevice.DeviceType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoMobileDeviceDeviceType { + DEVICE_TYPE_MOBILE, + DEVICE_TYPE_TABLET + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class MobileApplicationVideoCriterion : BaseCriterion { + private string appIdField; + + public string appId { + get { return this.appIdField; } + set { this.appIdField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class MobileAppCategoryVideoCriterion : BaseCriterion { + private int mobileAppCategoryIdField; + + private bool mobileAppCategoryIdFieldSpecified; + + public int mobileAppCategoryId { + get { return this.mobileAppCategoryIdField; } + set { + this.mobileAppCategoryIdField = value; + this.mobileAppCategoryIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool mobileAppCategoryIdSpecified { + get { return this.mobileAppCategoryIdFieldSpecified; } + set { this.mobileAppCategoryIdFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class LocationVideoCriterion : BaseCriterion { + private string locationNameField; + + private string displayTypeField; + + private bool isObsoleteField; + + private bool isObsoleteFieldSpecified; + + private LocationVideoCriterion[] parentLocationsField; + + public string locationName { + get { return this.locationNameField; } + set { this.locationNameField = value; } + } + + public string displayType { + get { return this.displayTypeField; } + set { this.displayTypeField = value; } + } + + public bool isObsolete { + get { return this.isObsoleteField; } + set { + this.isObsoleteField = value; + this.isObsoleteSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isObsoleteSpecified { + get { return this.isObsoleteFieldSpecified; } + set { this.isObsoleteFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("parentLocations")] + public LocationVideoCriterion[] parentLocations { + get { return this.parentLocationsField; } + set { this.parentLocationsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class LanguageVideoCriterion : BaseCriterion { + private string codeField; + + private string nameField; + + public string code { + get { return this.codeField; } + set { this.codeField = value; } + } + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + } + + [System.Xml.Serialization.XmlIncludeAttribute(typeof(SearchKeyword))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ContentKeyword))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class BaseKeyword : BaseCriterion { + private string textField; + + private BaseKeywordMatchType matchTypeField; + + private bool matchTypeFieldSpecified; + + public string text { + get { return this.textField; } + set { this.textField = value; } + } + + public BaseKeywordMatchType matchType { + get { return this.matchTypeField; } + set { + this.matchTypeField = value; + this.matchTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool matchTypeSpecified { + get { return this.matchTypeFieldSpecified; } + set { this.matchTypeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BaseKeyword.MatchType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum BaseKeywordMatchType { + EXACT, + PHRASE, + BROAD, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class SearchKeyword : BaseKeyword { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ContentKeyword : BaseKeyword { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ContentCategoryLabel : BaseCriterion { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class Channel : BaseCriterion { + private string userNameField; + + private string userIdField; + + private string publicNameField; + + public string userName { + get { return this.userNameField; } + set { this.userNameField = value; } + } + + public string userId { + get { return this.userIdField; } + set { this.userIdField = value; } + } + + public string publicName { + get { return this.publicNameField; } + set { this.publicNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class CarrierVideoCriterion : BaseCriterion { + private string nameField; + + private string countryCodeField; + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + + public string countryCode { + get { return this.countryCodeField; } + set { this.countryCodeField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class AudienceUserList : BaseCriterion { + private long listIdField; + + private bool listIdFieldSpecified; + + private string nameField; + + public long listId { + get { return this.listIdField; } + set { + this.listIdField = value; + this.listIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool listIdSpecified { + get { return this.listIdFieldSpecified; } + set { this.listIdFieldSpecified = value; } + } + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class AudienceInterest : BaseCriterion { + private long interestIdField; + + private bool interestIdFieldSpecified; + + private string[] interestPathField; + + public long interestId { + get { return this.interestIdField; } + set { + this.interestIdField = value; + this.interestIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool interestIdSpecified { + get { return this.interestIdFieldSpecified; } + set { this.interestIdFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("interestPath")] + public string[] interestPath { + get { return this.interestPathField; } + set { this.interestPathField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class AudienceGender : BaseCriterion { + private AudienceGenderGenderType genderTypeField; + + private bool genderTypeFieldSpecified; + + public AudienceGenderGenderType genderType { + get { return this.genderTypeField; } + set { + this.genderTypeField = value; + this.genderTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool genderTypeSpecified { + get { return this.genderTypeFieldSpecified; } + set { this.genderTypeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceGender.GenderType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum AudienceGenderGenderType { + GENDER_MALE, + GENDER_FEMALE, + GENDER_UNDETERMINED + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class AudienceAge : BaseCriterion { + private AudienceAgeAgeRange ageRangeField; + + private bool ageRangeFieldSpecified; + + public AudienceAgeAgeRange ageRange { + get { return this.ageRangeField; } + set { + this.ageRangeField = value; + this.ageRangeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool ageRangeSpecified { + get { return this.ageRangeFieldSpecified; } + set { this.ageRangeFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "AudienceAge.AgeRange", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum AudienceAgeAgeRange { + AGE_RANGE_18_24, + AGE_RANGE_25_34, + AGE_RANGE_35_44, + AGE_RANGE_45_54, + AGE_RANGE_55_64, + AGE_RANGE_65_UP, + AGE_RANGE_UNDETERMINED + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class AdScheduleVideoCriterion : BaseCriterion { + private VideoDayOfWeek dayOfWeekField; + + private bool dayOfWeekFieldSpecified; + + private int startHourField; + + private bool startHourFieldSpecified; + + private VideoMinuteOfHour startMinuteField; + + private bool startMinuteFieldSpecified; + + private int endHourField; + + private bool endHourFieldSpecified; + + private VideoMinuteOfHour endMinuteField; + + private bool endMinuteFieldSpecified; + + public VideoDayOfWeek dayOfWeek { + get { return this.dayOfWeekField; } + set { + this.dayOfWeekField = value; + this.dayOfWeekSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool dayOfWeekSpecified { + get { return this.dayOfWeekFieldSpecified; } + set { this.dayOfWeekFieldSpecified = value; } + } + + public int startHour { + get { return this.startHourField; } + set { + this.startHourField = value; + this.startHourSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startHourSpecified { + get { return this.startHourFieldSpecified; } + set { this.startHourFieldSpecified = value; } + } + + public VideoMinuteOfHour startMinute { + get { return this.startMinuteField; } + set { + this.startMinuteField = value; + this.startMinuteSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool startMinuteSpecified { + get { return this.startMinuteFieldSpecified; } + set { this.startMinuteFieldSpecified = value; } + } + + public int endHour { + get { return this.endHourField; } + set { + this.endHourField = value; + this.endHourSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool endHourSpecified { + get { return this.endHourFieldSpecified; } + set { this.endHourFieldSpecified = value; } + } + + public VideoMinuteOfHour endMinute { + get { return this.endMinuteField; } + set { + this.endMinuteField = value; + this.endMinuteSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool endMinuteSpecified { + get { return this.endMinuteFieldSpecified; } + set { this.endMinuteFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoMinuteOfHour { + ZERO, + FIFTEEN, + THIRTY, + FORTY_FIVE + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ReportedVideoCampaignCriterion : VideoCampaignCriterion { + private VideoEntityStats statsField; + + private VideoEntityStats[] segmentedStatsField; + + private bool excludedField; + + private bool excludedFieldSpecified; + + public VideoEntityStats stats { + get { return this.statsField; } + set { this.statsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] + public VideoEntityStats[] segmentedStats { + get { return this.segmentedStatsField; } + set { this.segmentedStatsField = value; } + } + + public bool excluded { + get { return this.excludedField; } + set { + this.excludedField = value; + this.excludedSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool excludedSpecified { + get { return this.excludedFieldSpecified; } + set { this.excludedFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class NegativeVideoCampaignCriterion : VideoCampaignCriterion { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignCriterionOperation : Operation { + private VideoCampaignCriterion operandField; + + public VideoCampaignCriterion operand { + get { return this.operandField; } + set { this.operandField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignReportPage : Page { + private ReportedVideoCampaignCriterion[] entriesField; + + private VideoEntityStats[] summaryStatsField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public ReportedVideoCampaignCriterion[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("summaryStats")] + public VideoEntityStats[] summaryStats { + get { return this.summaryStatsField; } + set { this.summaryStatsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignCriterionPage : Page { + private VideoCampaignCriterion[] entriesField; + + private VideoEntityStats[] summaryStatsField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public VideoCampaignCriterion[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("summaryStats")] + public VideoEntityStats[] summaryStats { + get { return this.summaryStatsField; } + set { this.summaryStatsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignCriterionSortable { + CAMPAIGN_ID + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignCriterionSelector { + private long[] campaignIdsField; + + private VideoCampaignStatus[] campaignStatusesField; + + private BaseCriterionType[] criterionTypesField; + + private Sorting sortingField; + + private Paging pagingField; + + [System.Xml.Serialization.XmlElementAttribute("campaignIds")] + public long[] campaignIds { + get { return this.campaignIdsField; } + set { this.campaignIdsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] + public VideoCampaignStatus[] campaignStatuses { + get { return this.campaignStatusesField; } + set { this.campaignStatusesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("criterionTypes")] + public BaseCriterionType[] criterionTypes { + get { return this.criterionTypesField; } + set { this.criterionTypesField = value; } + } + + public Sorting sorting { + get { return this.sortingField; } + set { this.sortingField = value; } + } + + public Paging paging { + get { return this.pagingField; } + set { this.pagingField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "BaseCriterion.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum BaseCriterionType { + AGE, + CARRIER, + CHANNEL, + CONTENT_KEYWORD, + CONTENT_LABEL, + GENDER, + INTEREST, + KEYWORD, + LANGUAGE, + LOCATION, + MOBILE_APPLICATION, + MOBILE_APP_CATEGORY, + MOBILE_DEVICE, + OPERATING_SYSTEM_VERSION, + PLATFORM, + RUN_OF_YOUTUBE, + SCHEDULE, + SEARCH_KEYWORD, + USER_LIST, + VERTICAL, + VIDEO, + WEB_SITE, + YOUTUBE_PLACEMENT, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignCriterionError : ApiError { + private VideoCampaignCriterionErrorReason reasonField; + + private bool reasonFieldSpecified; + + public VideoCampaignCriterionErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaignCriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignCriterionErrorReason { + UNKNOWN, + INVALID_CRITERION_USE, + INVALID_CRITERION_TYPE + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupCriterionError : ApiError { + private TargetingGroupCriterionErrorReason reasonField; + + private bool reasonFieldSpecified; + + public TargetingGroupCriterionErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupCriterionError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingGroupCriterionErrorReason { + UNKNOWN, + WEBSITE_NOT_ALLOWED_FOR_NETWORK, + NETWORK_NOT_SUPPORTED, + INVALID_KEYWORD_TEXT, + KEYWORD_TEXT_TOO_LONG, + KEYWORD_HAS_TOO_MANY_WORDS, + KEYWORD_HAS_INVALID_CHARS, + INVALID_WEBSITE_URL, + INVALID_FORMAT_FOR_WEBSITE_URL, + WEBSITE_URL_IS_TOO_LONG, + WEBSITE_URL_HAS_ILLEGAL_CHAR, + WEBSITE_URL_HAS_MULTIPLE_SITES_IN_LINE, + WEBSITE_DOMAIN_BLACKLISTED, + INVALID_VIDEO_ID, + INVALID_CHANNEL_ID, + INVALID_VERTICAL_PATH, + INVALID_USER_LIST_ID, + KEYWORD_UNSUPPORTED, + INVALID_TARGETING_GROUP_ID, + INVALID_CRITERION_ID, + IMMUTABLE_NEGATIVE, + WEBSITE_URL_HAS_SCHEMA, + USER_ID_OF_CHANNEL_MISSING, + TOO_MANY_CRITERIONS_PER_TARGETING_GROUP, + INVALID_STATUS, + MUTATING_REPORTED_TGC, + UNSUPPORTED_BID_OVERRIDE, + CANNOT_TARGET_AND_EXCLUDE, + CANNOT_REMOVE_CRITERION, + CANNOT_TARGET_CRITERION, + CANNOT_TARGET_OBSOLETE_CRITERION, + TOO_MANY_OPERTAIONS + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Web.Services.WebServiceBindingAttribute(Name = "VideoCampaignServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] + public partial class VideoCampaignService : AdWordsSoapClient, IVideoCampaignService { + private RequestHeader requestHeaderField; + + private ResponseHeader responseHeaderField; + + public VideoCampaignService() { + this.Url = "https://adwords.google.com/api/adwords/video/v201406/VideoCampaignService"; + } + + public virtual RequestHeader RequestHeader { + get { return this.requestHeaderField; } + set { this.requestHeaderField = value; } + } + + public virtual ResponseHeader ResponseHeader { + get { return this.responseHeaderField; } + set { this.responseHeaderField = value; } + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual VideoCampaignPage get(VideoCampaignSelector selector) { + object[] results = this.Invoke("get", new object[] { selector }); + return ((VideoCampaignPage) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual VideoCampaignReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] +VideoCampaignOperation[] operations) { + object[] results = this.Invoke("mutate", new object[] { operations }); + return ((VideoCampaignReturnValue) (results[0])); + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignReturnValue : ListReturnValue { + private VideoCampaign[] valueField; + + [System.Xml.Serialization.XmlElementAttribute("value")] + public VideoCampaign[] value { + get { return this.valueField; } + set { this.valueField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaign { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private VideoCampaignStatus statusField; + + private bool statusFieldSpecified; + + private string startDateField; + + private string endDateField; + + private long budgetIdField; + + private bool budgetIdFieldSpecified; + + private VideoCampaignBiddingMode biddingModeField; + + private bool biddingModeFieldSpecified; + + private VideoCampaignTargetingMode targetingModeField; + + private bool targetingModeFieldSpecified; + + private VideoCampaignSpendingStatus spendingStatusField; + + private bool spendingStatusFieldSpecified; + + private CampaignSchedulingStatus schedulingStatusField; + + private bool schedulingStatusFieldSpecified; + + private VideoAdServingOptimizationStatus adServingOptimizationStatusField; + + private bool adServingOptimizationStatusFieldSpecified; + + private VideoFrequencyCap frequencyCapField; + + private VideoAdNetwork[] networksField; + + private VideoEntityStats statsField; + + private VideoEntityStats[] segmentedStatsField; + + public long id { + get { return this.idField; } + set { + this.idField = value; + this.idSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { return this.idFieldSpecified; } + set { this.idFieldSpecified = value; } + } + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + + public VideoCampaignStatus status { + get { return this.statusField; } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { return this.statusFieldSpecified; } + set { this.statusFieldSpecified = value; } + } + + public string startDate { + get { return this.startDateField; } + set { this.startDateField = value; } + } + + public string endDate { + get { return this.endDateField; } + set { this.endDateField = value; } + } + + public long budgetId { + get { return this.budgetIdField; } + set { + this.budgetIdField = value; + this.budgetIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool budgetIdSpecified { + get { return this.budgetIdFieldSpecified; } + set { this.budgetIdFieldSpecified = value; } + } + + public VideoCampaignBiddingMode biddingMode { + get { return this.biddingModeField; } + set { + this.biddingModeField = value; + this.biddingModeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool biddingModeSpecified { + get { return this.biddingModeFieldSpecified; } + set { this.biddingModeFieldSpecified = value; } + } + + public VideoCampaignTargetingMode targetingMode { + get { return this.targetingModeField; } + set { + this.targetingModeField = value; + this.targetingModeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetingModeSpecified { + get { return this.targetingModeFieldSpecified; } + set { this.targetingModeFieldSpecified = value; } + } + + public VideoCampaignSpendingStatus spendingStatus { + get { return this.spendingStatusField; } + set { + this.spendingStatusField = value; + this.spendingStatusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool spendingStatusSpecified { + get { return this.spendingStatusFieldSpecified; } + set { this.spendingStatusFieldSpecified = value; } + } + + public CampaignSchedulingStatus schedulingStatus { + get { return this.schedulingStatusField; } + set { + this.schedulingStatusField = value; + this.schedulingStatusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool schedulingStatusSpecified { + get { return this.schedulingStatusFieldSpecified; } + set { this.schedulingStatusFieldSpecified = value; } + } + + public VideoAdServingOptimizationStatus adServingOptimizationStatus { + get { return this.adServingOptimizationStatusField; } + set { + this.adServingOptimizationStatusField = value; + this.adServingOptimizationStatusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool adServingOptimizationStatusSpecified { + get { return this.adServingOptimizationStatusFieldSpecified; } + set { this.adServingOptimizationStatusFieldSpecified = value; } + } + + public VideoFrequencyCap frequencyCap { + get { return this.frequencyCapField; } + set { this.frequencyCapField = value; } + } + + [System.Xml.Serialization.XmlArrayItemAttribute("networks", IsNullable = false)] + public VideoAdNetwork[] networks { + get { return this.networksField; } + set { this.networksField = value; } + } + + public VideoEntityStats stats { + get { return this.statsField; } + set { this.statsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] + public VideoEntityStats[] segmentedStats { + get { return this.segmentedStatsField; } + set { this.segmentedStatsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaign.BiddingMode", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignBiddingMode { + AUTO, + MANUAL, + NONE + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaign.TargetingMode", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignTargetingMode { + AUTO, + MANUAL + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaign.SpendingStatus", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignSpendingStatus { + UNAVAILABLE, + SUSPENDED, + CONSTRAINED, + NON_CONSTRAINED + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum CampaignSchedulingStatus { + UNAVAILABLE, + CURRENT, + ENDED, + PENDING + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoAdServingOptimizationStatus { + OPTIMIZE, + CONVERSION_OPTIMIZE, + ROTATE, + ROTATE_FOREVER, + UNAVAILABLE + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoFrequencyCap { + private long impressionsField; + + private bool impressionsFieldSpecified; + + private VideoTimeUnit timeUnitField; + + private bool timeUnitFieldSpecified; + + private VideoLevel levelField; + + private bool levelFieldSpecified; + + public long impressions { + get { return this.impressionsField; } + set { + this.impressionsField = value; + this.impressionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool impressionsSpecified { + get { return this.impressionsFieldSpecified; } + set { this.impressionsFieldSpecified = value; } + } + + public VideoTimeUnit timeUnit { + get { return this.timeUnitField; } + set { + this.timeUnitField = value; + this.timeUnitSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool timeUnitSpecified { + get { return this.timeUnitFieldSpecified; } + set { this.timeUnitFieldSpecified = value; } + } + + public VideoLevel level { + get { return this.levelField; } + set { + this.levelField = value; + this.levelSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool levelSpecified { + get { return this.levelFieldSpecified; } + set { this.levelFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoTimeUnit { + MINUTE, + HOUR, + DAY, + WEEK, + MONTH, + LIFETIME + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoLevel { + VIDEO_CAMPAIGN, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignOperation : Operation { + private VideoCampaign operandField; + + public VideoCampaign operand { + get { return this.operandField; } + set { this.operandField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoBudget { + private long budgetIdField; + + private bool budgetIdFieldSpecified; + + private string nameField; + + private Money amountField; + + private VideoBudgetBudgetDeliveryMethod deliveryMethodField; + + private bool deliveryMethodFieldSpecified; + + private bool isExplicitlySharedField; + + private bool isExplicitlySharedFieldSpecified; + + public long budgetId { + get { return this.budgetIdField; } + set { + this.budgetIdField = value; + this.budgetIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool budgetIdSpecified { + get { return this.budgetIdFieldSpecified; } + set { this.budgetIdFieldSpecified = value; } + } + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + + public Money amount { + get { return this.amountField; } + set { this.amountField = value; } + } + + public VideoBudgetBudgetDeliveryMethod deliveryMethod { + get { return this.deliveryMethodField; } + set { + this.deliveryMethodField = value; + this.deliveryMethodSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool deliveryMethodSpecified { + get { return this.deliveryMethodFieldSpecified; } + set { this.deliveryMethodFieldSpecified = value; } + } + + public bool isExplicitlyShared { + get { return this.isExplicitlySharedField; } + set { + this.isExplicitlySharedField = value; + this.isExplicitlySharedSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isExplicitlySharedSpecified { + get { return this.isExplicitlySharedFieldSpecified; } + set { this.isExplicitlySharedFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBudget.BudgetDeliveryMethod", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoBudgetBudgetDeliveryMethod { + STANDARD, + ACCELERATED + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class SummaryBudgets { + private VideoBudget totalVideoBudgetField; + + private Money nonVideoBudgetField; + + private Money combinedBudgetField; + + public VideoBudget totalVideoBudget { + get { return this.totalVideoBudgetField; } + set { this.totalVideoBudgetField = value; } + } + + public Money nonVideoBudget { + get { return this.nonVideoBudgetField; } + set { this.nonVideoBudgetField = value; } + } + + public Money combinedBudget { + get { return this.combinedBudgetField; } + set { this.combinedBudgetField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignPage : Page { + private VideoCampaign[] entriesField; + + private VideoEntityStats[] summaryStatsField; + + private SummaryBudgets summaryBudgetsField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public VideoCampaign[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("summaryStats")] + public VideoEntityStats[] summaryStats { + get { return this.summaryStatsField; } + set { this.summaryStatsField = value; } + } + + public SummaryBudgets summaryBudgets { + get { return this.summaryBudgetsField; } + set { this.summaryBudgetsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignSortable { + BUDGET_AMOUNT, + CAMPAIGN_ID, + END_DATE, + NAME, + START_DATE, + STATUS, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignSelector { + private long[] idsField; + + private VideoCampaignStatus[] campaignStatusesField; + + private StatsSelector statsSelectorField; + + private Paging pagingField; + + private Sorting sortingField; + + [System.Xml.Serialization.XmlElementAttribute("ids")] + public long[] ids { + get { return this.idsField; } + set { this.idsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] + public VideoCampaignStatus[] campaignStatuses { + get { return this.campaignStatusesField; } + set { this.campaignStatusesField = value; } + } + + public StatsSelector statsSelector { + get { return this.statsSelectorField; } + set { this.statsSelectorField = value; } + } + + public Paging paging { + get { return this.pagingField; } + set { this.pagingField = value; } + } + + public Sorting sorting { + get { return this.sortingField; } + set { this.sortingField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignError : ApiError { + private VideoCampaignErrorReason reasonField; + + private bool reasonFieldSpecified; + + public VideoCampaignErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoCampaignError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoCampaignErrorReason { + UNKNOWN, + AFTER_MAXIMUM_ALLOWABLE_DATE, + CANNOT_SET_DATE_TO_PAST, + DUPLICATE_CAMPAIGN_NAME, + INVALID_CAMPAIGN_NAME, + START_DATE_AFTER_END_DATE, + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED, + INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED, + CAMPAIGN_LIMIT + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoBudgetError : ApiError { + private VideoBudgetErrorReason reasonField; + + private bool reasonFieldSpecified; + + public VideoBudgetErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBudgetError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoBudgetErrorReason { + MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC, + MONEY_AMOUNT_LESS_THAN_MAXIMUM_AD_GROUP_CPM, + MONEY_AMOUNT_LESS_THAN_MAXIMUM_SITE_CPM, + MONEY_AMOUNT_LESS_THAN_MINIMUM_AD_GROUP_CPC, + MONEY_AMOUNT_LESS_THAN_MINIMUM_CRITERIA_CPC, + MONEY_AMOUNT_TOO_LARGE, + NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoBiddingError : ApiError { + private VideoBiddingErrorReason reasonField; + + private bool reasonFieldSpecified; + + public VideoBiddingErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBiddingError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoBiddingErrorReason { + BID_AMOUNT_REQUIRED, + BID_TOO_SMALL, + BID_TOO_BIG, + BID_TOO_MANY_FRACTIONAL_DIGITS, + BID_TOO_HIGH_FOR_DAILY_BUDGET, + NON_POSITIVE_BID, + BID_FOR_DEPRECATED_FORMAT, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class NetworkError : ApiError { + private NetworkErrorReason reasonField; + + private bool reasonFieldSpecified; + + public NetworkErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "NetworkError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum NetworkErrorReason { + EMPTY, + INVALID, + NOT_ALLOWED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Web.Services.WebServiceBindingAttribute(Name = "VideoServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] + public partial class VideoService : AdWordsSoapClient, IVideoService { + private RequestHeader requestHeaderField; + + private ResponseHeader responseHeaderField; + + public VideoService() { + this.Url = "https://adwords.google.com/api/adwords/video/v201406/VideoService"; + } + + public virtual RequestHeader RequestHeader { + get { return this.requestHeaderField; } + set { this.requestHeaderField = value; } + } + + public virtual ResponseHeader ResponseHeader { + get { return this.responseHeaderField; } + set { this.responseHeaderField = value; } + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual VideoPage get(VideoSelector selector) { + object[] results = this.Invoke("get", new object[] { selector }); + return ((VideoPage) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual VideoReturnValue mutateCallToAction([System.Xml.Serialization.XmlElementAttribute("operations")] +VideoCallToActionOperation[] operations) { + object[] results = this.Invoke("mutateCallToAction", new object[] { operations }); + return ((VideoReturnValue) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual VideoSearchPage search(VideoSearchSelector selector) { + object[] results = this.Invoke("search", new object[] { selector }); + return ((VideoSearchPage) (results[0])); + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoSearchSelector { + private VideoSearchSelectorSearchType searchTypeField; + + private bool searchTypeFieldSpecified; + + private string[] videoIdsField; + + private string queryField; + + private string[] channelUserNamesField; + + private string[] channelUserIdsField; + + private Paging pagingField; + + private Sorting sortingField; + + public VideoSearchSelectorSearchType searchType { + get { return this.searchTypeField; } + set { + this.searchTypeField = value; + this.searchTypeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool searchTypeSpecified { + get { return this.searchTypeFieldSpecified; } + set { this.searchTypeFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("videoIds")] + public string[] videoIds { + get { return this.videoIdsField; } + set { this.videoIdsField = value; } + } + + public string query { + get { return this.queryField; } + set { this.queryField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("channelUserNames")] + public string[] channelUserNames { + get { return this.channelUserNamesField; } + set { this.channelUserNamesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("channelUserIds")] + public string[] channelUserIds { + get { return this.channelUserIdsField; } + set { this.channelUserIdsField = value; } + } + + public Paging paging { + get { return this.pagingField; } + set { this.pagingField = value; } + } + + public Sorting sorting { + get { return this.sortingField; } + set { this.sortingField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoSearchSelector.SearchType", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoSearchSelectorSearchType { + VIDEO, + CHANNEL + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoSearchSortable { + RELEVANCE, + DATE_UPLOADED, + VIEW_COUNT, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoSortable { + TITLE, + DATE_UPLOADED, + DURATION, + CHANNEL, + VIEW_COUNT, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoStatsSortable { + TOTAL_VIEWS, + CTA_IMPRESSIONS, + CTA_CLICKS, + CTA_CTR, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoReturnValue : ListReturnValue { + private YouTubeVideo[] valueField; + + [System.Xml.Serialization.XmlElementAttribute("value")] + public YouTubeVideo[] value { + get { return this.valueField; } + set { this.valueField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class YouTubeVideo { + private string idField; + + private string titleField; + + private string descriptionField; + + private string dateUploadedField; + + private long durationSecField; + + private bool durationSecFieldSpecified; + + private string userPublicNameField; + + private string userIdField; + + private long viewCountField; + + private bool viewCountFieldSpecified; + + private VideoCampaignInfo[] campaignInfosField; + + private CallToAction callToActionField; + + private VideoEntityStats statsField; + + private VideoEntityStats[] segmentedStatsField; + + private YouTubeVideoAccessLevel accessLevelField; + + private bool accessLevelFieldSpecified; + + public string id { + get { return this.idField; } + set { this.idField = value; } + } + + public string title { + get { return this.titleField; } + set { this.titleField = value; } + } + + public string description { + get { return this.descriptionField; } + set { this.descriptionField = value; } + } + + public string dateUploaded { + get { return this.dateUploadedField; } + set { this.dateUploadedField = value; } + } + + public long durationSec { + get { return this.durationSecField; } + set { + this.durationSecField = value; + this.durationSecSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool durationSecSpecified { + get { return this.durationSecFieldSpecified; } + set { this.durationSecFieldSpecified = value; } + } + + public string userPublicName { + get { return this.userPublicNameField; } + set { this.userPublicNameField = value; } + } + + public string userId { + get { return this.userIdField; } + set { this.userIdField = value; } + } + + public long viewCount { + get { return this.viewCountField; } + set { + this.viewCountField = value; + this.viewCountSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool viewCountSpecified { + get { return this.viewCountFieldSpecified; } + set { this.viewCountFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignInfos")] + public VideoCampaignInfo[] campaignInfos { + get { return this.campaignInfosField; } + set { this.campaignInfosField = value; } + } + + public CallToAction callToAction { + get { return this.callToActionField; } + set { this.callToActionField = value; } + } + + public VideoEntityStats stats { + get { return this.statsField; } + set { this.statsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] + public VideoEntityStats[] segmentedStats { + get { return this.segmentedStatsField; } + set { this.segmentedStatsField = value; } + } + + public YouTubeVideoAccessLevel accessLevel { + get { return this.accessLevelField; } + set { + this.accessLevelField = value; + this.accessLevelSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool accessLevelSpecified { + get { return this.accessLevelFieldSpecified; } + set { this.accessLevelFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCampaignInfo { + private long campaignIdField; + + private bool campaignIdFieldSpecified; + + private string campaignNameField; + + public long campaignId { + get { return this.campaignIdField; } + set { + this.campaignIdField = value; + this.campaignIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool campaignIdSpecified { + get { return this.campaignIdFieldSpecified; } + set { this.campaignIdFieldSpecified = value; } + } + + public string campaignName { + get { return this.campaignNameField; } + set { this.campaignNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class CallToAction { + private CallToActionCreative creativeField; + + private bool isEnabledOnMobileField; + + private bool isEnabledOnMobileFieldSpecified; + + private CallToActionStatus statusField; + + private bool statusFieldSpecified; + + private CallToActionPolicyViolation[] policyViolationsField; + + public CallToActionCreative creative { + get { return this.creativeField; } + set { this.creativeField = value; } + } + + public bool isEnabledOnMobile { + get { return this.isEnabledOnMobileField; } + set { + this.isEnabledOnMobileField = value; + this.isEnabledOnMobileSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool isEnabledOnMobileSpecified { + get { return this.isEnabledOnMobileFieldSpecified; } + set { this.isEnabledOnMobileFieldSpecified = value; } + } + + public CallToActionStatus status { + get { return this.statusField; } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { return this.statusFieldSpecified; } + set { this.statusFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("policyViolations")] + public CallToActionPolicyViolation[] policyViolations { + get { return this.policyViolationsField; } + set { this.policyViolationsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.Creative", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class CallToActionCreative { + private CallToActionCreativeType typeField; + + private bool typeFieldSpecified; + + private string headlineField; + + private string displayUrlField; + + private string destinationUrlField; + + private CallToActionImage imageField; + + public CallToActionCreativeType type { + get { return this.typeField; } + set { + this.typeField = value; + this.typeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool typeSpecified { + get { return this.typeFieldSpecified; } + set { this.typeFieldSpecified = value; } + } + + public string headline { + get { return this.headlineField; } + set { this.headlineField = value; } + } + + public string displayUrl { + get { return this.displayUrlField; } + set { this.displayUrlField = value; } + } + + public string destinationUrl { + get { return this.destinationUrlField; } + set { this.destinationUrlField = value; } + } + + public CallToActionImage image { + get { return this.imageField; } + set { this.imageField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.Creative.Type", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum CallToActionCreativeType { + TEXT_ONLY, + TEXT_AND_IMAGE, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class CallToActionImage { + private byte[] dataField; + + private string imageUrlField; + + [System.Xml.Serialization.XmlElementAttribute(DataType = "base64Binary")] + public byte[] data { + get { return this.dataField; } + set { this.dataField = value; } + } + + public string imageUrl { + get { return this.imageUrlField; } + set { this.imageUrlField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.Status", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum CallToActionStatus { + ACTIVE, + INACTIVE, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "CallToAction.PolicyViolation", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class CallToActionPolicyViolation { + private string textField; + + public string text { + get { return this.textField; } + set { this.textField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "YouTubeVideo.AccessLevel", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum YouTubeVideoAccessLevel { + FULL_LINKED, + LIMITED_NOT_LINKED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCallToAction { + private string idField; + + private CallToAction callToActionField; + + public string id { + get { return this.idField; } + set { this.idField = value; } + } + + public CallToAction callToAction { + get { return this.callToActionField; } + set { this.callToActionField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoOperation : Operation { + private YouTubeVideo operandField; + + public YouTubeVideo operand { + get { return this.operandField; } + set { this.operandField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoCallToActionOperation : Operation { + private VideoCallToAction operandField; + + public VideoCallToAction operand { + get { return this.operandField; } + set { this.operandField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoSearchPage : Page { + private string[] recommendedChannelsField; + + private YouTubeVideo[] entriesField; + + [System.Xml.Serialization.XmlElementAttribute("recommendedChannels")] + public string[] recommendedChannels { + get { return this.recommendedChannelsField; } + set { this.recommendedChannelsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public YouTubeVideo[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoPage : Page { + private YouTubeVideo[] entriesField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public YouTubeVideo[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoSelector { + private string[] videoIdsField; + + private long[] campaignIdsField; + + private VideoCampaignStatus[] campaignStatusesField; + + private bool includeCallToActionsField; + + private bool includeCallToActionsFieldSpecified; + + private StatsSelector statsSelectorField; + + private Paging pagingField; + + private Sorting sortingField; + + [System.Xml.Serialization.XmlElementAttribute("videoIds")] + public string[] videoIds { + get { return this.videoIdsField; } + set { this.videoIdsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignIds")] + public long[] campaignIds { + get { return this.campaignIdsField; } + set { this.campaignIdsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] + public VideoCampaignStatus[] campaignStatuses { + get { return this.campaignStatusesField; } + set { this.campaignStatusesField = value; } + } + + public bool includeCallToActions { + get { return this.includeCallToActionsField; } + set { + this.includeCallToActionsField = value; + this.includeCallToActionsSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool includeCallToActionsSpecified { + get { return this.includeCallToActionsFieldSpecified; } + set { this.includeCallToActionsFieldSpecified = value; } + } + + public StatsSelector statsSelector { + get { return this.statsSelectorField; } + set { this.statsSelectorField = value; } + } + + public Paging paging { + get { return this.pagingField; } + set { this.pagingField = value; } + } + + public Sorting sorting { + get { return this.sortingField; } + set { this.sortingField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoServiceError : ApiError { + private VideoServiceErrorReason reasonField; + + private bool reasonFieldSpecified; + + public VideoServiceErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoServiceError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoServiceErrorReason { + UNKNOWN, + INVALID_VIDEO_ID, + VIDEO_NOT_FOUND, + INVALID_CHANNEL, + VIDEO_LOOKUP_SERVICE_UNAVAILABLE, + VIDEO_SEARCH_SERVICE_UNAVAILABLE, + CHANNEL_SEARCH_SERVICE_UNAVAILABLE, + YOUTUBE_ANALYTICS_SERVICE_UNAVAILABLE, + VIDEO_NOT_OWNED_BY_LINKED_ACCOUNT, + VIDEO_NOT_ENABLED_FOR_CALL_TO_ACTION, + CALL_TO_ACTION_NOT_FOUND, + INVALID_CALL_TO_ACTION, + UNKNOWN_CALL_TO_ACTION_ERROR, + CALL_TO_ACTION_TOO_LONG, + CALL_TO_ACTION_INVALID_FORMAT, + CALL_TO_ACTION_INVALID_CHARS, + CALL_TO_ACTION_INVALID_INPUT, + INVALID_FORMAT, + INVALID_INPUT, + INVALID_IMAGE_FILESIZE, + UNSUPPORTED_IMAGE_FORMAT, + DUPLICATE_VIDEO_ID, + TOO_LONG + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Web.Services.WebServiceBindingAttribute(Name = "VideoTargetingGroupCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] + public partial class VideoTargetingGroupCriterionService : AdWordsSoapClient, IVideoTargetingGroupCriterionService { + private RequestHeader requestHeaderField; + + private ResponseHeader responseHeaderField; + + public VideoTargetingGroupCriterionService() { + this.Url = "https://adwords.google.com/api/adwords/video/v201406/VideoTargetingGroupCriterion" + "Service"; + } + + public virtual RequestHeader RequestHeader { + get { return this.requestHeaderField; } + set { this.requestHeaderField = value; } + } + + public virtual ResponseHeader ResponseHeader { + get { return this.responseHeaderField; } + set { this.responseHeaderField = value; } + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual TargetingGroupCriterionPage get(TargetingGroupCriterionSelector selector) { + object[] results = this.Invoke("get", new object[] { selector }); + return ((TargetingGroupCriterionPage) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual TargetingGroupCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] +TargetingGroupCriterionOperation[] operations) { + object[] results = this.Invoke("mutate", new object[] { operations }); + return ((TargetingGroupCriterionReturnValue) (results[0])); + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupCriterionReturnValue : ListReturnValue { + private TargetingGroupCriterion[] valueField; + + [System.Xml.Serialization.XmlElementAttribute("value")] + public TargetingGroupCriterion[] value { + get { return this.valueField; } + set { this.valueField = value; } + } + } + + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ReportedTargetingGroupCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(NegativeTargetingGroupCriterion))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(BiddableTargetingGroupCriterion))] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupCriterion { + private long targetingGroupIdField; + + private bool targetingGroupIdFieldSpecified; + + private string targetingGroupNameField; + + private BaseCriterion criterionField; + + private long campaignIdField; + + private bool campaignIdFieldSpecified; + + private string targetingGroupCriterionTypeField; + + public long targetingGroupId { + get { return this.targetingGroupIdField; } + set { + this.targetingGroupIdField = value; + this.targetingGroupIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool targetingGroupIdSpecified { + get { return this.targetingGroupIdFieldSpecified; } + set { this.targetingGroupIdFieldSpecified = value; } + } + + public string targetingGroupName { + get { return this.targetingGroupNameField; } + set { this.targetingGroupNameField = value; } + } + + public BaseCriterion criterion { + get { return this.criterionField; } + set { this.criterionField = value; } + } + + public long campaignId { + get { return this.campaignIdField; } + set { + this.campaignIdField = value; + this.campaignIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool campaignIdSpecified { + get { return this.campaignIdFieldSpecified; } + set { this.campaignIdFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("TargetingGroupCriterion.Type")] + public string TargetingGroupCriterionType { + get { return this.targetingGroupCriterionTypeField; } + set { this.targetingGroupCriterionTypeField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class ReportedTargetingGroupCriterion : TargetingGroupCriterion { + private VideoEntityStats statsField; + + private VideoEntityStats[] segmentedStatsField; + + private bool excludedField; + + private bool excludedFieldSpecified; + + private bool partiallyExcludedField; + + private bool partiallyExcludedFieldSpecified; + + public VideoEntityStats stats { + get { return this.statsField; } + set { this.statsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] + public VideoEntityStats[] segmentedStats { + get { return this.segmentedStatsField; } + set { this.segmentedStatsField = value; } + } + + public bool excluded { + get { return this.excludedField; } + set { + this.excludedField = value; + this.excludedSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool excludedSpecified { + get { return this.excludedFieldSpecified; } + set { this.excludedFieldSpecified = value; } + } + + public bool partiallyExcluded { + get { return this.partiallyExcludedField; } + set { + this.partiallyExcludedField = value; + this.partiallyExcludedSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool partiallyExcludedSpecified { + get { return this.partiallyExcludedFieldSpecified; } + set { this.partiallyExcludedFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class NegativeTargetingGroupCriterion : TargetingGroupCriterion { + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class BiddableTargetingGroupCriterion : TargetingGroupCriterion { + private VideoUserStatus userStatusField; + + private bool userStatusFieldSpecified; + + private VideoEntityStats statsField; + + private VideoEntityStats[] segmentedStatsField; + + public VideoUserStatus userStatus { + get { return this.userStatusField; } + set { + this.userStatusField = value; + this.userStatusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool userStatusSpecified { + get { return this.userStatusFieldSpecified; } + set { this.userStatusFieldSpecified = value; } + } + + public VideoEntityStats stats { + get { return this.statsField; } + set { this.statsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] + public VideoEntityStats[] segmentedStats { + get { return this.segmentedStatsField; } + set { this.segmentedStatsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoUserStatus { + ENABLED, + REMOVED, + PAUSED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupCriterionOperation : Operation { + private TargetingGroupCriterion operandField; + + private ExemptionRequest[] exemptionRequestsField; + + public TargetingGroupCriterion operand { + get { return this.operandField; } + set { this.operandField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("exemptionRequests")] + public ExemptionRequest[] exemptionRequests { + get { return this.exemptionRequestsField; } + set { this.exemptionRequestsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupReportPage : Page { + private ReportedTargetingGroupCriterion[] entriesField; + + private VideoEntityStats[] summaryStatsField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public ReportedTargetingGroupCriterion[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("summaryStats")] + public VideoEntityStats[] summaryStats { + get { return this.summaryStatsField; } + set { this.summaryStatsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupCriterionPage : Page { + private TargetingGroupCriterion[] entriesField; + + private VideoEntityStats[] summaryStatsField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public TargetingGroupCriterion[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("summaryStats")] + public VideoEntityStats[] summaryStats { + get { return this.summaryStatsField; } + set { this.summaryStatsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingGroupCriterionSortable { + UNKNOWN, + CRITERION_ID, + TARGETING_GROUP_ID, + STATUS, + NAME, + TYPE, + TARGETING_GROUP_NAME + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupCriterionSelector { + private CriteriaDimension criteriaDimensionField; + + private bool criteriaDimensionFieldSpecified; + + private BaseCriterionType[] criterionTypesField; + + private VideoUserStatus[] userStatusesField; + + private VideoCampaignStatus[] campaignStatusesField; + + private StatsSelector statsSelectorField; + + private Paging pagingField; + + private Sorting sortingField; + + private long[] campaignIdsField; + + private long[] targetingGroupIdsField; + + private long[] criterionIdsField; + + private TargetingGroupCriterionSelectorCriterionUse criterionUseField; + + private bool criterionUseFieldSpecified; + + public CriteriaDimension criteriaDimension { + get { return this.criteriaDimensionField; } + set { + this.criteriaDimensionField = value; + this.criteriaDimensionSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool criteriaDimensionSpecified { + get { return this.criteriaDimensionFieldSpecified; } + set { this.criteriaDimensionFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("criterionTypes")] + public BaseCriterionType[] criterionTypes { + get { return this.criterionTypesField; } + set { this.criterionTypesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("userStatuses")] + public VideoUserStatus[] userStatuses { + get { return this.userStatusesField; } + set { this.userStatusesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] + public VideoCampaignStatus[] campaignStatuses { + get { return this.campaignStatusesField; } + set { this.campaignStatusesField = value; } + } + + public StatsSelector statsSelector { + get { return this.statsSelectorField; } + set { this.statsSelectorField = value; } + } + + public Paging paging { + get { return this.pagingField; } + set { this.pagingField = value; } + } + + public Sorting sorting { + get { return this.sortingField; } + set { this.sortingField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignIds")] + public long[] campaignIds { + get { return this.campaignIdsField; } + set { this.campaignIdsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("targetingGroupIds")] + public long[] targetingGroupIds { + get { return this.targetingGroupIdsField; } + set { this.targetingGroupIdsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("criterionIds")] + public long[] criterionIds { + get { return this.criterionIdsField; } + set { this.criterionIdsField = value; } + } + + public TargetingGroupCriterionSelectorCriterionUse criterionUse { + get { return this.criterionUseField; } + set { + this.criterionUseField = value; + this.criterionUseSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool criterionUseSpecified { + get { return this.criterionUseFieldSpecified; } + set { this.criterionUseFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum CriteriaDimension { + AGE, + GENDER, + KEYWORD, + PLACEMENT, + TOPIC, + USER, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupCriterionSelector.CriterionUse", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingGroupCriterionSelectorCriterionUse { + BIDDABLE, + NEGATIVE, + ALL + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Web.Services.WebServiceBindingAttribute(Name = "AdGroupCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] + public partial class AdGroupCriterionService : AdWordsSoapClient, IAdGroupCriterionService { + private RequestHeader requestHeaderField; + + private ResponseHeader responseHeaderField; + + public AdGroupCriterionService() { + this.Url = "https://adwords.google.com/api/adwords/cm/v201406/AdGroupCriterionService"; + } + + public virtual RequestHeader RequestHeader { + get { return this.requestHeaderField; } + set { this.requestHeaderField = value; } + } + + public virtual ResponseHeader ResponseHeader { + get { return this.responseHeaderField; } + set { this.responseHeaderField = value; } + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual AdGroupCriterionPage get(Selector serviceSelector) { + object[] results = this.Invoke("get", new object[] { serviceSelector }); + return ((AdGroupCriterionPage) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual AdGroupCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] +AdGroupCriterionOperation[] operations) { + object[] results = this.Invoke("mutate", new object[] { operations }); + return ((AdGroupCriterionReturnValue) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual AdGroupCriterionLabelReturnValue mutateLabel([System.Xml.Serialization.XmlElementAttribute("operations")] +AdGroupCriterionLabelOperation[] operations) { + object[] results = this.Invoke("mutateLabel", new object[] { operations }); + return ((AdGroupCriterionLabelReturnValue) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual AdGroupCriterionPage query([System.Xml.Serialization.XmlElementAttribute("query")] +string query1) { + object[] results = this.Invoke("query", new object[] { query1 }); + return ((AdGroupCriterionPage) (results[0])); + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] + public partial class AdGroupCriterionReturnValue : ListReturnValue { + private AdGroupCriterion[] valueField; + + private ApiError[] partialFailureErrorsField; + + [System.Xml.Serialization.XmlElementAttribute("value")] + public AdGroupCriterion[] value { + get { return this.valueField; } + set { this.valueField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] + public ApiError[] partialFailureErrors { + get { return this.partialFailureErrorsField; } + set { this.partialFailureErrorsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] + public partial class AdGroupCriterionLabelReturnValue : ListReturnValue { + private AdGroupCriterionLabel[] valueField; + + private ApiError[] partialFailureErrorsField; + + [System.Xml.Serialization.XmlElementAttribute("value")] + public AdGroupCriterionLabel[] value { + get { return this.valueField; } + set { this.valueField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] + public ApiError[] partialFailureErrors { + get { return this.partialFailureErrorsField; } + set { this.partialFailureErrorsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] + public partial class AdGroupCriterionPage : Page { + private AdGroupCriterion[] entriesField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public AdGroupCriterion[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Web.Services.WebServiceBindingAttribute(Name = "VideoTargetingGroupServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] + public partial class VideoTargetingGroupService : AdWordsSoapClient, IVideoTargetingGroupService { + private RequestHeader requestHeaderField; + + private ResponseHeader responseHeaderField; + + public VideoTargetingGroupService() { + this.Url = "https://adwords.google.com/api/adwords/video/v201406/VideoTargetingGroupService"; + } + + public virtual RequestHeader RequestHeader { + get { return this.requestHeaderField; } + set { this.requestHeaderField = value; } + } + + public virtual ResponseHeader ResponseHeader { + get { return this.responseHeaderField; } + set { this.responseHeaderField = value; } + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual TargetingGroupPage get(TargetingGroupSelector selector) { + object[] results = this.Invoke("get", new object[] { selector }); + return ((TargetingGroupPage) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/video/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/video/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual TargetingGroupReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] +TargetingGroupOperation[] operations) { + object[] results = this.Invoke("mutate", new object[] { operations }); + return ((TargetingGroupReturnValue) (results[0])); + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupReturnValue : ListReturnValue { + private TargetingGroup[] valueField; + + [System.Xml.Serialization.XmlElementAttribute("value")] + public TargetingGroup[] value { + get { return this.valueField; } + set { this.valueField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroup { + private long idField; + + private bool idFieldSpecified; + + private long campaignIdField; + + private bool campaignIdFieldSpecified; + + private string nameField; + + private TargetingGroupStatus statusField; + + private bool statusFieldSpecified; + + private VideoAdDisplayFormat_VideoBidMapEntry[] bidsByFormatField; + + private VideoEntityStats statsField; + + private ServingInfo issuesField; + + private VideoEntityStats[] segmentedStatsField; + + private string campaignNameField; + + public long id { + get { return this.idField; } + set { + this.idField = value; + this.idSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { return this.idFieldSpecified; } + set { this.idFieldSpecified = value; } + } + + public long campaignId { + get { return this.campaignIdField; } + set { + this.campaignIdField = value; + this.campaignIdSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool campaignIdSpecified { + get { return this.campaignIdFieldSpecified; } + set { this.campaignIdFieldSpecified = value; } + } + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + + public TargetingGroupStatus status { + get { return this.statusField; } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { return this.statusFieldSpecified; } + set { this.statusFieldSpecified = value; } + } + + [System.Xml.Serialization.XmlArrayItemAttribute("bidsByFormat", IsNullable = false)] + public VideoAdDisplayFormat_VideoBidMapEntry[] bidsByFormat { + get { return this.bidsByFormatField; } + set { this.bidsByFormatField = value; } + } + + public VideoEntityStats stats { + get { return this.statsField; } + set { this.statsField = value; } + } + + public ServingInfo issues { + get { return this.issuesField; } + set { this.issuesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("segmentedStats")] + public VideoEntityStats[] segmentedStats { + get { return this.segmentedStatsField; } + set { this.segmentedStatsField = value; } + } + + public string campaignName { + get { return this.campaignNameField; } + set { this.campaignNameField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingGroupStatus { + ENABLED, + REMOVED, + PAUSED, + UNKNOWN + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoAdDisplayFormat_VideoBidMapEntry { + private VideoAdDisplayFormat keyField; + + private bool keyFieldSpecified; + + private VideoBid valueField; + + public VideoAdDisplayFormat key { + get { return this.keyField; } + set { + this.keyField = value; + this.keySpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool keySpecified { + get { return this.keyFieldSpecified; } + set { this.keyFieldSpecified = value; } + } + + public VideoBid value { + get { return this.valueField; } + set { this.valueField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class VideoBid { + private Money amountField; + + private VideoBidSource sourceField; + + private bool sourceFieldSpecified; + + public Money amount { + get { return this.amountField; } + set { this.amountField = value; } + } + + public VideoBidSource source { + get { return this.sourceField; } + set { + this.sourceField = value; + this.sourceSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool sourceSpecified { + get { return this.sourceFieldSpecified; } + set { this.sourceFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "VideoBid.Source", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum VideoBidSource { + TARGETING_GROUP, + CRITERION + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupOperation : Operation { + private TargetingGroup operandField; + + public TargetingGroup operand { + get { return this.operandField; } + set { this.operandField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupPage : Page { + private TargetingGroup[] entriesField; + + private VideoEntityStats[] summaryStatsField; + + [System.Xml.Serialization.XmlElementAttribute("entries")] + public TargetingGroup[] entries { + get { return this.entriesField; } + set { this.entriesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("summaryStats")] + public VideoEntityStats[] summaryStats { + get { return this.summaryStatsField; } + set { this.summaryStatsField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingGroupSortable { + UNKNOWN, + TARGETING_GROUP_NAME, + STATUS, + BID, + TARGETING_GROUP_ID + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupSelector { + private long[] idsField; + + private long[] campaignIdsField; + + private TargetingGroupStatus[] statusesField; + + private VideoCampaignStatus[] campaignStatusesField; + + private StatsSelector statsSelectorField; + + private Paging pagingField; + + private Sorting sortingField; + + [System.Xml.Serialization.XmlElementAttribute("ids")] + public long[] ids { + get { return this.idsField; } + set { this.idsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignIds")] + public long[] campaignIds { + get { return this.campaignIdsField; } + set { this.campaignIdsField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("statuses")] + public TargetingGroupStatus[] statuses { + get { return this.statusesField; } + set { this.statusesField = value; } + } + + [System.Xml.Serialization.XmlElementAttribute("campaignStatuses")] + public VideoCampaignStatus[] campaignStatuses { + get { return this.campaignStatusesField; } + set { this.campaignStatusesField = value; } + } + + public StatsSelector statsSelector { + get { return this.statsSelectorField; } + set { this.statsSelectorField = value; } + } + + public Paging paging { + get { return this.pagingField; } + set { this.pagingField = value; } + } + + public Sorting sorting { + get { return this.sortingField; } + set { this.sortingField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public partial class TargetingGroupError : ApiError { + private TargetingGroupErrorReason reasonField; + + private bool reasonFieldSpecified; + + public TargetingGroupErrorReason reason { + get { return this.reasonField; } + set { + this.reasonField = value; + this.reasonSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool reasonSpecified { + get { return this.reasonFieldSpecified; } + set { this.reasonFieldSpecified = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "TargetingGroupError.Reason", Namespace = "https://adwords.google.com/api/adwords/video/v201406")] + public enum TargetingGroupErrorReason { + UNKNOWN, + DUPLICATE_TARGETING_GROUP_ID, + DUPLICATE_TARGETING_GROUP_NAME, + DETECTED_DUPLICATE_TARGETING_GROUP_NAME, + IMMUTABLE_FIELD, + INVALID_TARGETING_GROUP_ID, + INVALID_TARGETING_GROUP_NAME, + NOT_PERSISTENT, + TARGETING_GROUP_NOT_FOUND, + TOO_MANY_TARGETING_GROUPS + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Web.Services.WebServiceBindingAttribute(Name = "ExpressBusinessServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/express/v201406")] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] + [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] + public partial class ExpressBusinessService : AdWordsSoapClient, IExpressBusinessService { + private RequestHeader requestHeaderField; + + private ResponseHeader responseHeaderField; + + public ExpressBusinessService() { + this.Url = "https://adwords.google.com/api/adwords/express/v201406/ExpressBusinessService"; + } + + public virtual RequestHeader RequestHeader { + get { return this.requestHeaderField; } + set { this.requestHeaderField = value; } + } + + public virtual ResponseHeader ResponseHeader { + get { return this.responseHeaderField; } + set { this.responseHeaderField = value; } + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual ExpressBusinessPage get(Selector selector) { + object[] results = this.Invoke("get", new object[] { selector }); + return ((ExpressBusinessPage) (results[0])); + } + + [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] + [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/express/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/express/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute("rval")] + public virtual ExpressBusiness[] mutate([System.Xml.Serialization.XmlElementAttribute("operations")] +ExpressBusinessOperation[] operations) { + object[] results = this.Invoke("mutate", new object[] { operations }); + return ((ExpressBusiness[]) (results[0])); + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201406")] + public partial class ExpressBusinessOperation : Operation { + private ExpressBusiness operandField; + + public ExpressBusiness operand { + get { return this.operandField; } + set { this.operandField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201406")] + public partial class ExpressBusiness { + private long idField; + + private bool idFieldSpecified; + + private string nameField; + + private ExpressBusinessStatus statusField; + + private bool statusFieldSpecified; + + private Address addressField; + + private GeoPoint geoPointField; + + private PhoneNumber phoneNumberField; + + private string websiteField; + + public long id { + get { return this.idField; } + set { + this.idField = value; + this.idSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool idSpecified { + get { return this.idFieldSpecified; } + set { this.idFieldSpecified = value; } + } + + public string name { + get { return this.nameField; } + set { this.nameField = value; } + } + + public ExpressBusinessStatus status { + get { return this.statusField; } + set { + this.statusField = value; + this.statusSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool statusSpecified { + get { return this.statusFieldSpecified; } + set { this.statusFieldSpecified = value; } + } + + public Address address { + get { return this.addressField; } + set { this.addressField = value; } + } + + public GeoPoint geoPoint { + get { return this.geoPointField; } + set { this.geoPointField = value; } + } + + public PhoneNumber phoneNumber { + get { return this.phoneNumberField; } + set { this.phoneNumberField = value; } + } + + public string website { + get { return this.websiteField; } + set { this.websiteField = value; } + } + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Xml.Serialization.XmlTypeAttribute(TypeName = "ExpressBusiness.Status", Namespace = "https://adwords.google.com/api/adwords/express/v201406")] + public enum ExpressBusinessStatus { + ENABLED, + REMOVED + } + + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] + [System.SerializableAttribute()] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/express/v201406")] + public partial class PhoneNumber { + private ExpressRegionCode regionCodeField; + + private bool regionCodeFieldSpecified; + + private string numberField; + + public ExpressRegionCode regionCode { + get { return this.regionCodeField; } + set { + this.regionCodeField = value; + this.regionCodeSpecified = true; + } + } + + [System.Xml.Serialization.XmlIgnoreAttribute()] + [EditorBrowsable(EditorBrowsableState.Never)] + public bool regionCodeSpecified { + get { return this.regionCodeFieldSpecified; } + set { this.regionCodeFieldSpecified = value; } + } + + public string number { + get { return this.numberField; } + set { this.numberField = value; } + } + } [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] [System.SerializableAttribute()] @@ -22529,136 +29537,6 @@ public enum CampaignSharedSetErrorReason { UNKNOWN } - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "AdGroupCriterionServiceSoapBinding", Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ListReturnValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Operation))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ComparableValue))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(CriterionParameter))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(Page))] - [System.Xml.Serialization.XmlIncludeAttribute(typeof(ApplicationException))] - public partial class AdGroupCriterionService : AdWordsSoapClient, IAdGroupCriterionService { - private RequestHeader requestHeaderField; - - private ResponseHeader responseHeaderField; - - public AdGroupCriterionService() { - this.Url = "https://adwords.google.com/api/adwords/cm/v201406/AdGroupCriterionService"; - } - - public virtual RequestHeader RequestHeader { - get { return this.requestHeaderField; } - set { this.requestHeaderField = value; } - } - - public virtual ResponseHeader ResponseHeader { - get { return this.responseHeaderField; } - set { this.responseHeaderField = value; } - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupCriterionPage get(Selector serviceSelector) { - object[] results = this.Invoke("get", new object[] { serviceSelector }); - return ((AdGroupCriterionPage) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupCriterionReturnValue mutate([System.Xml.Serialization.XmlElementAttribute("operations")] -AdGroupCriterionOperation[] operations) { - object[] results = this.Invoke("mutate", new object[] { operations }); - return ((AdGroupCriterionReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupCriterionLabelReturnValue mutateLabel([System.Xml.Serialization.XmlElementAttribute("operations")] -AdGroupCriterionLabelOperation[] operations) { - object[] results = this.Invoke("mutateLabel", new object[] { operations }); - return ((AdGroupCriterionLabelReturnValue) (results[0])); - } - - [System.Web.Services.Protocols.SoapHeaderAttribute("RequestHeader")] - [System.Web.Services.Protocols.SoapHeaderAttribute("ResponseHeader", Direction = System.Web.Services.Protocols.SoapHeaderDirection.Out)] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace = "https://adwords.google.com/api/adwords/cm/v201406", ResponseNamespace = "https://adwords.google.com/api/adwords/cm/v201406", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - [return: System.Xml.Serialization.XmlElementAttribute("rval")] - public virtual AdGroupCriterionPage query([System.Xml.Serialization.XmlElementAttribute("query")] -string query1) { - object[] results = this.Invoke("query", new object[] { query1 }); - return ((AdGroupCriterionPage) (results[0])); - } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] - public partial class AdGroupCriterionReturnValue : ListReturnValue { - private AdGroupCriterion[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdGroupCriterion[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] - public partial class AdGroupCriterionLabelReturnValue : ListReturnValue { - private AdGroupCriterionLabel[] valueField; - - private ApiError[] partialFailureErrorsField; - - [System.Xml.Serialization.XmlElementAttribute("value")] - public AdGroupCriterionLabel[] value { - get { return this.valueField; } - set { this.valueField = value; } - } - - [System.Xml.Serialization.XmlElementAttribute("partialFailureErrors")] - public ApiError[] partialFailureErrors { - get { return this.partialFailureErrorsField; } - set { this.partialFailureErrorsField = value; } - } - } - - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(Namespace = "https://adwords.google.com/api/adwords/cm/v201406")] - public partial class AdGroupCriterionPage : Page { - private AdGroupCriterion[] entriesField; - - [System.Xml.Serialization.XmlElementAttribute("entries")] - public AdGroupCriterion[] entries { - get { return this.entriesField; } - set { this.entriesField = value; } - } - } - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] @@ -25026,6 +31904,93 @@ ResponseHeader ResponseHeader { UserListPage get(Selector serviceSelector); UserListReturnValue mutate(UserListOperation[] operations); } + public interface IVideoAdService { + RequestHeader RequestHeader { + get; + set; + } + ResponseHeader ResponseHeader { + get; + set; + } + VideoAdPage get(VideoAdSelector selector); + VideoAdReturnValue mutate(VideoAdOperation[] operations); + } + public interface IVideoCampaignCriterionService { + RequestHeader RequestHeader { + get; + set; + } + ResponseHeader ResponseHeader { + get; + set; + } + VideoCampaignCriterionPage get(VideoCampaignCriterionSelector selector); + VideoCampaignCriterionReturnValue mutate(VideoCampaignCriterionOperation[] operations); + } + public interface IVideoCampaignService { + RequestHeader RequestHeader { + get; + set; + } + ResponseHeader ResponseHeader { + get; + set; + } + VideoCampaignPage get(VideoCampaignSelector selector); + VideoCampaignReturnValue mutate(VideoCampaignOperation[] operations); + } + public interface IVideoService { + RequestHeader RequestHeader { + get; + set; + } + ResponseHeader ResponseHeader { + get; + set; + } + VideoPage get(VideoSelector selector); + VideoReturnValue mutateCallToAction(VideoCallToActionOperation[] operations); + VideoSearchPage search(VideoSearchSelector selector); + } + public interface IVideoTargetingGroupCriterionService { + RequestHeader RequestHeader { + get; + set; + } + ResponseHeader ResponseHeader { + get; + set; + } + TargetingGroupCriterionPage get(TargetingGroupCriterionSelector selector); + TargetingGroupCriterionReturnValue mutate(TargetingGroupCriterionOperation[] operations); + } + public interface IAdGroupCriterionService { + RequestHeader RequestHeader { + get; + set; + } + ResponseHeader ResponseHeader { + get; + set; + } + AdGroupCriterionPage get(Selector serviceSelector); + AdGroupCriterionReturnValue mutate(AdGroupCriterionOperation[] operations); + AdGroupCriterionLabelReturnValue mutateLabel(AdGroupCriterionLabelOperation[] operations); + AdGroupCriterionPage query(string query1); + } + public interface IVideoTargetingGroupService { + RequestHeader RequestHeader { + get; + set; + } + ResponseHeader ResponseHeader { + get; + set; + } + TargetingGroupPage get(TargetingGroupSelector selector); + TargetingGroupReturnValue mutate(TargetingGroupOperation[] operations); + } public interface IExpressBusinessService { RequestHeader RequestHeader { get; @@ -25094,20 +32059,6 @@ ResponseHeader ResponseHeader { CampaignSharedSetPage get(Selector selector); CampaignSharedSetReturnValue mutate(CampaignSharedSetOperation[] operations); } - public interface IAdGroupCriterionService { - RequestHeader RequestHeader { - get; - set; - } - ResponseHeader ResponseHeader { - get; - set; - } - AdGroupCriterionPage get(Selector serviceSelector); - AdGroupCriterionReturnValue mutate(AdGroupCriterionOperation[] operations); - AdGroupCriterionLabelReturnValue mutateLabel(AdGroupCriterionLabelOperation[] operations); - AdGroupCriterionPage query(string query1); - } public interface ISharedCriterionService { RequestHeader RequestHeader { get; diff --git a/src/AdWords/v201406/AdWordsServiceV201406.cs b/src/AdWords/v201406/AdWordsServiceV201406.cs index 0de4b4071d6..a7b2235550d 100644 --- a/src/AdWords/v201406/AdWordsServiceV201406.cs +++ b/src/AdWords/v201406/AdWordsServiceV201406.cs @@ -239,6 +239,42 @@ public class v201406 { /// public static readonly ServiceSignature TrafficEstimatorService; + /// + /// See + /// this page for details. + /// + public static readonly ServiceSignature VideoAdService; + + /// + /// See + /// this page for details. + /// + public static readonly ServiceSignature VideoCampaignCriterionService; + + /// + /// See + /// this page for details. + /// + public static readonly ServiceSignature VideoCampaignService; + + /// + /// See + /// this page for details. + /// + public static readonly ServiceSignature VideoService; + + /// + /// See + /// this page for details. + /// + public static readonly ServiceSignature VideoTargetingGroupCriterionService; + + /// + /// See + /// this page for details. + /// + public static readonly ServiceSignature VideoTargetingGroupService; + /// /// See /// this page for details. @@ -360,6 +396,21 @@ static v201406() { TrafficEstimatorService = AdWordsService.MakeServiceSignature("v201406", "o", "TrafficEstimatorService"); + VideoAdService = + AdWordsService.MakeServiceSignature("v201406", "video", "VideoAdService"); + VideoCampaignCriterionService = + AdWordsService.MakeServiceSignature("v201406", "video", + "VideoCampaignCriterionService"); + VideoCampaignService = + AdWordsService.MakeServiceSignature("v201406", "video", "VideoCampaignService"); + VideoService = + AdWordsService.MakeServiceSignature("v201406", "video", "VideoService"); + VideoTargetingGroupCriterionService = + AdWordsService.MakeServiceSignature("v201406", "video", + "VideoTargetingGroupCriterionService"); + VideoTargetingGroupService = + AdWordsService.MakeServiceSignature("v201406", "video", "VideoTargetingGroupService"); + ExpressBusinessService = AdWordsService.MakeServiceSignature("v201406", "express", "ExpressBusinessService"); diff --git a/src/Common/Properties/Properties.cs b/src/Common/Properties/Properties.cs index 63a131184af..016c92de0c1 100644 --- a/src/Common/Properties/Properties.cs +++ b/src/Common/Properties/Properties.cs @@ -19,5 +19,5 @@ [assembly: AssemblyCompany("Google")] [assembly: AssemblyProduct("Ads API Dotnet Common Library")] [assembly: AssemblyCopyright("Copyright 2012, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.0")] +[assembly: AssemblyVersion("3.1.0.0")] +[assembly: AssemblyFileVersion("3.1.0.0")] diff --git a/src/Common/Util/SerializationUtilities.cs b/src/Common/Util/SerializationUtilities.cs index 8448a285d6f..5fc807d32d5 100644 --- a/src/Common/Util/SerializationUtilities.cs +++ b/src/Common/Util/SerializationUtilities.cs @@ -157,11 +157,30 @@ private static object DeserializeFromXmlText(XmlSerializer serializer, string co public static string SerializeAsXmlText(object objToSerialize) { string retval = ""; - using (MemoryStream memStream = new MemoryStream()) { - new XmlSerializer(objToSerialize.GetType()).Serialize(memStream, objToSerialize); - retval = Encoding.UTF8.GetString(memStream.ToArray()); + using (StringWriter writer = new Utf8StringWriter()) { + new XmlSerializer(objToSerialize.GetType()).Serialize(writer, objToSerialize); + retval = writer.ToString(); } return retval; } + + /// + /// Used for serializing string into UTF-8 xml, instead of default Unicode. + /// (utf-16). + /// + class Utf8StringWriter : StringWriter { + /// + /// Gets the in which the output is + /// written. + /// + /// + /// The Encoding in which the output is written. + /// + public override Encoding Encoding { + get { + return new UTF8Encoding(false); + } + } + } } } diff --git a/src/Dfa/Properties/Properties.cs b/src/Dfa/Properties/Properties.cs index e227e002fbb..4be9de93061 100644 --- a/src/Dfa/Properties/Properties.cs +++ b/src/Dfa/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("DoubleClick for Advertisers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/src/Dfp/Properties/Properties.cs b/src/Dfp/Properties/Properties.cs index 0d4995b8074..aaf32aca627 100644 --- a/src/Dfp/Properties/Properties.cs +++ b/src/Dfp/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("Google's DoubleClick for Publishers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/tests/AdWords/AdWords.Tests.csproj b/tests/AdWords/AdWords.Tests.csproj index c0bcc5c721c..6e0a044c08a 100644 --- a/tests/AdWords/AdWords.Tests.csproj +++ b/tests/AdWords/AdWords.Tests.csproj @@ -77,15 +77,10 @@ SoapMessages.v201402.Designer.cs Designer - - ResXFileCodeGenerator - SoapMessages.v201309.Designer.cs - - @@ -101,21 +96,8 @@ - - - - - - - - - - - - - @@ -146,7 +128,6 @@ - diff --git a/tests/AdWords/Lib/AdWordsCallListenerTest.cs b/tests/AdWords/Lib/AdWordsCallListenerTest.cs index 7d8329bde34..76fffcaf8b9 100644 --- a/tests/AdWords/Lib/AdWordsCallListenerTest.cs +++ b/tests/AdWords/Lib/AdWordsCallListenerTest.cs @@ -14,10 +14,10 @@ // Author: api.anash@gmail.com (Anash P. Oommen) -using Google.Api.Ads.AdWords.Examples.CSharp.v201309; +using Google.Api.Ads.AdWords.Examples.CSharp.v201406; using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Tests.v201309; -using Google.Api.Ads.AdWords.v201309; +using Google.Api.Ads.AdWords.Tests.v201406; +using Google.Api.Ads.AdWords.v201406; using Google.Api.Ads.Common.Lib; using Google.Api.Ads.Common.Tests; using Google.Api.Ads.Common.Util; @@ -53,7 +53,7 @@ public void Init() { [Test] [Category("Integration")] public void TestGetAccountAlertsCSharpExample() { - ExamplesMockData mockData = LoadMockData(SoapMessages_v201309.GetAccountAlerts); + ExamplesMockData mockData = LoadMockData(SoapMessages_v201406.GetAccountAlerts); RunMockedExample(mockData, delegate() { new GetAccountAlerts().Run(user); Assert.AreEqual(user.GetTotalOperationCount(), 2); @@ -79,10 +79,10 @@ public void TestHandleMessage() { ContextStore.AddKey("SoapMethod", "get"); XmlDocument xDoc = new XmlDocument(); - xDoc.LoadXml(SoapMessages_v201309.GetAccountAlerts); + xDoc.LoadXml(SoapMessages_v201406.GetAccountAlerts); XmlElement xRequest = (XmlElement) xDoc.SelectSingleNode("/Example/SOAP/Response"); xDoc.LoadXml(xRequest.InnerText); - AlertService service = (AlertService) user.GetService(AdWordsService.v201309.AlertService); + AlertService service = (AlertService) user.GetService(AdWordsService.v201406.AlertService); AdWordsCallListener.Instance.HandleMessage(xDoc, service, SoapMessageDirection.IN); diff --git a/tests/AdWords/Properties/Properties.cs b/tests/AdWords/Properties/Properties.cs index de944c8264a..3f01f1a16a9 100644 --- a/tests/AdWords/Properties/Properties.cs +++ b/tests/AdWords/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("AdWords API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/tests/AdWords/Resources/GetAccountAlerts.v201309.txt b/tests/AdWords/Resources/GetAccountAlerts.v201309.txt deleted file mode 100644 index 5ca47280728..00000000000 --- a/tests/AdWords/Resources/GetAccountAlerts.v201309.txt +++ /dev/null @@ -1,12 +0,0 @@ - - - - <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><RequestHeader xmlns="https://adwords.google.com/api/adwords/mcm/v201309"><authToken xmlns="https://adwords.google.com/api/adwords/cm/v201309">******</authToken><developerToken xmlns="https://adwords.google.com/api/adwords/cm/v201309">******</developerToken><userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201309">INSERT_YOUR_COMPANY_OR_APPLICATION_NAME_HERE (AwApi-DotNet/15.1.0, Common-Dotnet/1.4.0, .NET CLR/2.0.50727.5456)</userAgent></RequestHeader></soap:Header><soap:Body><get xmlns="https://adwords.google.com/api/adwords/mcm/v201309"><selector><query><clientSpec>ALL</clientSpec><filterSpec>ALL</filterSpec><types>ACCOUNT_ON_TARGET</types><types>DECLINED_PAYMENT</types><types>CREDIT_CARD_EXPIRING</types><types>ACCOUNT_BUDGET_ENDING</types><types>CAMPAIGN_ENDING</types><types>PAYMENT_NOT_ENTERED</types><types>MISSING_BANK_REFERENCE_NUMBER</types><types>CAMPAIGN_ENDED</types><types>ACCOUNT_BUDGET_BURN_RATE</types><types>USER_INVITE_PENDING</types><types>USER_INVITE_ACCEPTED</types><types>MANAGER_LINK_PENDING</types><types>ZERO_DAILY_SPENDING_LIMIT</types><types>TV_ACCOUNT_ON_TARGET</types><types>TV_ACCOUNT_BUDGET_ENDING</types><types>TV_ZERO_DAILY_SPENDING_LIMIT</types><types>UNKNOWN</types><severities>GREEN</severities><severities>YELLOW</severities><severities>RED</severities><triggerTimeSpec>ALL_TIME</triggerTimeSpec></query><paging><startIndex xmlns="https://adwords.google.com/api/adwords/cm/v201309">0</startIndex><numberResults xmlns="https://adwords.google.com/api/adwords/cm/v201309">500</numberResults></paging></selector></get></soap:Body></soap:Envelope> - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309" xmlns="https://adwords.google.com/api/adwords/mcm/v201309"><ns2:requestId>0004cd7c5357ea800a837b1100006fdf</ns2:requestId><ns2:serviceName>AlertService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>2</ns2:operations><ns2:responseTime>464</ns2:responseTime><ns2:units>2</ns2:units></ResponseHeader></soap:Header><soap:Body><getResponse xmlns="https://adwords.google.com/api/adwords/mcm/v201309" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201309"><rval><ns2:totalNumEntries>2</ns2:totalNumEntries><ns2:Page.Type>AlertPage</ns2:Page.Type><entries><alertSeverity>RED</alertSeverity><alertType>PAYMENT_NOT_ENTERED</alertType><clientCustomerId>1234567890</clientCustomerId><details><triggerTime>20121101 162410 PST8PDT</triggerTime></details></entries><entries><alertSeverity>RED</alertSeverity><alertType>PAYMENT_NOT_ENTERED</alertType><clientCustomerId>1234567890</clientCustomerId><details><triggerTime>20121101 162433 PST8PDT</triggerTime></details></entries></rval></getResponse></soap:Body></soap:Envelope> - - 1) Customer Id is 123-456-7890, Alert type is 'PAYMENT_NOT_ENTERED', Severity is RED - - Triggered at 20121101 162410 PST8PDT -2) Customer Id is 123-456-7890, Alert type is 'PAYMENT_NOT_ENTERED', Severity is RED - - Triggered at 20121101 162433 PST8PDT -Number of alerts found: 2 - diff --git a/tests/AdWords/SoapMessages.v201309.Designer.cs b/tests/AdWords/SoapMessages.v201309.Designer.cs deleted file mode 100644 index b5a1056ed68..00000000000 --- a/tests/AdWords/SoapMessages.v201309.Designer.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1008 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Google.Api.Ads.AdWords.Tests { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class SoapMessages_v201309 { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal SoapMessages_v201309() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Google.Api.Ads.AdWords.Tests.SoapMessages.v201309", typeof(SoapMessages_v201309).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to <?xml version="1.0"?> - ///<Example> - /// <SOAP> - /// <Request>&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;&lt;soap:Header&gt;&lt;RequestHeader xmlns="https://adwords.google.com/api/adwords/mcm/v201306"&gt;&lt;authToken xmlns="https://adwords.google.com/api/adwords/cm/v201306"&gt;******&lt;/authToken&gt;&lt;developerToken xmlns="https://adwo [rest of string was truncated]";. - /// - internal static string GetAccountAlerts { - get { - return ResourceManager.GetString("GetAccountAlerts", resourceCulture); - } - } - } -} diff --git a/tests/AdWords/SoapMessages.v201309.resx b/tests/AdWords/SoapMessages.v201309.resx deleted file mode 100644 index 128d3580b85..00000000000 --- a/tests/AdWords/SoapMessages.v201309.resx +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - Resources\GetAccountAlerts.v201309.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 - - \ No newline at end of file diff --git a/tests/AdWords/Util/v201309/MapUtilitiesTest.cs b/tests/AdWords/Util/v201309/MapUtilitiesTest.cs deleted file mode 100644 index 43abfc745af..00000000000 --- a/tests/AdWords/Util/v201309/MapUtilitiesTest.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - - -using Google.Api.Ads.AdWords.Util.v201309; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.Text; - -using NUnit.Framework; - -namespace Google.Api.Ads.AdWords.Tests.Util.v201309 { - /// - /// Tests for MapUtilities class. - /// - public class MapUtilitiesTest { - /// - /// Internal MapUtils instance for testing purposes. - /// - private MapUtilities mapUtils; - - /// - /// Initializes this instance. - /// - [SetUp] - public void Init() { - this.mapUtils = new MapUtilities(); - } - - /// - /// Tests the Add method. - /// - [Test] - public void TestAddKeyValue() { - mapUtils.Add("key1", "value1"); - mapUtils.Add("key2", "value2"); - String_StringMapEntry[] entries = mapUtils.AsArray(); - Assert.AreEqual(2, entries.Length); - Assert.AreEqual(entries[0].key, "key1"); - Assert.AreEqual(entries[0].value, "value1"); - Assert.AreEqual(entries[1].key, "key2"); - Assert.AreEqual(entries[1].value, "value2"); - } - - /// - /// Tests the AddEntry method. - /// - [Test] - public void TestAddEntry() { - String_StringMapEntry item1 = new String_StringMapEntry(); - item1.key = "key3"; - item1.value = "value3"; - mapUtils.AddEntry(item1); - - String_StringMapEntry item2 = new String_StringMapEntry(); - item2.key = "key4"; - item2.value = "value4"; - mapUtils.AddEntry(item2); - - String_StringMapEntry[] entries = mapUtils.AsArray(); - Assert.AreEqual(2, entries.Length); - Assert.AreEqual(entries[0].key, item1.key); - Assert.AreEqual(entries[0].value, item1.value); - Assert.AreEqual(entries[1].key, item2.key); - Assert.AreEqual(entries[1].value, item2.value); - } - - /// - /// Tests the AddEntries method. - /// - [Test] - public void TestAddEntries() { - String_StringMapEntry item1 = new String_StringMapEntry(); - item1.key = "key5"; - item1.value = "value5"; - - String_StringMapEntry item2 = new String_StringMapEntry(); - item2.key = "key6"; - item2.value = "value6"; - - mapUtils.AddEntries(new String_StringMapEntry[] {item1, item2}); - - String_StringMapEntry[] entries = mapUtils.AsArray(); - Assert.AreEqual(2, entries.Length); - Assert.AreEqual(entries[0].key, item1.key); - Assert.AreEqual(entries[0].value, item1.value); - Assert.AreEqual(entries[1].key, item2.key); - Assert.AreEqual(entries[1].value, item2.value); - } - - /// - /// Tests the AsDict method. - /// - [Test] - public void TestAsDict() { - String_StringMapEntry item1 = new String_StringMapEntry(); - item1.key = "key7"; - item1.value = "value7"; - - String_StringMapEntry item2 = new String_StringMapEntry(); - item2.key = "key8"; - item2.value = "value8"; - - mapUtils.AddEntries(new String_StringMapEntry[] {item1, item2}); - - Dictionary entries = mapUtils.AsDict(); - Assert.AreEqual(2, entries.Count); - Assert.True(entries.ContainsKey("key7")); - Assert.True(entries.ContainsKey("key8")); - Assert.AreEqual(entries["key7"], item1.value); - Assert.AreEqual(entries["key8"], item2.value); - } - } -} diff --git a/tests/AdWords/v201309/AccountManagementTest.cs b/tests/AdWords/v201309/AccountManagementTest.cs deleted file mode 100644 index 921d7256376..00000000000 --- a/tests/AdWords/v201309/AccountManagementTest.cs +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Tests; -using Google.Api.Ads.Common.Util; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Net; -using System.Text; -using System.Threading; -using System.Xml; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\AccountManagement. - /// - class AccountManagementTest : VersionedExampleTestsBase { - /// - /// Tests the GetAccountAlerts VB.NET code example. - /// - [Test] - public void TestGetAccountAlertsVBExample() { - ExamplesMockData mockData = LoadMockData(SoapMessages_v201309.GetAccountAlerts); - RunMockedExample(mockData, delegate() { - new VBExamples.GetAccountAlerts().Run(user); - }, new WebRequestInterceptor.OnBeforeSendResponse(VerifyGetAccountAlertsRequest)); - } - - /// - /// Tests the GetAccountAlerts C# code example. - /// - [Test] - public void TestGetAccountAlertsCSharpExample() { - ExamplesMockData mockData = LoadMockData(SoapMessages_v201309.GetAccountAlerts); - RunMockedExample(mockData, delegate() { - new CSharpExamples.GetAccountAlerts().Run(user); - }, new WebRequestInterceptor.OnBeforeSendResponse(VerifyGetAccountAlertsRequest)); - } - - /// - /// Verifies whether GetAccountAlerts is serializing the request correctly. - /// - /// The request URI. - /// The headers. - /// The body. - private void VerifyGetAccountAlertsRequest(Uri requestUri, WebHeaderCollection headers, - string body) { - XmlDocument doc = new XmlDocument(); - doc.LoadXml(body); - XmlElement node = (XmlElement) doc.GetElementsByTagName("selector")[0]; - AlertSelector selector = - (AlertSelector) SerializationUtilities.DeserializeFromXmlTextCustomRootNs( - node.OuterXml, typeof(AlertSelector), - "https://adwords.google.com/api/adwords/mcm/v201309", "selector"); - - Assert.AreEqual(selector.query.filterSpec, FilterSpec.ALL); - Assert.AreEqual(selector.query.clientSpec, ClientSpec.ALL); - Assert.AreEqual(selector.query.triggerTimeSpec, TriggerTimeSpec.ALL_TIME); - Assert.Contains(AlertSeverity.GREEN, selector.query.severities); - Assert.Contains(AlertSeverity.YELLOW, selector.query.severities); - Assert.Contains(AlertSeverity.RED, selector.query.severities); - - foreach (AlertType alertType in Enum.GetValues(typeof(AlertType))) { - Assert.Contains(alertType, selector.query.types); - } - - Assert.AreEqual(selector.paging.startIndex, 0); - Assert.AreEqual(selector.paging.numberResults, 500); - } - - /// - /// Tests the GetAccountChanges VB.NET code example. - /// - [Test] - public void TestGetAccountChangesVBExample() { - RunExample(delegate() { - new VBExamples.GetAccountChanges().Run(user); - }); - } - - /// - /// Tests the GetAccountChanges C# code example. - /// - [Test] - public void TestGetAccountChangesCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAccountChanges().Run(user); - }); - } - } -} diff --git a/tests/AdWords/v201309/AdvancedOperationsTest.cs b/tests/AdWords/v201309/AdvancedOperationsTest.cs deleted file mode 100644 index fc72c7da9ea..00000000000 --- a/tests/AdWords/v201309/AdvancedOperationsTest.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\AdvancedOperations. - /// - class AdvancedOperationsTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - const double BID_MODIFIER = 0.2; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPC); - adGroupId = utils.CreateAdGroup(user, campaignId); - } - - /// - /// Tests the AddClickToDownloadAd VB.NET code example. - /// - [Test] - public void TestAddClickToDownloadAdVBExample() { - RunExample(delegate() { - new VBExamples.AddClickToDownloadAd().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddClickToDownloadAd C# code example. - /// - [Test] - public void TestAddClickToDownloadAdCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddClickToDownloadAd().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddSiteLinks VB.NET code example. - /// - [Test] - public void TestAddSiteLinksVBExample() { - RunExample(delegate() { - new VBExamples.AddSiteLinks().Run(user, campaignId); - }); - } - - /// - /// Tests the AddSiteLinks C# code example. - /// - [Test] - public void TestAddSiteLinksCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddSiteLinks().Run(user, campaignId); - }); - } - - /// - /// Tests the AddAdGroupBidModifier C# code example. - /// - [Test] - public void TestAddAdGroupBidModifierCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddAdGroupBidModifier().Run(user, adGroupId, BID_MODIFIER); - }); - } - - /// - /// Tests the AddAdGroupBidModifier VB.NET code example. - /// - [Test] - public void TestAddAdGroupBidModifierVBExample() { - RunExample(delegate() { - new VBExamples.AddAdGroupBidModifier().Run(user, adGroupId, BID_MODIFIER); - }); - } - - /// - /// Tests the GetAdGroupBidModifiers C# code example. - /// - [Test] - public void TestGetAdGroupBidModifiersCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAdGroupBidModifiers().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAdGroupBidModifiers VB.NET code example. - /// - [Test] - public void TestGetAdGroupBidModifiersVBExample() { - RunExample(delegate() { - new VBExamples.GetAdGroupBidModifiers().Run(user, campaignId); - }); - } - } -} diff --git a/tests/AdWords/v201309/BasicOperationsTest.cs b/tests/AdWords/v201309/BasicOperationsTest.cs deleted file mode 100644 index 05a077de41f..00000000000 --- a/tests/AdWords/v201309/BasicOperationsTest.cs +++ /dev/null @@ -1,371 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\BasicOperations. - /// - class BasicOperationsTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - long adId; - long keywordId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPC); - adGroupId = utils.CreateAdGroup(user, campaignId); - adId = utils.CreateTextAd(user, adGroupId, false); - keywordId = utils.CreateKeyword(user, adGroupId); - } - - /// - /// Tests the AddAdGroup VB.NET code example. - /// - [Test] - public void TestAddAdGroupVBExample() { - RunExample(delegate() { - new VBExamples.AddAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the AddAdGroup C# code example. - /// - [Test] - public void TestAddAdGroupCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the AddCampaign VB.NET code example. - /// - [Test] - public void TestAddCampaignVBExample() { - RunExample(delegate() { - new VBExamples.AddCampaigns().Run(user); - }); - } - - /// - /// Tests the AddCampaign C# code example. - /// - [Test] - public void TestAddCampaignCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddCampaigns().Run(user); - }); - } - - /// - /// Tests the AddKeywords VB.NET code example. - /// - [Test] - public void TestAddKeywordsVBExample() { - RunExample(delegate() { - new VBExamples.AddKeywords().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddKeywords C# code example. - /// - [Test] - public void TestAddKeywordsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddKeywords().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddTextAds VB.NET code example. - /// - [Test] - public void TestAddTextAdsVBExample() { - RunExample(delegate() { - new VBExamples.AddTextAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddTextAds C# code example. - /// - [Test] - public void TestAddTextAdsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddTextAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the DeleteAdGroup VB.NET code example. - /// - [Test] - public void TestDeleteAdGroupVBExample() { - RunExample(delegate() { - new VBExamples.DeleteAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the DeleteAdGroup C# code example. - /// - [Test] - public void TestDeleteAdGroupCSharpExample() { - RunExample(delegate() { - new VBExamples.DeleteAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the DeleteAd VB.NET code example. - /// - [Test] - public void TestDeleteAdVBExample() { - RunExample(delegate() { - new VBExamples.DeleteAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the DeleteAd C# code example. - /// - [Test] - public void TestDeleteAdCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DeleteAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the DeleteCampaign VB.NET code example. - /// - [Test] - public void TestDeleteCampaignVBExample() { - RunExample(delegate() { - new VBExamples.DeleteCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the DeleteCampaign C# code example. - /// - [Test] - public void TestDeleteCampaignCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DeleteCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the DeleteKeyword VB.NET code example. - /// - [Test] - public void TestDeleteKeywordVBExample() { - RunExample(delegate() { - new VBExamples.DeleteKeyword().Run(user, adGroupId, keywordId); - }); - } - - /// - /// Tests the DeleteKeyword C# code example. - /// - [Test] - public void TestDeleteKeywordCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DeleteKeyword().Run(user, adGroupId, keywordId); - }); - } - - /// - /// Tests the GetAdGroups VB.NET code example. - /// - [Test] - public void TestGetAdGroupsVBExample() { - RunExample(delegate() { - new VBExamples.GetAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAdGroups C# code example. - /// - [Test] - public void TestGetAdGroupsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the GetCampaigns VB.NET code example. - /// - [Test] - public void TestGetCampaignsVBExample() { - RunExample(delegate() { - new VBExamples.GetCampaigns().Run(user); - }); - } - - /// - /// Tests the GetCampaigns C# code example. - /// - [Test] - public void TestGetCampaignsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetCampaigns().Run(user); - }); - } - - /// - /// Tests the GetKeywords VB.NET code example. - /// - [Test] - public void TestGetKeywordsVBExample() { - RunExample(delegate() { - new VBExamples.GetKeywords().Run(user); - }); - } - - /// - /// Tests the GetKeywords C# code example. - /// - [Test] - public void TestGetKeywordsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetKeywords().Run(user); - }); - } - - /// - /// Tests the GetTextAds VB.NET code example. - /// - [Test] - public void TestGetTextAdsVBExample() { - RunExample(delegate() { - new VBExamples.GetTextAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the GetTextAds C# code example. - /// - [Test] - public void TestGetTextAdsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetTextAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the PauseAd VB.NET code example. - /// - [Test] - public void TestPauseAdVBExample() { - RunExample(delegate() { - new VBExamples.PauseAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the PauseAd C# code example. - /// - [Test] - public void TestPauseAdCSharpExample() { - RunExample(delegate() { - new CSharpExamples.PauseAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the UpdateAdGroup VB.NET code example. - /// - [Test] - public void TestUpdateAdGroupVBExample() { - RunExample(delegate() { - new VBExamples.UpdateAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the UpdateAdGroup C# code example. - /// - [Test] - public void TestUpdateAdGroupCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UpdateAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the UpdateCampaign VB.NET code example. - /// - [Test] - public void TestUpdateCampaignVBExample() { - RunExample(delegate() { - new VBExamples.UpdateCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the UpdateCampaign C# code example. - /// - [Test] - public void TestUpdateCampaignCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UpdateCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the UpdateKeyword VB.NET code example. - /// - [Test] - public void TestUpdateKeywordVBExample() { - RunExample(delegate() { - new VBExamples.UpdateKeyword().Run(user, adGroupId, keywordId); - }); - } - - /// - /// Tests the UpdateKeyword C# code example. - /// - [Test] - public void TestUpdateKeywordCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UpdateKeyword().Run(user, adGroupId, keywordId); - }); - } - } -} diff --git a/tests/AdWords/v201309/CampaignManagementTest.cs b/tests/AdWords/v201309/CampaignManagementTest.cs deleted file mode 100644 index 71bb6b6b94f..00000000000 --- a/tests/AdWords/v201309/CampaignManagementTest.cs +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\CampaignManagement. - /// - class CampaignManagementTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - long criterionId; - long adId; - long locationExtensionId; - long enhancedCampaignId; - - const Double BID_MODIFIER = 1.5; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPC); - adGroupId = utils.CreateAdGroup(user, campaignId); - criterionId = utils.CreateKeyword(user, adGroupId); - adId = utils.CreateTextAd(user, adGroupId, false); - locationExtensionId = utils.CreateLocationExtension(user, campaignId); - - enhancedCampaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPC); - utils.EnhanceCampaign(user, enhancedCampaignId); - } - - /// - /// Tests the AddExperiment VB.NET code example. - /// - [Test] - public void TestAddExperimentVBExample() { - RunExample(delegate() { - new VBExamples.AddExperiment().Run(user, campaignId, adGroupId, criterionId); - }); - } - - /// - /// Tests the AddExperiment C# code example. - /// - [Test] - public void TestAddExperimentCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddExperiment().Run(user, campaignId, adGroupId, criterionId); - }); - } - - /// - /// Tests the AddKeywordsInBulk VB.NET code example. - /// - [Test] - public void TestAddKeywordsInBulkVBExample() { - RunExample(delegate() { - new VBExamples.AddKeywordsInBulk().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddKeywordsInBulk C# code example. - /// - [Test] - public void TestAddKeywordsInBulkCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddKeywordsInBulk().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddLocationExtension VB.NET code example. - /// - [Test] - public void TestAddLocationExtensionVBExample() { - RunExample(delegate() { - new VBExamples.AddLocationExtension().Run(user, campaignId); - }); - } - - /// - /// Tests the AddLocationExtension C# code example. - /// - [Test] - public void TestAddLocationExtensionCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddLocationExtension().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAllDisapprovedAds VB.NET code example. - /// - [Test] - public void TestGetAllDisapprovedAdsVBExample() { - RunExample(delegate() { - new VBExamples.GetAllDisapprovedAds().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAllDisapprovedAds C# code example. - /// - [Test] - public void TestGetAllDisapprovedAdsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAllDisapprovedAds().Run(user, campaignId); - }); - } - - /// - /// Tests the PromoteExperiment VB.NET code example. - /// - [Test] - public void TestPromoteExperimentVBExample() { - long experimentId = CreateExperimentForPromotion(); - RunExample(delegate() { - new VBExamples.PromoteExperiment().Run(user, experimentId); - }); - } - - /// - /// Tests the PromoteExperiment C# code example. - /// - [Test] - public void TestPromoteExperimentCSharpExample() { - long experimentId = CreateExperimentForPromotion(); - RunExample(delegate() { - new CSharpExamples.PromoteExperiment().Run(user, experimentId); - }); - } - - /// - /// Tests the SetAdParameters VB.NET code example. - /// - [Test] - public void TestSetAdParametersVBExample() { - RunExample(delegate() { - new VBExamples.SetAdParameters().Run(user, adGroupId, criterionId); - }); - } - - /// - /// Tests the SetAdParameters C# code example. - /// - [Test] - public void TestSetAdParametersCSharpExample() { - RunExample(delegate() { - new CSharpExamples.SetAdParameters().Run(user, adGroupId, criterionId); - }); - } - - /// - /// Tests the ValidateTextAd VB.NET code example. - /// - [Test] - public void TestValidateTextAdVBExample() { - RunExample(delegate() { - new VBExamples.ValidateTextAd().Run(user, adGroupId); - }); - } - - /// - /// Tests the ValidateTextAd C# code example. - /// - [Test] - public void TestValidateTextAdCSharpExample() { - RunExample(delegate() { - new CSharpExamples.ValidateTextAd().Run(user, adGroupId); - }); - } - - /// - /// Tests the SetBidModifier C# code example. - /// - [Test] - public void TestSetBidModifierCSharpExample() { - RunExample(delegate() { - new CSharpExamples.SetBidModifier().Run(user, enhancedCampaignId, BID_MODIFIER); - }); - } - - /// - /// Tests the SetBidModifier VB.NET code example. - /// - [Test] - public void TestSetBidModifierVBExample() { - RunExample(delegate() { - new VBExamples.SetBidModifier().Run(user, enhancedCampaignId, BID_MODIFIER); - }); - } - - /// - /// Create an experiment for promotion. - /// - /// Experiment id for promotion. - /// This code cannot be added in Init(), since there can be only - /// one experiment per campaign, and if we add this to Init(), then - /// AddExperiment tests will fail. - private long CreateExperimentForPromotion() { - return utils.AddExperiment(user, campaignId, adGroupId, criterionId); - } - } -} diff --git a/tests/AdWords/v201309/ErrorHandlingTest.cs b/tests/AdWords/v201309/ErrorHandlingTest.cs deleted file mode 100644 index 291ccae02cd..00000000000 --- a/tests/AdWords/v201309/ErrorHandlingTest.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\ErrorHandling. - /// - class ErrorHandlingTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPC); - adGroupId = utils.CreateAdGroup(user, campaignId); - } - - /// - /// Tests the HandlePartialFailures VB.NET code example. - /// - [Test] - public void TestHandlePartialFailuresVBExample() { - RunExample(delegate() { - new VBExamples.HandlePartialFailures().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandlePartialFailures C# code example. - /// - [Test] - public void TestHandlePartialFailuresCSharpExample() { - RunExample(delegate() { - new CSharpExamples.HandlePartialFailures().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandlePolicyViolationError VB.NET code example. - /// - [Test] - public void TestHandlePolicyViolationErrorVBExample() { - RunExample(delegate() { - new VBExamples.HandlePolicyViolationError().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandlePolicyViolationError C# code example. - /// - [Test] - public void TestHandlePolicyViolationErrorCSharpExample() { - RunExample(delegate() { - new CSharpExamples.HandlePolicyViolationError().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandleTwoFactorAuthorizationError VB.NET code example. - /// - [Test] - public void TestHandleTwoFactorAuthorizationErrorVBExample() { - RunExample(delegate() { - new VBExamples.HandleTwoFactorAuthorizationError().Run(user); - }); - } - - /// - /// Tests the HandleTwoFactorAuthorizationError C# code example. - /// - [Test] - public void TestHandleTwoFactorAuthorizationErrorCSharpExample() { - RunExample(delegate() { - new CSharpExamples.HandleTwoFactorAuthorizationError().Run(user); - }); - } - } -} diff --git a/tests/AdWords/v201309/MiscellaneousTest.cs b/tests/AdWords/v201309/MiscellaneousTest.cs deleted file mode 100644 index d0dc3587977..00000000000 --- a/tests/AdWords/v201309/MiscellaneousTest.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Miscellaneous. - /// - class MiscellaneousTest : VersionedExampleTestsBase { - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - } - - /// - /// Tests the GetAllVideosAndImages VB.NET code example. - /// - [Test] - public void TestGetAllVideosAndImagesVBExample() { - RunExample(delegate() { - new VBExamples.GetAllVideosAndImages().Run(user); - }); - } - - /// - /// Tests the GetAllVideosAndImages C# code example. - /// - [Test] - public void TestGetAllVideosAndImagesCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAllVideosAndImages().Run(user); - }); - } - - /// - /// Tests the UploadImage VB.NET code example. - /// - [Test] - public void TestUploadImageVBExample() { - RunExample(delegate() { - new VBExamples.UploadImage().Run(user); - }); - } - - /// - /// Tests the UploadImage C# code example. - /// - [Test] - public void TestUploadImageCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UploadImage().Run(user); - }); - } - } -} diff --git a/tests/AdWords/v201309/OptimizationTest.cs b/tests/AdWords/v201309/OptimizationTest.cs deleted file mode 100644 index 60cd2f7ffc1..00000000000 --- a/tests/AdWords/v201309/OptimizationTest.cs +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Optimization. - /// - class OptimizationTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - long keywordId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPC); - adGroupId = utils.CreateAdGroup(user, campaignId); - keywordId = utils.CreateKeyword(user, adGroupId); - } - - /// - /// Tests the EstimateKeywordTraffic VB.NET code example. - /// - [Test] - public void TestEstimateKeywordTrafficVBExample() { - RunExample(delegate() { - new VBExamples.EstimateKeywordTraffic().Run(user); - }); - } - - /// - /// Tests the EstimateKeywordTraffic C# code example. - /// - [Test] - public void TestEstimateKeywordTrafficCSharpExample() { - RunExample(delegate() { - new CSharpExamples.EstimateKeywordTraffic().Run(user); - }); - } - - /// - /// Tests the GetAdGroupBidSimulations VB.NET code example. - /// - [Test] - public void TestGetAdGroupBidSimulationsVBExample() { - RunExample(delegate() { - new VBExamples.GetAdGroupBidSimulations().Run(user, adGroupId); - }); - } - - /// - /// Tests the GetAdGroupBidSimulations C# code example. - /// - [Test] - public void TestGetAdGroupBidSimulationsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAdGroupBidSimulations().Run(user, adGroupId); - }); - } - - /// - /// Tests the GetKeywordBidSimulations VB.NET code example. - /// - [Test] - public void TestGetKeywordBidSimulationsVBExample() { - RunExample(delegate() { - new VBExamples.GetKeywordBidSimulations().Run(user, adGroupId, keywordId); - }); - } - - /// - /// Tests the GetKeywordBidSimulations C# code example. - /// - [Test] - public void TestGetKeywordBidSimulationsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetKeywordBidSimulations().Run(user, adGroupId, keywordId); - }); - } - - /// - /// Tests the GetPlacementIdeas VB.NET code example. - /// - [Test] - public void TestGetPlacementIdeasVBExample() { - RunExample(delegate() { - new VBExamples.GetPlacementIdeas().Run(user); - }); - } - - /// - /// Tests the GetPlacementIdeas C# code example. - /// - [Test] - public void TestGetPlacementIdeasCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetPlacementIdeas().Run(user); - }); - } - } -} diff --git a/tests/AdWords/v201309/RemarketingTest.cs b/tests/AdWords/v201309/RemarketingTest.cs deleted file mode 100644 index ddd6b746ea4..00000000000 --- a/tests/AdWords/v201309/RemarketingTest.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under - /// v201309\AudienceAndConversionManagement. - /// - class RemarketingTest : VersionedExampleTestsBase { - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - } - - /// - /// Tests the AddAudience VB.NET code example. - /// - [Test] - public void TestAddAudienceVBExample() { - RunExample(delegate() { - new VBExamples.AddAudience().Run(user); - }); - } - - /// - /// Tests the AddAudience C# code example. - /// - [Test] - public void TestAddAudienceCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddAudience().Run(user); - }); - } - - /// - /// Tests the AddConversionTracker VB.NET code example. - /// - [Test] - public void TestAddConversionTrackerVBExample() { - RunExample(delegate() { - new VBExamples.AddConversionTracker().Run(user); - }); - } - - /// - /// Tests the AddConversionTracker C# code example. - /// - [Test] - public void TestAddConversionTrackerCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddConversionTracker().Run(user); - }); - } - } -} diff --git a/tests/AdWords/v201309/ReportingTest.cs b/tests/AdWords/v201309/ReportingTest.cs deleted file mode 100644 index dce4868a8c2..00000000000 --- a/tests/AdWords/v201309/ReportingTest.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Reporting. - /// - class ReportingTest : VersionedExampleTestsBase { - string outputFileName; - ReportDefinitionReportType reportType; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - outputFileName = Path.GetFileName(Path.GetTempFileName()); - reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT; - } - - /// - /// Tests the DownloadCriteriaReport VB.NET code example. - /// - [Test] - public void TestDownloadCriteriaReportVBExample() { - RunExample(delegate() { - new VBExamples.DownloadCriteriaReport().Run(user, outputFileName); - }); - } - - /// - /// Tests the DownloadCriteriaReport C# code example. - /// - [Test] - public void TestDownloadCriteriaReportCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DownloadCriteriaReport().Run(user, outputFileName); - }); - } - - /// - /// Tests the GetReportFields VB.NET code example. - /// - [Test] - public void TestGetReportFieldsVBExample() { - RunExample(delegate() { - new VBExamples.GetReportFields().Run(user, reportType); - }); - } - - /// - /// Tests the GetReportFields C# code example. - /// - [Test] - public void TestGetReportFieldsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetReportFields().Run(user, reportType); - }); - } - } -} diff --git a/tests/AdWords/v201309/TargetingTest.cs b/tests/AdWords/v201309/TargetingTest.cs deleted file mode 100644 index 95ab33a0a06..00000000000 --- a/tests/AdWords/v201309/TargetingTest.cs +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Targeting. - /// - class TargetingTest : VersionedExampleTestsBase { - long campaignId; - long campaignCriterionId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPC); - campaignCriterionId = utils.AddCampaignTargetingCriteria(user, campaignId); - } - - /// - /// Tests the AddCampaignTargetingCriteria VB.NET code example. - /// - [Test] - public void TestAddCampaignTargetingCriteriaVBExample() { - RunExample(delegate() { - new VBExamples.AddCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the AddCampaignTargetingCriteria C# code example. - /// - [Test] - public void TestAddCampaignTargetingCriteriaCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the GetCampaignTargetingCriteria VB.NET code example. - /// - [Test] - public void TestGetCampaignTargetingCriteriaVBExample() { - RunExample(delegate() { - new VBExamples.GetCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the GetCampaignTargetingCriteria C# code example. - /// - [Test] - public void TestGetCampaignTargetingCriteriaCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the GetTargetableLanguagesAndCarriers VB.NET code example. - /// - [Test] - public void TestGetTargetableLanguagesAndCarriersVBExample() { - RunExample(delegate() { - new VBExamples.GetTargetableLanguagesAndCarriers().Run(user); - }); - } - - /// - /// Tests the GetTargetableLanguagesAndCarriers C# code example. - /// - [Test] - public void TestGetTargetableLanguagesAndCarriersCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetTargetableLanguagesAndCarriers().Run(user); - }); - } - - /// - /// Tests the LookupLocation VB.NET code example. - /// - [Test] - public void TestLookupLocationVBExample() { - RunExample(delegate() { - new VBExamples.LookupLocation().Run(user); - }); - } - - /// - /// Tests the LookupLocation C# code example. - /// - [Test] - public void TestLookupLocationCSharpExample() { - RunExample(delegate() { - new CSharpExamples.LookupLocation().Run(user); - }); - } - } -} diff --git a/tests/AdWords/v201309/TestUtils.cs b/tests/AdWords/v201309/TestUtils.cs deleted file mode 100644 index 7de7a7d3c1a..00000000000 --- a/tests/AdWords/v201309/TestUtils.cs +++ /dev/null @@ -1,541 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util.v201309; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Net; -using System.Text; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// A utility class to assist the testing of v201309 services. - /// - class TestUtils { - /// - /// Creates a test campaign for running further tests. - /// - /// The AdWords user. - /// The bidding strategy to be used. - /// The campaign id. - public long CreateCampaign(AdWordsUser user, BiddingStrategyType strategyType) { - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - biddingConfig.biddingStrategyType = strategyType; - - CampaignOperation campaignOperation = new CampaignOperation(); - campaignOperation.@operator = Operator.ADD; - campaignOperation.operand = new Campaign(); - campaignOperation.operand.name = - string.Format("Campaign {0}", DateTime.Now.ToString("yyyy-M-d H:m:s.ffffff")); - campaignOperation.operand.status = CampaignStatus.PAUSED; - campaignOperation.operand.biddingStrategyConfiguration = biddingConfig; - campaignOperation.operand.budget = new Budget(); - campaignOperation.operand.budget.period = BudgetBudgetPeriod.DAILY; - campaignOperation.operand.budget.amount = new Money(); - campaignOperation.operand.budget.amount.microAmount = 100000000; - campaignOperation.operand.budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD; - KeywordMatchSetting matchSetting = new KeywordMatchSetting(); - matchSetting.optIn = true; - campaignOperation.operand.settings = new Setting[] {matchSetting}; - - CampaignReturnValue retVal = - campaignService.mutate(new CampaignOperation[] {campaignOperation}); - return retVal.value[0].id; - } - - /// - /// Creates the legacy sitelinks. - /// - /// The AdWords user. - /// The campaign id. - /// The list of legacy sitelinks. - public Sitelink[] CreateLegacySitelinks(AdWordsUser user, long campaignId) { - // Get the CampaignAdExtensionService. - CampaignAdExtensionService campaignExtensionService = - (CampaignAdExtensionService) user.GetService(AdWordsService.v201309. - CampaignAdExtensionService); - - // Create the sitelinks. - SitelinksExtension siteLinkExtension = new SitelinksExtension(); - - Sitelink siteLink1 = new Sitelink(); - siteLink1.displayText = "Music"; - siteLink1.destinationUrl = "http://www.example.com/music"; - - Sitelink siteLink2 = new Sitelink(); - siteLink2.displayText = "DVDs"; - siteLink2.destinationUrl = "http://www.example.com/dvds"; - - Sitelink siteLink3 = new Sitelink(); - siteLink3.displayText = "New albums"; - siteLink3.destinationUrl = "http://www.example.com/albums/new"; - - siteLinkExtension.sitelinks = new Sitelink[] {siteLink1, siteLink2, siteLink3}; - - CampaignAdExtension campaignAdExtension = new CampaignAdExtension(); - campaignAdExtension.adExtension = siteLinkExtension; - campaignAdExtension.campaignId = campaignId; - - // Create the operation. - CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation(); - operation.@operator = Operator.ADD; - operation.operand = campaignAdExtension; - - // Create the sitelinks. - CampaignAdExtensionReturnValue retVal = - campaignExtensionService.mutate(new CampaignAdExtensionOperation[] {operation}); - - return (retVal.value[0].adExtension as SitelinksExtension).sitelinks; - } - - /// - /// Converts a campaign into enhanced campaign using forward compatibility - /// map. - /// - /// The user. - /// The campaign id. - public void EnhanceCampaign(AdWordsUser user, long campaignId) { - CampaignService campaignService = (CampaignService) user.GetService( - AdWordsService.v201309.CampaignService); - - // Campaign to be updated with the enhanced value. - // Note: After setting the enhanced value to true, setting it back to false - // will generate an ApiError. - Campaign campaign = new Campaign(); - campaign.id = campaignId; - - // Create operation. - CampaignOperation operation = new CampaignOperation(); - operation.@operator = Operator.SET; - operation.operand = campaign; - - campaignService.mutate(new CampaignOperation[] {operation}); - return; - } - - /// - /// Creates a test adgroup for running further tests. - /// - /// The AdWords user. - /// The campaign id for which the adgroup is created. - /// The adgroup id. - public long CreateAdGroup(AdWordsUser user, long campaignId) { - return CreateAdGroup(user, campaignId, false); - } - - /// - /// Creates a test adgroup for running further tests. - /// - /// The AdWords user. - /// The campaign id for which the adgroup is created. - /// True, if a ManualCPM bid is to be used. - /// The adgroup id. - public long CreateAdGroup(AdWordsUser user, long campaignId, bool isCpmBid) { - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - AdGroupOperation adGroupOperation = new AdGroupOperation(); - adGroupOperation.@operator = Operator.ADD; - adGroupOperation.operand = new AdGroup(); - adGroupOperation.operand.campaignId = campaignId; - adGroupOperation.operand.name = - string.Format("AdGroup {0}", DateTime.Now.ToString("yyyy-M-d H:m:s.ffffff")); - adGroupOperation.operand.status = AdGroupStatus.ENABLED; - - if (isCpmBid) { - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - CpmBid cpmBid = new CpmBid(); - cpmBid.bid = new Money(); - cpmBid.bid.microAmount = 10000000; - biddingConfig.bids = new Bids[] {cpmBid}; - adGroupOperation.operand.biddingStrategyConfiguration = biddingConfig; - } else { - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - CpcBid cpcBid = new CpcBid(); - cpcBid.bid = new Money(); - cpcBid.bid.microAmount = 10000000; - biddingConfig.bids = new Bids[] {cpcBid}; - adGroupOperation.operand.biddingStrategyConfiguration = biddingConfig; - } - AdGroupReturnValue retVal = adGroupService.mutate(new AdGroupOperation[] {adGroupOperation}); - return retVal.value[0].id; - } - - /// - /// Creates a test textad for running further tests. - /// - /// The AdWords user. - /// The adgroup id for which the ad is created. - /// - /// True, if an ad param placeholder should be - /// added. - /// The text ad id. - public long CreateTextAd(AdWordsUser user, long adGroupId, bool hasAdParam) { - AdGroupAdService adGroupAdService = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation(); - adGroupAdOperation.@operator = Operator.ADD; - adGroupAdOperation.operand = new AdGroupAd(); - adGroupAdOperation.operand.adGroupId = adGroupId; - TextAd ad = new TextAd(); - - ad.headline = "Luxury Cruise to Mars"; - ad.description1 = "Visit the Red Planet in style."; - if (hasAdParam) { - ad.description2 = "Low-gravity fun for {param1:cheap}!"; - } else { - ad.description2 = "Low-gravity fun for everyone!"; - } - ad.displayUrl = "example.com"; - ad.url = "http://www.example.com"; - - adGroupAdOperation.operand.ad = ad; - - AdGroupAdReturnValue retVal = - adGroupAdService.mutate(new AdGroupAdOperation[] {adGroupAdOperation}); - return retVal.value[0].ad.id; - } - - /// - /// Creates a test ThirdPartyRedirectAd for running further tests. - /// - /// The AdWords user. - /// The adgroup id for which the ad is created. - /// - /// True, if an ad param placeholder should be - /// added. - /// The text ad id. - public long CreateThirdPartyRedirectAd(AdWordsUser user, long adGroupId) { - AdGroupAdService adGroupAdService = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation(); - adGroupAdOperation.@operator = Operator.ADD; - adGroupAdOperation.operand = new AdGroupAd(); - adGroupAdOperation.operand.adGroupId = adGroupId; - - // Create the third party redirect ad. - ThirdPartyRedirectAd redirectAd = new ThirdPartyRedirectAd(); - redirectAd.name = string.Format("Example third party ad #{0}", this.GetTimeStamp()); - redirectAd.url = "http://www.example.com"; - - redirectAd.dimensions = new Dimensions(); - redirectAd.dimensions.height = 250; - redirectAd.dimensions.width = 300; - - // This field normally contains the javascript ad tag. - redirectAd.snippet = - ""; - redirectAd.impressionBeaconUrl = "http://www.examples.com/beacon"; - redirectAd.certifiedVendorFormatId = 119; - redirectAd.isCookieTargeted = false; - redirectAd.isUserInterestTargeted = false; - redirectAd.isTagged = false; - - adGroupAdOperation.operand.ad = redirectAd; - - AdGroupAdReturnValue retVal = - adGroupAdService.mutate(new AdGroupAdOperation[] {adGroupAdOperation}); - return retVal.value[0].ad.id; - } - - /// - /// Sets an adparam for running further tests. - /// - /// The AdWords user. - /// The adgroup id to which criterionId belongs. - /// - /// The criterion id to which adparam is set. - /// - public void SetAdParam(AdWordsUser user, long adGroupId, long criterionId) { - AdParamService adParamService = - (AdParamService) user.GetService(AdWordsService.v201309.AdParamService); - - // Prepare for setting ad parameters. - AdParam adParam = new AdParam(); - adParam.adGroupId = adGroupId; - adParam.criterionId = criterionId; - adParam.paramIndex = 1; - adParam.insertionText = "$100"; - - AdParamOperation adParamOperation = new AdParamOperation(); - adParamOperation.@operator = Operator.SET; - adParamOperation.operand = adParam; - - // Set ad parameters. - AdParam[] newAdParams = adParamService.mutate(new AdParamOperation[] {adParamOperation}); - return; - } - - /// - /// Creates a keyword for running further tests. - /// - /// The AdWords user. - /// The adgroup id for which the keyword is - /// created. - /// The keyword id. - public long CreateKeyword(AdWordsUser user, long adGroupId) { - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); - operation.@operator = Operator.ADD; - operation.operand = new BiddableAdGroupCriterion(); - operation.operand.adGroupId = adGroupId; - - Keyword keyword = new Keyword(); - keyword.matchType = KeywordMatchType.BROAD; - keyword.text = "mars cruise"; - - operation.operand.criterion = keyword; - AdGroupCriterionReturnValue retVal = - adGroupCriterionService.mutate(new AdGroupCriterionOperation[] {operation}); - return retVal.value[0].criterion.id; - } - - /// - /// Creates the placement. - /// - /// The AdWords user. - /// The adgroup id for which the placement is - /// created. - /// The placement id. - public long CreatePlacement(AdWordsUser user, long adGroupId) { - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - Placement placement = new Placement(); - placement.url = "http://mars.google.com"; - - AdGroupCriterion placementCriterion = new BiddableAdGroupCriterion(); - placementCriterion.adGroupId = adGroupId; - placementCriterion.criterion = placement; - - AdGroupCriterionOperation placementOperation = new AdGroupCriterionOperation(); - placementOperation.@operator = Operator.ADD; - placementOperation.operand = placementCriterion; - - AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate( - new AdGroupCriterionOperation[] {placementOperation}); - - return retVal.value[0].criterion.id; - } - - /// - /// Creates a campaign ad extension for running further tests. - /// - /// The AdWords user. - /// The campaign id for which extension is - /// created. - /// The campaign ad extension id. - public long CreateLocationExtension(AdWordsUser user, long campaignId) { - CampaignAdExtensionService campaignExtensionService = - (CampaignAdExtensionService) user.GetService(AdWordsService.v201309. - CampaignAdExtensionService); - - CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation(); - operation.@operator = Operator.ADD; - - CampaignAdExtension extension = new CampaignAdExtension(); - extension.campaignId = campaignId; - extension.status = CampaignAdExtensionStatus.ACTIVE; - - Address address = new Address(); - address.streetAddress = "1600 Amphitheatre Pkwy, Mountain View"; - address.countryCode = "US"; - - GeoLocation location = GetLocationForAddress(user, address); - - LocationExtension locationExtension = new LocationExtension(); - - // Note: Do not populate an address directly. Instead, use - // GeoLocationService to obtain the location of an address, - // and use the address as per the location it returns. - locationExtension.address = location.address; - locationExtension.geoPoint = location.geoPoint; - locationExtension.encodedLocation = location.encodedLocation; - locationExtension.source = LocationExtensionSource.ADWORDS_FRONTEND; - - extension.adExtension = locationExtension; - operation.operand = extension; - CampaignAdExtensionReturnValue retVal = - campaignExtensionService.mutate(new CampaignAdExtensionOperation[] {operation}); - return retVal.value[0].adExtension.id; - } - - /// - /// Adds site links to a campaign. - /// - /// The user. - /// The campaign id. - /// The sitelinks campaign adextension id. - public long AddSiteLinks(AdWordsUser user, long campaignId) { - // Get the CampaignAdExtensionService. - CampaignAdExtensionService campaignExtensionService = - (CampaignAdExtensionService) user.GetService(AdWordsService.v201309. - CampaignAdExtensionService); - - // Create the sitelinks. - SitelinksExtension siteLinkExtension = new SitelinksExtension(); - - Sitelink siteLink1 = new Sitelink(); - siteLink1.displayText = "Music"; - siteLink1.destinationUrl = "http://www.example.com/music"; - - Sitelink siteLink2 = new Sitelink(); - siteLink2.displayText = "DVDs"; - siteLink2.destinationUrl = "http://www.example.com/dvds"; - - Sitelink siteLink3 = new Sitelink(); - siteLink3.displayText = "New albums"; - siteLink3.destinationUrl = "http://www.example.com/albums/new"; - - siteLinkExtension.sitelinks = new Sitelink[] {siteLink1, siteLink2, siteLink3}; - - CampaignAdExtension campaignAdExtension = new CampaignAdExtension(); - campaignAdExtension.adExtension = siteLinkExtension; - campaignAdExtension.campaignId = campaignId; - - // Create the operation. - CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation(); - operation.@operator = Operator.ADD; - operation.operand = campaignAdExtension; - - // Create the sitelinks. - CampaignAdExtensionReturnValue retVal = - campaignExtensionService.mutate(new CampaignAdExtensionOperation[] {operation}); - - return retVal.value[0].adExtension.id; - } - - /// - /// Adds an experiment. - /// - /// The user. - /// The campaign id. - /// The ad group id. - /// The criterion id. - /// The experiment id. - public long AddExperiment(AdWordsUser user, long campaignId, long adGroupId, long criterionId) { - // Get the ExperimentService. - ExperimentService experimentService = - (ExperimentService) user.GetService(AdWordsService.v201309.ExperimentService); - - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Create the experiment. - Experiment experiment = new Experiment(); - experiment.campaignId = campaignId; - experiment.name = "Interplanetary Cruise #" + GetTimeStamp(); - experiment.queryPercentage = 10; - experiment.startDateTime = DateTime.Now.AddDays(1).ToString("yyyyMMdd HHmmss"); - - // Create the operation. - ExperimentOperation experimentOperation = new ExperimentOperation(); - experimentOperation.@operator = Operator.ADD; - experimentOperation.operand = experiment; - - // Add the experiment. - ExperimentReturnValue experimentRetVal = experimentService.mutate( - new ExperimentOperation[] {experimentOperation}); - - return experimentRetVal.value[0].id; - } - - /// - /// Adds the campaign targeting criteria to a campaign. - /// - /// The user. - /// The campaign id. - /// The campaign criteria id. - public long AddCampaignTargetingCriteria(AdWordsUser user, long campaignId) { - // Get the CampaignCriterionService. - CampaignCriterionService campaignCriterionService = - (CampaignCriterionService) user.GetService( - AdWordsService.v201309.CampaignCriterionService); - - // Create language criteria. - // See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - // for a detailed list of language codes. - Language language1 = new Language(); - language1.id = 1002; // French - CampaignCriterion languageCriterion1 = new CampaignCriterion(); - languageCriterion1.campaignId = campaignId; - languageCriterion1.criterion = language1; - - CampaignCriterion[] criteria = new CampaignCriterion[] {languageCriterion1}; - - List operations = new List(); - - foreach (CampaignCriterion criterion in criteria) { - CampaignCriterionOperation operation = new CampaignCriterionOperation(); - operation.@operator = Operator.ADD; - operation.operand = criterion; - operations.Add(operation); - } - - CampaignCriterionReturnValue retVal = campaignCriterionService.mutate(operations.ToArray()); - return retVal.value[0].criterion.id; - } - - /// - /// Returns an image which can be used for creating image ads. - /// - /// The image data, as an array of bytes. - public byte[] GetTestImage() { - return MediaUtilities.GetAssetDataFromUrl("http://goo.gl/HJM3L"); - } - - /// - /// Gets the geo location for a given address. - /// - /// The AdWords user. - /// The address for which geolocation should be - /// fetched. - /// Geo location for the address. - public GeoLocation GetLocationForAddress(AdWordsUser user, Address address) { - GeoLocationService geoService = - (GeoLocationService) user.GetService(AdWordsService.v201309.GeoLocationService); - - GeoLocationSelector selector = new GeoLocationSelector(); - selector.addresses = new Address[] {address}; - return geoService.get(selector)[0]; - } - - /// - /// Gets the current timestamp. - /// - /// The timestamp as a string. - public string GetTimeStamp() { - return (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds.ToString(); - } - } -} diff --git a/tests/AdWords/v201309/VersionedExampleTestsBase.cs b/tests/AdWords/v201309/VersionedExampleTestsBase.cs deleted file mode 100644 index 565f25160de..00000000000 --- a/tests/AdWords/v201309/VersionedExampleTestsBase.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using System; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Base class for code examples that adds version-specific features. - /// - class VersionedExampleTestsBase : ExampleTestsBase { - /// - /// Test utilities instance for support functionality when running tests. - /// - protected TestUtils utils = new TestUtils(); - - /// - /// Default public constructor. - /// - public VersionedExampleTestsBase() : base() { - } - } -} diff --git a/tests/AdXBuyer/AdWords.Tests.csproj b/tests/AdXBuyer/AdWords.Tests.csproj index 55300382673..b13d644d309 100644 --- a/tests/AdXBuyer/AdWords.Tests.csproj +++ b/tests/AdXBuyer/AdWords.Tests.csproj @@ -78,21 +78,8 @@ - - - - - - - - - - - - - diff --git a/tests/AdXBuyer/Properties/Properties.cs b/tests/AdXBuyer/Properties/Properties.cs index de944c8264a..3f01f1a16a9 100644 --- a/tests/AdXBuyer/Properties/Properties.cs +++ b/tests/AdXBuyer/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("AdWords API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/tests/AdXBuyer/Util/v201309/MapUtilitiesTest.cs b/tests/AdXBuyer/Util/v201309/MapUtilitiesTest.cs deleted file mode 100644 index 43abfc745af..00000000000 --- a/tests/AdXBuyer/Util/v201309/MapUtilitiesTest.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - - -using Google.Api.Ads.AdWords.Util.v201309; -using Google.Api.Ads.AdWords.v201309; - -using System; -using System.Collections.Generic; -using System.Text; - -using NUnit.Framework; - -namespace Google.Api.Ads.AdWords.Tests.Util.v201309 { - /// - /// Tests for MapUtilities class. - /// - public class MapUtilitiesTest { - /// - /// Internal MapUtils instance for testing purposes. - /// - private MapUtilities mapUtils; - - /// - /// Initializes this instance. - /// - [SetUp] - public void Init() { - this.mapUtils = new MapUtilities(); - } - - /// - /// Tests the Add method. - /// - [Test] - public void TestAddKeyValue() { - mapUtils.Add("key1", "value1"); - mapUtils.Add("key2", "value2"); - String_StringMapEntry[] entries = mapUtils.AsArray(); - Assert.AreEqual(2, entries.Length); - Assert.AreEqual(entries[0].key, "key1"); - Assert.AreEqual(entries[0].value, "value1"); - Assert.AreEqual(entries[1].key, "key2"); - Assert.AreEqual(entries[1].value, "value2"); - } - - /// - /// Tests the AddEntry method. - /// - [Test] - public void TestAddEntry() { - String_StringMapEntry item1 = new String_StringMapEntry(); - item1.key = "key3"; - item1.value = "value3"; - mapUtils.AddEntry(item1); - - String_StringMapEntry item2 = new String_StringMapEntry(); - item2.key = "key4"; - item2.value = "value4"; - mapUtils.AddEntry(item2); - - String_StringMapEntry[] entries = mapUtils.AsArray(); - Assert.AreEqual(2, entries.Length); - Assert.AreEqual(entries[0].key, item1.key); - Assert.AreEqual(entries[0].value, item1.value); - Assert.AreEqual(entries[1].key, item2.key); - Assert.AreEqual(entries[1].value, item2.value); - } - - /// - /// Tests the AddEntries method. - /// - [Test] - public void TestAddEntries() { - String_StringMapEntry item1 = new String_StringMapEntry(); - item1.key = "key5"; - item1.value = "value5"; - - String_StringMapEntry item2 = new String_StringMapEntry(); - item2.key = "key6"; - item2.value = "value6"; - - mapUtils.AddEntries(new String_StringMapEntry[] {item1, item2}); - - String_StringMapEntry[] entries = mapUtils.AsArray(); - Assert.AreEqual(2, entries.Length); - Assert.AreEqual(entries[0].key, item1.key); - Assert.AreEqual(entries[0].value, item1.value); - Assert.AreEqual(entries[1].key, item2.key); - Assert.AreEqual(entries[1].value, item2.value); - } - - /// - /// Tests the AsDict method. - /// - [Test] - public void TestAsDict() { - String_StringMapEntry item1 = new String_StringMapEntry(); - item1.key = "key7"; - item1.value = "value7"; - - String_StringMapEntry item2 = new String_StringMapEntry(); - item2.key = "key8"; - item2.value = "value8"; - - mapUtils.AddEntries(new String_StringMapEntry[] {item1, item2}); - - Dictionary entries = mapUtils.AsDict(); - Assert.AreEqual(2, entries.Count); - Assert.True(entries.ContainsKey("key7")); - Assert.True(entries.ContainsKey("key8")); - Assert.AreEqual(entries["key7"], item1.value); - Assert.AreEqual(entries["key8"], item2.value); - } - } -} diff --git a/tests/AdXBuyer/v201309/AccountManagementTest.cs b/tests/AdXBuyer/v201309/AccountManagementTest.cs deleted file mode 100644 index f650af108a4..00000000000 --- a/tests/AdXBuyer/v201309/AccountManagementTest.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\AccountManagement. - /// - class AccountManagementTest : VersionedExampleTestsBase { - /// - /// Tests the GetAccountChanges VB.NET code example. - /// - [Test] - public void TestGetAccountChangesVBExample() { - RunExample(delegate() { - new VBExamples.GetAccountChanges().Run(user); - }); - } - - /// - /// Tests the GetAccountChanges C# code example. - /// - [Test] - public void TestGetAccountChangesCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAccountChanges().Run(user); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/AdvancedOperationsTest.cs b/tests/AdXBuyer/v201309/AdvancedOperationsTest.cs deleted file mode 100644 index 7c79c3cb28c..00000000000 --- a/tests/AdXBuyer/v201309/AdvancedOperationsTest.cs +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\AdvancedOperations. - /// - class AdvancedOperationsTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - long adId; - long keywordId; - const double BID_MODIFIER = 0.2; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPM); - adGroupId = utils.CreateAdGroup(user, campaignId); - } - - /// - /// Tests the AddAdGroupBidModifier C# code example. - /// - [Test] - public void TestAddAdGroupBidModifierCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddAdGroupBidModifier().Run(user, adGroupId, BID_MODIFIER); - }); - } - - /// - /// Tests the AddAdGroupBidModifier VB.NET code example. - /// - [Test] - public void TestAddAdGroupBidModifierVBExample() { - RunExample(delegate() { - new VBExamples.AddAdGroupBidModifier().Run(user, adGroupId, BID_MODIFIER); - }); - } - - /// - /// Tests the GetAdGroupBidModifiers C# code example. - /// - [Test] - public void TestGetAdGroupBidModifiersCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAdGroupBidModifiers().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAdGroupBidModifiers VB.NET code example. - /// - [Test] - public void TestGetAdGroupBidModifiersVBExample() { - RunExample(delegate() { - new VBExamples.GetAdGroupBidModifiers().Run(user, campaignId); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/BasicOperationsTest.cs b/tests/AdXBuyer/v201309/BasicOperationsTest.cs deleted file mode 100644 index 561c8d4145d..00000000000 --- a/tests/AdXBuyer/v201309/BasicOperationsTest.cs +++ /dev/null @@ -1,391 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\BasicOperations. - /// - class BasicOperationsTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - long adId; - long placementId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPM); - adGroupId = utils.CreateAdGroup(user, campaignId, true); - adId = utils.CreateTextAd(user, adGroupId, false); - placementId = utils.CreatePlacement(user, adGroupId); - } - - /// - /// Tests the AddAdGroup VB.NET code example. - /// - [Test] - public void TestAddAdGroupVBExample() { - RunExample(delegate() { - new VBExamples.AddAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the AddAdGroup C# code example. - /// - [Test] - public void TestAddAdGroupCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the AddCampaign VB.NET code example. - /// - [Test] - public void TestAddCampaignVBExample() { - RunExample(delegate() { - new VBExamples.AddCampaigns().Run(user); - }); - } - - /// - /// Tests the AddCampaign C# code example. - /// - [Test] - public void TestAddCampaignCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddCampaigns().Run(user); - }); - } - - /// - /// Tests the AddPlacements VB.NET code example. - /// - [Test] - public void TestAddPlacementsVBExample() { - RunExample(delegate() { - new VBExamples.AddPlacements().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddPlacements C# code example. - /// - [Test] - public void TestAddPlacementsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddPlacements().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddThirdPartyRedirectAd VB.NET code example. - /// - [Test] - public void TestAddThirdPartyRedirectAdVBExample() { - RunExample(delegate() { - new VBExamples.AddThirdPartyRedirectAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddThirdPartyRedirectAd C# code example. - /// - [Test] - public void TestAddThirdPartyRedirectAdCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddThirdPartyRedirectAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the DeleteAdGroup VB.NET code example. - /// - [Test] - public void TestDeleteAdGroupVBExample() { - RunExample(delegate() { - new VBExamples.DeleteAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the DeleteAdGroup C# code example. - /// - [Test] - public void TestDeleteAdGroupCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DeleteAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the DeleteAd VB.NET code example. - /// - [Test] - public void TestDeleteAdVBExample() { - RunExample(delegate() { - new VBExamples.DeleteAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the DeleteAd C# code example. - /// - [Test] - public void TestDeleteAdCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DeleteAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the DeleteCampaign VB.NET code example. - /// - [Test] - public void TestDeleteCampaignVBExample() { - RunExample(delegate() { - new VBExamples.DeleteCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the DeleteCampaign C# code example. - /// - [Test] - public void TestDeleteCampaignCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DeleteCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the DeletePlacement VB.NET code example. - /// - [Test] - public void TestDeletePlacementVBExample() { - RunExample(delegate() { - new VBExamples.DeletePlacement().Run(user, adGroupId, placementId); - }); - } - - /// - /// Tests the DeletePlacement C# code example. - /// - [Test] - public void TestDeletePlacementCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DeletePlacement().Run(user, adGroupId, placementId); - }); - } - - /// - /// Tests the GetAdGroups VB.NET code example. - /// - [Test] - public void TestGetAdGroupsVBExample() { - RunExample(delegate() { - new VBExamples.GetAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAdGroups C# code example. - /// - [Test] - public void TestGetAdGroupsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAdGroups().Run(user, campaignId); - }); - } - - /// - /// Tests the GetCampaigns VB.NET code example. - /// - [Test] - public void TestGetCampaignsVBExample() { - RunExample(delegate() { - new VBExamples.GetCampaigns().Run(user); - }); - } - - /// - /// Tests the GetCampaigns C# code example. - /// - [Test] - public void TestGetCampaignsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetCampaigns().Run(user); - }); - } - - /// - /// Tests the GetCampaignsWithAwql VB.NET code example. - /// - [Test] - public void TestGetCampaignsWithAwqlVBExample() { - RunExample(delegate() { - new VBExamples.GetCampaignsWithAwql().Run(user); - }); - } - - /// - /// Tests the GetCampaignsWithAwql C# code example. - /// - [Test] - public void TestGetCampaignsWithAwqlCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetCampaignsWithAwql().Run(user); - }); - } - - /// - /// Tests the GetPlacements VB.NET code example. - /// - [Test] - public void TestGetPlacementsVBExample() { - RunExample(delegate() { - new VBExamples.GetPlacements().Run(user); - }); - } - - /// - /// Tests the GetPlacements C# code example. - /// - [Test] - public void TestGetPlacementsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetPlacements().Run(user); - }); - } - - /// - /// Tests the GetThirdPartyRedirectAds VB.NET code example. - /// - [Test] - public void TestGetThirdPartyRedirectAdsVBExample() { - RunExample(delegate() { - new VBExamples.GetThirdPartyRedirectAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the GetThirdPartyRedirectAds C# code example. - /// - [Test] - public void TestGetThirdPartyRedirectAdsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetThirdPartyRedirectAds().Run(user, adGroupId); - }); - } - - /// - /// Tests the PauseAd VB.NET code example. - /// - [Test] - public void TestPauseAdVBExample() { - RunExample(delegate() { - new VBExamples.PauseAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the PauseAd C# code example. - /// - [Test] - public void TestPauseAdCSharpExample() { - RunExample(delegate() { - new CSharpExamples.PauseAd().Run(user, adGroupId, adId); - }); - } - - /// - /// Tests the UpdateAdGroup VB.NET code example. - /// - [Test] - public void TestUpdateAdGroupVBExample() { - RunExample(delegate() { - new VBExamples.UpdateAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the UpdateAdGroup C# code example. - /// - [Test] - public void TestUpdateAdGroupCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UpdateAdGroup().Run(user, adGroupId); - }); - } - - /// - /// Tests the UpdateCampaign VB.NET code example. - /// - [Test] - public void TestUpdateCampaignVBExample() { - RunExample(delegate() { - new VBExamples.UpdateCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the UpdateCampaign C# code example. - /// - [Test] - public void TestUpdateCampaignCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UpdateCampaign().Run(user, campaignId); - }); - } - - /// - /// Tests the UpdatePlacement VB.NET code example. - /// - [Test] - public void TestUpdatePlacementVBExample() { - RunExample(delegate() { - new VBExamples.UpdatePlacement().Run(user, adGroupId, placementId); - }); - } - - /// - /// Tests the UpdatePlacement C# code example. - /// - [Test] - public void TestUpdatePlacementCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UpdatePlacement().Run(user, adGroupId, placementId); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/CampaignManagementTest.cs b/tests/AdXBuyer/v201309/CampaignManagementTest.cs deleted file mode 100644 index ff67fcf102c..00000000000 --- a/tests/AdXBuyer/v201309/CampaignManagementTest.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\CampaignManagement. - /// - class CampaignManagementTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPM); - adGroupId = utils.CreateAdGroup(user, campaignId, true); - } - - /// - /// Tests the AddKeywordsInBulk VB.NET code example. - /// - [Test] - public void TestAddPlacementsInBulkVBExample() { - RunExample(delegate() { - new VBExamples.AddPlacementsInBulk().Run(user, adGroupId); - }); - } - - /// - /// Tests the AddKeywordsInBulk C# code example. - /// - [Test] - public void TestAddPlacementsInBulkCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddPlacementsInBulk().Run(user, adGroupId); - }); - } - - /// - /// Tests the GetAllDisapprovedAds VB.NET code example. - /// - [Test] - public void TestGetAllDisapprovedAdsVBExample() { - RunExample(delegate() { - new VBExamples.GetAllDisapprovedAds().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAllDisapprovedAds C# code example. - /// - [Test] - public void TestGetAllDisapprovedAdsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAllDisapprovedAds().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAllDisapprovedAdsWithAwql VB.NET code example. - /// - [Test] - public void TestGetAllDisapprovedAdsWithAwqlVBExample() { - RunExample(delegate() { - new VBExamples.GetAllDisapprovedAdsWithAwql().Run(user, campaignId); - }); - } - - /// - /// Tests the GetAllDisapprovedAdsWithAwql C# code example. - /// - [Test] - public void TestGetAllDisapprovedAdsWithAwqlCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAllDisapprovedAdsWithAwql().Run(user, campaignId); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/ErrorHandlingTest.cs b/tests/AdXBuyer/v201309/ErrorHandlingTest.cs deleted file mode 100644 index 0a8281a5302..00000000000 --- a/tests/AdXBuyer/v201309/ErrorHandlingTest.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\ErrorHandling. - /// - class ErrorHandlingTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPM); - adGroupId = utils.CreateAdGroup(user, campaignId); - } - - /// - /// Tests the HandlePartialFailures VB.NET code example. - /// - [Test] - public void TestHandlePartialFailuresVBExample() { - RunExample(delegate() { - new VBExamples.HandlePartialFailures().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandlePartialFailures C# code example. - /// - [Test] - public void TestHandlePartialFailuresCSharpExample() { - RunExample(delegate() { - new CSharpExamples.HandlePartialFailures().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandlePolicyViolationError VB.NET code example. - /// - [Test] - public void TestHandlePolicyViolationErrorVBExample() { - RunExample(delegate() { - new VBExamples.HandlePolicyViolationError().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandlePolicyViolationError C# code example. - /// - [Test] - public void TestHandlePolicyViolationErrorCSharpExample() { - RunExample(delegate() { - new CSharpExamples.HandlePolicyViolationError().Run(user, adGroupId); - }); - } - - /// - /// Tests the HandleTwoFactorAuthorizationError VB.NET code example. - /// - [Test] - public void TestHandleTwoFactorAuthorizationErrorVBExample() { - RunExample(delegate() { - new VBExamples.HandleTwoFactorAuthorizationError().Run(user); - }); - } - - /// - /// Tests the HandleTwoFactorAuthorizationError C# code example. - /// - [Test] - public void TestHandleTwoFactorAuthorizationErrorCSharpExample() { - RunExample(delegate() { - new CSharpExamples.HandleTwoFactorAuthorizationError().Run(user); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/MiscellaneousTest.cs b/tests/AdXBuyer/v201309/MiscellaneousTest.cs deleted file mode 100644 index d0dc3587977..00000000000 --- a/tests/AdXBuyer/v201309/MiscellaneousTest.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Miscellaneous. - /// - class MiscellaneousTest : VersionedExampleTestsBase { - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - } - - /// - /// Tests the GetAllVideosAndImages VB.NET code example. - /// - [Test] - public void TestGetAllVideosAndImagesVBExample() { - RunExample(delegate() { - new VBExamples.GetAllVideosAndImages().Run(user); - }); - } - - /// - /// Tests the GetAllVideosAndImages C# code example. - /// - [Test] - public void TestGetAllVideosAndImagesCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetAllVideosAndImages().Run(user); - }); - } - - /// - /// Tests the UploadImage VB.NET code example. - /// - [Test] - public void TestUploadImageVBExample() { - RunExample(delegate() { - new VBExamples.UploadImage().Run(user); - }); - } - - /// - /// Tests the UploadImage C# code example. - /// - [Test] - public void TestUploadImageCSharpExample() { - RunExample(delegate() { - new CSharpExamples.UploadImage().Run(user); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/OptimizationTest.cs b/tests/AdXBuyer/v201309/OptimizationTest.cs deleted file mode 100644 index 6e710cd3600..00000000000 --- a/tests/AdXBuyer/v201309/OptimizationTest.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Optimization. - /// - class OptimizationTest : VersionedExampleTestsBase { - long campaignId; - long adGroupId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPM); - adGroupId = utils.CreateAdGroup(user, campaignId, true); - } - - /// - /// Tests the GetPlacementIdeas VB.NET code example. - /// - [Test] - public void TestGetPlacementIdeasVBExample() { - RunExample(delegate() { - new VBExamples.GetPlacementIdeas().Run(user); - }); - } - - /// - /// Tests the GetPlacementIdeas C# code example. - /// - [Test] - public void TestGetPlacementIdeasCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetPlacementIdeas().Run(user); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/RemarketingTest.cs b/tests/AdXBuyer/v201309/RemarketingTest.cs deleted file mode 100644 index 7ec2529de32..00000000000 --- a/tests/AdXBuyer/v201309/RemarketingTest.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under - /// v201309\Remarketing. - /// - class RemarketingTest : VersionedExampleTestsBase { - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - } - - /// - /// Tests the AddAudience VB.NET code example. - /// - [Test] - public void TestAddAudienceVBExample() { - RunExample(delegate() { - new VBExamples.AddAudience().Run(user); - }); - } - - /// - /// Tests the AddAudience C# code example. - /// - [Test] - public void TestAddAudienceCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddAudience().Run(user); - }); - } - - /// - /// Tests the AddConversionTracker VB.NET code example. - /// - [Test] - public void TestAddConversionTrackerVBExample() { - RunExample(delegate() { - new VBExamples.AddConversionTracker().Run(user); - }); - } - - /// - /// Tests the AddConversionTracker C# code example. - /// - [Test] - public void TestAddConversionTrackerCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddConversionTracker().Run(user); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/ReportingTest.cs b/tests/AdXBuyer/v201309/ReportingTest.cs deleted file mode 100644 index 5ab714cbfb0..00000000000 --- a/tests/AdXBuyer/v201309/ReportingTest.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Reporting. - /// - class ReportingTest : VersionedExampleTestsBase { - string outputFileName; - ReportDefinitionReportType reportType; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - outputFileName = Path.GetFileName(Path.GetTempFileName()); - reportType = ReportDefinitionReportType.CRITERIA_PERFORMANCE_REPORT; - } - - /// - /// Tests the DownloadCriteriaReport VB.NET code example. - /// - [Test] - public void TestDownloadCriteriaReportVBExample() { - RunExample(delegate() { - new VBExamples.DownloadCriteriaReport().Run(user, outputFileName); - }); - } - - /// - /// Tests the DownloadCriteriaReport C# code example. - /// - [Test] - public void TestDownloadCriteriaReportCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DownloadCriteriaReport().Run(user, outputFileName); - }); - } - - /// - /// Tests the DownloadCriteriaReportWithAwql VB.NET code example. - /// - [Test] - public void TestDownloadCriteriaReportWithAwqlVBExample() { - RunExample(delegate() { - new VBExamples.DownloadCriteriaReportWithAwql().Run(user, outputFileName); - }); - } - - /// - /// Tests the DownloadCriteriaReportWithAwql C# code example. - /// - [Test] - public void TestDownloadCriteriaReportWithAwqlCSharpExample() { - RunExample(delegate() { - new CSharpExamples.DownloadCriteriaReportWithAwql().Run(user, outputFileName); - }); - } - - /// - /// Tests the GetReportFields VB.NET code example. - /// - [Test] - public void TestGetReportFieldsVBExample() { - RunExample(delegate() { - new VBExamples.GetReportFields().Run(user, reportType); - }); - } - - /// - /// Tests the GetReportFields C# code example. - /// - [Test] - public void TestGetReportFieldsCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetReportFields().Run(user, reportType); - }); - } - } -} diff --git a/tests/AdXBuyer/v201309/TargetingTest.cs b/tests/AdXBuyer/v201309/TargetingTest.cs deleted file mode 100644 index 86501fc74a3..00000000000 --- a/tests/AdXBuyer/v201309/TargetingTest.cs +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.v201309; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Text; -using System.Threading; - -using CSharpExamples = Google.Api.Ads.AdWords.Examples.CSharp.v201309; -using VBExamples = Google.Api.Ads.AdWords.Examples.VB.v201309; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Test cases for all the code examples under v201309\Targeting. - /// - class TargetingTest : VersionedExampleTestsBase { - long campaignId; - long campaignCriterionId; - - /// - /// Inits this instance. - /// - [SetUp] - public void Init() { - campaignId = utils.CreateCampaign(user, BiddingStrategyType.MANUAL_CPM); - campaignCriterionId = utils.AddCampaignTargetingCriteria(user, campaignId); - } - - /// - /// Tests the AddCampaignTargetingCriteria VB.NET code example. - /// - [Test] - public void TestAddCampaignTargetingCriteriaVBExample() { - RunExample(delegate() { - new VBExamples.AddCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the AddCampaignTargetingCriteria C# code example. - /// - [Test] - public void TestAddCampaignTargetingCriteriaCSharpExample() { - RunExample(delegate() { - new CSharpExamples.AddCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the GetCampaignTargetingCriteria VB.NET code example. - /// - [Test] - public void TestGetCampaignTargetingCriteriaVBExample() { - RunExample(delegate() { - new VBExamples.GetCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the GetCampaignTargetingCriteria C# code example. - /// - [Test] - public void TestGetCampaignTargetingCriteriaCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetCampaignTargetingCriteria().Run(user, campaignId); - }); - } - - /// - /// Tests the GetTargetableLanguagesAndCarriers VB.NET code example. - /// - [Test] - public void TestGetTargetableLanguagesAndCarriersVBExample() { - RunExample(delegate() { - new VBExamples.GetTargetableLanguagesAndCarriers().Run(user); - }); - } - - /// - /// Tests the GetTargetableLanguagesAndCarriers C# code example. - /// - [Test] - public void TestGetTargetableLanguagesAndCarriersCSharpExample() { - RunExample(delegate() { - new CSharpExamples.GetTargetableLanguagesAndCarriers().Run(user); - }); - } - - /// - /// Tests the LookupLocation VB.NET code example. - /// - [Test] - public void TestLookupLocationVBExample() { - RunExample(delegate() { - new VBExamples.LookupLocation().Run(user); - }); - } - - /// - /// Tests the LookupLocation C# code example. - /// - [Test] - public void TestLookupLocationCSharpExample() { - RunExample(delegate() { - new CSharpExamples.LookupLocation().Run(user); - }); - } - - } -} diff --git a/tests/AdXBuyer/v201309/TestUtils.cs b/tests/AdXBuyer/v201309/TestUtils.cs deleted file mode 100644 index 7de7a7d3c1a..00000000000 --- a/tests/AdXBuyer/v201309/TestUtils.cs +++ /dev/null @@ -1,541 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using Google.Api.Ads.AdWords.Lib; -using Google.Api.Ads.AdWords.Util.v201309; -using Google.Api.Ads.AdWords.v201309; -using Google.Api.Ads.Common.Util; - -using NUnit.Framework; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Net; -using System.Text; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// A utility class to assist the testing of v201309 services. - /// - class TestUtils { - /// - /// Creates a test campaign for running further tests. - /// - /// The AdWords user. - /// The bidding strategy to be used. - /// The campaign id. - public long CreateCampaign(AdWordsUser user, BiddingStrategyType strategyType) { - CampaignService campaignService = - (CampaignService) user.GetService(AdWordsService.v201309.CampaignService); - - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - biddingConfig.biddingStrategyType = strategyType; - - CampaignOperation campaignOperation = new CampaignOperation(); - campaignOperation.@operator = Operator.ADD; - campaignOperation.operand = new Campaign(); - campaignOperation.operand.name = - string.Format("Campaign {0}", DateTime.Now.ToString("yyyy-M-d H:m:s.ffffff")); - campaignOperation.operand.status = CampaignStatus.PAUSED; - campaignOperation.operand.biddingStrategyConfiguration = biddingConfig; - campaignOperation.operand.budget = new Budget(); - campaignOperation.operand.budget.period = BudgetBudgetPeriod.DAILY; - campaignOperation.operand.budget.amount = new Money(); - campaignOperation.operand.budget.amount.microAmount = 100000000; - campaignOperation.operand.budget.deliveryMethod = BudgetBudgetDeliveryMethod.STANDARD; - KeywordMatchSetting matchSetting = new KeywordMatchSetting(); - matchSetting.optIn = true; - campaignOperation.operand.settings = new Setting[] {matchSetting}; - - CampaignReturnValue retVal = - campaignService.mutate(new CampaignOperation[] {campaignOperation}); - return retVal.value[0].id; - } - - /// - /// Creates the legacy sitelinks. - /// - /// The AdWords user. - /// The campaign id. - /// The list of legacy sitelinks. - public Sitelink[] CreateLegacySitelinks(AdWordsUser user, long campaignId) { - // Get the CampaignAdExtensionService. - CampaignAdExtensionService campaignExtensionService = - (CampaignAdExtensionService) user.GetService(AdWordsService.v201309. - CampaignAdExtensionService); - - // Create the sitelinks. - SitelinksExtension siteLinkExtension = new SitelinksExtension(); - - Sitelink siteLink1 = new Sitelink(); - siteLink1.displayText = "Music"; - siteLink1.destinationUrl = "http://www.example.com/music"; - - Sitelink siteLink2 = new Sitelink(); - siteLink2.displayText = "DVDs"; - siteLink2.destinationUrl = "http://www.example.com/dvds"; - - Sitelink siteLink3 = new Sitelink(); - siteLink3.displayText = "New albums"; - siteLink3.destinationUrl = "http://www.example.com/albums/new"; - - siteLinkExtension.sitelinks = new Sitelink[] {siteLink1, siteLink2, siteLink3}; - - CampaignAdExtension campaignAdExtension = new CampaignAdExtension(); - campaignAdExtension.adExtension = siteLinkExtension; - campaignAdExtension.campaignId = campaignId; - - // Create the operation. - CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation(); - operation.@operator = Operator.ADD; - operation.operand = campaignAdExtension; - - // Create the sitelinks. - CampaignAdExtensionReturnValue retVal = - campaignExtensionService.mutate(new CampaignAdExtensionOperation[] {operation}); - - return (retVal.value[0].adExtension as SitelinksExtension).sitelinks; - } - - /// - /// Converts a campaign into enhanced campaign using forward compatibility - /// map. - /// - /// The user. - /// The campaign id. - public void EnhanceCampaign(AdWordsUser user, long campaignId) { - CampaignService campaignService = (CampaignService) user.GetService( - AdWordsService.v201309.CampaignService); - - // Campaign to be updated with the enhanced value. - // Note: After setting the enhanced value to true, setting it back to false - // will generate an ApiError. - Campaign campaign = new Campaign(); - campaign.id = campaignId; - - // Create operation. - CampaignOperation operation = new CampaignOperation(); - operation.@operator = Operator.SET; - operation.operand = campaign; - - campaignService.mutate(new CampaignOperation[] {operation}); - return; - } - - /// - /// Creates a test adgroup for running further tests. - /// - /// The AdWords user. - /// The campaign id for which the adgroup is created. - /// The adgroup id. - public long CreateAdGroup(AdWordsUser user, long campaignId) { - return CreateAdGroup(user, campaignId, false); - } - - /// - /// Creates a test adgroup for running further tests. - /// - /// The AdWords user. - /// The campaign id for which the adgroup is created. - /// True, if a ManualCPM bid is to be used. - /// The adgroup id. - public long CreateAdGroup(AdWordsUser user, long campaignId, bool isCpmBid) { - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - AdGroupOperation adGroupOperation = new AdGroupOperation(); - adGroupOperation.@operator = Operator.ADD; - adGroupOperation.operand = new AdGroup(); - adGroupOperation.operand.campaignId = campaignId; - adGroupOperation.operand.name = - string.Format("AdGroup {0}", DateTime.Now.ToString("yyyy-M-d H:m:s.ffffff")); - adGroupOperation.operand.status = AdGroupStatus.ENABLED; - - if (isCpmBid) { - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - CpmBid cpmBid = new CpmBid(); - cpmBid.bid = new Money(); - cpmBid.bid.microAmount = 10000000; - biddingConfig.bids = new Bids[] {cpmBid}; - adGroupOperation.operand.biddingStrategyConfiguration = biddingConfig; - } else { - BiddingStrategyConfiguration biddingConfig = new BiddingStrategyConfiguration(); - CpcBid cpcBid = new CpcBid(); - cpcBid.bid = new Money(); - cpcBid.bid.microAmount = 10000000; - biddingConfig.bids = new Bids[] {cpcBid}; - adGroupOperation.operand.biddingStrategyConfiguration = biddingConfig; - } - AdGroupReturnValue retVal = adGroupService.mutate(new AdGroupOperation[] {adGroupOperation}); - return retVal.value[0].id; - } - - /// - /// Creates a test textad for running further tests. - /// - /// The AdWords user. - /// The adgroup id for which the ad is created. - /// - /// True, if an ad param placeholder should be - /// added. - /// The text ad id. - public long CreateTextAd(AdWordsUser user, long adGroupId, bool hasAdParam) { - AdGroupAdService adGroupAdService = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation(); - adGroupAdOperation.@operator = Operator.ADD; - adGroupAdOperation.operand = new AdGroupAd(); - adGroupAdOperation.operand.adGroupId = adGroupId; - TextAd ad = new TextAd(); - - ad.headline = "Luxury Cruise to Mars"; - ad.description1 = "Visit the Red Planet in style."; - if (hasAdParam) { - ad.description2 = "Low-gravity fun for {param1:cheap}!"; - } else { - ad.description2 = "Low-gravity fun for everyone!"; - } - ad.displayUrl = "example.com"; - ad.url = "http://www.example.com"; - - adGroupAdOperation.operand.ad = ad; - - AdGroupAdReturnValue retVal = - adGroupAdService.mutate(new AdGroupAdOperation[] {adGroupAdOperation}); - return retVal.value[0].ad.id; - } - - /// - /// Creates a test ThirdPartyRedirectAd for running further tests. - /// - /// The AdWords user. - /// The adgroup id for which the ad is created. - /// - /// True, if an ad param placeholder should be - /// added. - /// The text ad id. - public long CreateThirdPartyRedirectAd(AdWordsUser user, long adGroupId) { - AdGroupAdService adGroupAdService = - (AdGroupAdService) user.GetService(AdWordsService.v201309.AdGroupAdService); - AdGroupAdOperation adGroupAdOperation = new AdGroupAdOperation(); - adGroupAdOperation.@operator = Operator.ADD; - adGroupAdOperation.operand = new AdGroupAd(); - adGroupAdOperation.operand.adGroupId = adGroupId; - - // Create the third party redirect ad. - ThirdPartyRedirectAd redirectAd = new ThirdPartyRedirectAd(); - redirectAd.name = string.Format("Example third party ad #{0}", this.GetTimeStamp()); - redirectAd.url = "http://www.example.com"; - - redirectAd.dimensions = new Dimensions(); - redirectAd.dimensions.height = 250; - redirectAd.dimensions.width = 300; - - // This field normally contains the javascript ad tag. - redirectAd.snippet = - ""; - redirectAd.impressionBeaconUrl = "http://www.examples.com/beacon"; - redirectAd.certifiedVendorFormatId = 119; - redirectAd.isCookieTargeted = false; - redirectAd.isUserInterestTargeted = false; - redirectAd.isTagged = false; - - adGroupAdOperation.operand.ad = redirectAd; - - AdGroupAdReturnValue retVal = - adGroupAdService.mutate(new AdGroupAdOperation[] {adGroupAdOperation}); - return retVal.value[0].ad.id; - } - - /// - /// Sets an adparam for running further tests. - /// - /// The AdWords user. - /// The adgroup id to which criterionId belongs. - /// - /// The criterion id to which adparam is set. - /// - public void SetAdParam(AdWordsUser user, long adGroupId, long criterionId) { - AdParamService adParamService = - (AdParamService) user.GetService(AdWordsService.v201309.AdParamService); - - // Prepare for setting ad parameters. - AdParam adParam = new AdParam(); - adParam.adGroupId = adGroupId; - adParam.criterionId = criterionId; - adParam.paramIndex = 1; - adParam.insertionText = "$100"; - - AdParamOperation adParamOperation = new AdParamOperation(); - adParamOperation.@operator = Operator.SET; - adParamOperation.operand = adParam; - - // Set ad parameters. - AdParam[] newAdParams = adParamService.mutate(new AdParamOperation[] {adParamOperation}); - return; - } - - /// - /// Creates a keyword for running further tests. - /// - /// The AdWords user. - /// The adgroup id for which the keyword is - /// created. - /// The keyword id. - public long CreateKeyword(AdWordsUser user, long adGroupId) { - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - AdGroupCriterionOperation operation = new AdGroupCriterionOperation(); - operation.@operator = Operator.ADD; - operation.operand = new BiddableAdGroupCriterion(); - operation.operand.adGroupId = adGroupId; - - Keyword keyword = new Keyword(); - keyword.matchType = KeywordMatchType.BROAD; - keyword.text = "mars cruise"; - - operation.operand.criterion = keyword; - AdGroupCriterionReturnValue retVal = - adGroupCriterionService.mutate(new AdGroupCriterionOperation[] {operation}); - return retVal.value[0].criterion.id; - } - - /// - /// Creates the placement. - /// - /// The AdWords user. - /// The adgroup id for which the placement is - /// created. - /// The placement id. - public long CreatePlacement(AdWordsUser user, long adGroupId) { - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - Placement placement = new Placement(); - placement.url = "http://mars.google.com"; - - AdGroupCriterion placementCriterion = new BiddableAdGroupCriterion(); - placementCriterion.adGroupId = adGroupId; - placementCriterion.criterion = placement; - - AdGroupCriterionOperation placementOperation = new AdGroupCriterionOperation(); - placementOperation.@operator = Operator.ADD; - placementOperation.operand = placementCriterion; - - AdGroupCriterionReturnValue retVal = adGroupCriterionService.mutate( - new AdGroupCriterionOperation[] {placementOperation}); - - return retVal.value[0].criterion.id; - } - - /// - /// Creates a campaign ad extension for running further tests. - /// - /// The AdWords user. - /// The campaign id for which extension is - /// created. - /// The campaign ad extension id. - public long CreateLocationExtension(AdWordsUser user, long campaignId) { - CampaignAdExtensionService campaignExtensionService = - (CampaignAdExtensionService) user.GetService(AdWordsService.v201309. - CampaignAdExtensionService); - - CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation(); - operation.@operator = Operator.ADD; - - CampaignAdExtension extension = new CampaignAdExtension(); - extension.campaignId = campaignId; - extension.status = CampaignAdExtensionStatus.ACTIVE; - - Address address = new Address(); - address.streetAddress = "1600 Amphitheatre Pkwy, Mountain View"; - address.countryCode = "US"; - - GeoLocation location = GetLocationForAddress(user, address); - - LocationExtension locationExtension = new LocationExtension(); - - // Note: Do not populate an address directly. Instead, use - // GeoLocationService to obtain the location of an address, - // and use the address as per the location it returns. - locationExtension.address = location.address; - locationExtension.geoPoint = location.geoPoint; - locationExtension.encodedLocation = location.encodedLocation; - locationExtension.source = LocationExtensionSource.ADWORDS_FRONTEND; - - extension.adExtension = locationExtension; - operation.operand = extension; - CampaignAdExtensionReturnValue retVal = - campaignExtensionService.mutate(new CampaignAdExtensionOperation[] {operation}); - return retVal.value[0].adExtension.id; - } - - /// - /// Adds site links to a campaign. - /// - /// The user. - /// The campaign id. - /// The sitelinks campaign adextension id. - public long AddSiteLinks(AdWordsUser user, long campaignId) { - // Get the CampaignAdExtensionService. - CampaignAdExtensionService campaignExtensionService = - (CampaignAdExtensionService) user.GetService(AdWordsService.v201309. - CampaignAdExtensionService); - - // Create the sitelinks. - SitelinksExtension siteLinkExtension = new SitelinksExtension(); - - Sitelink siteLink1 = new Sitelink(); - siteLink1.displayText = "Music"; - siteLink1.destinationUrl = "http://www.example.com/music"; - - Sitelink siteLink2 = new Sitelink(); - siteLink2.displayText = "DVDs"; - siteLink2.destinationUrl = "http://www.example.com/dvds"; - - Sitelink siteLink3 = new Sitelink(); - siteLink3.displayText = "New albums"; - siteLink3.destinationUrl = "http://www.example.com/albums/new"; - - siteLinkExtension.sitelinks = new Sitelink[] {siteLink1, siteLink2, siteLink3}; - - CampaignAdExtension campaignAdExtension = new CampaignAdExtension(); - campaignAdExtension.adExtension = siteLinkExtension; - campaignAdExtension.campaignId = campaignId; - - // Create the operation. - CampaignAdExtensionOperation operation = new CampaignAdExtensionOperation(); - operation.@operator = Operator.ADD; - operation.operand = campaignAdExtension; - - // Create the sitelinks. - CampaignAdExtensionReturnValue retVal = - campaignExtensionService.mutate(new CampaignAdExtensionOperation[] {operation}); - - return retVal.value[0].adExtension.id; - } - - /// - /// Adds an experiment. - /// - /// The user. - /// The campaign id. - /// The ad group id. - /// The criterion id. - /// The experiment id. - public long AddExperiment(AdWordsUser user, long campaignId, long adGroupId, long criterionId) { - // Get the ExperimentService. - ExperimentService experimentService = - (ExperimentService) user.GetService(AdWordsService.v201309.ExperimentService); - - // Get the AdGroupService. - AdGroupService adGroupService = - (AdGroupService) user.GetService(AdWordsService.v201309.AdGroupService); - - // Get the AdGroupCriterionService. - AdGroupCriterionService adGroupCriterionService = - (AdGroupCriterionService) user.GetService(AdWordsService.v201309.AdGroupCriterionService); - - // Create the experiment. - Experiment experiment = new Experiment(); - experiment.campaignId = campaignId; - experiment.name = "Interplanetary Cruise #" + GetTimeStamp(); - experiment.queryPercentage = 10; - experiment.startDateTime = DateTime.Now.AddDays(1).ToString("yyyyMMdd HHmmss"); - - // Create the operation. - ExperimentOperation experimentOperation = new ExperimentOperation(); - experimentOperation.@operator = Operator.ADD; - experimentOperation.operand = experiment; - - // Add the experiment. - ExperimentReturnValue experimentRetVal = experimentService.mutate( - new ExperimentOperation[] {experimentOperation}); - - return experimentRetVal.value[0].id; - } - - /// - /// Adds the campaign targeting criteria to a campaign. - /// - /// The user. - /// The campaign id. - /// The campaign criteria id. - public long AddCampaignTargetingCriteria(AdWordsUser user, long campaignId) { - // Get the CampaignCriterionService. - CampaignCriterionService campaignCriterionService = - (CampaignCriterionService) user.GetService( - AdWordsService.v201309.CampaignCriterionService); - - // Create language criteria. - // See http://code.google.com/apis/adwords/docs/appendix/languagecodes.html - // for a detailed list of language codes. - Language language1 = new Language(); - language1.id = 1002; // French - CampaignCriterion languageCriterion1 = new CampaignCriterion(); - languageCriterion1.campaignId = campaignId; - languageCriterion1.criterion = language1; - - CampaignCriterion[] criteria = new CampaignCriterion[] {languageCriterion1}; - - List operations = new List(); - - foreach (CampaignCriterion criterion in criteria) { - CampaignCriterionOperation operation = new CampaignCriterionOperation(); - operation.@operator = Operator.ADD; - operation.operand = criterion; - operations.Add(operation); - } - - CampaignCriterionReturnValue retVal = campaignCriterionService.mutate(operations.ToArray()); - return retVal.value[0].criterion.id; - } - - /// - /// Returns an image which can be used for creating image ads. - /// - /// The image data, as an array of bytes. - public byte[] GetTestImage() { - return MediaUtilities.GetAssetDataFromUrl("http://goo.gl/HJM3L"); - } - - /// - /// Gets the geo location for a given address. - /// - /// The AdWords user. - /// The address for which geolocation should be - /// fetched. - /// Geo location for the address. - public GeoLocation GetLocationForAddress(AdWordsUser user, Address address) { - GeoLocationService geoService = - (GeoLocationService) user.GetService(AdWordsService.v201309.GeoLocationService); - - GeoLocationSelector selector = new GeoLocationSelector(); - selector.addresses = new Address[] {address}; - return geoService.get(selector)[0]; - } - - /// - /// Gets the current timestamp. - /// - /// The timestamp as a string. - public string GetTimeStamp() { - return (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds.ToString(); - } - } -} diff --git a/tests/AdXBuyer/v201309/VersionedExampleTestsBase.cs b/tests/AdXBuyer/v201309/VersionedExampleTestsBase.cs deleted file mode 100644 index 565f25160de..00000000000 --- a/tests/AdXBuyer/v201309/VersionedExampleTestsBase.cs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2013, Google Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Author: api.anash@gmail.com (Anash P. Oommen) - -using System; - -namespace Google.Api.Ads.AdWords.Tests.v201309 { - /// - /// Base class for code examples that adds version-specific features. - /// - class VersionedExampleTestsBase : ExampleTestsBase { - /// - /// Test utilities instance for support functionality when running tests. - /// - protected TestUtils utils = new TestUtils(); - - /// - /// Default public constructor. - /// - public VersionedExampleTestsBase() : base() { - } - } -} diff --git a/tests/Dfa/Properties/Properties.cs b/tests/Dfa/Properties/Properties.cs index e227e002fbb..4be9de93061 100644 --- a/tests/Dfa/Properties/Properties.cs +++ b/tests/Dfa/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("DoubleClick for Advertisers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/tests/Dfp/Properties/Properties.cs b/tests/Dfp/Properties/Properties.cs index 0d4995b8074..aaf32aca627 100644 --- a/tests/Dfp/Properties/Properties.cs +++ b/tests/Dfp/Properties/Properties.cs @@ -20,5 +20,5 @@ [assembly: AssemblyProduct("Google's DoubleClick for Publishers API DotNet Client Library")] [assembly: AssemblyCopyright("Copyright 2011, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("18.0.0.0")] -[assembly: AssemblyFileVersion("18.0.0.0")] +[assembly: AssemblyVersion("18.1.0.0")] +[assembly: AssemblyFileVersion("18.1.0.0")] diff --git a/utilities/OAuthTokenGenerator/Properties/Properties.cs b/utilities/OAuthTokenGenerator/Properties/Properties.cs index 63a131184af..016c92de0c1 100644 --- a/utilities/OAuthTokenGenerator/Properties/Properties.cs +++ b/utilities/OAuthTokenGenerator/Properties/Properties.cs @@ -19,5 +19,5 @@ [assembly: AssemblyCompany("Google")] [assembly: AssemblyProduct("Ads API Dotnet Common Library")] [assembly: AssemblyCopyright("Copyright 2012, Google Inc. All Rights Reserved.")] -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.0")] +[assembly: AssemblyVersion("3.1.0.0")] +[assembly: AssemblyFileVersion("3.1.0.0")]